/* ==========================================================================
   Birmingham Auto Hub — site styles
   Dark premium theme in the forecourt's own colours: black, signal yellow, blue.
   ========================================================================== */

:root {
  /* colour */
  --bg: #08080a;
  --surface: #111114;
  --surface-2: #18181d;
  --surface-3: #212128;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f6f4;
  --muted: #a9a9b4;
  --subtle: #7c7c88;
  --accent: #ffc81f;
  --accent-hover: #ffd54f;
  --accent-ink: #0b0b0c;
  --blue: #2c55ff;
  --blue-soft: rgba(44, 85, 255, 0.18);
  --success: #3ddc84;
  --danger: #ff6b6b;

  /* type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --fs-2xl: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
  --fs-hero: clamp(2.6rem, 1.2rem + 6vw, 6.25rem);

  /* space (8pt) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --container: 1280px;

  /* shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.6);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 700ms;

  /* layers */
  --z-header: 40;
  --z-sheet: 60;
  --z-menu: 80;

  color-scheme: dark;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- layout ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--after-strip { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.section-head__text { max-width: 760px; }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-md); margin-top: var(--s-4); }
.section-head .eyebrow + p { margin-top: 0; }
.section-head p.section-tagline { white-space: nowrap; color: var(--text); font-size: min(var(--fs-lg), 4.5vw); font-weight: 700; font-stretch: 105%; letter-spacing: -0.01em; line-height: 1.3; }
.section-head h2.eyebrow { font-size: var(--fs-sm); line-height: 1.6; letter-spacing: 0.18em; margin-bottom: var(--s-3); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
/* two slanted bars, as on the logo and forecourt sign */
.eyebrow::before {
  content: "";
  flex: none;
  width: 13px; height: 15px;
  background: linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 8px, var(--blue) 8px 13px);
  transform: skewX(-18deg);
}

.text-accent { color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- icons ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
i[data-icon] { display: inline-flex; font-style: normal; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface-3);
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: 0 var(--s-5);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn .icon { transition: transform var(--t-base) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(4px); }

.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(255, 200, 31, 0.55); }
.btn--primary::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
}
.btn--primary:hover { --btn-bg: var(--accent-hover); }
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost { --btn-bg: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }

.btn--light { --btn-bg: var(--text); --btn-fg: var(--accent-ink); }
.btn--light:hover { --btn-bg: #fff; }

.btn--sm { min-height: 44px; padding: 0 var(--s-4); font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  color: var(--text);
  padding-block: var(--s-2);
  border-bottom: 2px solid var(--accent);
  transition: gap var(--t-base) var(--ease-out), color var(--t-base);
}
.link-arrow:hover { gap: var(--s-3); color: var(--accent); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.logo__mark { display: flex; gap: 4px; height: 34px; }
.logo__mark span { width: 7px; height: 100%; transform: skewX(-18deg); border-radius: 1px; }
.logo__mark span:nth-child(1) { background: var(--accent); }
.logo__mark span:nth-child(2) { background: var(--blue); }
.logo__text { display: flex; flex-direction: column; gap: 3px; font-stretch: 85%; font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; }
.logo__text b:first-child { font-size: 17px; color: var(--text); }
.logo__text b:last-child { font-size: 13px; color: var(--accent); letter-spacing: 0.24em; }
/* glow: slashes softly pulse in yellow and blue, "Auto Hub" has a warm halo */
.logo__mark span:nth-child(1) { box-shadow: 0 0 10px rgba(255, 200, 31, 0.75), 0 0 22px rgba(255, 200, 31, 0.35); animation: glowY 2.8s ease-in-out infinite alternate; }
.logo__mark span:nth-child(2) { box-shadow: 0 0 10px rgba(44, 85, 255, 0.8), 0 0 22px rgba(44, 85, 255, 0.4); animation: glowB 2.8s ease-in-out 1.4s infinite alternate; }
.logo__text b:first-child { text-shadow: 0 0 14px rgba(255, 255, 255, 0.25); }
.logo__text b:last-child { text-shadow: 0 0 10px rgba(255, 200, 31, 0.6), 0 0 22px rgba(255, 200, 31, 0.3); }
@keyframes glowY { from { box-shadow: 0 0 6px rgba(255, 200, 31, 0.5), 0 0 12px rgba(255, 200, 31, 0.2); } to { box-shadow: 0 0 12px rgba(255, 200, 31, 0.95), 0 0 28px rgba(255, 200, 31, 0.45); } }
@keyframes glowB { from { box-shadow: 0 0 6px rgba(44, 85, 255, 0.5), 0 0 12px rgba(44, 85, 255, 0.2); } to { box-shadow: 0 0 12px rgba(44, 85, 255, 1), 0 0 28px rgba(44, 85, 255, 0.5); } }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: transform 400ms var(--ease-out), background-color var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 8, 10, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 76px; }

.topbar { display: none; }

.nav { display: none; }
.nav__list { display: flex; gap: var(--s-1); }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-4);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  color: var(--muted);
  border-radius: var(--r-pill);
  transition: color var(--t-base), background-color var(--t-base);
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.header-phone { display: none; align-items: center; gap: var(--s-2); font-weight: 700; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.header-phone .icon { color: var(--accent); }

.menu-toggle {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
  z-index: calc(var(--z-menu) + 1);
}
.menu-toggle span {
  position: absolute;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast);
}
.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }
.menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: 110px var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
  background: radial-gradient(120% 60% at 100% 0%, rgba(44, 85, 255, 0.22), transparent 60%), var(--bg);
  clip-path: circle(0% at calc(100% - 44px) 38px);
  visibility: hidden;
  transition: clip-path 600ms var(--ease-out), visibility 0s linear 600ms;
  overflow-y: auto;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; transition: clip-path 700ms var(--ease-out), visibility 0s; }
.mobile-menu__list { display: grid; gap: var(--s-2); }
.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--s-3) 0;
  font-size: clamp(2.2rem, 10vw, 3.2rem);
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out), color var(--t-base);
}
.mobile-menu__list a small { font-size: var(--fs-sm); color: var(--subtle); font-weight: 600; font-stretch: 100%; }
.mobile-menu__list a[aria-current="page"] { color: var(--accent); }
.menu-open .mobile-menu__list a { opacity: 1; transform: none; }
.menu-open .mobile-menu__list li:nth-child(1) a { transition-delay: 180ms; }
.menu-open .mobile-menu__list li:nth-child(2) a { transition-delay: 230ms; }
.menu-open .mobile-menu__list li:nth-child(3) a { transition-delay: 280ms; }
.menu-open .mobile-menu__list li:nth-child(4) a { transition-delay: 330ms; }
.mobile-menu__foot { margin-top: auto; padding-top: var(--s-6); display: grid; gap: var(--s-3); opacity: 0; transition: opacity 500ms 380ms; }
.menu-open .mobile-menu__foot { opacity: 1; }
.menu-open { overflow: hidden; }
.menu-open .site-header { z-index: calc(var(--z-menu) + 1); transform: none; background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .header-actions .btn { opacity: 0; pointer-events: none; }
.menu-open .fab { display: none; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header-phone { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 104px 0 var(--s-7);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 60%;
  transform: scale(1.12);
  animation: kenburns 2.4s var(--ease-out) forwards;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.75) 0%, rgba(8, 8, 10, 0.25) 35%, rgba(8, 8, 10, 0.75) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8, 8, 10, 0.85) 0%, rgba(8, 8, 10, 0.2) 70%);
}
@keyframes kenburns { to { transform: scale(1.02); } }

/* phones: centre the hero and darken the photo evenly */
@media (max-width: 719px) {
  .hero__content { text-align: center; margin-inline: auto; }
  .hero__lead { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero .quick-search { text-align: left; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 8, 10, 0.84) 0%, rgba(8, 8, 10, 0.86) 45%, rgba(8, 8, 10, 0.92) 80%, var(--bg) 100%); }
}

.hero__content { max-width: 920px; }
.hero__title { font-size: var(--fs-hero); font-stretch: 118%; line-height: 0.95; letter-spacing: -0.035em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; max-width: 100%; animation: lineUp 1s var(--ease-out) both; }
.hero__title .line:nth-child(2) > span { animation-delay: 110ms; }
.hero__title .line:nth-child(3) > span { animation-delay: 220ms; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }

.hero__lead { max-width: 560px; margin-top: var(--s-5); font-size: var(--fs-md); font-weight: 500; color: #f0f0f3; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.75); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
/* outline button over the photo: solid dark glass so it stays readable */
.hero .btn--ghost { --btn-bg: rgba(8, 8, 10, 0.78); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero .btn--ghost:hover { --btn-bg: rgba(8, 8, 10, 0.9); box-shadow: inset 0 0 0 1.5px var(--accent); }
.hero .btn--ghost .icon { color: var(--accent); }

.fade-up { animation: fadeUp 900ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* quick search */
.quick-search {
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
  padding: var(--s-2);
  border-radius: var(--r-lg);
  background: rgba(17, 17, 20, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-lg);
  max-width: 960px;
}
.quick-search .field { position: relative; }
.quick-search label { position: absolute; left: 18px; top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); pointer-events: none; }
.quick-search select { padding-top: 24px; background-color: transparent; box-shadow: none; border-radius: var(--r-md); min-height: 60px; }
.quick-search select:hover { background-color: rgba(255, 255, 255, 0.04); }
.quick-search .btn { min-height: 60px; border-radius: var(--r-md); }
@media (min-width: 720px) {
  .quick-search { grid-template-columns: repeat(3, 1fr) auto; border-radius: var(--r-pill); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3); }
  .quick-search .field + .field::before { content: ""; position: absolute; left: -4px; top: 14px; bottom: 14px; width: 1px; background: var(--line-strong); }
  .quick-search .btn { border-radius: var(--r-pill); padding: 0 var(--s-6); }
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: var(--s-7);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-cue::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--accent), transparent); animation: cue 2s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 1100px) { .scroll-cue { display: flex; } }

/* scroll-linked hero parallax (progressive: browsers without support simply skip it) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__media { animation: heroParallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes heroParallax { to { transform: translateY(18%); opacity: 0.4; } }
  }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 150px 0 var(--s-7); overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 85% 0%, rgba(44, 85, 255, 0.2), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(255, 200, 31, 0.08), transparent 60%);
}
.page-hero h1 { font-size: var(--fs-2xl); max-width: 900px; }
.page-hero p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-md); max-width: 620px; margin-top: var(--s-4); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-sm); color: var(--subtle); margin-bottom: var(--s-5); }
.breadcrumb a { color: var(--muted); transition: color var(--t-base); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
  padding-block: var(--s-4);
  transform: rotate(-1.2deg);
  margin-block: calc(var(--s-4) * -1);
  z-index: 2;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { display: inline-flex; align-items: center; gap: var(--s-3); padding-inline: var(--s-5); font-weight: 800; font-stretch: 112%; font-size: var(--fs-md); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.marquee__item::after { content: ""; width: 10px; height: 22px; margin-left: var(--s-5); background: var(--accent-ink); transform: skewX(-18deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- brand logo strip ---------- */
.brands { padding-block: var(--s-5); background: var(--surface); border-block: 1px solid var(--line); overflow: hidden; }
.brands__inner { display: flex; align-items: center; gap: var(--s-5); }
.brands__label { flex: none; font-size: var(--fs-xs); font-weight: 700; font-stretch: 100%; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-right: var(--s-5); border-right: 1px solid var(--line-strong); line-height: 1.4; }
.brands__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.brands__group { display: flex; align-items: center; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); padding-right: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.brand-logo { display: grid; place-items: center; height: 56px; min-width: 56px; opacity: 0.6; pointer-events: none; user-select: none; }
.brand-logo img { height: 40px; width: auto; max-width: 96px; object-fit: contain; filter: brightness(0) invert(1); }
/* filled badge logos (e.g. Ford's oval) keep their lettering: grey oval, dark script */
.brand-logo--badge img { filter: grayscale(1) invert(1) brightness(1.15); }
@media (max-width: 640px) {
  .brands__label { display: none; }
  .brand-logo img { height: 32px; }
}

/* ---------- car cards ---------- */
.car-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.car-card {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.car-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 50px -25px rgba(0, 0, 0, 0.8); }
.car-card__link { display: flex; flex-direction: column; height: 100%; }
.car-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out), opacity 500ms; }
.car-card:hover .car-card__media img { transform: scale(1.06); }
.car-card__media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.img-loading { opacity: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(8, 8, 10, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.chip--accent { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.car-card__chips { position: absolute; top: var(--s-3); left: var(--s-3); right: var(--s-3); display: flex; justify-content: space-between; gap: var(--s-2); z-index: 1; }
.car-card__photos { position: absolute; right: var(--s-3); bottom: var(--s-3); z-index: 1; }

.car-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-5); gap: var(--s-2); }
.car-card__meta { font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.car-card__title { font-size: var(--fs-lg); }
.car-card__variant { color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.specs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.specs li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--fs-xs); font-weight: 600; color: #d0d0d8; }
.specs .icon { width: 14px; height: 14px; color: var(--accent); }
.car-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.price { font-size: var(--fs-xl); font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.price small { display: block; margin-top: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--subtle); letter-spacing: 0; font-stretch: 100%; }
.car-card__go {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3);
  transition: background-color var(--t-base), color var(--t-base), transform var(--t-base) var(--ease-spring);
}
.car-card:hover .car-card__go { background: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }

/* phones: two-column grid of compact cards to cut scrolling */
@media (max-width: 640px) {
  .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .car-card { border-radius: var(--r-md); }
  .car-card:hover { transform: none; }
  .car-card__media::after, .car-card__chips .chip:not(.chip--accent), .car-card__photos,
  .car-card__variant, .specs, .car-card .price small, .car-card__go { display: none; }
  .car-card__chips { top: 6px; left: 6px; }
  .car-card__chips .chip { padding: 3px 8px; font-size: 10px; }
  .car-card__body { padding: 10px 10px 12px; gap: 2px; min-width: 0; }
  .car-card__title { order: -1; font-size: 0.95rem; font-stretch: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .car-card__meta { font-size: 11px; }
  .car-card__foot { padding-top: 6px; margin-top: 6px; }
  .car-card .price { font-size: 1.15rem; }
}

.section-cta { display: flex; justify-content: center; margin-top: var(--s-6); }
@media (max-width: 640px) { .section-cta .btn { width: 100%; } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal--left { transform: translateX(-40px); }
.js .reveal--scale { transform: scale(0.94); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* curtain wipe: an overlay slides away (the element itself stays visible to IntersectionObserver) */
.js .clip-reveal::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--surface-2); transform-origin: top; transition: transform 1.1s var(--ease-out); }
.js .clip-reveal img { transform: scale(1.15); transition: transform 1.6s var(--ease-out); }
.js .clip-reveal.is-in::before { transform: scaleY(0); }
.js .clip-reveal.is-in img { transform: none; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { padding: var(--s-6) var(--s-5); background: var(--surface); }
.stat__num { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.75rem); white-space: nowrap; font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num .unit { color: var(--accent); }
.stat__label { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-sm); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- promise cards ---------- */
.promise-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.promise {
  position: relative;
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.promise::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 200, 31, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.promise:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong); }
.promise:hover::before { opacity: 1; }
.promise__icon { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(255, 200, 31, 0.1); color: var(--accent); margin-bottom: var(--s-5); }
.promise__icon .icon { width: 26px; height: 26px; }
.promise h3 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.promise p { color: var(--muted); }

/* ---------- split feature ---------- */
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.05fr 1fr; gap: var(--s-8); } .split--flip > :first-child { order: 2; } }
.split__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: inherit; }
.split__badge {
  position: absolute;
  z-index: 3;
  left: var(--s-4); bottom: var(--s-4);
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: rgba(8, 8, 10, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: var(--fs-sm);
}
.split__badge strong { display: block; font-size: var(--fs-md); }
.split h2 { font-size: var(--fs-2xl); }
.split p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-md); margin-top: var(--s-4); }

.checklist { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; }
.checklist .icon { color: var(--accent); margin-top: 3px; }

/* ---------- browse by ---------- */
.type-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .type-grid { grid-template-columns: repeat(4, 1fr); } }
.type-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.type-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.4; transform: scale(1.05); transition: transform 900ms var(--ease-out), opacity var(--t-base); }
.type-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 8, 10, 0.2), rgba(8, 8, 10, 0.92)); }
.type-tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--accent); }
.type-tile:hover img { transform: scale(1.12); opacity: 0.6; }
.type-tile__count { align-self: flex-start; }
.type-tile h3 { font-size: var(--fs-lg); display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
.type-tile h3 .icon { transition: transform var(--t-base) var(--ease-out); }
.type-tile:hover h3 .icon { transform: translateX(4px); color: var(--accent); }

.make-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.make-pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-sm);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color var(--t-base), color var(--t-base), box-shadow var(--t-base);
}
.make-pill span { color: var(--subtle); font-weight: 600; font-variant-numeric: tabular-nums; }
.make-pill:hover { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.make-pill:hover span { color: rgba(11, 11, 12, 0.6); }

/* ---------- reviews ---------- */
.reviews { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .reviews { grid-template-columns: 1fr 1fr; } }
.review {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.review::before { content: "\201C"; position: absolute; right: var(--s-5); top: -10px; font-size: 8rem; line-height: 1; font-weight: 900; color: rgba(255, 200, 31, 0.12); }
.stars { display: flex; gap: 3px; color: var(--accent); }
.stars .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.review h3 { font-size: var(--fs-lg); }
.review blockquote { margin: 0; color: #d4d4dc; font-size: var(--fs-md); }
.review footer { margin-top: auto; display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: #b8c6ff; font-weight: 800; }
.review footer span { color: var(--subtle); display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 1rem + 5vw, 5rem);
  background: var(--accent);
  color: var(--accent-ink);
  isolation: isolate;
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 90px; transform: skewX(-18deg); z-index: -1; }
.cta-band::before { right: 18%; background: var(--accent-ink); }
.cta-band::after { right: calc(18% - 130px); background: var(--blue); }
.cta-band h2 { font-size: var(--fs-2xl); max-width: 640px; }
.cta-band p { margin-top: var(--s-4); max-width: 520px; font-size: var(--fs-md); color: rgba(11, 11, 12, 0.78); font-weight: 500; }
.cta-band .btn--ghost { --btn-fg: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--accent-ink); }
.cta-band .btn--ghost:hover { --btn-bg: var(--accent-ink); --btn-fg: var(--accent); }
.cta-band .btn--dark { --btn-bg: var(--accent-ink); --btn-fg: var(--accent); }
.cta-band__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
@media (max-width: 760px) { .cta-band::before, .cta-band::after { opacity: 0.15; } }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--s-4); }
.form-row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form-field { display: grid; gap: var(--s-2); }
.form-field label, .form-legend { font-size: var(--fs-sm); font-weight: 600; color: #d4d4dc; }
.form-field .req { color: var(--accent); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-md);
  background-color: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 16px;
  transition: box-shadow var(--t-base), background-color var(--t-base);
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a9a9b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
select option { background: var(--surface-2); color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--subtle); }
input:hover, select:hover, textarea:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); background-color: var(--surface-3); }
.form-field.has-error input, .form-field.has-error textarea { box-shadow: inset 0 0 0 2px var(--danger); }
.field-error { font-size: var(--fs-sm); color: var(--danger); display: none; }
.form-field.has-error .field-error { display: block; }
.form-hint { font-size: var(--fs-xs); color: var(--subtle); }

.check { display: flex; align-items: flex-start; gap: var(--s-3); min-height: 44px; cursor: pointer; font-size: var(--fs-sm); color: #d4d4dc; padding-top: 10px; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-strong); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; transition: background-color var(--t-fast), box-shadow var(--t-fast); margin: 0; }
.check input::after { content: ""; width: 6px; height: 11px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); margin-top: -3px; transition: transform var(--t-fast) var(--ease-spring); }
.check input:checked { background: var(--accent); box-shadow: none; }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.checks { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }

.form-status { display: none; align-items: flex-start; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); font-size: var(--fs-sm); }
.form-status.is-success { display: flex; background: rgba(61, 220, 132, 0.1); color: #a6f0c6; box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.35); }
.form-status.is-error { display: flex; background: rgba(255, 107, 107, 0.1); color: #ffc0c0; box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.35); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- showroom ---------- */
.showroom-layout { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1024px) { .showroom-layout { grid-template-columns: 290px 1fr; } }

.filters {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.filters__head { display: flex; align-items: center; justify-content: space-between; }
.filters__head h2 { font-size: var(--fs-md); font-stretch: 100%; letter-spacing: 0; }
.filters__reset { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); min-height: 44px; padding-inline: var(--s-2); }
.filters__reset:hover { text-decoration: underline; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { display: grid; place-items: center; min-height: 42px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color var(--t-base), color var(--t-base); }
.segmented input:checked + label { background: var(--accent); color: var(--accent-ink); }
.segmented input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (min-width: 1024px) { .filters { position: sticky; top: 100px; } .filters__close, .filters__apply { display: none; } }
@media (max-width: 1023px) {
  .filters {
    position: fixed;
    inset: auto 0 0 0;
    z-index: var(--z-sheet);
    max-height: 88svh;
    overflow-y: auto;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom));
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 450ms var(--ease-out), visibility 0s linear 450ms;
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--line);
  }
  .filters.is-open { transform: none; visibility: visible; transition: transform 500ms var(--ease-out), visibility 0s; }
  .filters::before { content: ""; justify-self: center; width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin-top: -6px; }
}
.scrim { position: fixed; inset: 0; z-index: calc(var(--z-sheet) - 1); background: rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transition: opacity var(--t-base), visibility 0s linear var(--t-base); }
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity var(--t-base), visibility 0s; }
.filters__close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
@media (min-width: 1024px) { .filters__close { display: none; } }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.results-count { font-weight: 600; color: var(--muted); }
.results-count strong { color: var(--text); font-variant-numeric: tabular-nums; }
.results-bar__tools { display: flex; gap: var(--s-2); flex: 1; justify-content: flex-end; min-width: 0; }
.results-bar__tools .search { flex: 1; max-width: 320px; min-width: 0; position: relative; }
.results-bar__tools .search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.results-bar__tools .search input { padding-left: 44px; }
.results-bar__tools select { width: auto; }
.filter-btn { position: relative; }
.filter-btn .badge-count { min-width: 22px; height: 22px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: var(--fs-xs); padding: 0 6px; }
@media (min-width: 1024px) { .filter-btn { display: none; } }
@media (max-width: 640px) {
  .results-bar__tools { flex-wrap: wrap; width: 100%; flex-basis: 100%; }
  .results-bar__tools .search { max-width: none; flex-basis: 100%; }
  .results-bar__tools select, .results-bar__tools .filter-btn { flex: 1; }
}

.active-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.active-filters:empty { display: none; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: var(--fs-sm); font-weight: 600; transition: background-color var(--t-base); }
.active-filters button:hover { background: var(--surface-3); }
.active-filters .icon { width: 14px; height: 14px; }

.empty-state { padding: var(--s-8) var(--s-5); text-align: center; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.empty-state h3 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.empty-state p { color: var(--muted); margin-bottom: var(--s-5); }

.card-in { animation: cardIn 600ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- car detail ---------- */
.car-detail { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .car-detail { grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); gap: var(--s-7); align-items: start; } }

.gallery { min-width: 0; }
.gallery__stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 8, 10, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color var(--t-base), opacity var(--t-base), transform var(--t-fast); }
.gallery__nav:hover { background: var(--accent); color: var(--accent-ink); }
.gallery__nav:active { transform: scale(0.94); }
.gallery__nav[disabled] { opacity: 0; pointer-events: none; }
.gallery__nav--prev { left: var(--s-3); }
.gallery__nav--next { right: var(--s-3); }
.gallery__count { position: absolute; right: var(--s-3); bottom: var(--s-3); font-variant-numeric: tabular-nums; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-2); margin-top: var(--s-3); }
.gallery__thumbs button { aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; opacity: 0.5; box-shadow: inset 0 0 0 2px transparent; transition: opacity var(--t-base), box-shadow var(--t-base); position: relative; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow var(--t-base); }
.gallery__thumbs button:hover { opacity: 0.85; }
.gallery__thumbs button[aria-current="true"] { opacity: 1; }
.gallery__thumbs button[aria-current="true"]::after { box-shadow: inset 0 0 0 2px var(--accent); }

.buy-box { display: grid; gap: var(--s-5); padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 1024px) { .buy-box { position: sticky; top: 100px; } }
.buy-box h1 { font-size: var(--fs-xl); }
.buy-box__variant { color: var(--muted); margin-top: var(--s-2); }
.buy-box .price { font-size: var(--fs-2xl); }
.buy-box__ctas { display: grid; gap: var(--s-2); }
@media (min-width: 480px) { .buy-box__ctas { grid-template-columns: 1fr 1fr; } .buy-box__ctas .btn--primary { grid-column: 1 / -1; } }
.deposit-note { display: flex; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); background: rgba(44, 85, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(44, 85, 255, 0.35); font-size: var(--fs-sm); color: #c9d3ff; }
.deposit-note .icon { color: #8ea4ff; margin-top: 2px; }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 640px) { .spec-grid { grid-template-columns: repeat(4, 1fr); } }
.spec-grid div { background: var(--surface); padding: var(--s-4); display: grid; gap: 4px; }
.spec-grid dt { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--subtle); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.spec-grid dt .icon { width: 14px; height: 14px; color: var(--accent); }
.spec-grid dd { margin: 0; font-weight: 700; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.buy-box .spec-grid { grid-template-columns: repeat(2, 1fr); }

.detail-section { margin-top: var(--s-7); }
.detail-section h2 { font-size: var(--fs-xl); margin-bottom: var(--s-5); }

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-header);
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: var(--s-2);
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: rgba(8, 8, 10, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 400ms var(--ease-out);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { min-height: 48px; padding: 0 var(--s-3); font-size: var(--fs-sm); }
@media (min-width: 1024px) { .sticky-cta { display: none; } }
.has-sticky-cta .site-footer { padding-bottom: 90px; }
@media (min-width: 1024px) { .has-sticky-cta .site-footer { padding-bottom: 0; } }

/* skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: var(--s-6); } }
.info-card { padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.info-card h2 { font-size: var(--fs-lg); margin-bottom: var(--s-5); }
.info-list { display: grid; gap: var(--s-2); }
.info-list a, .info-list > li > div { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3); margin-inline: calc(var(--s-3) * -1); border-radius: var(--r-md); transition: background-color var(--t-base); }
.info-list a:hover { background: var(--surface-2); }
.info-list .info-icon { width: 46px; height: 46px; flex: none; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(255, 200, 31, 0.1); color: var(--accent); }
.info-list small { display: block; color: var(--subtle); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.info-list strong { font-weight: 700; font-variant-numeric: tabular-nums; word-break: break-word; }

.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent); font-weight: 700; }
.open-status { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-2); margin-bottom: var(--s-4); }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--subtle); }
.open-status.is-open::before { background: var(--success); box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: pulse 2s infinite; }
.open-status.is-open { color: #a6f0c6; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

.map { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; min-height: 320px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.6) invert(0.92) hue-rotate(180deg) contrast(0.9); }
.map__load { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: var(--s-4); text-align: center; padding: var(--s-5); background: radial-gradient(60% 60% at 50% 50%, rgba(44, 85, 255, 0.15), transparent), var(--surface-2); }
.map__load p { color: var(--muted); max-width: 360px; font-size: var(--fs-sm); }

/* ---------- about ---------- */
.timeline { display: grid; gap: var(--s-4); counter-reset: step; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); counter-increment: step; }
.timeline li::before { content: "0" counter(step); display: block; font-size: var(--fs-xl); font-weight: 800; font-stretch: 118%; color: var(--accent); margin-bottom: var(--s-4); line-height: 1; }
.timeline h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.timeline p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; gap: var(--s-6); padding-block: var(--s-8) var(--s-6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-grid h3 { font-size: var(--fs-xs); font-stretch: 100%; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); margin-bottom: var(--s-4); }
.footer-grid ul { display: grid; gap: var(--s-1); }
.footer-grid a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px; color: #cfcfd6; transition: color var(--t-base); }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); margin-top: var(--s-4); max-width: 320px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--subtle); }
.footer-word { font-size: clamp(3rem, 15vw, 13rem); font-weight: 900; font-stretch: 125%; letter-spacing: -0.05em; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08); text-align: center; white-space: nowrap; overflow: hidden; padding-top: var(--s-5); user-select: none; }

/* floating whatsapp */
.fab {
  position: fixed;
  right: var(--s-4);
  bottom: calc(var(--s-4) + env(safe-area-inset-bottom));
  z-index: calc(var(--z-header) - 1);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366;
  color: #062b14;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform var(--t-base) var(--ease-spring);
}
.fab:hover { transform: scale(1.08); }
.fab .icon { width: 28px; height: 28px; }
.has-sticky-cta .fab { display: none; }
@media (min-width: 1024px) { .has-sticky-cta .fab { display: grid; } }

/* ---------- view transitions (cross-page, progressive) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 220ms var(--ease-in) both; }
::view-transition-new(root) { animation: vtIn 420ms var(--ease-out) both; }
::view-transition-group(*) { animation-duration: 480ms; animation-timing-function: var(--ease-out); }
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }
.site-header { view-transition-name: site-header; }

/* ---------- low-power / reduced motion ---------- */
.lite .hero__media img { animation: none; transform: none; }
.lite .promise::before { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .brands__track { animation: none; width: auto; }
  .brands__group { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .brands__group[aria-hidden="true"] { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .clip-reveal::before { display: none; }
  .js .clip-reveal img { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- preview mode (client first look) ----------
   Turned on by PREVIEW_MODE in each page's <head>. Remove nothing here; just switch the flag off. */
.preview-mode main > .section--after-strip ~ *,
.preview-mode .site-footer,
.preview-mode .fab,
.preview-mode .sticky-cta { display: none !important; }
.preview-mode a, .preview-mode button, .preview-mode select, .preview-mode input, .preview-mode textarea, .preview-mode label { pointer-events: none !important; cursor: default !important; }
