/* ============================================================================
 *  layout.css — page composition for Sure Sound (Hampton car audio & tint).
 *  Graphite shop floor, sticky glass header, an equalizer-lit hero (the one
 *  bold move), the expertise band, the install grid, reviews, CTA, visit.
 * ========================================================================== */

/* ---- Backdrop (fixed glows behind everything — restrained, no starfield) - */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% -6%, oklch(70% 0.17 248 / 0.18), transparent 70%),
    radial-gradient(42% 36% at 88% 6%, oklch(66% 0.24 352 / 0.10), transparent 72%),
    radial-gradient(46% 40% at 6% 96%, oklch(62% 0.21 300 / 0.08), transparent 72%);
}

main { position: relative; z-index: 1; }
[id] { scroll-margin-top: calc(var(--header-h, 72px) + 1rem); }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: oklch(13% 0.012 262 / 0.55); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { background: oklch(11% 0.012 262 / 0.86); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: var(--space-m); padding-block: 0.85rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6em; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { width: 2.1rem; height: 2.1rem; flex: none; filter: drop-shadow(0 0 8px oklch(70% 0.17 248 / 0.55)); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.16rem; letter-spacing: -0.01em; line-height: 1; }
.brand__name small { display: block; font-family: var(--font); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 0.32em; }

.nav__links { display: flex; align-items: center; gap: var(--space-m); }
.nav__links > a:not(.btn) { font-weight: 500; color: color-mix(in oklab, var(--ink) 85%, var(--graphite)); text-decoration: none; font-size: var(--step--1); letter-spacing: 0.01em; }
.nav__links > a:not(.btn):hover { color: var(--azure-ink); }
.nav__cta { font-size: var(--step--1); }

.nav__toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--ink); width: 2.6rem; height: 2.6rem; cursor: pointer; }
.nav__toggle svg { width: 1.4rem; height: 1.4rem; margin: 0 auto; }
.nav__toggle .icon-close { display: none; }

.nav__scrim { position: fixed; inset: 0; z-index: 90; background: oklch(8% 0.01 262 / 0.6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); }
.nav__scrim.is-open { opacity: 1; pointer-events: auto; }   /* only block clicks while the mobile menu is open */
.nav__scrim[hidden] { display: none; }

@media (max-width: 880px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__links {
    position: fixed; inset: auto 0 0 0; top: var(--header-h, 64px); z-index: 95;
    flex-direction: column; align-items: stretch; gap: 0;
    background: linear-gradient(180deg, var(--graphite-rise), var(--graphite-deep));
    border-top: 1px solid var(--line); padding: var(--space-s) var(--gutter) var(--space-l);
    transform: translateY(-120%); transition: transform var(--dur) var(--ease); height: max-content;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links > a:not(.btn) { padding: 0.9em 0; border-bottom: 1px solid var(--line); font-size: var(--step-1); }
  .nav__cta { margin-top: var(--space-s); }
  body.nav-open { overflow: hidden; }
  .nav__toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav__toggle[aria-expanded="true"] .icon-close { display: block; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3.5rem, 9vh, 7rem) clamp(7rem, 16vh, 11rem); text-align: center; overflow: hidden; }
.hero::before {  /* soft azure stage-light behind the headline */
  content: ""; position: absolute; left: 50%; top: 8%; width: min(120vw, 1040px); aspect-ratio: 1.6; translate: -50% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 30%, oklch(70% 0.17 248 / 0.22) 0%, oklch(62% 0.21 300 / 0.10) 42%, transparent 66%);
  filter: blur(10px);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-m); }
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--space-s); justify-content: center; }
.hero h1 { max-width: 15ch; }
.hero__lede { max-width: 58ch; margin-inline: auto; }
.hero__cta { display: flex; gap: var(--space-s); flex-wrap: wrap; justify-content: center; }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-l); justify-content: center; margin-top: var(--space-s); color: var(--muted); font-size: var(--step--1); }
.hero__facts li { display: inline-flex; align-items: center; gap: 0.5em; }
.hero__facts b { color: var(--ink); }
.hero__facts .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--azure); box-shadow: var(--glow-azure-sm); }

/* ---- Equalizer baseline (the one bold move) ---------------------------- */
.hero__eq {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none;
  height: clamp(96px, 17vh, 188px);
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(5px, 0.9vw, 11px);
  padding-inline: var(--gutter); opacity: 0.62;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent),
                      linear-gradient(0deg, #000 30%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent),
                      linear-gradient(0deg, #000 30%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.eq__bar {
  width: clamp(8px, 1.5vw, 17px); border-radius: 5px 5px 0 0;
  background: linear-gradient(to top, var(--azure) 0%, var(--violet) 58%, var(--magenta) 100%);
  box-shadow: 0 0 14px oklch(70% 0.17 248 / 0.5);
  transform-origin: bottom; will-change: transform;
}
/* static spectrum shape (a bass-forward, peaky silhouette) */
.eq__bar:nth-child(1)  { height: 30%; } .eq__bar:nth-child(2)  { height: 48%; }
.eq__bar:nth-child(3)  { height: 70%; } .eq__bar:nth-child(4)  { height: 92%; }
.eq__bar:nth-child(5)  { height: 60%; } .eq__bar:nth-child(6)  { height: 80%; }
.eq__bar:nth-child(7)  { height: 100%; } .eq__bar:nth-child(8) { height: 66%; }
.eq__bar:nth-child(9)  { height: 42%; } .eq__bar:nth-child(10) { height: 84%; }
.eq__bar:nth-child(11) { height: 100%; } .eq__bar:nth-child(12){ height: 72%; }
.eq__bar:nth-child(13) { height: 50%; } .eq__bar:nth-child(14) { height: 88%; }
.eq__bar:nth-child(15) { height: 62%; } .eq__bar:nth-child(16) { height: 38%; }
.eq__bar:nth-child(17) { height: 76%; } .eq__bar:nth-child(18) { height: 54%; }
.eq__bar:nth-child(19) { height: 28%; } .eq__bar:nth-child(20) { height: 64%; }
.eq__bar:nth-child(21) { height: 40%; }
@media (prefers-reduced-motion: no-preference) {
  .eq__bar { animation: eqPulse 1.9s var(--ease) infinite alternate; }
  .eq__bar:nth-child(2n)  { animation-duration: 2.4s; }
  .eq__bar:nth-child(3n)  { animation-duration: 1.5s; }
  .eq__bar:nth-child(4n)  { animation-duration: 2.8s; }
  .eq__bar:nth-child(1)  { animation-delay: -0.2s; } .eq__bar:nth-child(2)  { animation-delay: -1.1s; }
  .eq__bar:nth-child(3)  { animation-delay: -0.6s; } .eq__bar:nth-child(4)  { animation-delay: -1.7s; }
  .eq__bar:nth-child(5)  { animation-delay: -0.9s; } .eq__bar:nth-child(6)  { animation-delay: -2.1s; }
  .eq__bar:nth-child(7)  { animation-delay: -0.3s; } .eq__bar:nth-child(8)  { animation-delay: -1.4s; }
  .eq__bar:nth-child(9)  { animation-delay: -0.7s; } .eq__bar:nth-child(10) { animation-delay: -2.5s; }
  .eq__bar:nth-child(11) { animation-delay: -0.1s; } .eq__bar:nth-child(12) { animation-delay: -1.9s; }
  .eq__bar:nth-child(13) { animation-delay: -0.5s; } .eq__bar:nth-child(14) { animation-delay: -1.2s; }
  .eq__bar:nth-child(15) { animation-delay: -0.8s; } .eq__bar:nth-child(16) { animation-delay: -2.3s; }
  .eq__bar:nth-child(17) { animation-delay: -0.4s; } .eq__bar:nth-child(18) { animation-delay: -1.6s; }
  .eq__bar:nth-child(19) { animation-delay: -1.0s; } .eq__bar:nth-child(20) { animation-delay: -2.0s; }
  .eq__bar:nth-child(21) { animation-delay: -0.6s; }
}
@keyframes eqPulse { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }

/* ---- Trust strip ------------------------------------------------------- */
.trust { border-block: 1px solid var(--line); background: oklch(12% 0.012 262 / 0.55); }
.trust__row { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-xl); justify-content: center; padding-block: var(--space-m); }

/* ---- Section heads ----------------------------------------------------- */
.sec-head { max-width: 62ch; margin-bottom: var(--space-xl); display: grid; gap: var(--space-xs); }
.sec-head.center { margin-inline: auto; justify-items: center; text-align: center; }
.sec-head p { color: var(--muted); font-size: var(--step-1); }

/* ---- Expertise band ---------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-2xl); align-items: center; }
@media (max-width: 920px) { .about__grid { grid-template-columns: 1fr; gap: var(--space-xl); } }
.about__body { display: grid; gap: var(--space-s); }
.about__body p { color: color-mix(in oklab, var(--ink) 86%, var(--graphite)); }
.about__panel {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--space-l); backdrop-filter: blur(12px); box-shadow: var(--shadow-1); position: relative; overflow: hidden;
}
.about__panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--azure), var(--violet), var(--magenta)); box-shadow: 0 0 16px oklch(70% 0.17 248 / 0.6); }
.about__panel h3 { font-size: var(--step-1); margin-bottom: var(--space-s); }

/* ---- Install / services grid ------------------------------------------ */
.svc__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-m); }
@media (max-width: 1040px) { .svc__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .svc__grid { grid-template-columns: 1fr; } }
.svc {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--space-l); backdrop-filter: blur(10px); display: grid; gap: var(--space-2xs);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.svc:hover { transform: translateY(-3px); border-color: var(--azure); background: var(--surface); }
.svc__icon { width: 2.7rem; height: 2.7rem; display: grid; place-items: center; border-radius: var(--r); color: var(--azure);
  background: oklch(70% 0.17 248 / 0.12); border: 1px solid color-mix(in oklab, var(--azure) 35%, transparent); margin-bottom: var(--space-2xs); }
.svc__icon svg { width: 1.55rem; height: 1.55rem; }
.svc h3 { font-size: var(--step-1); }
.svc p { color: var(--muted); font-size: var(--step--1); }
.svc__note { margin-top: var(--space-l); color: var(--muted); font-size: var(--step--1); max-width: 70ch; }

/* ---- Reviews ----------------------------------------------------------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }
@media (max-width: 920px) { .reviews__grid { grid-template-columns: 1fr; max-width: 38rem; margin-inline: auto; } }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band { position: relative; isolation: isolate; text-align: center; padding-block: var(--space-3xl); overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 130% at 50% 50%, oklch(70% 0.17 248 / 0.14), transparent 70%),
              linear-gradient(0deg, var(--graphite-deep), var(--graphite-rise)); }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); }
.cta-band h2 { max-width: 18ch; }
.cta-band p { color: color-mix(in oklab, var(--ink) 90%, var(--graphite)); max-width: 52ch; }
.cta-band .hero__cta { margin-top: var(--space-s); }

/* ---- Visit / contact --------------------------------------------------- */
.visit__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: var(--space-2xl); align-items: start; }
@media (max-width: 900px) { .visit__grid { grid-template-columns: 1fr; gap: var(--space-xl); } }
.visit__facts { display: grid; gap: var(--space-s); margin-top: var(--space-l); }
.fact { display: flex; gap: 0.8em; align-items: flex-start; }
.fact svg { width: 1.25em; height: 1.25em; color: var(--azure); flex: none; margin-top: 0.2em; }
.fact .k { font-weight: 600; color: var(--ink); }
.fact .k a { color: var(--ink); text-decoration: none; }
.fact .k a:hover { color: var(--azure-ink); }
.fact .v { color: var(--muted); font-size: var(--step--1); }
.contact__form { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--space-l); backdrop-filter: blur(12px); box-shadow: var(--shadow-1); }
.contact__form h3 { margin-bottom: var(--space-xs); }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--graphite-deep); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-l); padding-block: var(--space-2xl) var(--space-l); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.footer__brand .brand__mark { width: 1.7rem; height: 1.7rem; }
.footer__col h4 { color: var(--muted); font-family: var(--font); font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; margin-bottom: var(--space-s); }
.footer__col p, .footer__nap { color: var(--muted); font-size: var(--step--1); line-height: 1.7; font-style: normal; }
.footer__col a { color: var(--muted); text-decoration: none; }
.footer__col a:hover { color: var(--azure-ink); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: var(--space-s); justify-content: space-between; align-items: center; padding-block: var(--space-m); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }
.demo-credit { color: color-mix(in oklab, var(--muted) 90%, transparent); }
.demo-credit a { color: var(--azure-ink); }
