/* Amper header + footer on WooCommerce pages. Mirrors the home page header/footer. */

/* Hide the theme's own header/footer (block themes + common classic themes). */
body.amper-chrome-on .wp-site-blocks > header.wp-block-template-part,
body.amper-chrome-on .wp-site-blocks > footer.wp-block-template-part,
body.amper-chrome-on .wp-site-blocks > .wp-block-template-part:has(> header),
body.amper-chrome-on #masthead,
body.amper-chrome-on #colophon,
body.amper-chrome-on header.site-header,
body.amper-chrome-on footer.site-footer {
	display: none !important;
}

.amper-chrome-header,
.amper-chrome-footer {
	--amper-ink: #0e1413;
	--amper-volt: #c6f36b;
	font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, "Noto Sans", Arial, sans-serif;
	color: #fff;
	background: var(--amper-ink);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.amper-chrome-header *,
.amper-chrome-footer * { box-sizing: border-box; }
.amper-chrome-header a,
.amper-chrome-footer a { color: inherit; text-decoration: none; }
.amper-chrome-header ul,
.amper-chrome-footer ul { list-style: none; margin: 0; padding: 0; }
.amper-chrome-header :focus-visible,
.amper-chrome-footer :focus-visible { outline: 2px solid var(--amper-volt); outline-offset: 3px; border-radius: 6px; }

.amper-chrome-inner {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.25rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
@media (min-width: 640px) { .amper-chrome-inner { padding: 0 2rem; } }

/* Skip link */
.amper-chrome-skip {
	position: absolute; left: -9999px; top: 0.75rem; z-index: 100000;
	background: #c6f36b; color: #0e1413 !important; padding: 0.5rem 1rem; border-radius: 6px; font-weight: 600;
}
.amper-chrome-skip:focus { left: 0.75rem; }

/* Header */
.amper-chrome-header {
	position: sticky; top: 0; z-index: 9999;
	border-bottom: 1px solid rgb(255 255 255 / 0.1);
	background: rgb(14 20 19 / 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
body.admin-bar .amper-chrome-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .amper-chrome-header { top: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar .amper-chrome-header { top: 0; } }
.amper-chrome-header .amper-chrome-inner { height: 4rem; }

.amper-chrome-brand { display: flex; align-items: center; gap: 0.625rem; }
.amper-chrome-mark { width: 1.75rem; height: 1.75rem; color: #fff; flex: none; }
.amper-chrome-mark-lg { width: 2rem; height: 2rem; }
.amper-chrome-brand span,
.amper-chrome-wordmark {
	font-family: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
	font-weight: 600; letter-spacing: 0.28em; font-size: 1.125rem;
}

.amper-chrome-nav { margin-left: auto; display: none; }
.amper-chrome-nav ul { display: flex; gap: 0.25rem; }
.amper-chrome-nav a {
	display: block; padding: 0.5rem 0.75rem; border-radius: 6px;
	font-size: 0.875rem; color: rgb(255 255 255 / 0.75); transition: color 0.15s;
}
.amper-chrome-nav a:hover { color: #fff; }

.amper-chrome-actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 1024px) {
	.amper-chrome-nav { display: block; }
	.amper-chrome-actions { margin-left: 0; }
}

.amper-chrome-cart {
	position: relative; display: grid; place-items: center;
	width: 2.5rem; height: 2.5rem; border-radius: 6px; color: rgb(255 255 255 / 0.85);
}
.amper-chrome-cart:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
.amper-chrome-cart svg { width: 1.375rem; height: 1.375rem; }
.amper-chrome-badge {
	position: absolute; top: 0.125rem; right: 0.125rem; min-width: 1.125rem; height: 1.125rem;
	padding: 0 0.25rem; border-radius: 999px; background: var(--amper-volt); color: var(--amper-ink);
	font-size: 0.6875rem; font-weight: 700; line-height: 1.125rem; text-align: center;
}

.amper-chrome-cta {
	display: inline-flex; align-items: center; justify-content: center;
	height: 2.25rem; padding: 0 1rem; border-radius: 6px;
	background: var(--amper-volt); color: var(--amper-ink) !important;
	font-size: 0.875rem; font-weight: 600; white-space: nowrap; transition: background 0.15s;
}
.amper-chrome-cta:hover { background: #d6fa8c; }
.amper-chrome-cta-wrap { display: none; }
@media (min-width: 640px) { .amper-chrome-cta-wrap { display: inline-flex; } }

/* Mobile menu (no JS: <details>) */
.amper-chrome-mobile { position: relative; }
@media (min-width: 1024px) { .amper-chrome-mobile { display: none; } }
.amper-chrome-mobile > summary {
	list-style: none; cursor: pointer; display: grid; place-items: center;
	width: 2.5rem; height: 2.5rem; border-radius: 6px;
}
.amper-chrome-mobile > summary::-webkit-details-marker { display: none; }
.amper-chrome-mobile > summary:hover { background: rgb(255 255 255 / 0.1); }
.amper-chrome-mobile > summary svg { width: 1.5rem; height: 1.5rem; }
.amper-chrome-panel {
	position: absolute; right: 0; top: calc(100% + 0.75rem); width: 16rem;
	padding: 0.75rem; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 12px;
	background: var(--amper-ink); box-shadow: 0 20px 40px rgb(0 0 0 / 0.4);
}
.amper-chrome-panel a:not(.amper-chrome-cta) {
	display: block; padding: 0.75rem; border-radius: 8px;
	font-family: "Noto Serif", "Palatino Linotype", Georgia, serif; font-size: 1.125rem;
}
.amper-chrome-panel a:not(.amper-chrome-cta):hover { background: rgb(255 255 255 / 0.1); }
.amper-chrome-panel .amper-chrome-cta { width: 100%; margin-top: 0.75rem; height: 2.75rem; }

/* Footer */
.amper-chrome-footer { margin-top: 0; }
.amper-chrome-footer-inner {
	flex-direction: column; align-items: flex-start; gap: 2rem;
	padding-top: 3rem; padding-bottom: 3rem;
}
@media (min-width: 768px) {
	.amper-chrome-footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.amper-chrome-footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.amper-chrome-wordmark { font-size: 1rem; }
.amper-chrome-sub { font-size: 0.875rem; color: rgb(255 255 255 / 0.7); }
.amper-chrome-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.875rem; }
.amper-chrome-footer li a { color: rgb(255 255 255 / 0.75); }
.amper-chrome-footer li a:hover { color: #fff; }

@media (forced-colors: active) {
	.amper-chrome-header, .amper-chrome-footer { border: 1px solid CanvasText; }
	.amper-chrome-cta { border: 1px solid ButtonText; }
}
@media (prefers-reduced-motion: reduce) {
	.amper-chrome-nav a, .amper-chrome-cta { transition: none; }
}

/* ---------- Footer pinned to the bottom of short pages ---------- */
body.amper-chrome-on {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}
body.amper-chrome-on.admin-bar { min-height: calc(100dvh - 32px); }
@media screen and (max-width: 782px) { body.amper-chrome-on.admin-bar { min-height: calc(100dvh - 46px); } }
body.amper-chrome-on > * { flex-shrink: 0; }
.amper-chrome-spacer { margin-top: auto; height: 4rem; flex: none; }

/* ---------- Banner ---------- */
.amper-chrome-banner {
	--amper-ink: #0e1413;
	--amper-volt: #c6f36b;
	position: relative;
	overflow: hidden;
	color: #fff;
	background-color: var(--amper-ink);
	background-image:
		radial-gradient(38rem 20rem at 85% 30%, rgb(31 122 120 / 0.55), transparent 70%),
		linear-gradient(to right, rgb(255 255 255 / 0.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgb(255 255 255 / 0.05) 1px, transparent 1px);
	background-size: auto, 48px 48px, 48px 48px;
	font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, "Noto Sans", Arial, sans-serif;
	margin-bottom: 2.5rem;
}
.amper-chrome-banner::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: linear-gradient(to right, transparent, rgb(198 243 107 / 0.6), transparent);
}
.amper-chrome-banner-inner {
	min-height: 11rem;
	padding-top: 2.25rem; padding-bottom: 2.25rem;
	flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 1.5rem;
}
@media (min-width: 768px) {
	.amper-chrome-banner-inner { min-height: 13.5rem; flex-direction: row; align-items: flex-end; justify-content: space-between; padding-bottom: 2.75rem; }
}
.amper-chrome-eyebrow {
	display: flex; align-items: center; gap: 0.5rem; margin: 0;
	font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgb(255 255 255 / 0.8);
}
.amper-chrome-eyebrow span { display: inline-block; width: 2rem; height: 1px; background: var(--amper-volt); }
.amper-chrome-banner-title {
	margin: 0.75rem 0 0;
	font-family: "Noto Serif", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: #fff;
}
.amper-chrome-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.875rem; }
.amper-chrome-steps li { display: flex; align-items: center; gap: 0.5rem; color: rgb(255 255 255 / 0.7); }
.amper-chrome-steps li + li::before { content: ""; width: 1.25rem; height: 1px; background: rgb(255 255 255 / 0.3); margin-right: 0.25rem; }
.amper-chrome-step-dot {
	display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 999px;
	border: 1px solid rgb(255 255 255 / 0.35); font-size: 0.75rem; font-weight: 700;
}
.amper-chrome-steps li.is-done { color: rgb(255 255 255 / 0.85); }
.amper-chrome-steps li.is-done .amper-chrome-step-dot { background: var(--amper-volt); border-color: var(--amper-volt); color: var(--amper-ink); }
.amper-chrome-steps li.is-current { color: #fff; font-weight: 600; }
.amper-chrome-steps li.is-current .amper-chrome-step-dot { border-color: var(--amper-volt); color: var(--amper-volt); }
.amper-chrome-banner .screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* The banner carries the page title: hide the theme's duplicate. */
body.amper-chrome-titled .wp-block-post-title,
body.amper-chrome-titled h1.entry-title,
body.amper-chrome-titled .woocommerce-products-header__title {
	display: none !important;
}

@media (forced-colors: active) {
	.amper-chrome-banner { border-bottom: 1px solid CanvasText; }
	.amper-chrome-step-dot { forced-color-adjust: auto; }
}
