/* ==========================================================================
   Rocket Auto — "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  (colors + fonts come from site.config.js via the generated block below)
   -------------------------------------------------------------------------- */
/* ---- Generated from site.config.js by scripts/build.mjs — edit the config, not this block ---- */
:root {
  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Shape (theme.shape) + hero photo (brand.assets.heroImage) */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-btn: 8px;
  --hero-photo: url("../../assets/img/photo-1625047509168-a7026f36de04.jpg");
  --brand-monogram: "RA";

  /* Primary (dark brand color) */
  --primary-950: #0c1015;
  --primary-900: #1b2733;
  --primary-800: #243444;
  --primary-700: #32485e;
  --primary-200: #d5dbe1;
  --primary-100: #edf0f3;

  /* Accent (action color) */
  --accent-600: #0e7e53;
  --accent-500: #12a36b;
  --accent-400: #17cc86;
  --accent-deep-1: #0f8759;
  --accent-deep-2: #0e7e53;
  --accent-deep-3: #0b6241;
  --accent-glow: rgba(18, 163, 107, 0.38);

  /* RGB triplets for rgba() tints */
  --primary-rgb: 27, 39, 51;
  --primary-950-rgb: 12, 16, 21;
  --primary-700-rgb: 50, 72, 94;
  --accent-rgb: 18, 163, 107;

  /* Neutrals */
  --ink: #191f24;
  --body: #4c545c;
  --muted: #697078;
  --line: #e6e8eb;
  --surface: #f6f7f8;
  --white: #ffffff;
  --placeholder: #a4a8ac;

  /* Status */
  --success-700: #157347;
  --success-500: #1fab61;
  --success-100: #e7f6ee;
}

:root {
  /* Shape & elevation (shadows follow the primary color automatically) */
  --shadow-sm: 0 1px 3px rgba(var(--primary-rgb), 0.08), 0 4px 14px rgba(var(--primary-rgb), 0.06);
  --shadow-md: 0 6px 24px rgba(var(--primary-rgb), 0.12);
  --shadow-lg: 0 18px 48px rgba(var(--primary-rgb), 0.18);
  --shadow-cta: 0 8px 24px var(--accent-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(--accent-600); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent-500); }

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

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

:focus-visible {
  outline: 3px solid var(--accent-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(--primary-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(var(--accent-rgb), 0.16), transparent 60%),
    linear-gradient(150deg, var(--primary-950), var(--primary-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; }

@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__first { color: var(--white); }
.site-loader__second { color: var(--accent-500); margin-left: 8px; }

/* --------------------------------------------------------------------------
   4. Top strip
   -------------------------------------------------------------------------- */
.top-strip {
  background: linear-gradient(90deg, var(--primary-950), var(--primary-900) 55%, var(--primary-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(--accent-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(var(--primary-rgb), 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(--primary-900);
}
.brand__name::first-letter { color: var(--accent-500); }

/* Text-only brand: accent bar stands in for the logo.
    */
.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(--accent-400), var(--accent-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: var(--radius-btn);
  transition: background 0.18s ease, color 0.18s ease;
}
.nav__links > a:hover { background: var(--surface); color: var(--primary-900); }

.nav__links > a.active,
.nav__links > a[aria-current="page"] {
  color: var(--accent-600);
  background: rgba(var(--accent-rgb), 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(--accent-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(--primary-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: var(--radius-btn);
  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 accent range keeps white text AA-readable */
.btn--primary {
  background: linear-gradient(135deg, var(--accent-deep-1), var(--accent-deep-2) 55%, var(--accent-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(--accent-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(--primary-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--dark:hover {
  background: var(--primary-800);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn--ghost {
  background: transparent;
  color: var(--primary-900);
  border: 1.5px solid var(--primary-900);
}
.btn--ghost:hover { background: var(--primary-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(var(--accent-rgb), 0.22), transparent 55%),
    radial-gradient(700px 500px at -10% 100%, rgba(var(--primary-700-rgb), 0.55), transparent 60%),
    linear-gradient(155deg, var(--primary-950) 0%, var(--primary-900) 55%, var(--primary-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(--accent-600); /* deep shade: small text on light backgrounds needs the contrast */
  margin-bottom: 12px;
}

.hero .eyebrow {
  color: var(--accent-400);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 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(--accent-400);
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--accent-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(--accent-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(--accent-500);
}

.skip-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--primary-900), var(--primary-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(--accent-500);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: bolt-pulse 2.4s ease-out infinite;
}
@keyframes bolt-pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 14px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 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(--accent-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: var(--success-700);
  background: var(--success-100);
  padding: 6px 12px;
  border-radius: 999px;
}
.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-500);
  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(--accent-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: var(--placeholder); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 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(--primary-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(--primary-100);
  border: 1px solid var(--primary-200);
  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: var(--success-700);
  border-color: var(--success-700);
  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(--accent-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(var(--accent-rgb), 0.14), transparent 55%),
    linear-gradient(160deg, var(--primary-950), var(--primary-900) 70%);
  color: rgba(255, 255, 255, 0.82);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--accent-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(--accent-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(var(--accent-rgb), 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(--accent-400), var(--accent-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(var(--accent-rgb), 0.14);
  color: var(--accent-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(--accent-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(--accent-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(--primary-900);
  background: var(--primary-100);
  padding: 7px 14px;
  border-radius: 999px;
}

/* Brand ribbon (legacy) */
.brand-ribbon { overflow: hidden; background: var(--primary-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(var(--accent-rgb), 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(--primary-100);
  color: var(--primary-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(--accent-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(--accent-deep-3), var(--accent-deep-2) 60%, var(--accent-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(--primary-900);
  box-shadow: 0 10px 30px rgba(var(--primary-950-rgb), 0.25);
  padding: 18px 34px;
  font-size: 1.08rem;
}
.cta-band .btn--primary:hover { color: var(--accent-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(var(--primary-950-rgb), 0.92) 25%, rgba(var(--primary-rgb), 0.72) 60%, rgba(var(--primary-rgb), 0.45)),
    var(--hero-image, linear-gradient(155deg, var(--primary-950), var(--primary-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(--accent-500), var(--accent-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(--accent-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(--primary-900); }
.method a:hover { color: var(--accent-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: var(--radius-btn);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-btn:hover { border-color: var(--accent-500); color: var(--accent-600); }
.filter-btn.active {
  background: var(--primary-900);
  border-color: var(--primary-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: var(--success-700);
  background: var(--success-100);
  border-radius: 999px;
  padding: 8px 16px;
}
.vehicle-summary__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-500);
}

.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: var(--radius-btn);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.parts-tab:hover { border-color: var(--accent-500); color: var(--accent-600); }
.parts-tab.active {
  background: linear-gradient(135deg, var(--accent-400), var(--accent-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(--accent-500); }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.footer {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(var(--accent-rgb), 0.1), transparent 55%),
    linear-gradient(165deg, var(--primary-950), var(--primary-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(--accent-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(--accent-400); }
.footer__contact > a { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }
.footer__contact > a:hover { color: var(--accent-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(--accent-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(--accent-glow), 0 4px 12px rgba(var(--primary-950-rgb), 0.25);
}

.sticky-call .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--accent-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(var(--primary-950-rgb), 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(--accent-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(--primary-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); }
/* No JavaScript = nothing would ever reveal, so show everything */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}
.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(--primary-950), var(--primary-900));
    box-shadow: -20px 0 60px rgba(var(--primary-950-rgb), 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(var(--accent-rgb), 0.18);
    color: var(--accent-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(--accent-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__name { font-size: 1.15rem; }
  .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; }
}

/* --------------------------------------------------------------------------
   26. Design layer — the "Workshop" look
   Overrides the sections above so the site has its own character instead of
   the original dark-hero / italic-uppercase / glowing-pill look:
     · light photo hero, dark header, accent top bar
     · sentence-case headings, no italics
     · flat solid buttons (corners follow theme.shape)
     · photo-overlay category cards, full-color brand strip
   Colors, fonts and corner style all come from site.config.js.
   -------------------------------------------------------------------------- */

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); letter-spacing: -0.01em; }
.hero h1 { font-style: italic; }   /* home hero: capitals + italic, like the original */
.page-hero h1 { font-style: normal; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-500);
}
.hero .eyebrow { color: var(--accent-600); background: none; border: 0; padding: 0; border-radius: 0; }
.page-hero .eyebrow { color: var(--accent-400); }
.cta-band .eyebrow::before { background: var(--white); }

/* Brand mark: upright, heavy, uppercase */
.brand__name {
  font-style: normal;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.04em;
}
.brand__name::first-letter { color: var(--accent-400); }

/* Buttons keep the original effects (glowing gradient, shine sweep, ringing phone
   icon, pulsing call button) — only the weight/padding is adjusted here. */
.btn { font-weight: 700; letter-spacing: 0; padding: 14px 24px; }

/* Top bar + dark header */
.top-strip { background: var(--accent-deep-2); color: var(--white); border-bottom: 0; }
.top-strip a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.top-strip a:hover { color: var(--white); opacity: 0.85; }

.site-header { background: var(--primary-900); }
.site-header.is-scrolled { border-color: transparent; box-shadow: 0 6px 22px rgba(var(--primary-950-rgb), 0.4); }
.brand, .brand:hover, .brand__name { color: var(--white); }
.brand__tag { color: rgba(255, 255, 255, 0.62); }
.nav__links > a,
.nav-dropdown__trigger { color: rgba(255, 255, 255, 0.86); }
.nav__links > a:hover,
.nav-dropdown__trigger:hover { background: rgba(255, 255, 255, 0.09); color: var(--white); }
.menu-toggle { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); }

@media (min-width: 981px) {
  .nav__links > a.active,
  .nav__links > a[aria-current="page"] {
    background: transparent;
    color: var(--white);
    border-radius: 0;
    box-shadow: inset 0 -3px 0 var(--accent-500);
  }
}

/* Hero: light, with the photo showing through on the right */
.hero {
  color: var(--body);
  background:
    linear-gradient(98deg, #fff 0%, rgba(255, 255, 255, 0.97) 34%, rgba(255, 255, 255, 0.62) 58%, rgba(255, 255, 255, 0.12) 100%),
    var(--hero-photo) center / cover no-repeat,
    var(--surface);
}
/* Speed lines drift with scroll (--parallax is set in main.js) */
.hero::before {
  background: repeating-linear-gradient(115deg, transparent 0 90px, rgba(var(--primary-rgb), 0.05) 90px 92px);
}
.hero h1 { color: var(--ink); }
.hero .lead { color: var(--body); }
.hero-flash {
  color: var(--accent-600);
  background: var(--white);
  font-style: italic;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.trust-pill {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.trust-pill strong { color: var(--accent-600); }
.trust-pill span { color: var(--muted); }
.hero .btn--light {
  background: transparent;
  border: 2px solid var(--primary-900);
  color: var(--primary-900);
  box-shadow: none;
}
.hero .btn--light:hover { background: var(--primary-900); border-color: var(--primary-900); color: var(--white); }
.quote-panel { border-top-width: 4px; outline: 1px solid rgba(var(--primary-rgb), 0.07); }

@media (max-width: 980px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9)),
      var(--hero-photo) center / cover no-repeat,
      var(--surface);
  }
}

/* Category cards: photo with the title laid over it */
.category-card {
  position: relative;
  justify-content: flex-end;
  min-height: 340px;
  border: 0;
  background: var(--primary-900);
  box-shadow: var(--shadow-md);
}
.category-card img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--primary-950-rgb), 0) 0%, rgba(var(--primary-950-rgb), 0.45) 32%, rgba(var(--primary-950-rgb), 0.92) 62%, rgba(var(--primary-950-rgb), 0.97) 100%);
}
.category-card__body { position: relative; z-index: 2; flex: none; padding: 20px 20px 22px; }
.category-card__body h3 { color: var(--white); }
.category-card__body p { color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.category-card__body h3 { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.category-card .mini-link { color: var(--accent-400); }
@media (max-width: 680px) {
  .category-card { min-height: 270px; }
  .category-card__body { padding: 12px 13px 14px; }
  .category-card__body p { font-size: 0.78rem; }
}

@media (max-width: 680px) {
  .brand__name { font-size: 1.02rem; letter-spacing: 0.03em; }
  .brand__text { padding-left: 11px; }
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.12em; gap: 8px; }
  .eyebrow::before { width: 18px; }
}

/* Brand strips: logos always shown in full color, lift on hover */
.logo-marquees { background: var(--white); border-block: 1px solid var(--line); }
.brand-logo { background: transparent; border: 0; box-shadow: none; }
.brand-logo:hover { transform: translateY(-3px); box-shadow: none; }

/* Steps: connected timeline — numbered badges on a dashed line, icon tiles, CTA strip */
.section--steps {
  background-color: var(--white);
  background-image: radial-gradient(rgba(var(--primary-rgb), 0.07) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}
.steps { position: relative; padding-top: 44px; gap: 22px; }
.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc((100% - 66px) / 8);
  right: calc((100% - 66px) / 8);
  border-top: 2px dashed rgba(var(--accent-rgb), 0.5);
}
.step {
  position: relative;
  text-align: center;
  background: var(--white);
  padding: 50px 22px 26px;
  box-shadow: var(--shadow-sm);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(var(--accent-rgb), 0.45); }
.step__num {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-deep-1), var(--accent-deep-3));
  color: var(--white);
  -webkit-text-stroke: 0;
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--white), var(--shadow-cta);
}
.step__icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-600);
  font-size: 1.55rem;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.step:hover .step__icon { background: var(--accent-deep-2); color: var(--white); transform: rotate(-6deg) scale(1.06); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

.steps-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--primary-950), var(--primary-800));
  color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
}
.steps-cta__text { display: flex; align-items: center; gap: 16px; }
.steps-cta__bolt {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-deep-2);
  color: var(--white);
  animation: bolt-pulse 2.4s ease-out infinite;
}
.steps-cta strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; }
.steps-cta small { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

@media (max-width: 980px) {
  .steps::before { display: none; }
  .steps { padding-top: 24px; row-gap: 38px; }
  .step { text-align: left; padding: 40px 22px 24px; }
  .step__num { left: 22px; top: -22px; transform: none; width: 46px; height: 46px; font-size: 1rem; box-shadow: 0 0 0 5px var(--white), var(--shadow-cta); }
}
@media (max-width: 680px) {
  .steps-cta { flex-direction: column; align-items: flex-start; }
  .steps-cta .btn { width: 100%; }
  .steps { row-gap: 32px; }
  .step { padding: 34px 18px 20px; }
  .step__icon { width: 44px; height: 44px; font-size: 1.25rem; margin-bottom: 10px; }
}

/* Feature icons + footer accent */
.feature [data-icon] { border-radius: var(--radius-sm); }
.footer { border-top: 4px solid var(--accent-500); }
.footer h3 { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.14em; }

/* Brand name in capitals wherever it stands alone as a title or label
   (header/footer logo and loader are already uppercase). Running text stays normal case. */
.hero h1 { text-transform: uppercase; letter-spacing: 0.01em; }
.footer__brand p::first-line { text-transform: uppercase; font-weight: 700; letter-spacing: 0.08em; color: var(--white); }

/* Logo lockup: faceted monogram badge + two-tone italic wordmark.
   Badge letters come from brand.monogram, the two words from brand.wordmark. */
.brand { gap: 12px; }
.brand::before {
  content: var(--brand-monogram);
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26) 0 36%, transparent 36%),
    linear-gradient(135deg, var(--accent-deep-1), var(--accent-deep-3));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), var(--shadow-cta);
  transition: transform 0.25s ease;
}
.brand:hover::before { transform: rotate(-6deg) scale(1.06); }
.brand__text { padding-left: 0; }
.brand__text::before { display: none; }
.brand__name { font-style: italic; font-size: 1.3rem; letter-spacing: 0.03em; }
.brand__name::first-letter { color: var(--white); }
.brand__first { color: var(--white); }
.brand__second { color: var(--accent-400); }
.brand__tag { color: var(--accent-400); letter-spacing: 0.2em; }
@media (max-width: 680px) {
  .brand { gap: 10px; }
  .brand::before { width: 40px; height: 40px; font-size: 1rem; }
  .brand__name { font-size: 1.02rem; }
}

/* Loader: the logo lockup, larger — spinning ring around the badge, wordmark, tagline */
.site-loader__inner { gap: 20px; }
.site-loader__mark { position: relative; width: 128px; height: 128px; display: grid; place-items: center; }
.site-loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent-500);
  border-right-color: var(--accent-400);
  animation: loader-spin 0.85s linear infinite;
}
.site-loader__badge {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26) 0 36%, transparent 36%),
    linear-gradient(135deg, var(--accent-deep-1), var(--accent-deep-3));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), var(--shadow-cta);
  animation: loader-pulse 1.4s ease-in-out infinite;
}
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.site-loader__brand { font-weight: 800; font-style: italic; font-size: 2rem; letter-spacing: 0.04em; }
.site-loader__second { color: var(--accent-400); }
.site-loader__tag { margin-top: -8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent-400); }
@media (max-width: 680px) {
  .site-loader__brand { font-size: 1.6rem; }
}

/* Tighter vertical rhythm: less air between sections, so the page reads as designed, not templated */
.section { padding-block: clamp(36px, 4.5vw, 60px); }
.section-head { margin-bottom: clamp(18px, 2.6vw, 28px); }
.hero__inner { padding-block: clamp(32px, 4.5vw, 60px); }
.page-hero__inner { padding-block: clamp(34px, 4.5vw, 56px); }
.cta-band { padding-block: clamp(30px, 4vw, 44px); }
.logo-marquees { padding-block: 16px; gap: 12px; }
.footer { padding-top: clamp(34px, 4vw, 48px); }
.steps-cta { margin-top: 28px; }
.check-list { margin-block: 18px 22px; }
@media (max-width: 980px) {
  .hero__inner { padding-block: 32px 40px; }
}
@media (max-width: 680px) {
  .section { padding-block: 32px; }
  .section-head { margin-bottom: 18px; }
  .hero__inner { padding-block: 28px 34px; }
  .logo-marquees { padding-block: 14px; }
}

/* SEO / structure helpers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* Section titles inside cards are real <h2>s now; keep the card-title look */
.content-card > h2:first-child { font-size: clamp(1.05rem, 1.8vw, 1.25rem); letter-spacing: -0.01em; margin: 0 0 18px; }
.qa { margin: 0; }
.qa dt { margin-top: 16px; font-weight: 700; color: var(--ink); }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: 4px 0 0; }
