/* ==========================================================================
   Rocket Autoparts — "Pit Lane" design system
   Call-first redesign: every primary action drives a phone call.
   Same class API as v1 so all pages + JS-generated markup inherit the look.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-950: #040d1c;
  --navy-900: #071f49;
  --navy-800: #0a2a5e;
  --navy-700: #103a7c;
  --navy-100: #e7edf7;
  /* Accent theme: Electric Teal (FINAL — with darkened CTA surfaces for contrast)
     — Orange (original): #d9551b / #f36c21 / #ff8a3d / rgba(243,108,33,.38)
     — Racing Red:        #c92a2a / #ef4444 / #f87171 / rgba(239,68,68,.38)
     — Amber Gold:        #b45309 / #f59e0b / #fbbf24 / rgba(245,158,11,.38) */
  --orange-600: #0e7490;
  --orange-500: #06b6d4;
  --orange-400: #22d3ee;
  --orange-glow: rgba(6, 182, 212, 0.38);
  /* Deep range used on white-text surfaces (buttons, bands) */
  --teal-deep-1: #0891b2;
  --teal-deep-2: #0e7490;
  --teal-deep-3: #155e75;

  /* Neutrals */
  --ink: #0b1b33;
  --body: #44546a;
  --muted: #6b7a90;
  --line: #e3e9f2;
  --surface: #f4f7fb;
  --white: #ffffff;

  /* Type */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Shape & elevation */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(7, 31, 73, 0.08), 0 4px 14px rgba(7, 31, 73, 0.06);
  --shadow-md: 0 6px 24px rgba(7, 31, 73, 0.12);
  --shadow-lg: 0 18px 48px rgba(7, 31, 73, 0.18);
  --shadow-cta: 0 8px 24px var(--orange-glow);

  /* Layout */
  --container: 1180px;
  --header-h: 76px;
  --sticky-call-h: 64px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading { overflow: hidden; }
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

button, input, select, textarea { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 14px;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--orange-600); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--orange-500); }

ul { padding-left: 20px; margin: 0 0 16px; }

::selection { background: var(--orange-500); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.muted { color: var(--muted); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

/* --------------------------------------------------------------------------
   3. Loader
   -------------------------------------------------------------------------- */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 500px at 70% 20%, rgba(243, 108, 33, 0.16), transparent 60%),
    linear-gradient(150deg, var(--navy-950), var(--navy-900) 70%);
  opacity: 1;
  transition: opacity 0.4s ease;
}
.site-loader.is-hidden { opacity: 0; pointer-events: none; }

.site-loader__inner { display: grid; justify-items: center; gap: 22px; }

.site-loader__wheel {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--orange-500);
  border-right-color: var(--orange-400);
  animation: loader-spin 0.85s linear infinite;
}

@keyframes loader-spin { to { transform: rotate(360deg); } }

.site-loader__brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-loader__rock { color: var(--white); }
.site-loader__auto { color: var(--orange-500); margin-left: 8px; }

/* --------------------------------------------------------------------------
   4. Top strip
   -------------------------------------------------------------------------- */
.top-strip {
  background: linear-gradient(90deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.83rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.top-strip__inner {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  padding-block: 4px;
}

.top-strip a {
  color: var(--orange-400);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.top-strip a:hover { color: var(--white); }

/* Rotating taglines */
.flash-taglines {
  position: relative;
  display: grid;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  height: 1.5em;
}
.flash-taglines span {
  grid-area: 1 / 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(8px);
  animation: tagline-cycle 12s infinite;
}
.flash-taglines span:nth-child(2) { animation-delay: 4s; }
.flash-taglines span:nth-child(3) { animation-delay: 8s; }

@keyframes tagline-cycle {
  0%       { opacity: 0; transform: translateY(8px); }
  4%, 30%  { opacity: 1; transform: translateY(0); }
  34%, 100%{ opacity: 0; transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
/* NOTE: no backdrop-filter here — it would become the containing block for
   the fixed-position mobile nav drawer and trap it inside the header. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 24px rgba(7, 31, 73, 0.1);
}

.nav {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand__mark { width: 52px; height: 44px; object-fit: contain; }

.brand__text { display: grid; line-height: 1.15; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--navy-900);
}
.brand__name::first-letter { color: var(--orange-500); }

/* Text-only brand: teal accent bar stands in for the logo.
   (Orbit-trail + rocket experiment parked — art kept in assets/img/orbit-trail.svg
   and assets/img/rocket-flight.svg if we revisit.) */
.brand__text { position: relative; padding-left: 14px; }
.brand__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--orange-400), var(--orange-600));
}

.brand__tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links > a,
.nav-dropdown__trigger {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav__links > a:hover { background: var(--surface); color: var(--navy-900); }

.nav__links > a.active,
.nav__links > a[aria-current="page"] {
  color: var(--orange-600);
  background: rgba(243, 108, 33, 0.1);
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown__trigger {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-dropdown__trigger:hover { background: var(--surface); }

.nav-dropdown__caret { font-size: 0.7em; transition: transform 0.2s ease; }
.nav-dropdown.open .nav-dropdown__caret { transform: rotate(180deg); }

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  display: grid;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-dropdown.open .nav-dropdown__menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.nav-dropdown__menu a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-dropdown__menu a:hover { background: var(--surface); color: var(--orange-600); }

/* Actions */
.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__actions .nav-call { display: none; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: var(--navy-900);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Buttons — the conversion engine
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

/* Primary — glowing, impossible to miss. Deep teal range keeps white text AA-readable */
.btn--primary {
  background: linear-gradient(135deg, var(--teal-deep-1), var(--teal-deep-2) 55%, var(--teal-deep-3));
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--orange-glow);
}

/* Shine sweep */
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 4.5s ease-in-out infinite;
}
@keyframes btn-shine {
  0%, 72% { left: -80%; }
  100% { left: 130%; }
}

/* Gentle ring wiggle on the phone icon */
.btn--primary [data-icon="phone"] .icon {
  animation: phone-wiggle 3.2s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes phone-wiggle {
  0%, 86%, 100% { transform: rotate(0); }
  88% { transform: rotate(-12deg); }
  91% { transform: rotate(10deg); }
  94% { transform: rotate(-8deg); }
  97% { transform: rotate(5deg); }
}

.btn--dark {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--dark:hover {
  background: var(--navy-800);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--light {
  background: var(--white);
  color: var(--navy-900);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--light:hover {
  color: var(--orange-600);
  border-color: var(--orange-500);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--navy-900);
}
.btn--ghost:hover { background: var(--navy-900); color: var(--white); }

.btn--footer { width: 100%; }

/* --------------------------------------------------------------------------
   7. Hero (homepage)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(1000px 600px at 78% -10%, rgba(243, 108, 33, 0.22), transparent 55%),
    radial-gradient(700px 500px at -10% 100%, rgba(16, 58, 124, 0.55), transparent 60%),
    linear-gradient(155deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
}

/* Speed lines */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 90px,
    rgba(255, 255, 255, 0.025) 90px 92px
  );
  transform: translateY(var(--parallax, 0));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}

.hero h1 {
  color: var(--white);
  font-style: italic;
  margin-bottom: 18px;
}

.hero .lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 54ch;
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange-600); /* deep shade: small text on light backgrounds needs the contrast */
  margin-bottom: 12px;
}

.hero .eyebrow {
  color: var(--orange-400);
  background: rgba(243, 108, 33, 0.12);
  border: 1px solid rgba(243, 108, 33, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
}

.eyebrow-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero-flash {
  display: inline-block;
  font-weight: 600;
  font-style: italic;
  color: var(--orange-400);
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--orange-500);
  padding: 10px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero__actions .btn { padding: 16px 30px; font-size: 1.05rem; }

/* Trust pills */
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; }

.trust-pill {
  display: grid;
  gap: 2px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.trust-pill strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--orange-400);
  line-height: 1;
}
.trust-pill span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); }

/* --------------------------------------------------------------------------
   8. Quote panel (hero form)
   -------------------------------------------------------------------------- */
.quote-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  border-top: 5px solid var(--orange-500);
}

.skip-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  border-radius: var(--radius);
  padding: 13px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.skip-cta:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.skip-cta__bolt {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--orange-glow);
  animation: bolt-pulse 2.4s ease-out infinite;
}
@keyframes bolt-pulse {
  0% { box-shadow: 0 0 0 0 var(--orange-glow); }
  70% { box-shadow: 0 0 0 14px rgba(243, 108, 33, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 108, 33, 0); }
}

.skip-cta__text { display: grid; line-height: 1.3; min-width: 0; }
.skip-cta__text small { font-size: 0.76rem; color: rgba(255, 255, 255, 0.7); }
.skip-cta__text strong { font-size: 1.18rem; font-weight: 800; letter-spacing: 0.01em; }

.skip-cta__arrow { margin-left: auto; color: var(--orange-400); }

.quote-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.quote-panel__head p { font-size: 0.88rem; color: var(--muted); margin: 0; }

.quote-panel__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 2px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: #157347;
  background: #e7f6ee;
  padding: 6px 12px;
  border-radius: 999px;
}
.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1fab61;
  animation: status-blink 1.6s ease-in-out infinite;
}
@keyframes status-blink { 50% { opacity: 0.35; } }

/* --------------------------------------------------------------------------
   9. Forms
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.required { color: var(--orange-600); margin-left: 3px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.field textarea { min-height: 96px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #9aa7b8; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(243, 108, 33, 0.14);
}

.field select:disabled { opacity: 0.55; cursor: not-allowed; }

.form-grid .btn[type="submit"] {
  margin-top: 4px;
  padding: 16px 26px;
  font-size: 1.02rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

/* Progressive extra details */
.extra-details {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px;
  background: var(--navy-100);
  border-radius: var(--radius-sm);
}
.extra-details.show { display: grid; }

/* VIN lookup */
.lookup-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lookup-actions .btn { padding: 11px 20px; font-size: 0.9rem; }

.lookup-result {
  grid-column: 1 / -1;
  display: none;
  background: var(--navy-100);
  border: 1px solid #cdd9ec;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.lookup-result.show { display: block; }

.lookup-result dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 0;
}
.lookup-result dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.lookup-result dd {
  margin: 2px 0 0;
  font-weight: 700;
  color: var(--ink);
}

form.vin-resolved [data-vin-lookup] {
  background: #157347;
  border-color: #157347;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   10. Logo marquees
   -------------------------------------------------------------------------- */
.logo-marquees {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 100%;
  overflow: hidden;
}

.logo-marquee__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--orange-600);
  margin: 0;
}

.logo-marquee {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.logo-marquee__viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
/* Parts row has ~10 logos vs ~27 makes, so a shorter duration keeps the
   on-screen scroll speed (px/sec) identical between the two sliders. */
.logo-marquee__track--reverse { animation-direction: reverse; animation-duration: 22s; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }

/* White logo card */
.brand-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 150px;
  height: 76px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 14px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.brand-logo img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Parts-brand slider (Brands We Source) — sits after Browse Popular Parts */
.logo-marquees--parts { border-top: 1px solid var(--line); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   11. Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 96px); background: var(--surface); }
.section--white { background: var(--white); }
.section--tight { padding-block: clamp(36px, 5vw, 56px); }

.section--dark {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(243, 108, 33, 0.14), transparent 55%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 70%);
  color: rgba(255, 255, 255, 0.82);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--orange-400); }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.75); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head p { max-width: 62ch; margin-bottom: 0; }
.section-head__cta { flex: none; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

/* --------------------------------------------------------------------------
   12. Cards — categories, features, steps, reviews
   -------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.category-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.category-card:hover img { transform: scale(1.05); }

.category-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.category-card__body p { font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }

.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--orange-600);
}
.mini-link .icon { transition: transform 0.18s ease; }
.mini-link:hover .icon { transform: translateX(4px); }

/* Features (dark section) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 26px 24px;
  backdrop-filter: blur(6px);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 108, 33, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.feature [data-icon] {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.25rem;
  box-shadow: var(--shadow-cta);
}
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { font-size: 0.9rem; margin: 0; }

/* Image stack */
.image-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.image-stack img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.image-stack img:nth-child(2) { margin-top: 36px; }

/* Check list */
.check-list { display: grid; gap: 13px; margin-block: 22px 28px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  color: var(--ink);
}
.check-item [data-icon] {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(243, 108, 33, 0.14);
  color: var(--orange-600);
  margin-top: 2px;
  font-size: 0.8rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

.step__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange-500);
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.88rem; margin: 0; }

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  align-content: start;
  gap: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.review p { font-size: 0.93rem; font-style: italic; color: var(--body); margin: 0; }
.review strong { font-size: 0.85rem; color: var(--ink); }

.stars { color: var(--orange-500); font-size: 1.05rem; letter-spacing: 3px; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-900);
  background: var(--navy-100);
  padding: 7px 14px;
  border-radius: 999px;
}

/* Brand ribbon (legacy) */
.brand-ribbon { overflow: hidden; background: var(--navy-900); padding-block: 12px; }
.brand-ribbon__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 30s linear infinite;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.faq-item.open {
  border-color: rgba(243, 108, 33, 0.5);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 18px 22px;
  cursor: pointer;
}

.faq-q [data-icon] {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-900);
  transform: rotate(90deg);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.faq-item.open .faq-q [data-icon] {
  transform: rotate(-90deg);
  background: var(--orange-500);
  color: var(--white);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 22px 20px; font-size: 0.93rem; }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 15% 120%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(120deg, var(--teal-deep-3), var(--teal-deep-2) 60%, var(--teal-deep-1));
  color: var(--white);
  padding-block: clamp(44px, 6vw, 72px);
}

.cta-band__inner {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 58ch; margin: 0; }
.cta-band .eyebrow { color: rgba(255, 255, 255, 0.85); }

.cta-band .btn--primary {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 10px 30px rgba(4, 13, 28, 0.25);
  padding: 18px 34px;
  font-size: 1.08rem;
}
.cta-band .btn--primary:hover { color: var(--orange-600); }
.cta-band .btn--primary::after { display: none; }

/* --------------------------------------------------------------------------
   15. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(4, 13, 28, 0.92) 25%, rgba(7, 31, 73, 0.72) 60%, rgba(7, 31, 73, 0.45)),
    var(--hero-image, linear-gradient(155deg, var(--navy-950), var(--navy-900)));
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-400));
}

.page-hero__inner {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 88px);
  max-width: 820px;
}
.page-hero h1 { color: var(--white); font-style: italic; }
.page-hero p { color: rgba(255, 255, 255, 0.82); max-width: 62ch; }

/* --------------------------------------------------------------------------
   16. Contact layout & content cards
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.contact-methods { display: grid; gap: 14px; }

.method {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange-500);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.method > span {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}
.method a { font-weight: 800; font-size: 1.05rem; color: var(--navy-900); }
.method a:hover { color: var(--orange-600); }
.method p { font-size: 0.9rem; margin: 0; }

.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 3.5vw, 36px);
}
.content-card > h3 { margin-bottom: 18px; }

/* Long-form legal pages reuse .content-card; give inner headings rhythm */
.content-card h2 { font-size: 1.35rem; margin-top: 28px; }
.content-card h2:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   17. Parts catalog
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-btn:hover { border-color: var(--orange-500); color: var(--orange-600); }
.filter-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.part-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.part-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.part-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.part-card__media { overflow: hidden; }
.part-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.part-card:hover .part-card__media img { transform: scale(1.05); }

.part-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.part-card__body p { flex: 1; font-size: 0.88rem; margin: 0; }
.part-card__body .btn { align-self: flex-start; padding: 11px 22px; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   18. Vehicle lookup results (JS-rendered)
   -------------------------------------------------------------------------- */
.vehicle-results { display: none; }
.vehicle-results.show { display: block; }

.vehicle-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 3.5vw, 36px);
  display: grid;
  gap: 16px;
}

.vehicle-summary__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.vehicle-summary__status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #157347;
  background: #e7f6ee;
  border-radius: 999px;
  padding: 8px 16px;
}
.vehicle-summary__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1fab61;
}

.parts-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: clamp(20px, 3vw, 30px);
}

.parts-tab {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.parts-tab:hover { border-color: var(--orange-500); color: var(--orange-600); }
.parts-tab.active {
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-cta);
}

.parts-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-block: 20px 24px;
}

.parts-detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.parts-detail-card h3 { font-size: 0.98rem; margin-bottom: 10px; }
.parts-detail-card ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 0.88rem; }
.parts-detail-card li::marker { color: var(--orange-500); }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.footer {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(243, 108, 33, 0.1), transparent 55%),
    linear-gradient(165deg, var(--navy-950), var(--navy-900) 75%);
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(48px, 6vw, 72px);
}

.footer__grid {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  padding-bottom: 36px;
}

.footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer__brand p { font-size: 0.9rem; max-width: 40ch; margin-top: 16px; }
.footer .brand__name { color: var(--white); }
.footer .brand__tag { color: rgba(255, 255, 255, 0.55); }

.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: rgba(255, 255, 255, 0.72); font-weight: 500; }
.footer ul a:hover { color: var(--orange-400); }

.footer__callout {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.footer__contact { display: grid; gap: 6px; }
.footer__contact strong a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.footer__contact strong a:hover { color: var(--orange-400); }
.footer__contact > a { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }
.footer__contact > a:hover { color: var(--orange-400); }

.footer__divider {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.footer__payments {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

.payment-cards { display: flex; gap: 8px; }
.payment-card {
  width: 48px;
  height: 32px;
  border-radius: 6px;
  background: var(--white);
  padding: 4px;
  object-fit: contain;
}

.footer__legal {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  padding-block: 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer__legal p { margin-bottom: 8px; }

.footer__bottom {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-block: 18px 96px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__bottom nav a { color: rgba(255, 255, 255, 0.6); font-weight: 500; }
.footer__bottom nav a:hover { color: var(--orange-400); }

/* --------------------------------------------------------------------------
   20. Sticky call — the always-on conversion path
   -------------------------------------------------------------------------- */
.sticky-call {
  position: fixed;
  z-index: 150;
  right: 22px;
  bottom: 22px;
}

.sticky-call .btn {
  padding: 16px 26px;
  font-size: 1rem;
  box-shadow: 0 14px 38px var(--orange-glow), 0 4px 12px rgba(4, 13, 28, 0.25);
}

.sticky-call .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--orange-glow);
  animation: bolt-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

.sticky-call__desktop { display: inline; }
.sticky-call__mobile { display: none; }

/* --------------------------------------------------------------------------
   21. Modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 13, 28, 0.62);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s;
}
.modal.open { opacity: 1; visibility: visible; }

.modal__panel {
  width: min(440px, 100%);
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--orange-500);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.modal.open .modal__panel { transform: translateY(0) scale(1); }

.modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}
.modal__top h3 { margin: 0; }

.modal__close {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
  background: var(--surface);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.modal__close:hover { background: var(--navy-900); color: var(--white); }

.modal__panel > .btn { width: 100%; margin-top: 16px; }

.modal__actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.modal__actions .btn { width: 100%; margin-top: 0; }

/* --------------------------------------------------------------------------
   22. Reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   23. Responsive — tablet (≤980px)
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  :root { --header-h: 68px; }

  /* Mobile nav drawer */
  .menu-toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    width: min(330px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 90px 22px 30px;
    background: linear-gradient(170deg, var(--navy-950), var(--navy-900));
    box-shadow: -20px 0 60px rgba(4, 13, 28, 0.5);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), visibility 0s linear 0.3s;
    overflow-y: auto;
  }
  body.nav-open .nav__links {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
  }

  .nav__links > a,
  .nav-dropdown__trigger {
    color: var(--white);
    font-size: 1.05rem;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
  }
  .nav__links > a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
  .nav__links > a.active,
  .nav__links > a[aria-current="page"] {
    background: rgba(243, 108, 33, 0.18);
    color: var(--orange-400);
  }

  body.nav-open .menu-toggle { position: relative; z-index: 150; }

  .nav-dropdown { width: 100%; }
  .nav-dropdown__trigger { width: 100%; justify-content: space-between; }
  .nav-dropdown__trigger:hover { background: rgba(255, 255, 255, 0.08); }
  .nav-dropdown__menu {
    position: static;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 0;
    box-shadow: none;
    display: none;
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .nav-dropdown.open .nav-dropdown__menu { display: grid; }
  .nav-dropdown__menu a { color: rgba(255, 255, 255, 0.85); }
  .nav-dropdown__menu a:hover { background: rgba(255, 255, 255, 0.08); color: var(--orange-400); }

  /* Header actions: keep ONE prominent call button */
  .nav__actions > .btn--primary:not(.nav-call) { display: none; }
  .nav__actions .nav-call { display: inline-flex; padding: 12px 20px; }

  /* Grids collapse */
  .hero__inner { grid-template-columns: 1fr; padding-block: 44px 56px; }
  .split { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr; max-width: 640px; }
  .part-list { grid-template-columns: 1fr 1fr; }
  .parts-detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .section-head { flex-direction: column; align-items: flex-start; }

  .cta-band__inner { flex-direction: column; align-items: flex-start; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   24. Responsive — mobile (≤680px)
   -------------------------------------------------------------------------- */
@media (max-width: 680px) {
  body { font-size: 15px; padding-bottom: var(--sticky-call-h); }

  .container { width: calc(100% - 32px); }
  .nav,
  .top-strip__inner,
  .cta-band__inner,
  .logo-marquee,
  .footer__grid,
  .footer__divider,
  .footer__payments,
  .footer__legal,
  .footer__bottom { width: calc(100% - 32px); }

  /* Top strip: the phone line IS the message */
  .flash-taglines { display: none; }
  .top-strip__inner { justify-content: center; text-align: center; }

  .brand__mark { width: 42px; height: 38px; }
  .brand__tag { display: none; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .trust-pill { padding: 10px 8px; text-align: center; justify-items: center; }
  .trust-pill strong { font-size: 1.15rem; }
  .trust-pill span { font-size: 0.68rem; }

  .quote-panel { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .extra-details { grid-template-columns: 1fr; }

  .skip-cta { padding: 12px 14px; gap: 11px; }
  .skip-cta__bolt { width: 38px; height: 38px; }
  .skip-cta__text strong { font-size: 1.05rem; }

  .category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .category-card__body { padding: 12px 13px 14px; }
  .category-card__body h3 { font-size: 0.98rem; }
  .category-card__body p { font-size: 0.8rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .part-list { grid-template-columns: 1fr; }

  /* Brand marquees: shorter cards + faster scroll on phones */
  .logo-marquees { padding-block: 16px; gap: 12px; }
  .logo-marquee__title { font-size: 0.78rem; letter-spacing: 0.18em; }
  .logo-marquee__track { gap: 12px; animation-duration: 34s; }
  .logo-marquee__track--reverse { animation-duration: 13s; }
  .brand-logo { width: 112px; height: 56px; padding: 9px 14px; }
  .brand-logo img { max-height: 32px; }
  .image-stack { gap: 10px; }
  .image-stack img { min-height: 150px; }
  .image-stack img:nth-child(2) { margin-top: 20px; }

  .logo-marquee { flex-direction: column; align-items: flex-start; gap: 10px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { padding-bottom: 18px; }

  .vehicle-summary__top { flex-direction: column; }

  /* Sticky call becomes a full-width bottom bar — thumb zone */
  .sticky-call { right: 0; bottom: 0; left: 0; }
  .sticky-call .btn {
    width: 100%;
    border-radius: 0;
    padding: 17px 16px calc(17px + env(safe-area-inset-bottom, 0px));
    font-size: 1.02rem;
    justify-content: center;
  }
  .sticky-call .btn::before { display: none; }

  .modal { padding: 14px; align-items: end; }
  .modal__panel { width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

/* Short screens: trim hero padding */
@media (max-height: 700px) and (min-width: 981px) {
  .hero__inner { padding-block: 40px; }
}

/* --------------------------------------------------------------------------
   25. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .flash-taglines span { opacity: 1; transform: none; }
  .flash-taglines span:nth-child(n+2) { display: none; }
  .logo-marquee__track { animation: none; }
}
