/* ============================================================
   LUMILENS — Headlight Restoration
   Shared stylesheet. Mobile-first. Pure CSS, no JavaScript.

   ─ SWAP ZONE ────────────────────────────────────────────────
   All design-system values live in :root below. Change colors,
   fonts, spacing and radii here and the whole site follows.
   ============================================================ */

:root {
  /* ---- COLORS ------------------------------------------------ */
  --color-canvas:        #000000;  /* page floor — true black */
  --color-surface-1:     #0c0c0c;  /* strips, footer-adjacent */
  --color-surface-2:     #161616;  /* cards, panels */
  --color-surface-3:     #1f1f1f;  /* nested / elevated cards */
  --color-carbon:        #242424;  /* technical spec surface */

  --color-hairline:      #2a2a2a;  /* 1px dividers */
  --color-hairline-soft: #1c1c1c;  /* faint dividers */
  --color-hairline-bold: #3c3c3c;  /* one-step elevation border */

  --color-text:          #ffffff;  /* headlines + primary text */
  --color-text-strong:   #e9e9e9;  /* lead paragraphs */
  --color-text-body:     #b4b4b4;  /* running body */
  --color-text-muted:    #808080;  /* captions, footer, legal */

  --color-accent:        #1f8bff;  /* LumiLens "lumen" blue */
  --color-accent-strong: #0653b6;  /* deeper blue for pressed/hover ink */
  --color-warm:          #f4b400;  /* warranty seal + "before" warmth */
  --color-success:       #18a558;

  /* M tricolor — the single brand accent stripe */
  --stripe-1: #0066b1;
  --stripe-2: #1c69d4;
  --stripe-3: #e22718;
  --m-stripe: linear-gradient(90deg,
    var(--stripe-1) 0%,  var(--stripe-1) 33.33%,
    var(--stripe-2) 33.33%, var(--stripe-2) 66.66%,
    var(--stripe-3) 66.66%, var(--stripe-3) 100%);

  /* ---- TYPE -------------------------------------------------- */
  --font-display: "BMW Type Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body:    "BMW Type Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --weight-light:   300;
  --weight-regular: 400;
  --weight-display: 700;

  --display-tracking: -0.5px;  /* tighter caps for fallback face */
  --label-tracking:   1.6px;   /* machined uppercase labels */

  /* Fluid display sizes — mobile → desktop */
  --fs-hero:   clamp(2.75rem, 8vw, 5.5rem);
  --fs-h2:     clamp(2rem, 5vw, 3.5rem);
  --fs-h3:     clamp(1.5rem, 3vw, 2.25rem);
  --fs-h4:     clamp(1.2rem, 2vw, 1.5rem);
  --fs-lead:   clamp(1.05rem, 1.6vw, 1.35rem);
  --fs-body:   1rem;
  --fs-small:  0.875rem;
  --fs-label:  0.8125rem;

  /* ---- SPACING (4px base) ----------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 64px;
  --space-section: clamp(64px, 10vw, 120px);

  --container: 1280px;
  --container-wide: 1440px;
  --nav-height: 68px;

  /* ---- RADIUS ------------------------------------------------ */
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-full: 9999px;

  /* ---- MOTION ------------------------------------------------ */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur: 160ms;
}

@font-face {
  font-family: "BMW Type Next";
  src: url("assets/fonts/BMWTypeNext_Pro_Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: var(--weight-light);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text-body);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }

::selection { background: var(--color-accent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  line-height: 1.02;
  color: var(--color-text);
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.1; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
  font-size: var(--fs-label);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--color-accent);
  display: inline-block;
}
.eyebrow.warm { color: var(--color-warm); }
.eyebrow.warm::before { background: var(--color-warm); }

.lead {
  font-size: var(--fs-lead);
  font-weight: var(--weight-light);
  color: var(--color-text-strong);
  line-height: 1.55;
  text-wrap: pretty;
}
p { text-wrap: pretty; }
.muted { color: var(--color-text-muted); }
.accent-text { color: var(--color-accent); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container.wide { max-width: var(--container-wide); }
.section { padding-block: var(--space-section); }
.section.tight { padding-block: clamp(48px, 7vw, 80px); }

.m-stripe {
  height: 4px;
  width: 100%;
  background: var(--m-stripe);
}
.m-stripe.short { width: 96px; height: 4px; }

.divider { height: 1px; background: var(--color-hairline); border: 0; }

/* ============================================================
   SKIP LINK (a11y)
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff; color: #000;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
  font-size: var(--fs-label);
  z-index: 200;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ============================================================
   HEADER / NAV  (pure-CSS hamburger via checkbox)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-hairline-soft);
}
.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.25rem;
  color: #fff;
}
.brand .lens {
  width: 26px; height: 26px;
  flex: 0 0 auto;
}
.brand b { color: var(--color-accent); font-weight: var(--weight-display); }
.brand-logo {
  height: 46px;
  width: auto;
  display: block;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.04); filter: brightness(1.12); }
.footer-brand .brand-logo { height: 62px; }

/* mobile toggle */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none; /* hidden on desktop; shown in mobile breakpoint */
  flex-direction: column;
  gap: 5px;
  padding: var(--space-3);
  margin-right: calc(-1 * var(--space-3));
}
.nav-toggle-label span {
  width: 24px; height: 2px;
  background: #fff;
  transition: var(--dur) var(--ease);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-links > li { position: relative; }
.nav-links a, .nav-links .dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: var(--fs-label);
  color: var(--color-text-body);
  padding-block: var(--space-2);
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

/* CSS-only dropdown (hover + focus-within) */
.dropdown > button .chev { transition: transform var(--dur) var(--ease); }
.dropdown:hover > button .chev,
.dropdown:focus-within > button .chev { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-hairline);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: var(--dur) var(--ease);
  z-index: 110;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  letter-spacing: 0.5px;
}
.dropdown-menu a:hover { background: var(--color-surface-3); color:#fff; }
/* Wide 2-column menu for the Service Areas list */
.dropdown-menu.areas { min-width: 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dropdown-menu.areas a[aria-current="page"] { color: var(--color-accent); }

.nav-cta { display: inline-flex; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
  font-size: var(--fs-label);
  line-height: 1;
  padding: 16px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-none);
  transition: var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: #fff; color: #000; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--color-accent); color: #fff; }

.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover, .btn-accent:focus-visible { background: #fff; color: #000; }

.btn-outline { border-color: var(--color-hairline-bold); color: #fff; }
.btn-outline:hover, .btn-outline:focus-visible { background: rgba(255,255,255,0.08); border-color:#fff; }

.btn-ghost { color: var(--color-text-body); padding-inline: 0; }
.btn-ghost:hover { color:#fff; }

.btn-block { width: 100%; }
.btn-lg { padding: 19px 34px; font-size: 0.875rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(560px, 86vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--color-hairline-soft);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 35%, rgba(0,0,0,0.92) 100%),
    radial-gradient(120% 80% at 75% 30%, rgba(31,139,255,0.18), transparent 60%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 9vw, 110px);
  max-width: 820px;
}
.hero h1 { margin-block: var(--space-4) var(--space-5); }
.hero h1 .glow { color: var(--color-accent); }
.hero .lead { max-width: 600px; margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.hero-badges {
  display: flex; flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-hairline);
}
.hero-badge {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--fs-small);
  color: var(--color-text-strong);
}
.hero-badge svg { width: 22px; height: 22px; color: var(--color-accent); flex: 0 0 auto; }

/* ============================================================
   MARQUEE / TICKER STRIP (CSS pause, no animation required)
   ============================================================ */
.ticker {
  background: var(--color-surface-1);
  border-block: 1px solid var(--color-hairline-soft);
  padding-block: var(--space-4);
  overflow: hidden;
}
.ticker-viewport {
  overflow: hidden;
  /* fade the strip in/out at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: var(--space-4) var(--space-7);
  padding-right: var(--space-7);
}
.ticker-item {
  display: inline-flex; align-items: center; gap: var(--space-3);
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
  font-size: var(--fs-label);
  color: var(--color-text-muted);
}
.ticker-item .star { color: var(--color-accent); }

@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-block: var(--space-4) var(--space-4); }
.section-head .lead { margin: 0; }

/* ============================================================
   BEFORE / AFTER  (signature section)
   ============================================================ */
.beforeafter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--color-hairline);
  border: 1px solid var(--color-hairline);
}
.ba-panel { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--color-surface-2); }
.ba-panel img { width: 100%; height: 100%; object-fit: cover; }
.ba-panel.before img { filter: sepia(0.5) brightness(0.7) contrast(0.9); }
.ba-tag {
  position: absolute; top: var(--space-4); left: var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
  font-size: var(--fs-label);
  padding: 8px 14px;
  background: rgba(0,0,0,0.8);
  color: #fff;
}
.ba-panel.before .ba-tag { color: var(--color-warm); }
.ba-panel.after .ba-tag { color: var(--color-accent); }

/* ============================================================
   FEATURE / SERVICE CARDS
   ============================================================ */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

.card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-hairline);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform 260ms var(--ease);
}
.card:hover { border-color: var(--color-hairline-bold); background: var(--color-surface-3); transform: translateY(-5px); }
.card .icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-hairline-bold);
  color: var(--color-accent);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3, .card h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  color: #fff;
}
.card h4 { font-size: var(--fs-h4); }
.card p { font-size: var(--fs-body); }
.card-num {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 2rem;
  color: var(--color-hairline-bold);
}

/* photo feature card */
.photo-card { background: var(--color-surface-2); border: 1px solid var(--color-hairline); }
.photo-card .ph { aspect-ratio: 16/10; overflow: hidden; }
.photo-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.photo-card:hover .ph img { transform: scale(1.04); }
.photo-card .body { padding: var(--space-5); display:flex; flex-direction: column; gap: var(--space-3); }
.photo-card .body h4 { font-family: var(--font-display); font-weight: var(--weight-display); text-transform: uppercase; color:#fff; font-size: var(--fs-h4); }
.cat-label {
  font-family: var(--font-display); font-weight: var(--weight-display);
  text-transform: uppercase; letter-spacing: var(--label-tracking);
  font-size: var(--fs-label); color: var(--color-accent);
}

/* ============================================================
   SPLIT (asymmetric) SECTION
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr; gap: var(--space-7); align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--color-hairline); }
.split-media .stripe-tab { position: absolute; left: 0; bottom: -1px; width: 120px; height: 4px; background: var(--m-stripe); }
.split-body h2 { margin-bottom: var(--space-5); }
.split-list { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-5); }
.split-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.split-list svg { width: 22px; height: 22px; color: var(--color-accent); flex: 0 0 auto; margin-top: 2px; }
.split-list b { color: #fff; font-weight: var(--weight-display); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.3px; font-size: var(--fs-body); display:block; margin-bottom: 2px; }

/* ============================================================
   PROCESS TIMELINE  (signature section)
   ============================================================ */
.timeline { display: grid; grid-template-columns: 1fr; gap: 0; }
.tl-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-hairline);
}
.tl-step:last-child { border-bottom: 1px solid var(--color-hairline); }
.tl-num {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 0.9;
  color: var(--color-surface-3);
  -webkit-text-stroke: 1px var(--color-hairline-bold);
  min-width: 2.2ch;
}
.tl-step:hover .tl-num { color: var(--color-accent); -webkit-text-stroke: 1px var(--color-accent); }
.tl-body h4 { font-family: var(--font-display); font-weight: var(--weight-display); text-transform: uppercase; color:#fff; font-size: var(--fs-h4); margin-bottom: var(--space-3); }
.tl-time { font-family: var(--font-display); font-weight: var(--weight-display); text-transform: uppercase; letter-spacing: var(--label-tracking); font-size: 0.75rem; color: var(--color-accent); margin-bottom: var(--space-2); }

/* ============================================================
   STATS / RESULTS BAND
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-hairline);
  background: var(--color-surface-1);
}
.stat { padding: var(--space-6); border-right: 1px solid var(--color-hairline); border-bottom: 1px solid var(--color-hairline); }
.stat:nth-child(2n) { border-right: none; }
.stat .val {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
  color: #fff;
}
.stat .val span { color: var(--color-accent); }
.stat .lab { margin-top: var(--space-3); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: var(--label-tracking); color: var(--color-text-muted); }

/* ============================================================
   COMPARISON TABLE  (signature section)
   ============================================================ */
.compare-wrap { border: 1px solid var(--color-hairline); overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare th, .compare td { padding: var(--space-4) var(--space-5); text-align: left; border-bottom: 1px solid var(--color-hairline); }
.compare thead th {
  font-family: var(--font-display); font-weight: var(--weight-display);
  text-transform: uppercase; letter-spacing: var(--label-tracking);
  font-size: var(--fs-label); color: #fff; background: var(--color-surface-2);
}
.compare thead th.col-pro { color: var(--color-accent); border-bottom: 2px solid var(--color-accent); }
.compare tbody th {
  font-weight: var(--weight-light); color: var(--color-text-strong);
  font-family: var(--font-body); text-transform: none; letter-spacing: 0;
}
.compare td { color: var(--color-text-body); font-size: var(--fs-small); }
.compare td.col-pro { color: #fff; background: rgba(31,139,255,0.05); }
.compare svg { width: 18px; height: 18px; vertical-align: middle; }
.compare .yes { color: var(--color-success); }
.compare .no { color: #5a5a5a; }

/* ============================================================
   PRICING TIERS
   ============================================================ */
.tiers { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.tier {
  border: 1px solid var(--color-hairline);
  background: var(--color-surface-1);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.tier.featured { border-color: var(--color-accent); background: var(--color-surface-2); position: relative; }
.tier.featured::before {
  content: "Most Popular";
  position: absolute; top: 0; right: 0;
  font-family: var(--font-display); font-weight: var(--weight-display);
  text-transform: uppercase; letter-spacing: var(--label-tracking);
  font-size: 0.7rem; color:#fff; background: var(--color-accent);
  padding: 6px 12px;
}
.tier h4 { font-family: var(--font-display); font-weight: var(--weight-display); text-transform: uppercase; color:#fff; font-size: var(--fs-h4); }
.tier .price { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 2.75rem; color:#fff; line-height: 1; }
.tier .price small { font-size: 1rem; color: var(--color-text-muted); font-weight: var(--weight-light); }
.tier ul { display: flex; flex-direction: column; gap: var(--space-3); margin-block: var(--space-2); }
.tier ul li { display: flex; gap: var(--space-3); font-size: var(--fs-small); color: var(--color-text-body); }
.tier ul li svg { width: 18px; height: 18px; color: var(--color-accent); flex:0 0 auto; }
.tier .btn { margin-top: auto; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.testi {
  border: 1px solid var(--color-hairline);
  background: var(--color-surface-2);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.testi .stars { display: flex; gap: 3px; color: var(--color-warm); }
.testi .stars svg { width: 18px; height: 18px; }
.testi blockquote { font-size: var(--fs-lead); color: var(--color-text-strong); font-weight: var(--weight-light); line-height: 1.5; }
.testi .who { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }
.testi .who .av {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--color-surface-3); border: 1px solid var(--color-hairline-bold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--weight-display); color:#fff; font-size: 0.9rem;
}
.testi .who .meta b { color:#fff; font-family: var(--font-display); font-weight: var(--weight-display); text-transform: uppercase; font-size: var(--fs-small); letter-spacing: 0.3px; }
.testi .who .meta span { display:block; font-size: 0.78rem; color: var(--color-text-muted); }

/* ============================================================
   FAQ (CSS-only accordion via <details>)
   ============================================================ */
.faq { border-top: 1px solid var(--color-hairline); }
.faq details { border-bottom: 1px solid var(--color-hairline); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-size: var(--fs-h4);
  color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  position: relative;
}
.faq summary .ico::before,
.faq summary .ico::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2px; background: var(--color-accent);
  transform: translate(-50%, -50%);
  transition: var(--dur) var(--ease);
}
.faq summary .ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .ico::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }
.faq details[open] summary { color: var(--color-accent); }
.faq .answer { padding: 0 44px var(--space-5) 0; color: var(--color-text-body); font-size: var(--fs-body); }

/* ============================================================
   SERVICE AREA
   ============================================================ */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--color-hairline); border: 1px solid var(--color-hairline); }
.area-grid li {
  background: var(--color-surface-1);
  padding: var(--space-5);
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-display); font-weight: var(--weight-display);
  text-transform: uppercase; letter-spacing: 0.4px; font-size: var(--fs-small); color: var(--color-text-strong);
  transition: background var(--dur) var(--ease);
}
.area-grid li:hover { background: var(--color-surface-3); color:#fff; }
.area-grid li svg { width: 16px; height: 16px; color: var(--color-accent); flex:0 0 auto; }

/* Nearby-areas link row (location pages) */
.area-links { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.area-links a {
  display: inline-flex; align-items: center;
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-hairline);
  background: var(--color-surface-1);
  font-family: var(--font-display); font-weight: var(--weight-display);
  text-transform: uppercase; letter-spacing: var(--label-tracking); font-size: var(--fs-label);
  color: var(--color-text-strong);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.area-links a:hover { background: var(--color-surface-3); border-color: var(--color-accent); color:#fff; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; border-block: 1px solid var(--color-hairline); }
.cta-band .cta-media { position: absolute; inset: 0; z-index: 0; }
.cta-band .cta-media img { width:100%; height:100%; object-fit: cover; }
.cta-band .cta-media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.78)); }
.cta-inner { position: relative; z-index:1; text-align: center; max-width: 760px; margin-inline: auto; display:flex; flex-direction: column; align-items: center; gap: var(--space-5); }
.cta-inner h2 { font-size: var(--fs-h2); }
.cta-inner .actions { display:flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; }
.cta-phone { font-family: var(--font-display); font-weight: var(--weight-display); color:#fff; font-size: 1.4rem; letter-spacing: 0.5px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-7); }
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.field label {
  font-family: var(--font-display); font-weight: var(--weight-display);
  text-transform: uppercase; letter-spacing: var(--label-tracking);
  font-size: var(--fs-label); color: var(--color-text-strong);
}
.field .req { color: var(--color-accent); }
.field input, .field textarea, .field select {
  background: var(--color-surface-1);
  border: 1px solid var(--color-hairline-bold);
  color: #fff;
  padding: 14px 16px;
  border-radius: var(--radius-none);
  transition: border-color var(--dur) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #5e5e5e; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: #fff; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.form-note { font-size: 0.8rem; color: var(--color-text-muted); margin-top: var(--space-3); }

/* Form submit status messages */
.form-status { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-5); border: 1px solid var(--color-hairline); background: var(--color-surface-1); }
.form-status[hidden] { display: none; }
.form-status-success { border-color: color-mix(in oklch, var(--color-accent) 55%, var(--color-hairline)); }
.form-status-success svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--color-accent); margin-top: 2px; }
.form-status-success strong { display: block; font-family: var(--font-display); font-weight: var(--weight-display); text-transform: uppercase; letter-spacing: var(--label-tracking); color: #fff; font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.form-status-success span { color: var(--color-text-body); font-size: var(--fs-small); line-height: 1.5; }
.form-status-error { margin-top: var(--space-4); border-color: #e22718; }
.form-status-error span { color: var(--color-text-body); font-size: var(--fs-small); line-height: 1.5; }

.info-card { border: 1px solid var(--color-hairline); background: var(--color-surface-1); padding: var(--space-6); display:flex; flex-direction: column; gap: var(--space-5); }
.info-row { display:flex; gap: var(--space-4); align-items: flex-start; }
.info-row svg { width: 22px; height:22px; color: var(--color-accent); flex:0 0 auto; margin-top: 3px; }
.info-row .k { font-family: var(--font-display); font-weight: var(--weight-display); text-transform: uppercase; letter-spacing: var(--label-tracking); font-size: var(--fs-label); color: var(--color-text-muted); margin-bottom: 4px; }
.info-row .v { color:#fff; font-size: var(--fs-body); }
.info-row .v a:hover { color: var(--color-accent); }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { position: relative; border-bottom: 1px solid var(--color-hairline); overflow: hidden; }
.page-hero .ph-media { position:absolute; inset:0; z-index:0; }
.page-hero .ph-media img { width:100%; height:100%; object-fit: cover; }
.page-hero .ph-media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.88)); }
.page-hero .inner { position: relative; z-index:1; padding-block: clamp(56px, 10vw, 120px); max-width: 800px; }
.page-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.5rem); margin-block: var(--space-4); }
.breadcrumb { display:flex; gap: var(--space-3); align-items:center; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text-muted); font-family: var(--font-display); font-weight: var(--weight-display); }
.breadcrumb a:hover { color:#fff; }
.breadcrumb .sep { color: var(--color-hairline-bold); }

/* legal / prose */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--fs-h3); margin-block: var(--space-7) var(--space-4); }
.prose h3 { font-size: var(--fs-h4); margin-block: var(--space-5) var(--space-3); }
.prose p { margin-bottom: var(--space-4); color: var(--color-text-body); }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: var(--space-4); display:flex; flex-direction: column; gap: var(--space-2); }
.prose ul li { color: var(--color-text-body); }
.prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #fff; font-weight: var(--weight-regular); }
.legal-meta { font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: var(--space-6); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-surface-1); border-top: 1px solid var(--color-hairline); }
.footer-top { display: grid; grid-template-columns: 1fr; gap: var(--space-7); padding-block: var(--space-section); }
.footer-brand { display:flex; flex-direction: column; gap: var(--space-4); max-width: 360px; }
.footer-brand p { font-size: var(--fs-small); color: var(--color-text-muted); }
.footer-col h5 {
  font-family: var(--font-display); font-weight: var(--weight-display);
  text-transform: uppercase; letter-spacing: var(--label-tracking);
  font-size: var(--fs-label); color: #fff; margin-bottom: var(--space-5);
}
.footer-col ul { display:flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--fs-small); color: var(--color-text-muted); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color:#fff; }
.footer-contact li { display:flex; gap: var(--space-3); font-size: var(--fs-small); color: var(--color-text-body); }
.footer-contact svg { width:18px; height:18px; color: var(--color-accent); flex:0 0 auto; }
.socials { display:flex; gap: var(--space-3); margin-top: var(--space-2); }
.socials a {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1px solid var(--color-hairline-bold);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-body);
  transition: var(--dur) var(--ease);
}
.socials a:hover { background:#fff; color:#000; border-color:#fff; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid var(--color-hairline);
  padding-block: var(--space-5);
  display:flex; flex-direction: column; gap: var(--space-3);
  align-items: center; text-align:center;
  font-size: 0.8rem; color: var(--color-text-muted);
}
.footer-bottom .legal-links { display:flex; gap: var(--space-5); flex-wrap: wrap; justify-content:center; }
.footer-bottom a:hover { color:#fff; }

/* ============================================================
   RESPONSIVE  — mobile-first breakpoints upward
   ============================================================ */
@media (max-width: 880px) {
  /* mobile nav — drawer + hamburger */
  .nav-menu {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface-1);
    border-bottom: 1px solid var(--color-hairline);
    padding: var(--space-4) var(--space-5) var(--space-6);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    transform: translateY(-120%);
    transition: transform 220ms var(--ease);
    visibility: hidden;
  }
  .nav-toggle:checked ~ .nav-menu { transform: translateY(0); visibility: visible; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle-label { display: inline-flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-links > li { border-bottom: 1px solid var(--color-hairline); }
  .nav-links a, .nav-links .dropdown > button { padding-block: var(--space-4); font-size: 0.95rem; width: 100%; }
  .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--color-accent); padding-left: var(--space-3); }
  /* dropdown becomes static list on mobile */
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; background: transparent; padding: 0 0 var(--space-3) var(--space-4);
    min-width: 0;
  }
  .dropdown:hover > button .chev { transform: none; }
  .nav-cta { margin-top: var(--space-4); }
  .nav-cta .btn { width: 100%; }
}

@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .beforeafter { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: none; }
  .stat:nth-child(2n) { border-right: 1px solid var(--color-hairline); }
  .stat:last-child { border-right: none; }
}

@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media { order: 2; }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.3fr 1fr; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .area-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1100px) {
  .split.wide-media { grid-template-columns: 1.2fr 1fr; }
}

/* ============================================================
   MOBILE POLISH — small-screen refinements (phones)
   ============================================================ */
@media (max-width: 600px) {
  /* Tighter, more usable gutters on phones */
  .container { padding-inline: var(--space-4); }

  /* Hero: a touch shorter so the CTA sits nearer the fold,
     and headline/lead breathe a bit less */
  .hero { min-height: clamp(480px, 78vh, 640px); }
  .hero-inner { padding-block: clamp(40px, 12vw, 72px); }
  .hero h1 { margin-block: var(--space-3) var(--space-4); }
  .hero .lead { margin-bottom: var(--space-5); }

  /* Full-width, stacked CTAs = bigger tap targets + tidy layout */
  .hero-actions, .cta-band .actions { width: 100%; }
  .hero-actions .btn,
  .cta-band .actions .btn { width: 100%; }
  .btn-lg { padding: 17px 24px; }

  /* Trim outsized section-head + badge spacing */
  .section-head { margin-bottom: var(--space-6); }
  .hero-badges { gap: var(--space-4); margin-top: var(--space-6); padding-top: var(--space-4); }

  /* The Service Areas dropdown must never exceed the drawer width */
  .dropdown-menu.areas { min-width: 0; }

  /* Slightly tighter nav drawer rhythm */
  .nav-links a, .nav-links .dropdown > button { padding-block: var(--space-4); }

  /* Hamburger: guaranteed 44px touch target */
  .nav-toggle-label {
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
  }

  /* Prevent iOS auto-zoom when focusing a field */
  input, textarea, select { font-size: 16px; }

  /* Breadcrumb wraps cleanly on location pages */
  .breadcrumb { flex-wrap: wrap; row-gap: var(--space-2); }
}

@media (max-width: 380px) {
  .container { padding-inline: var(--space-3); }
  .hero-badge { font-size: 0.8rem; }
  .ba-tag { font-size: 0.7rem; padding: 6px 10px; }
}

/* ============================================================
   MOTION — hover polish + scroll-entrance (pure CSS, no JS)
   Entrance uses CSS scroll-driven animations (animation-timeline:
   view()). Gated behind @supports so browsers without it simply
   show content normally. All gated behind reduced-motion too.
   ============================================================ */

/* ---- Extra hover lifts ------------------------------------ */
.tier, .testi, .photo-card { transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform 260ms var(--ease); }
.tier:hover, .testi:hover { transform: translateY(-5px); border-color: var(--color-hairline-bold); }
.tier.featured:hover { border-color: var(--color-accent); }
.photo-card:hover { transform: translateY(-5px); }

.stat { transition: background var(--dur) var(--ease); }
.stat:hover { background: var(--color-surface-2); }

.btn-primary, .btn-accent, .btn-outline { transition: var(--dur) var(--ease), transform 220ms var(--ease); }
.btn-primary:hover, .btn-accent:hover { transform: translateY(-2px); }

.tl-step { transition: background 240ms var(--ease); }
.tl-step:hover { background: var(--color-surface-1); }

.compare tbody tr { transition: background var(--dur) var(--ease); }
.compare tbody tr:hover td { background: rgba(255,255,255,0.03); }
.compare tbody tr:hover td.col-pro { background: rgba(31,139,255,0.09); }

.info-row svg, .hero-badge svg { transition: transform var(--dur) var(--ease); }
.info-card:hover .info-row svg { transform: scale(1.08); }

/* animated accent underline on nav links */
.nav-links > li > a { position: relative; }
.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px; width: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav-links > li > a:hover::after,
.nav-links > li > a:focus-visible::after { transform: scaleX(1); }

/* ticker subtle hover */
.ticker-item { transition: color var(--dur) var(--ease); }
.ticker-item:hover { color: var(--color-text-strong); }

/* ---- Entrance keyframes ----------------------------------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rise-in-sm {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-scale {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---- Hero / page-hero load entrance (time-based) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > *,
  .page-hero .inner > * {
    animation: rise-in 0.7s var(--ease) both;
  }
  .hero-inner > *:nth-child(1), .page-hero .inner > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-inner > *:nth-child(2), .page-hero .inner > *:nth-child(2) { animation-delay: 0.14s; }
  .hero-inner > *:nth-child(3), .page-hero .inner > *:nth-child(3) { animation-delay: 0.23s; }
  .hero-inner > *:nth-child(4), .page-hero .inner > *:nth-child(4) { animation-delay: 0.32s; }
  .hero-inner > *:nth-child(5), .page-hero .inner > *:nth-child(5) { animation-delay: 0.41s; }
  .hero-media img, .page-hero .ph-media img {
    animation: fade-scale 1.1s var(--ease) both;
  }
}

/* ---- Scroll-driven entrance for section content ----------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section-head,
    .grid > .card,
    .tiers > .tier,
    .testi-grid > .testi,
    .timeline .tl-step,
    .stats,
    .beforeafter,
    .split-media,
    .split-body,
    .area-grid,
    .compare-wrap,
    .faq,
    .cta-inner,
    .info-card,
    .contact-grid > * {
      animation: rise-in-sm linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 26%;
    }
    /* let grid children cascade slightly via their own scroll position */
    .grid > .card,
    .tiers > .tier,
    .testi-grid > .testi,
    .timeline .tl-step {
      animation-range: entry 0% entry 60%;
    }
  }
}

