/* ==========================================================================
   THE MOTOR FIRM - design system (v5)
   Near-black ground, one hairline, two quiet surfaces, gold reserved for the
   price, the primary button and the eyebrow. Exo 2 Italic for h1/h2 only.
   ========================================================================== */

/* ------------------------------ tokens ---------------------------------- */
:root {
  --bg: #0a0a0b;
  --surface: rgba(38, 38, 40, 0.5);
  --surface-2: #0f0f10;
  --surface-3: #151517;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --ink: #ffffff;
  --body: rgba(255, 255, 255, 0.8);
  --muted: rgba(255, 255, 255, 0.58);
  --faint: rgba(255, 255, 255, 0.38);
  --gold: #c9a961;
  --gold-bright: #dcbb70;
  --gold-ink: #141210;
  --wa: #25d366;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --plate: #f7c93f;
  --r-xs: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;
  --t-xs: 0.75rem;
  --t-sm: 0.8125rem;
  --t-base: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.5rem;
  --t-2xl: clamp(1.6rem, 2.8vw, 2.25rem);
  --t-3xl: clamp(2.25rem, 4.6vw, 3.6rem);
  --space-section: clamp(56px, 8vw, 112px);
  --space-tight: clamp(40px, 5vw, 64px);
  --gutter: clamp(20px, 4vw, 60px);
  --container: 1280px;
  --header-h: 72px;
  --font-display: 'Exo 2', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow-soft: 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  /* aliases still used by admin.css */
  --card: #131316;
  --line-gold: rgba(201, 169, 97, 0.28);
  --shadow-card: 0 18px 45px -18px rgba(0, 0, 0, 0.65);
  --radius: 14px;
  --grad-gold: linear-gradient(135deg, #ecd694 0%, #c9a961 45%, #a9853f 100%);
  --gold-deep: #a9853f;
  --bg-2: #0f0f10;
}

/* ------------------------------ fonts (self-hosted) --------------------- */
@font-face { font-family: 'Inter'; src: url('/fonts/inter-400.woff2') format('woff2'), url('/fonts/inter-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-500.woff2') format('woff2'), url('/fonts/inter-500.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-600.woff2') format('woff2'), url('/fonts/inter-600.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Exo 2'; src: url('/fonts/exo2-italic-800.woff2') format('woff2'), url('/fonts/exo2-italic-800.woff') format('woff'); font-weight: 800; font-style: italic; font-display: swap; }

/* ------------------------------ reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, iframe { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; max-width: 68ch; }
ul { margin: 0; padding: 0; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; }

h1, h2 {
  font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 1.1; color: var(--ink); margin: 0 0 12px;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3, h4 { font-family: var(--font-body); font-style: normal; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
h3 { font-size: var(--t-md); line-height: 1.3; margin: 0 0 8px; }
h4 { font-size: var(--t-sm); line-height: 1.4; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 14px; }
.gold { color: inherit; background: none; }
.lead { font-size: var(--t-md); color: var(--muted); line-height: 1.7; max-width: 56ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.label { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
small, .hint, .form-msg { font-size: var(--t-sm); }
.hint { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 1000; background: #fff; color: #000; padding: 10px 14px; border-radius: var(--r-xs); font-weight: 600; font-size: var(--t-sm); }
.skip-link:focus { left: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container); }
.container--narrow > * { max-width: 68ch; }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: var(--space-tight); }
.section--alt, .section--band { background: var(--surface-2); border-block: 1px solid var(--line); }
.section--alt::before, .section--band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 12% 0%, rgba(201, 169, 97, 0.06), transparent 60%);
}
.section--alt > *, .section--band > * { position: relative; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
  border-image: linear-gradient(90deg, rgba(201, 169, 97, 0.55), var(--line) 22%, var(--line)) 1;
}
.section-head h2 { margin: 0; }
.section-head .lead { margin: 8px 0 0; max-width: 52ch; font-size: var(--t-base); }
.section-head > div:first-child { min-width: 0; }
.divider, .cta-band { display: none; }
.empty { color: var(--muted); font-size: var(--t-base); }
.notice { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: var(--t-base); color: var(--body); }
.notice--ok { border-color: rgba(74, 222, 128, 0.35); }
.notice--bad { border-color: rgba(248, 113, 113, 0.4); }
.breadcrumbs { font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: '/'; margin-right: 10px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--body); }
.page-hero { padding-block: clamp(48px, 6vw, 88px) clamp(24px, 3vw, 40px); }
.page-hero h1 { margin: 0; }
.page-hero .lead { margin-top: 12px; }
.legal-prose h2 { font-size: var(--t-lg); margin-top: 36px; }
.legal-prose p, .legal-prose li { color: var(--body); }

/* ------------------------------ buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-xs); border: 1px solid transparent;
  font-family: var(--font-body); font-size: var(--t-sm); font-weight: 600; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ic { width: 16px; height: 16px; flex-shrink: 0; }
.btn .ic { width: 16px; height: 16px; flex-shrink: 0; }
.btn--gold { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); box-shadow: 0 10px 28px -14px rgba(201, 169, 97, 0.7); }
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 14px 34px -12px rgba(201, 169, 97, 0.85); }
.btn--ghost, .btn--dark { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover, .btn--dark:hover { background: #fff; color: #000; border-color: #fff; }
.btn--glass { background: rgba(255, 255, 255, 0.1); color: var(--ink); border-color: rgba(255, 255, 255, 0.14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.btn--glass:hover { background: #fff; color: #000; }
.btn--sm { min-height: 40px; padding: 9px 18px; font-size: var(--t-xs); }
.btn--lg { min-height: 56px; padding: 15px 30px; font-size: var(--t-base); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ------------------------------ header ---------------------------------- */
.topbar { display: none; }
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(10, 10, 11, 0.55); border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled { background: rgba(10, 10, 11, 0.85); border-bottom-color: var(--line); }
.site-header__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__shield-img { height: 52px; width: auto; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55)); }
.brand__word-img { display: block; height: 16px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { font-size: var(--t-base); font-weight: 500; color: var(--body); padding-block: 6px; position: relative; white-space: nowrap; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--ink); transition: width 0.3s var(--ease); }
.nav a:hover, .nav a.is-active, .nav a[aria-current] { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after, .nav a[aria-current]::after { width: 100%; }
.nav__at { display: none; }
.site-header__cta { display: flex; align-items: center; gap: 10px; }
.wa-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wa); color: #fff; transition: transform 0.25s var(--ease), filter 0.25s; }
.wa-btn .ic { width: 20px; height: 20px; }
.wa-btn:hover { filter: brightness(1.08); transform: scale(1.04); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--r-xs); padding: 10px 11px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: 0.25s; }

/* AutoTrader / Google badges */
.at-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--ink);
  font-size: var(--t-xs); font-weight: 600; line-height: 1; white-space: nowrap; transition: border-color 0.25s, background 0.25s;
}
.at-badge:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.08); }
.at-badge__logo { display: inline-flex; align-items: center; gap: 7px; }
.at-badge__mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: #e4002b; color: #fff; font-size: 0.62rem; font-weight: 800; }
.at-badge__mark--g { background: #fff; color: #4285f4; font-family: Arial, sans-serif; font-size: 0.85rem; }
.at-badge__rating { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); }
.at-badge__rating .ic { width: 13px; height: 13px; }
.at-badge__rating small { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.rating-badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.footer__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ------------------------------ intro ----------------------------------- */
/* The opening moment: the mark alone on black, then the curtain lifts. It is a
   pure CSS animation ending in visibility:hidden, so if the JavaScript never runs
   the site still appears; JS only sets .intro-seen so it plays once per visit. */
.intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: #0a0a0b; animation: intro-out 1.25s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.intro__mark { display: grid; justify-items: center; gap: 16px; animation: intro-out-mark 0.2s 0.7s cubic-bezier(0.4, 0, 0.6, 1) forwards; }
.intro__shield { height: 74px; width: auto; animation: intro-in 0.34s 0.04s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
/* the wordmark follows a beat later, so the mark reads as placed rather than dropped */
.intro__word { height: 58px; width: auto; animation: intro-in 0.34s 0.18s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes intro-in { from { opacity: 0; transform: translateY(6px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes intro-out-mark { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px); } }
@keyframes intro-out {
  0%, 72% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
html.intro-seen .intro { display: none; }
@media (max-width: 640px) {
  .intro__shield { height: 62px; }
  .intro__word { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { animation-duration: 0.3s; }
  .intro__mark, .intro__shield, .intro__word { animation: none; }
}

/* ------------------------------ hero ------------------------------------ */
.hero {
  position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end;
  padding-block: 120px 108px; overflow: hidden; isolation: isolate; background: #0a0a0b;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide--first { background-image: url('/img/hero-1.jpg'); }
@media (max-width: 800px) { .hero__slide--first { background-image: url('/img/hero-1-m.jpg'); } }
@supports (background-image: image-set(url('/img/hero-1.webp') type('image/webp'))) {
  .hero__slide--first { background-image: image-set(url('/img/hero-1.webp') type('image/webp'), url('/img/hero-1.jpg') type('image/jpeg')); }
  @media (max-width: 800px) { .hero__slide--first { background-image: image-set(url('/img/hero-1-m.webp') type('image/webp'), url('/img/hero-1-m.jpg') type('image/jpeg')); } }
}
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 11, 0.2) 0%, rgba(10, 10, 11, 0.5) 55%, rgba(10, 10, 11, 0.96) 100%); }
.hero__in { max-width: 780px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--font-body); font-style: normal; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); line-height: 1.4; }
.hero__title { display: flex; flex-direction: column; gap: 4px; margin: 0 0 18px; max-width: 100%; font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; font-size: var(--t-3xl); color: var(--ink); }
.hero__rot { position: relative; display: block; color: var(--gold); min-height: 1.1em; }
.hero__word { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(0.4em); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); white-space: nowrap; }
.hero__word.is-active { position: relative; opacity: 1; transform: none; }
.hero__word.is-out { opacity: 0; transform: translateY(-0.4em); }
.hero .lead { color: var(--body); font-size: var(--t-md); max-width: 48ch; margin-bottom: 28px; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.hero__point { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--muted); }
.hero__point .ic { width: 15px; height: 15px; color: var(--muted); }

.searchbar { position: relative; z-index: 3; margin-top: -48px; padding-bottom: 8px; }
.searchbar__card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px;
  display: grid; grid-template-columns: 1.1fr 1.4fr 1fr auto; gap: 14px; align-items: end; box-shadow: var(--shadow-soft);
}
.searchbar__card label { display: block; margin-bottom: 7px; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.searchbar__submit { width: 100%; }

/* ------------------------------ forms ----------------------------------- */
.field { margin-bottom: 16px; }
.field > label, .field__label { display: block; margin-bottom: 7px; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field .opt, .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.field select, .field input, .field textarea, .results__search input, .results__sort select, .filters select {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); font: inherit; font-size: var(--t-base); line-height: 1.5; padding: 12px 14px; min-height: 48px; transition: border-color 0.2s, background 0.2s;
}
.field select:focus, .field input:focus, .field textarea:focus, .results__search input:focus, .results__sort select:focus, .filters select:focus { outline: none; border-color: var(--line-strong); background: rgba(38, 38, 40, 0.8); }
.field select, .filters select, .results__sort select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-opacity='.7' fill='none' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 96px; }
.field .hint { margin-top: 6px; }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: var(--t-sm); color: var(--body); cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.side-panel__note { font-size: var(--t-sm); color: var(--muted); margin: 14px 0 0; }
.steps { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps__n { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: var(--t-sm); color: var(--gold); line-height: 1.5; flex: 0 0 auto; }
.steps h4 { font-family: var(--font-body); font-style: normal; font-size: var(--t-base); font-weight: 600; color: var(--ink); margin: 0 0 2px; }
.steps p { font-size: var(--t-sm); color: var(--muted); margin: 0; }
.steps--wide { grid-template-columns: repeat(2, 1fr); gap: 20px 32px; }
/* A band of the real showroom between two blocks of text, so the page is not a wall of words.
   The scrim keeps it a texture rather than a picture competing with the copy. */
.reserve { margin-top: 10px; }
.reserve > summary { list-style: none; cursor: pointer; }
.reserve > summary::-webkit-details-marker { display: none; }
.reserve[open] > summary { border-color: var(--line-strong); }
.reserve__opts { display: grid; gap: 10px; padding: 14px 0 2px; }
.reserve__note { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.photo-band { position: relative; height: clamp(200px, 30vw, 380px); overflow: hidden; border-block: 1px solid var(--line); }
.photo-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.photo-band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.55), rgba(10, 10, 11, 0.12) 45%, rgba(10, 10, 11, 0.72));
  pointer-events: none;
}
@media (max-width: 640px) { .steps--wide { grid-template-columns: 1fr; } }
.side-panel__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.field__spacer { display: block; height: 1.05rem; margin-bottom: 7px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: end; }
.form-grid .field > input, .form-grid .field > select, .form-grid .field > .plate { height: 48px; }
.form-grid .field > .plate input { height: 100%; padding-block: 0; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.form-grid .span2 { grid-column: span 2; }
.form-msg { margin: 12px 0 0; min-height: 1.2em; color: var(--muted); }
.form-msg.ok { color: var(--ok); }
.form-msg.bad { color: var(--bad); }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; font-size: var(--t-sm); color: var(--body); }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); transition: border-color 0.2s, background 0.2s, color 0.2s; }
.radio-row label:has(input:checked) { border-color: var(--gold); color: var(--ink); background: rgba(201, 169, 97, 0.1); }
.radio-row input { accent-color: var(--gold); margin: 0; }
/* Radios and checkboxes are not text fields: the rule above sizes inputs to fill
   the field, which blew these up into circles the width of their label. */
.field input[type="radio"], .field input[type="checkbox"], .radio-row input {
  width: 16px; height: 16px; min-height: 0; padding: 0; flex: 0 0 auto; border-radius: 50%;
}
.field input[type="checkbox"] { border-radius: 3px; }
.page-hero + .section { padding-top: clamp(24px, 4vw, 48px); }
.sell-form-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.sell-form-card fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.sell-form-card legend { font-size: var(--t-md); font-weight: 600; color: var(--ink); margin-bottom: 16px; padding: 0; }
.sell-form-card a { text-decoration: underline; text-underline-offset: 2px; }
.vehicle-confirm { margin: 4px 0 18px; padding: 14px 16px; border: 1px solid rgba(74, 222, 128, 0.35); border-radius: var(--r-md); background: rgba(74, 222, 128, 0.06); font-size: var(--t-base); color: var(--body); }
.vehicle-confirm b { color: var(--ink); }
.vehicle-confirm:empty { display: none; }
.vehicle-confirm--note { border-color: var(--line-strong); background: var(--surface); color: var(--muted); }
.range-figure { font-size: var(--t-2xl); font-weight: 600; color: var(--ink); }

/* number plate input */
.plate { display: flex; align-items: stretch; border-radius: var(--r-md); overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.4); background: var(--plate); }
.plate__band { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding-inline: 10px; background: #1d3fbf; color: #fff; }
.plate__band .stars { font-size: 0.55rem; color: #ffd400; letter-spacing: 1px; }
.plate__band .uk { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; }
.plate input { flex: 1; min-width: 0; border: 0; background: transparent; color: #111; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.6rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 14px; text-align: center; }
.plate input::placeholder { color: rgba(0, 0, 0, 0.62); font-weight: 600; }
.plate input:focus { outline: none; }
.plate input:focus-visible { outline: 2px solid #111; outline-offset: -4px; }
.plate--sm input { font-size: 1.1rem; padding: 8px 12px; }
.plate--sm .plate__band { padding-inline: 8px; }
.plate-form { display: grid; gap: 12px; max-width: 440px; }
.plate-form > * { min-width: 0; }
.plate-form__label { display: block; margin-bottom: 7px; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.mileage-wrap { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.mileage-wrap input { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); font: inherit; font-size: var(--t-base); padding: 12px 14px; min-height: 48px; min-width: 0; }
.mileage-wrap input:focus { outline: none; border-color: var(--line-strong); }

/* ------------------------------ car cards ------------------------------- */
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.stock-grid--4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.car-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.car-card:hover { border-color: var(--line-strong); }
.car-card__cover, .car-card > a.cover { position: absolute; inset: 0; z-index: 2; }
picture { display: contents; }
.car-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0c0c0e; }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
@media (hover: hover) { .car-card:hover .car-card__media img { transform: scale(1.04); } }
.car-card__badge, .car-card__count {
  position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: var(--r-xs); background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.car-card__count .ic { width: 13px; height: 13px; }
.car-card__tag { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 7px 10px; border-radius: var(--r-xs); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.car-card__tag--featured { background: rgba(0, 0, 0, 0.72); color: var(--gold); }
.car-card__tag--reserved { background: rgba(0, 0, 0, 0.75); color: var(--warn); }
.car-card__tag--sold { background: #fff; color: #000; }
.car-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.car-card__title { margin: 0; font-size: var(--t-lg); font-weight: 600; color: var(--ink); line-height: 1.25; }
.car-card__title a { color: inherit; }
.car-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.car-card:focus-within { border-color: var(--line-strong); }
.car-card__title a:focus-visible { outline: none; }
.car-card:has(.car-card__title a:focus-visible) { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; }
.car-card__variant { margin: 4px 0 0; font-size: var(--t-sm); color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.car-card__rows { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.car-card__rows div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); }
.car-card__rows dt { color: var(--muted); }
.car-card__rows dd { margin: 0; color: var(--ink); text-align: right; }
.car-card__foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-size: var(--t-xl); font-weight: 600; color: var(--gold); letter-spacing: -0.01em; }
.price--sold { color: var(--muted); font-size: var(--t-md); font-weight: 600; }
.car-card__arrow { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.car-card__arrow .ic { width: 18px; height: 18px; transform: rotate(-45deg); }
.car-card:hover .car-card__arrow { background: #fff; color: #000; }
.car-card--static, .car-card--static:hover { border-color: var(--line); }
.car-card--sold .car-card__media img { filter: grayscale(0.35) brightness(0.72); }
.car-card--sold:hover .car-card__media img { transform: none; }
.car-card__cta--muted { font-size: var(--t-sm); color: var(--muted); }
.chip { display: inline-block; padding: 5px 9px; border: 1px solid var(--line); border-radius: var(--r-xs); font-size: var(--t-xs); color: var(--body); }

/* ------------------------------ showroom -------------------------------- */
.stock-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding-top: 24px; border-top: 1px solid var(--line); align-items: start; }
.stock-layout--full { grid-template-columns: minmax(0, 1fr); }
.results__toolbar--plain { justify-content: flex-end; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 18px 18px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.filters__clear { font-size: var(--t-xs); color: var(--muted); }
.filters__clear:hover { color: var(--ink); }
.filters__group { border-bottom: 1px solid var(--line); }
.filters__group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.filters__group summary::-webkit-details-marker { display: none; }
.filters__group summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform 0.25s; margin-right: 4px; }
.filters__group[open] summary::after { transform: rotate(-135deg); }
.filters__list { display: grid; gap: 10px; padding: 0 0 16px; }
.filters__list label { display: flex; align-items: center; gap: 10px; min-height: 28px; padding-block: 2px; font-size: var(--t-sm); color: var(--body); cursor: pointer; }
.filters__list input[type="checkbox"] { appearance: none; width: 16px; height: 16px; border: 1px solid var(--line-strong); border-radius: 3px; background: transparent; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.filters__list input[type="checkbox"]:checked { background: #fff; border-color: #fff; }
.filters__list input[type="checkbox"]:checked::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #000; border-bottom: 2px solid #000; transform: translateY(-1px) rotate(-45deg); }
.filters__range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 0 16px; }
.filters__range:has(> :only-child) { grid-template-columns: 1fr; }
.filters select { padding: 10px 12px; font-size: var(--t-sm); }
.filters__apply { margin-top: 16px; width: 100%; }
.filters__toggle { display: none; }
.results { min-width: 0; }
.results__toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.results__search { flex: 1; min-width: 220px; position: relative; }
.results__search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.results__search input { padding-left: 42px; }
.results__sort { min-width: 220px; }
.results__sort select { padding: 12px 36px 12px 14px; font-size: var(--t-sm); }
.filters__group:last-of-type { border-bottom: 0; }
.filters__done { display: none; }
.results__count { font-size: var(--t-sm); color: var(--muted); margin-left: auto; }
.sold-block { margin-top: var(--space-tight); }

/* ------------------------------ car page -------------------------------- */
.car-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-block: 0 24px; }
.page-hero--flush { padding-bottom: 0; }
.section--flush-top { padding-top: 0; }
main > .section--band:last-child, main > .sell-band:last-child { border-bottom: 0; }
.visit-card__cta { margin-top: 18px; }
.searchbar__card .field { margin: 0; }
.car-title { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.car-title small { display: block; font-family: var(--font-body); font-style: normal; font-weight: 500; text-transform: none; color: var(--muted); font-size: var(--t-base); margin-top: 8px; letter-spacing: 0; }
.price-block { text-align: right; flex-shrink: 0; }
.price-block .label { display: block; margin-bottom: 6px; }
.price--hero { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.car-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) 400px; grid-template-areas: "gallery side" "desc side"; gap: 32px 40px; padding-top: 24px; border-top: 1px solid var(--line); align-items: start; }
.car-gallery { grid-area: gallery; min-width: 0; }
.car-desc { grid-area: desc; min-width: 0; }
.car-side { grid-area: side; position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 16px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; gap: 8px; }
.gallery button { position: relative; padding: 0; border: 0; background: #0c0c0e; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery__main { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto !important; min-height: 100%; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
@media (hover: hover) { .gallery button:hover img { transform: scale(1.04); } }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.gallery__hint .ic { width: 14px; height: 14px; }
.gallery__hint { display: inline-flex; align-items: center; gap: 6px; position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; border-radius: var(--r-xs); background: rgba(0, 0, 0, 0.72); color: #fff; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none; }
.car-block { margin-top: 40px; }
.car-block h2, .car-block h3 { font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; margin: 0; padding: 4px 24px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.spec-grid .spec { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.spec-grid .spec:nth-child(-n+3) { border-top: 0; }
.spec__k { font-size: var(--t-sm); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.spec__k .ic { width: 14px; height: 14px; color: var(--muted); }
.spec__v { font-size: var(--t-base); color: var(--ink); font-weight: 500; }
.car-desc__prose { font-size: var(--t-base); color: var(--body); line-height: 1.75; white-space: pre-line; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); color: var(--body); padding: 6px 0; border-bottom: 1px solid var(--line); }
.feature-list .ic { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; margin-top: 3px; }
.spec-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); padding: 14px 0; border-block: 1px solid var(--line); }
.spec-details summary::-webkit-details-marker { display: none; }
.spec-details summary::after { content: '+'; margin-left: auto; color: var(--muted); font-size: 1.1rem; }
.spec-details[open] summary::after { content: '\2013'; }
.spec-details__n { color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.spec-details .feature-list { margin-top: 14px; }
.side-panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.side-panel h3 { margin: 0 0 6px; }
.side-panel__help { font-size: var(--t-sm); color: var(--muted); margin: 0 0 18px; }
.side-panel__actions { display: flex; flex-direction: column; gap: 10px; }
.side-panel__link { display: inline-block; margin-top: 14px; font-size: var(--t-sm); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.side-panel__note { font-size: var(--t-sm); color: var(--muted); margin: 14px 0 0; }
.side-panel__note a { text-decoration: underline; }
.car-sheet { display: none; }

/* ------------------------------ home sections --------------------------- */
.sell-band { background: var(--surface-2); border-block: 1px solid var(--line); }
.sell-band__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; transition: border-color 0.3s var(--ease); }
.feature:hover { border-color: rgba(201, 169, 97, 0.32); }
.feature .ic { width: 22px; height: 22px; color: var(--muted); margin-bottom: 18px; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; font-size: var(--t-base); color: var(--muted); }
.sell-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.sell-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.sell-step__n { display: inline-block; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 12px; }
.sell-step h3 { margin: 0 0 6px; }
.sell-step p { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
.visit-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.visit-card .row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-base); color: var(--body); }
.visit-card .row:last-of-type { border-bottom: 0; }
.visit-card .row .ic { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; margin-top: 4px; }
.visit-card .row a:hover { color: var(--ink); text-decoration: underline; }
.visit-card .row > div { flex: 1; }
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; font-size: var(--t-sm); }
.hours-row b { color: var(--ink); font-weight: 500; }
.map-frame { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #0c0c0e; min-height: var(--map-h, 320px); }
.map-frame iframe { width: 100%; height: 100%; min-height: var(--map-h, 320px); border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }
.map-frame { display: flex; }
.map-frame__ask { flex: 1; min-height: var(--map-h, 320px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px 24px; text-align: center;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(201,169,97,0.06), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0 12px, transparent 12px 24px); }
.map-frame__ask p { color: var(--muted); font-size: var(--t-sm); max-width: 42ch; margin: 0; }
.map-frame__out { font-size: var(--t-sm); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.map-frame__out:hover { color: var(--ink); }

/* Cookies. One question, asked once, about the Google map and nothing else. */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; }
.consent__in { max-width: 720px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  background: rgba(16,16,18,0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-top-color: rgba(201,169,97,0.28); border-radius: var(--r-lg);
  padding: 18px 20px; box-shadow: 0 18px 50px rgba(0,0,0,0.55); }
.consent__text { flex: 1 1 300px; margin: 0; font-size: var(--t-sm); color: var(--muted); line-height: 1.6; }
.consent__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.consent__acts { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 560px) { .consent { left: 10px; right: 10px; bottom: 10px; } .consent__acts { width: 100%; } .consent__acts .btn { flex: 1; } }
/* A car page keeps a call bar pinned to the bottom on small screens; the banner sits above it. */
@media (max-width: 1024px) { body:has(.car-sheet) .consent { bottom: calc(78px + env(safe-area-inset-bottom)); } }
.reviews-section .section-head { margin-bottom: 24px; }
.reviews-marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reviews-track { display: flex; gap: 16px; width: max-content; animation: reviewScroll 70s linear infinite; padding-block: 4px; }
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
@keyframes reviewScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card { width: 340px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.review-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-card .stars { color: var(--gold); letter-spacing: 2px; font-size: var(--t-sm); }
.review-card__src { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 9px; }
.review-card p { margin: 0; flex: 1; font-size: var(--t-base); color: var(--body); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.review-card footer { font-size: var(--t-sm); color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
.review-card footer b { color: var(--ink); font-weight: 600; }

/* ------------------------------ footer ---------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--surface-2); font-size: var(--t-base); }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-block: 56px; }
.footer__brand .brand { margin-bottom: 4px; }
.footer .brand__shield-img { height: 64px; }
.footer .brand__word-img { height: 20px; }
.footer__brand p { margin: 16px 0 0; color: var(--muted); max-width: 36ch; }
.footer h4, .footer__heading { font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: var(--t-sm); line-height: 1.4; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 16px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer a { color: var(--muted); transition: color 0.2s; }
.footer a:hover { color: var(--ink); }
.footer address { font-style: normal; color: var(--muted); line-height: 1.7; }
.footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted); line-height: 1.6; }
.footer__legal a { color: var(--muted); }
.footer__legal ul { display: flex; gap: 18px; }

/* ------------------------------ lightbox -------------------------------- */
.lb { position: fixed; inset: 0; z-index: 300; touch-action: none; background: rgba(4, 4, 5, 0.96); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb__img { max-width: 96vw; max-height: 86vh; object-fit: contain; border-radius: var(--r-md); user-select: none; -webkit-user-drag: none; cursor: zoom-in; transform-origin: center; will-change: transform; touch-action: none; }
.lb--zoomed .lb__img { cursor: grab; border-radius: 0; }
.lb--zoomed .lb__img:active { cursor: grabbing; }
/* the arrows and the counter would sit under a zoomed photo, so they step aside */
.lb--zoomed .lb__prev, .lb--zoomed .lb__next, .lb--zoomed .lb__count { opacity: 0; pointer-events: none; }
.lb__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-strong); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background 0.2s, color 0.2s; }
.lb__btn:hover { background: #fff; color: #000; }
.lb__close { top: 18px; right: 18px; font-size: 26px; }
.lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #ddd; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.1em; background: rgba(0, 0, 0, 0.5); padding: 6px 12px; border-radius: var(--r-pill); }
body.lb-open { overflow: hidden; }

/* ------------------------------ motion ---------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .reviews-track { animation: none; }
  .reviews-marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .reviews-marquee .reviews-clone { display: none; }
  .review-card { scroll-snap-align: start; }
  .hero__slide, .hero__word { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 1180px) {
  .at-badge--header .at-badge__logo span:last-child { display: none; }
}
@media (max-width: 1024px) {
  .stock-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(360px, 90vw); z-index: 60; border-radius: 0; transform: translateX(-100%); visibility: hidden; transition: transform 0.4s var(--ease), visibility 0s linear 0.4s; overflow-y: auto; background: #0a0a0b; padding: 16px 20px 24px; }
  .filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .filters__toggle { display: inline-flex; }
  .filters__done { display: inline-flex; width: 100%; margin-top: 14px; }
  .filters__apply { display: none; }
  .car-layout { grid-template-columns: 1fr; grid-template-areas: "gallery" "desc" "side"; gap: 24px; }
  .car-side { position: static; }
  .car-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface-3); border-top: 1px solid var(--line); }
  .car-sheet .price { margin-right: auto; font-size: var(--t-lg); }
  body.has-sheet { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .searchbar__card { grid-template-columns: 1fr 1fr; }
  .feature-grid, .feature-grid--3, .process { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .spec-grid .spec:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .spec-grid .spec:nth-child(-n+2) { border-top: 0; }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .at-badge--header { display: none; }
  .site-header__call .btn__label { display: none; }
  .site-header__call { padding-inline: 12px; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand__shield-img { height: 44px; }
  /* The header's backdrop-filter makes it the containing block for fixed descendants, so the
     menu is positioned against the (sticky) header itself and given the rest of the viewport. */
  /* The closed menu used to sit one whole screen to the right. That made the page twice as
     wide as the phone: hiding the overflow stopped the sideways swipe, but iOS works out how
     far you may pinch-zoom out from the content's real width, so you could still zoom out and
     drag the page into the empty half. It now fades down into place and occupies no space at
     all when closed. */
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); z-index: 45; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px var(--gutter) 32px; background: #0a0a0b; margin: 0; opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s linear 0.28s; overflow-y: auto; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { font-size: var(--t-lg); font-weight: 600; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .site-header__cta { margin-left: auto; }
  .site-header__cta .btn:not(.site-header__call) { display: none; }
  .site-header__call { min-width: 44px; min-height: 44px; padding-inline: 11px; }
  .nav__at { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .nav__at span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--gold); font-size: var(--t-base); font-weight: 600; }
  .nav__at .ic { width: 14px; height: 14px; }
  .nav-toggle { margin-left: 0; }
  .sell-band__in, .visit-grid { grid-template-columns: 1fr; }
  .sell-steps { grid-template-columns: 1fr; }
  .hero { min-height: min(70vh, 640px); padding-block: 96px 88px; }
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .car-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .price-block { text-align: left; }
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand__shield-img { height: 42px; }
  .brand__word-img { height: 26px; }
  .searchbar { margin-top: -28px; }
  .searchbar__card { grid-template-columns: 1fr; padding: 16px; }
  .feature-grid, .feature-grid--3, .process { grid-template-columns: 1fr; }
  .trust { gap: 8px 14px; }
  .trust li { white-space: normal; font-size: var(--t-xs); }
  .reviews-section .reviews-controls { justify-content: center; }
  .footer__main { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery__main { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3 !important; }
  .gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .stock-grid, .stock-grid--4 { grid-template-columns: 1fr; }
  .lb__prev, .lb__next { width: 44px; height: 44px; font-size: 24px; }
  .lb__prev { left: 8px; } .lb__next { right: 8px; }
  .hero__points { display: none; }
  .mileage-wrap { grid-template-columns: 1fr; }
}
@media (min-width: 641px) { .gallery__thumbs { display: contents; } }

/* ------------------------------ v5.1: trust, FAQ, makes, process --------- */
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--muted); white-space: nowrap; }
.trust .ic { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.trust--hero { margin-top: 28px; }
.trust--inline { margin: 18px 0 4px; }
.makes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.makes__label { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.makes ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.makes li a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--t-sm); color: var(--body); transition: border-color 0.2s, color 0.2s; }
.makes li a:hover { border-color: var(--line-strong); color: var(--ink); }
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: var(--t-md); font-weight: 600; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-weight: 400; font-size: 1.1rem; }
.faq__item[open] summary::after { content: '\2013'; }
.faq__a { padding: 0 0 20px; }
.faq__a p { margin: 0; color: var(--body); font-size: var(--t-base); line-height: 1.7; max-width: 70ch; }
.prose-block { margin-top: var(--space-tight); padding-top: 32px; border-top: 1px solid var(--line); }
.prose-block h2 { font-family: var(--font-body); font-style: normal; text-transform: none; font-size: var(--t-lg); letter-spacing: -0.01em; }
.prose-block p { color: var(--muted); font-size: var(--t-base); max-width: 72ch; }
.price-block__note { display: block; margin-top: 6px; font-size: var(--t-sm); color: var(--muted); }
.side-panel--quiet { background: transparent; }
.buying-list { list-style: none; display: grid; gap: 10px; }
.buying-list li { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--body); }
.buying-list .ic { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.feature-list--tight { gap: 4px 24px; }
.reviews-clone { display: contents; }
.reviews-controls { display: flex; justify-content: flex-end; margin-top: 14px; }
.reviews-pause { min-height: 36px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: rgba(10, 10, 11, 0.85); color: var(--ink); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.reviews-pause:hover { background: #fff; color: #000; }
.reviews-marquee.is-paused { overflow-x: auto; mask-image: none; -webkit-mask-image: none; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-color: var(--line-strong) transparent; }
.reviews-marquee.is-paused .reviews-track { animation: none; }
.reviews-marquee.is-paused .reviews-clone { display: none; }
.reviews-marquee.is-paused .review-card { scroll-snap-align: start; }
.reviews-marquee:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; }
.visit-card__note, .footer__note { font-size: var(--t-sm); color: var(--muted); margin: 8px 0 0; }
.footer__note { display: inline-block; margin: 2px 0 4px; }
.visit-card__title { font-family: var(--font-body); font-style: normal; text-transform: none; font-size: var(--t-lg); letter-spacing: -0.01em; margin-bottom: 18px; }
.visit-card__sell { margin: -8px 0 18px; }
.visit-card__sell a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.visit-card__map { margin-top: 16px; }
.process { list-style: none; }
.process__step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.process__n { display: inline-block; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: var(--t-xl); color: var(--gold); margin-bottom: 12px; }
.process__step h3 { margin: 0 0 6px; }
.process__step p { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.not-found { min-height: 60vh; display: flex; align-items: center; }
.not-found .container { max-width: 760px; }
.not-found .lead { margin-bottom: 26px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .mileage-wrap input:focus-visible, .results__search input:focus-visible, .results__sort select:focus-visible, .filters select:focus-visible, .filters__list input:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }
@media print {
  .site-header__cta, .nav-toggle, .car-sheet, .reviews-pause, .searchbar, .map-frame, .sell-band, .skip-link, .hero__slides, .consent { display: none !important; }
  body, .footer, .section--band { background: #fff !important; color: #000 !important; }
  h1, h2, h3, .price, .car-title, .spec__v { color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
