/* ==========================================================================
   Premium Auto Dealer — light, clean premium theme
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --bg-tint: #EEF1F6;
  --ink: #0E1116;
  --ink-2: #2B313B;
  --muted: #5B6472;          /* 6.0:1 on white */
  --line: #E4E7EC;
  --line-strong: #CDD3DC;
  --accent: #1E2B45;         /* deep navy, 13:1 on white */
  --accent-ink: #FFFFFF;
  --accent-soft: #EFF1F5;
  --success: #0F7B4F;
  --error: #C2261D;
  --studio-1: #F4F5F7;
  --studio-2: #E3E6EB;

  --font-display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, .06), 0 1px 1px rgba(14, 17, 22, .04);
  --shadow: 0 10px 30px -12px rgba(14, 17, 22, .18), 0 2px 6px rgba(14, 17, 22, .05);
  --shadow-lg: 0 30px 60px -20px rgba(14, 17, 22, .25);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 72px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.025em; margin: 0; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm);
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 26px; height: 26px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--line-strong); }
.section-title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 500; margin-top: 14px; text-wrap: balance; }
.section-lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.125rem); max-width: 56ch; margin-top: 16px; text-wrap: pretty; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .35s var(--ease-spring), box-shadow .3s var(--ease-out), background-color .25s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn .i { transition: transform .35s var(--ease-out); }
.btn:hover .i--arrow { transform: translateX(4px); }
.btn--accent { --btn-bg: var(--accent); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bg-soft); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.link-arrow .i { transition: transform .3s var(--ease-out); }
.link-arrow:hover .i { transform: translateX(4px); }
.link-arrow:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, transform .4s var(--ease-out);
}
.site-header.is-scrolled { background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header--solid { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: -.04em; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name strong { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.brand__name span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { position: relative; padding: 10px 14px; font-weight: 500; font-size: 15px; color: var(--ink-2); border-radius: 999px; transition: color .2s, background-color .2s; }
.nav a:not(.btn):hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 999px; }
.header-phone:hover { background: var(--bg-soft); }

.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; align-items: center; justify-content: center; }

@media (max-width: 1180px) { .header-phone { display: none; } }
@media (max-width: 960px) {
  .nav, .header-phone, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: #fff;
  display: flex; flex-direction: column; padding: 20px var(--gutter) 32px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 40px; }
.mobile-menu nav a { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; padding: 10px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .2s; }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px)); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 20%, var(--accent-soft) 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 500; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.hero__title .accent { color: #8A929E; }
.is-ready .hero__title .line > span { transform: none; }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.is-ready .hero__title .line:nth-child(3) > span { transition-delay: .2s; }
.hero__lead { margin-top: 22px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.js .hero__fade { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.is-ready .hero__fade { opacity: 1; transform: none; }
.is-ready .hero__fade--1 { transition-delay: .35s; }
.is-ready .hero__fade--2 { transition-delay: .45s; }
.is-ready .hero__fade--3 { transition-delay: .55s; }

.hero__visual { position: relative; aspect-ratio: 5 / 4; }
.hero__photo {
  position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--studio-1), var(--studio-2));
  box-shadow: var(--shadow-lg);
}
.js .hero__photo { clip-path: inset(0 0 100% 0 round var(--radius-lg)); transition: clip-path 1.3s var(--ease-out) .15s; }
.is-ready .hero__photo { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.4s var(--ease-out) .15s; will-change: transform; }
.is-ready .hero__photo img { transform: scale(1.02); }
.hero__photo { background: radial-gradient(120% 80% at 50% 100%, var(--studio-2) 0%, var(--studio-1) 50%, #fff 100%); }

.hero__photo::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 17%; height: 1px; background: linear-gradient(90deg, transparent, rgba(14,17,22,.14), transparent); }
.hero__photo .car-svg { position: absolute; left: 6%; width: 88%; bottom: 14%; z-index: 1; }
.js .hero__photo .car-svg { opacity: 0; transform: translateX(-22%); transition: transform 1.8s var(--ease-out) .55s, opacity .9s var(--ease-out) .55s; }
.is-ready .hero__photo .car-svg { opacity: 1; transform: none; }
.hero__chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow);
}
.js .hero__chip { opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .7s var(--ease-out), transform .8s var(--ease-spring); }
.hero__chip strong { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: -.02em; line-height: 1.1; }
.hero__chip small { color: var(--muted); font-size: 13px; }
.hero__chip .chip-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.hero__chip--a { left: -20px; bottom: -22px; }
.hero__chip--b { right: -14px; top: 26px; }
.is-ready .hero__chip { opacity: 1; transform: none; }
.is-ready .hero__chip--a { transition-delay: .9s; }
.is-ready .hero__chip--b { transition-delay: 1.05s; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 16 / 11; }
  .hero__chip--a { left: 12px; top: 12px; bottom: auto; }
  .hero__chip { padding: 10px 12px; }
  .hero__chip--b { right: 12px; top: 12px; }
}
@media (max-width: 420px) {
  .hero__chip--b { display: none; }
}

/* Quick search */
.quick-search {
  position: relative; z-index: 2; margin-top: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 8px; box-shadow: var(--shadow);
}
.qs-field { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 8px 16px; border-radius: 14px; min-height: 60px; transition: background-color .2s; }
.qs-field:hover { background: var(--bg-soft); }
.qs-field + .qs-field::before { content: ""; position: absolute; left: -4px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.qs-field label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.qs-field select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 2px 22px 2px 0; font-weight: 600; font-size: 16px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; }
.qs-field select:focus-visible { outline-offset: 6px; }
.quick-search .btn { min-height: 60px; border-radius: 16px; padding: 0 28px; }
@media (max-width: 900px) {
  .quick-search { grid-template-columns: 1fr 1fr; }
  .qs-field + .qs-field::before { display: none; }
  .qs-field { background: var(--bg-soft); }
  .quick-search .btn { grid-column: 1 / -1; }
}

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; align-items: center; gap: 14px; padding: 26px 20px; }
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__item .i { color: var(--accent); }
.trust__item strong { display: block; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.02em; line-height: 1.1; }
.trust__item span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .trust__item { padding: 20px 12px; gap: 10px; }
}

/* Make marquee */
.marquee { overflow: hidden; padding-block: 28px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 500; letter-spacing: -.01em; color: #B3B9C3; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }

/* ---------- Car card ---------- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.car-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.car-card__link { display: flex; flex-direction: column; height: 100%; }
.car-card__link:focus-visible { outline-offset: -3px; border-radius: var(--radius-lg); }
.car-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, var(--studio-2) 0%, var(--studio-1) 55%, #fff 100%); }
.car-card__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(180deg, transparent, rgba(14,17,22,.04)); }
.car-card__media .car-svg { position: absolute; left: 7%; width: 86%; bottom: 10%; transition: transform .8s var(--ease-out); }
.car-card:hover .car-svg { transform: translateX(-3%) scale(1.035); }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.car-card__stock { position: absolute; top: 14px; right: 14px; z-index: 1; font-size: 12px; font-weight: 500; color: var(--muted); }
.car-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.car-card__meta { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.car-card__title { font-size: 21px; letter-spacing: -.02em; }
.car-card__variant { color: var(--muted); font-size: 15px; }
.car-card__specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.car-card__specs li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; white-space: nowrap; border-radius: 999px; background: var(--bg-soft); font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.car-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.price { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.price small { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.car-card__go { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); transition: background-color .3s, color .3s, transform .4s var(--ease-spring); }
.car-card:hover .car-card__go { background: var(--ink); color: #fff; transform: rotate(45deg); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; }
.why-card h3 { font-size: 20px; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 1024px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Forms / booking ---------- */
.book { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.book__aside .contact-list { margin-top: 32px; display: grid; gap: 4px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.contact-list .i { color: var(--accent); }
.contact-list a:hover { color: var(--accent); }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 36px); }
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border-radius: 999px; padding: 5px; margin-bottom: 28px; }
.tabs__indicator { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); background: #fff; border-radius: 999px; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-spring); }
.tabs[data-active="1"] .tabs__indicator { transform: translateX(100%); }
.tab { position: relative; z-index: 1; min-height: 46px; border: 0; background: transparent; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; }
.tab[aria-selected="true"] { color: var(--ink); }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: panelIn .5s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A9B1BD; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(30,43,69,.12); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .error { font-size: 13px; color: var(--error); font-weight: 500; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error .error { display: block; }
.form-foot { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.form-note { font-size: 13px; color: var(--muted); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-group input { position: absolute; opacity: 0; pointer-events: none; }
.chip-group label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 500; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.chip-group input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-group input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

.form-success { text-align: center; padding: 40px 12px; animation: panelIn .6s var(--ease-out); }
.form-success__icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 999px; background: #E6F4EE; color: var(--success); display: grid; place-items: center; }
.form-success__icon svg { width: 34px; height: 34px; }
.form-success__icon path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .2s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 26px; margin-bottom: 8px; }
.form-success p { color: var(--muted); max-width: 40ch; margin-inline: auto; }

/* ---------- Trade-in band ---------- */
.trade-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: #fff; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.trade-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.07), transparent 60%); pointer-events: none; }
.trade-band > * { position: relative; }
.trade-band .eyebrow { color: #9AA3B2; }
.trade-band .eyebrow::before { background: rgba(255,255,255,.25); }
.trade-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 500; margin-top: 14px; }
.trade-band p { color: #C3C9D3; margin-top: 14px; max-width: 48ch; }
.trade-steps { display: grid; gap: 12px; }
.trade-steps li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.trade-steps b { width: 34px; height: 34px; flex: none; border-radius: 999px; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: 14px; }
@media (max-width: 860px) { .trade-band { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.stars { display: flex; gap: 2px; color: var(--ink-2); }
.stars .i { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.review figcaption .avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--bg-tint); display: grid; place-items: center; font-weight: 700; color: var(--accent); }
.review figcaption span { display: block; color: var(--muted); }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch; }
.visit__info { display: flex; flex-direction: column; gap: 24px; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.is-today td { color: var(--accent); }
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; background: var(--bg-tint); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }

/* ---------- CTA + footer ---------- */
.cta { text-align: center; padding-block: var(--section); }
.cta h2 { font-size: clamp(2rem, 4.8vw, 3.6rem); font-weight: 500; letter-spacing: -.035em; max-width: 16ch; margin: 14px auto 0; text-wrap: balance; }
.cta .hero__cta { justify-content: center; }

.site-footer { background: var(--ink); color: #C3C9D3; padding-top: 72px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand__mark { background: #fff; color: var(--ink); }
.site-footer .brand__name strong { color: #fff; }
.site-footer .brand__name span { color: #8E97A5; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-body); margin-bottom: 16px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a:hover { color: #fff; }
.footer-blurb { margin-top: 18px; max-width: 34ch; font-size: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #8E97A5; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 6px;
    background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
    transform: translateY(140%); transition: transform .5s var(--ease-spring);
  }
  .action-bar.is-visible { transform: none; }
  .action-bar a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; font-weight: 600; font-size: 14px; }
  .action-bar a:not(.btn) { background: var(--bg-soft); }
  .action-bar .btn { padding: 0 12px; }
  body { padding-bottom: 84px; }
}

/* ---------- Inventory page ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px)); padding-bottom: clamp(24px, 4vw, 40px); background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 500; letter-spacing: -.035em; margin-top: 12px; }
.inventory { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; padding-block: 32px var(--section); }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.filters__head h2 { font-size: 20px; }
.filters form > * + * { margin-top: 20px; }
.filters fieldset { border: 0; padding: 0; margin-inline: 0; }
.filters legend { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.text-btn { border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 14px; padding: 10px 4px; min-height: 44px; }
.text-btn:hover { text-decoration: underline; }
.range-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.field .range, .range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; cursor: pointer; }
.scrim { display: none; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--fill, 100%), var(--line) var(--fill, 100%)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-spring); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.results-bar .count { font-weight: 600; }
.results-bar .count span { color: var(--muted); font-weight: 400; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort select { min-height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); padding: 0 36px 0 16px; background: #fff; font-weight: 600; color: var(--ink); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.search-box { position: relative; }
.search-box .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box input { padding-left: 42px !important; }
.filter-toggle { display: none; }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: #fff; }
.empty h3 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 20px; }
.car-grid .car-card { animation: cardIn .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .inventory { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 160; max-height: 86vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translateY(105%); visibility: hidden; transition: transform .45s var(--ease-out), visibility 0s .45s; box-shadow: var(--shadow-lg); }
  .filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 155; background: rgba(14,17,22,.4); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
  .scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
}
.filters__close, .filters__apply { display: none; }
@media (max-width: 960px) { .filters__close { display: inline-flex; } .filters__apply { display: flex; margin-top: 24px; } }

/* ---------- Vehicle detail ---------- */
.vehicle { padding-top: calc(var(--header-h) + 24px); padding-bottom: var(--section); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.crumbs a:hover { color: var(--ink); }
.vehicle__grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-areas: "stage summary" "details summary"; gap: 0 clamp(24px, 4vw, 56px); align-items: start; }
.vehicle__stage { grid-area: stage; }
.vehicle__details { grid-area: details; }
.vehicle__summary { grid-area: summary; }
.vehicle__stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, var(--studio-2) 0%, var(--studio-1) 55%, #fff 100%); border: 1px solid var(--line); }
.vehicle__stage .car-svg { position: absolute; left: 6%; width: 88%; bottom: 10%; animation: driveIn 1.4s var(--ease-out) both; }
@keyframes driveIn { from { opacity: 0; transform: translateX(-14%); } to { opacity: 1; transform: none; } }
.vehicle__stage .photo-note { position: absolute; right: 16px; top: 20px; font-size: 12px; color: var(--muted); }

/* Real vehicle photos (cars with photos: [...] in data.js) */
.car-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.car-card:hover .car-photo { transform: scale(1.04); }
.car-card__media:has(.car-photo) .car-card__stock { padding: 4px 10px; border-radius: 999px; background: rgba(10, 11, 13, .6); color: #fff; }
.vehicle__gallery { grid-area: stage; min-width: 0; }
.vehicle__stage--photo { background: #111317; }
.photo-count { position: absolute; right: 14px; bottom: 14px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(10, 11, 13, .65); color: #fff; font-size: 12px; font-weight: 600; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.gallery-thumb { flex: 0 0 auto; width: 88px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; scroll-snap-align: start; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover, .gallery-thumb.is-active { opacity: 1; }
.gallery-thumb.is-active { border-color: var(--accent, var(--ink)); }
.gallery-thumb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vehicle__summary { position: sticky; top: calc(var(--header-h) + 16px); }
.vehicle__summary h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -.03em; margin-top: 8px; }
.vehicle__summary .variant { color: var(--muted); font-size: 18px; margin-top: 6px; }
.vehicle__price { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 24px 0; padding: 20px 0; border-block: 1px solid var(--line); }
/* "Drive away price" label sits on its own line above the price */
.price-block { display: flex; flex-direction: column; gap: 6px; }
.price-label { font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.vehicle__price .price-label { font-size: 14px; }
.price-note { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
/* Disclosure notes (e.g. repairable write-off) shown clearly beside the price and on the card */
.vehicle-notice { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FFF4E5; border: 1px solid #F0C98A; color: #6B4300; font-size: 14px; font-weight: 500; line-height: 1.45; }
.car-card__notice { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #8A5300; }
.vehicle__price .price { font-size: 40px; }
.vehicle__actions { display: grid; gap: 10px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.spec { background: var(--bg-soft); border-radius: var(--radius); padding: 16px; }
.spec .i { color: var(--accent); margin-bottom: 10px; }
.spec small { display: block; color: var(--muted); font-size: 13px; }
.spec strong { font-size: 16px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 20px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list .i { color: var(--success); margin-top: 3px; }
.vehicle h2.sub { font-size: 24px; margin-top: 48px; }
@media (max-width: 960px) {
  .vehicle__grid { grid-template-columns: 1fr; grid-template-areas: "stage" "summary" "details"; }
  .vehicle__summary { position: static; margin-top: 28px; }
}
@media (max-width: 560px) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__title .line > span, .hero__fade, .hero__chip { transform: none !important; opacity: 1 !important; }
  .hero__photo { clip-path: none !important; }
  .hero__photo .car-svg { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
  @view-transition { navigation: none; }
}

/* Refinements */
.vehicle__summary .form-grid { grid-template-columns: 1fr; }
.form-error { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #FDECEB; color: var(--error); font-size: 14px; font-weight: 500; }
.car-card__title, .why-card h3, .review figcaption strong { font-weight: 600; }@media (max-width: 1180px) and (min-width: 961px) { .inventory { grid-template-columns: 240px 1fr; gap: 24px; } }

/* ==========================================================================
   Dark luxury theme (active site-wide via <html data-theme="dark">)
   ========================================================================== */

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0B0D;
  --bg-soft: #121418;
  --bg-tint: #1A1D22;
  --surface: #131519;
  --surface-2: #1B1E23;
  --ink: #F1EDE6;
  --ink-2: #D2CEC7;
  --muted: #979BA3;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --accent: #C9AC7D;          /* champagne */
  --accent-ink: #15120C;
  --accent-soft: rgba(201, 172, 125, .12);
  --success: #7DD3A8;
  --error: #F28B82;
  --studio-1: #181B20;
  --studio-2: #24282F;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 34px 70px -24px rgba(0, 0, 0, .85);
}
[data-theme="dark"] ::selection { background: rgba(201, 172, 125, .35); }

/* Buttons: light ink buttons with dark text, champagne for the main action */
[data-theme="dark"] .btn { --btn-fg: #0A0B0D; }
[data-theme="dark"] .btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
[data-theme="dark"] .btn--ghost { --btn-fg: var(--ink); }
[data-theme="dark"] .btn--light { --btn-bg: var(--ink); --btn-fg: #0A0B0D; border-color: transparent; }
[data-theme="dark"] .btn::after { background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); }

/* Chrome */
[data-theme="dark"] .site-header.is-scrolled,
[data-theme="dark"] .site-header--solid { background: rgba(10, 11, 13, .78); }
[data-theme="dark"] .brand__mark { background: var(--ink); color: #0A0B0D; }
[data-theme="dark"] .menu-toggle { background: var(--surface); }
[data-theme="dark"] .mobile-menu { background: var(--bg); }
[data-theme="dark"] .action-bar { background: rgba(19, 21, 25, .9); }
[data-theme="dark"] .site-footer { background: #060708; border-top: 1px solid var(--line); }
[data-theme="dark"] .site-footer .brand__mark { background: var(--ink); color: #0A0B0D; }

/* Hero */
[data-theme="dark"] .hero::before {
  background:
    radial-gradient(55% 55% at 82% 18%, rgba(201, 172, 125, .10) 0%, transparent 70%),
    linear-gradient(180deg, #0A0B0D 0%, #0E1013 100%);
}
[data-theme="dark"] .hero__title .accent { color: #7C8088; }
[data-theme="dark"] .hero__photo { background: radial-gradient(120% 80% at 50% 100%, #2A2E35 0%, #16191E 50%, #0E1013 100%); border: 1px solid var(--line); }
[data-theme="dark"] .hero__photo::after { background: linear-gradient(90deg, transparent, rgba(201,172,125,.35), transparent); }
[data-theme="dark"] .hero__chip { background: rgba(22, 24, 29, .82); border-color: var(--line-strong); }
[data-theme="dark"] .quick-search { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .page-hero { background: linear-gradient(180deg, #0A0B0D, #0F1114); }

/* Sections */
[data-theme="dark"] .trust { background: var(--bg); }
[data-theme="dark"] .marquee__track span { color: #4B4F57; }
[data-theme="dark"] .car-card,
[data-theme="dark"] .why-card,
[data-theme="dark"] .review,
[data-theme="dark"] .panel,
[data-theme="dark"] .filters,
[data-theme="dark"] .empty { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .car-card:hover { border-color: rgba(201, 172, 125, .35); }
[data-theme="dark"] .car-card__media,
[data-theme="dark"] .vehicle__stage { background: radial-gradient(120% 90% at 50% 100%, #2A2E35 0%, #181B20 55%, #111317 100%); border-color: var(--line); }
[data-theme="dark"] .car-card__media::after { background: linear-gradient(180deg, transparent, rgba(0,0,0,.25)); }
[data-theme="dark"] .badge { background: rgba(10, 11, 13, .7); color: var(--ink); border: 1px solid var(--line-strong); }
[data-theme="dark"] .car-card__specs li { background: var(--surface-2); }
[data-theme="dark"] .car-card__go { background: var(--surface-2); }
[data-theme="dark"] .car-card:hover .car-card__go { background: var(--accent); color: var(--accent-ink); }
[data-theme="dark"] .trade-band { background: linear-gradient(135deg, #17191E, #0F1114); border: 1px solid var(--line); }
[data-theme="dark"] .trade-band::before { background: radial-gradient(60% 80% at 100% 0%, rgba(201,172,125,.12), transparent 60%); }
[data-theme="dark"] .trade-band .eyebrow { color: var(--accent); }
[data-theme="dark"] .trade-steps b { background: var(--accent); color: var(--accent-ink); }
[data-theme="dark"] .stars { color: var(--accent); }
[data-theme="dark"] .map iframe { filter: invert(.92) hue-rotate(180deg) grayscale(.6) contrast(.95); }

/* Forms */
[data-theme="dark"] .tabs { background: #0D0F12; }
[data-theme="dark"] .tabs__indicator { background: var(--surface-2); }
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .sort select { background-color: #0D0F12; border-color: var(--line-strong); color: var(--ink); }
[data-theme="dark"] .field input:hover,
[data-theme="dark"] .field select:hover,
[data-theme="dark"] .field textarea:hover { border-color: rgba(255,255,255,.28); }
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201,172,125,.16); }
[data-theme="dark"] .field .range { background: transparent; }
[data-theme="dark"] .range::-webkit-slider-thumb { background: var(--ink); border-color: var(--accent); }
[data-theme="dark"] .chip-group input:checked + label { background: var(--ink); border-color: var(--ink); color: #0A0B0D; }
[data-theme="dark"] .form-success__icon { background: rgba(125, 211, 168, .12); }
[data-theme="dark"] .form-error { background: rgba(242, 139, 130, .1); }

/* ==========================================================================
   Light blue theme (active site-wide via <html data-theme="lightblue">)
   ========================================================================== */
[data-theme="lightblue"] {
  --bg: #F6F9FD;
  --bg-soft: #EDF3FA;
  --bg-tint: #E3ECF8;
  --ink: #0F1E33;            /* deep navy ink */
  --ink-2: #2A3B55;
  --muted: #56677F;          /* 5.6:1 on --bg */
  --line: #DCE5F1;
  --line-strong: #C5D3E6;
  --accent: #2C5BC4;         /* 6.3:1 on white */
  --accent-ink: #FFFFFF;
  --accent-soft: #E4ECFB;
  --studio-1: #EEF3FA;
  --studio-2: #D8E3F2;
  --shadow-sm: 0 1px 2px rgba(15, 30, 51, .06), 0 1px 1px rgba(15, 30, 51, .04);
  --shadow: 0 12px 30px -14px rgba(23, 52, 102, .22), 0 2px 6px rgba(15, 30, 51, .05);
  --shadow-lg: 0 30px 60px -22px rgba(23, 52, 102, .30);
}
[data-theme="lightblue"] ::selection { background: rgba(44, 91, 196, .18); }
[data-theme="lightblue"] .site-header.is-scrolled,
[data-theme="lightblue"] .site-header--solid { background: rgba(246, 249, 253, .85); }
[data-theme="lightblue"] .mobile-menu { background: var(--bg); }
[data-theme="lightblue"] .hero::before {
  background:
    radial-gradient(55% 55% at 84% 16%, rgba(44, 91, 196, .12) 0%, transparent 70%),
    linear-gradient(180deg, #F8FBFE 0%, #EAF1FA 100%);
}
[data-theme="lightblue"] .hero__title .accent { color: #8396B4; }
[data-theme="lightblue"] .hero__photo { background: radial-gradient(120% 80% at 50% 100%, #D3DFF0 0%, #EAF0F9 50%, #F8FBFE 100%); }
[data-theme="lightblue"] .hero__photo::after { background: linear-gradient(90deg, transparent, rgba(44,91,196,.25), transparent); }
[data-theme="lightblue"] .page-hero { background: linear-gradient(180deg, #F8FBFE, #EAF1FA); }
[data-theme="lightblue"] .trust { background: #fff; }
[data-theme="lightblue"] .marquee__track span { color: #A3B3CA; }
[data-theme="lightblue"] .car-card__media,
[data-theme="lightblue"] .vehicle__stage { background: radial-gradient(120% 90% at 50% 100%, #D3DFF0 0%, #EAF0F9 55%, #FAFCFE 100%); }
[data-theme="lightblue"] .car-card:hover { border-color: rgba(44, 91, 196, .25); }
[data-theme="lightblue"] .car-card:hover .car-card__go { background: var(--accent); }
[data-theme="lightblue"] .trade-band::before { background: radial-gradient(60% 80% at 100% 0%, rgba(110, 150, 230, .28), transparent 60%); }
[data-theme="lightblue"] .trade-band .eyebrow { color: #A9C1EE; }
[data-theme="lightblue"] .stars { color: var(--accent); }
[data-theme="lightblue"] .field input:focus,
[data-theme="lightblue"] .field select:focus,
[data-theme="lightblue"] .field textarea:focus { box-shadow: 0 0 0 4px rgba(44, 91, 196, .15); }
[data-theme="lightblue"] .map iframe { filter: saturate(.85) contrast(1.02); }

/* ==========================================================================
   Dark + gold theme (active via <html data-theme="dark" data-tone="gold">)
   Builds on the dark theme; adds warm blacks and a champagne → antique gold scale.
   ========================================================================== */
[data-tone="gold"] {
  --gold-1: #F0DFB4;         /* pale champagne */
  --gold-2: #D9BC82;         /* soft gold */
  --gold-3: #C2A063;         /* classic gold */
  --gold-4: #957434;         /* antique gold */
  --gold-grad: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 38%, var(--gold-3) 68%, var(--gold-4) 100%);
  --gold-line: linear-gradient(90deg, transparent, rgba(217, 188, 130, .55), transparent);

  --bg: #0B0A09;
  --bg-soft: #12110F;
  --bg-tint: #1B1916;
  --surface: #141311;
  --surface-2: #1D1B18;
  --ink: #F3EEE4;
  --ink-2: #D8D1C4;
  --muted: #A39B8E;
  --line: rgba(232, 214, 176, .08);
  --line-strong: rgba(232, 214, 176, .17);
  --accent: #D2B274;
  --accent-ink: #1A1408;
  --accent-soft: rgba(210, 178, 116, .12);
  --studio-1: #1A1815;
  --studio-2: #2A2620;
}
[data-tone="gold"] ::selection { background: rgba(210, 178, 116, .35); color: #fff; }

/* Headline: one line in gold, everything else ivory */
[data-tone="gold"] .hero__title .accent {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-tone="gold"] .eyebrow { color: var(--gold-2); }
[data-tone="gold"] .eyebrow::before { background: linear-gradient(90deg, var(--gold-4), var(--gold-1)); height: 1px; }

/* Buttons */
[data-tone="gold"] .btn { --btn-fg: #0B0A09; }
[data-tone="gold"] .btn--accent { --btn-bg: var(--gold-grad); --btn-fg: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 245, 220, .45); }
[data-tone="gold"] .btn--accent:hover { box-shadow: inset 0 1px 0 rgba(255, 245, 220, .45), 0 14px 34px -12px rgba(210, 178, 116, .45); }
[data-tone="gold"] .btn--ghost { --btn-fg: var(--ink); border-color: rgba(217, 188, 130, .35); }
[data-tone="gold"] .btn--ghost:hover { background: rgba(210, 178, 116, .08); }
[data-tone="gold"] .btn--light { --btn-bg: var(--gold-grad); --btn-fg: var(--accent-ink); }

/* Chrome */
[data-tone="gold"] .brand__mark,
[data-tone="gold"] .site-footer .brand__mark { background: var(--gold-grad); color: #1A1408; }
[data-tone="gold"] .site-header.is-scrolled,
[data-tone="gold"] .site-header--solid { background: rgba(11, 10, 9, .8); box-shadow: 0 1px 0 rgba(217, 188, 130, .14); }
[data-tone="gold"] .nav a[aria-current="page"]::after { background: var(--gold-grad); }
[data-tone="gold"] .site-footer { background: #070605; border-top: 0; position: relative; }
[data-tone="gold"] .site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold-line); }
[data-tone="gold"] .site-footer h4 { color: var(--gold-2); }
[data-tone="gold"] .action-bar { background: rgba(20, 19, 17, .92); border-color: rgba(217, 188, 130, .18); }

/* Hero */
[data-tone="gold"] .hero::before {
  background:
    radial-gradient(50% 50% at 82% 20%, rgba(210, 178, 116, .13) 0%, transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(149, 116, 52, .08) 0%, transparent 70%),
    linear-gradient(180deg, #0B0A09 0%, #100E0C 100%);
}
[data-tone="gold"] .hero__photo { background: radial-gradient(120% 80% at 50% 100%, #332D24 0%, #1B1815 50%, #100E0C 100%); border-color: rgba(217, 188, 130, .14); }
[data-tone="gold"] .hero__photo::after { background: var(--gold-line); }
[data-tone="gold"] .hero__chip { background: rgba(20, 19, 17, .85); border-color: rgba(217, 188, 130, .22); }
[data-tone="gold"] .hero__chip .chip-icon,
[data-tone="gold"] .why-card__icon { background: rgba(210, 178, 116, .1); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(217, 188, 130, .2); }
[data-tone="gold"] .quick-search { border-color: rgba(217, 188, 130, .14); }
[data-tone="gold"] .page-hero { background: linear-gradient(180deg, #0B0A09, #12100D); }

/* Sections */
[data-tone="gold"] .trust { border-color: rgba(217, 188, 130, .12); }
[data-tone="gold"] .trust__item + .trust__item { border-color: rgba(217, 188, 130, .12); }
[data-tone="gold"] .trust__item .i,
[data-tone="gold"] .contact-list .i,
[data-tone="gold"] .spec .i { color: var(--gold-2); }
[data-tone="gold"] .marquee__track span { color: #5C5242; }
[data-tone="gold"] .price { color: var(--gold-1); }
[data-tone="gold"] .car-card__media,
[data-tone="gold"] .vehicle__stage { background: radial-gradient(120% 90% at 50% 100%, #302A22 0%, #1A1815 55%, #12110F 100%); }
[data-tone="gold"] .car-card:hover { border-color: rgba(217, 188, 130, .4); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(217, 188, 130, .12); }
[data-tone="gold"] .car-card:hover .car-card__go { background: var(--gold-grad); color: var(--accent-ink); }
[data-tone="gold"] .badge { border-color: rgba(217, 188, 130, .3); color: var(--gold-1); }
[data-tone="gold"] .trade-band { background: linear-gradient(135deg, #1C1915, #0F0E0C); border-color: rgba(217, 188, 130, .2); }
[data-tone="gold"] .trade-band::before { background: radial-gradient(60% 80% at 100% 0%, rgba(210, 178, 116, .16), transparent 60%); }
[data-tone="gold"] .trade-band .eyebrow { color: var(--gold-2); }
[data-tone="gold"] .trade-steps li { border-color: rgba(217, 188, 130, .14); }
[data-tone="gold"] .trade-steps b { background: var(--gold-grad); color: var(--accent-ink); }
[data-tone="gold"] .stars { color: var(--gold-2); }
[data-tone="gold"] .review figcaption .avatar { background: rgba(210, 178, 116, .1); color: var(--gold-2); }
[data-tone="gold"] .hours tr.is-today td { color: var(--gold-2); }
[data-tone="gold"] .map { border-color: rgba(217, 188, 130, .14); }
[data-tone="gold"] .map iframe { filter: invert(.92) hue-rotate(180deg) grayscale(.8) sepia(.25) contrast(.95); }

/* Forms */
[data-tone="gold"] .tabs { background: #0D0C0A; }
[data-tone="gold"] .field input,
[data-tone="gold"] .field select,
[data-tone="gold"] .field textarea,
[data-tone="gold"] .sort select { background-color: #0E0D0B; }
[data-tone="gold"] .field input:focus,
[data-tone="gold"] .field select:focus,
[data-tone="gold"] .field textarea:focus { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(210, 178, 116, .15); }
[data-tone="gold"] .chip-group input:checked + label { background: var(--gold-grad); border-color: transparent; color: var(--accent-ink); }
[data-tone="gold"] .range::-webkit-slider-thumb { background: var(--gold-1); border-color: var(--gold-3); }

/* ==========================================================================
   White, black & gold theme (active via <html data-theme="whitegold">)
   Built on the base light theme. Text-gold is deepened for contrast on white;
   brighter brushed gold is reserved for buttons and black panels.
   ========================================================================== */
[data-theme="whitegold"] {
  --gold-1: #EBD5A3;
  --gold-2: #D4B373;
  --gold-3: #B48E48;
  --gold-4: #8A6A2C;
  --gold-grad: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 40%, var(--gold-3) 72%, var(--gold-4) 100%);
  --gold-text: linear-gradient(120deg, #A27E3A 0%, #85652A 55%, #6C5020 100%);
  --gold-line: linear-gradient(90deg, transparent, rgba(180, 142, 72, .6), transparent);

  --bg: #FFFFFF;
  --bg-soft: #F8F6F2;
  --bg-tint: #F1EDE5;
  --ink: #0B0B0B;
  --ink-2: #2A2723;
  --muted: #645F57;          /* 6.2:1 on white */
  --line: #EAE5DC;
  --line-strong: #D8D1C4;
  --accent: #8A6A2C;         /* deep gold, 5.3:1 on white */
  --accent-ink: #0B0B0B;
  --accent-soft: #F6EFE0;
  --studio-1: #F7F4EF;
  --studio-2: #E7E1D6;
  --shadow: 0 12px 30px -14px rgba(40, 30, 10, .22), 0 2px 6px rgba(11, 11, 11, .05);
  --shadow-lg: 0 30px 60px -22px rgba(40, 30, 10, .30);
}
[data-theme="whitegold"] ::selection { background: rgba(212, 179, 115, .35); }

/* Headline: black text, one line in deep gold */
[data-theme="whitegold"] .hero__title .accent { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="whitegold"] .eyebrow { color: var(--accent); }
[data-theme="whitegold"] .eyebrow::before { background: linear-gradient(90deg, var(--gold-1), var(--gold-4)); }

/* Buttons: black primary, brushed-gold accent */
[data-theme="whitegold"] .btn--accent { --btn-bg: var(--gold-grad); --btn-fg: #0B0B0B; box-shadow: inset 0 1px 0 rgba(255, 248, 230, .6); }
[data-theme="whitegold"] .btn--accent:hover { box-shadow: inset 0 1px 0 rgba(255, 248, 230, .6), 0 14px 30px -12px rgba(138, 106, 44, .45); }
[data-theme="whitegold"] .btn--ghost { border-color: rgba(180, 142, 72, .45); }
[data-theme="whitegold"] .btn--ghost:hover { background: var(--accent-soft); }
[data-theme="whitegold"] .btn--light { --btn-bg: var(--gold-grad); --btn-fg: #0B0B0B; border-color: transparent; }

/* Chrome */
[data-theme="whitegold"] .brand__mark { background: #0B0B0B; color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(212, 179, 115, .35); }
[data-theme="whitegold"] .nav a[aria-current="page"]::after { background: var(--gold-grad); }
[data-theme="whitegold"] .site-header.is-scrolled,
[data-theme="whitegold"] .site-header--solid { box-shadow: 0 1px 0 var(--line); }
[data-theme="whitegold"] .site-footer { background: #0B0B0B; position: relative; }
[data-theme="whitegold"] .site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold-line); }
[data-theme="whitegold"] .site-footer .brand__mark { background: var(--gold-grad); color: #0B0B0B; }
[data-theme="whitegold"] .site-footer h4 { color: var(--gold-2); }

/* Hero */
[data-theme="whitegold"] .hero::before {
  background:
    radial-gradient(50% 50% at 84% 18%, rgba(212, 179, 115, .16) 0%, transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, #FAF8F4 100%);
}
[data-theme="whitegold"] .hero__photo { background: radial-gradient(120% 80% at 50% 100%, #E4DCCD 0%, #F4F0E9 50%, #FFFFFF 100%); border: 1px solid var(--line); }
[data-theme="whitegold"] .hero__photo::after { background: var(--gold-line); }
[data-theme="whitegold"] .hero__chip .chip-icon,
[data-theme="whitegold"] .why-card__icon { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(180, 142, 72, .2); }
[data-theme="whitegold"] .page-hero { background: linear-gradient(180deg, #FFFFFF, #FAF8F4); }

/* Sections */
[data-theme="whitegold"] .marquee__track span { color: #BBB3A5; }
[data-theme="whitegold"] .car-card__media,
[data-theme="whitegold"] .vehicle__stage { background: radial-gradient(120% 90% at 50% 100%, #E4DCCD 0%, #F4F0E9 55%, #FFFFFF 100%); }
[data-theme="whitegold"] .car-card:hover { border-color: rgba(180, 142, 72, .45); }
[data-theme="whitegold"] .car-card:hover .car-card__go { background: #0B0B0B; color: var(--gold-2); }
[data-theme="whitegold"] .trade-band { background: #0B0B0B; }
[data-theme="whitegold"] .trade-band::before { background: radial-gradient(60% 80% at 100% 0%, rgba(212, 179, 115, .2), transparent 60%); }
[data-theme="whitegold"] .trade-band .eyebrow { color: var(--gold-2); }
[data-theme="whitegold"] .trade-band .eyebrow::before { background: linear-gradient(90deg, var(--gold-4), var(--gold-1)); }
[data-theme="whitegold"] .trade-steps li { border-color: rgba(212, 179, 115, .16); }
[data-theme="whitegold"] .trade-steps b { background: var(--gold-grad); color: #0B0B0B; }
[data-theme="whitegold"] .stars { color: var(--gold-3); }
[data-theme="whitegold"] .review figcaption .avatar { background: var(--accent-soft); color: var(--accent); }

/* Forms */
[data-theme="whitegold"] .field input:focus,
[data-theme="whitegold"] .field select:focus,
[data-theme="whitegold"] .field textarea:focus { border-color: var(--gold-3); box-shadow: 0 0 0 4px rgba(212, 179, 115, .22); }
[data-theme="whitegold"] .chip-group input:checked + label { background: #0B0B0B; border-color: #0B0B0B; color: var(--gold-1); }
[data-theme="whitegold"] .range::-webkit-slider-thumb { border-color: var(--gold-3); }

/* ==========================================================================
   Midnight blue theme (active via <html data-theme="dark" data-tone="blue">)
   Builds on the dark theme with navy surfaces and an ice-blue accent.
   ========================================================================== */
[data-tone="blue"] {
  --bg: #08111F;
  --bg-soft: #0C1728;
  --bg-tint: #13213A;
  --surface: #0F1B2E;
  --surface-2: #17263F;
  --ink: #EEF2F8;
  --ink-2: #CBD5E3;
  --muted: #8E9BB0;
  --line: rgba(170, 195, 235, .10);
  --line-strong: rgba(170, 195, 235, .20);
  --accent: #A8C5F7;          /* ice blue */
  --accent-ink: #071224;
  --accent-soft: rgba(168, 197, 247, .12);
  --studio-1: #13213A;
  --studio-2: #1D3050;
}
[data-tone="blue"] ::selection { background: rgba(168, 197, 247, .3); }
[data-tone="blue"] .btn,
[data-tone="blue"] .btn--light { --btn-fg: #08111F; }
[data-tone="blue"] .btn--ghost { --btn-fg: var(--ink); }
[data-tone="blue"] .btn--accent { --btn-fg: var(--accent-ink); }
[data-tone="blue"] .brand__mark,
[data-tone="blue"] .site-footer .brand__mark,
[data-tone="blue"] .chip-group input:checked + label { color: #08111F; }
[data-tone="blue"] .site-header.is-scrolled,
[data-tone="blue"] .site-header--solid { background: rgba(8, 17, 31, .78); }
[data-tone="blue"] .action-bar { background: rgba(15, 27, 46, .9); }
[data-tone="blue"] .site-footer { background: #050C17; }
[data-tone="blue"] .hero::before {
  background:
    radial-gradient(55% 55% at 82% 18%, rgba(110, 150, 230, .16) 0%, transparent 70%),
    linear-gradient(180deg, #08111F 0%, #0B1526 100%);
}
[data-tone="blue"] .hero__title .accent { color: #6F809C; }
[data-tone="blue"] .hero__photo { background: radial-gradient(120% 80% at 50% 100%, #24395C 0%, #12203A 50%, #0B1526 100%); }
[data-tone="blue"] .hero__photo::after { background: linear-gradient(90deg, transparent, rgba(168,197,247,.4), transparent); }
[data-tone="blue"] .hero__chip { background: rgba(15, 27, 46, .82); }
[data-tone="blue"] .page-hero { background: linear-gradient(180deg, #08111F, #0C1728); }
[data-tone="blue"] .marquee__track span { color: #3E4C64; }
[data-tone="blue"] .car-card:hover { border-color: rgba(168, 197, 247, .35); }
[data-tone="blue"] .car-card__media,
[data-tone="blue"] .vehicle__stage { background: radial-gradient(120% 90% at 50% 100%, #24395C 0%, #142340 55%, #0E1A2E 100%); }
[data-tone="blue"] .badge { background: rgba(8, 17, 31, .7); }
[data-tone="blue"] .trade-band { background: linear-gradient(135deg, #142340, #0C1728); }
[data-tone="blue"] .trade-band::before { background: radial-gradient(60% 80% at 100% 0%, rgba(168,197,247,.14), transparent 60%); }
[data-tone="blue"] .tabs { background: #0A1424; }
[data-tone="blue"] .field input,
[data-tone="blue"] .field select,
[data-tone="blue"] .field textarea,
[data-tone="blue"] .sort select { background-color: #0A1424; }
[data-tone="blue"] .field input:focus,
[data-tone="blue"] .field select:focus,
[data-tone="blue"] .field textarea:focus { box-shadow: 0 0 0 4px rgba(168,197,247,.16); }
[data-tone="blue"] .map iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.45) contrast(.95); }

/* ==========================================================================
   Photo hero: rainforest road with mist and animated rain (index.html)
   ========================================================================== */
.hero--photo { min-height: min(88vh, 840px); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 0; }
.hero--photo::before { display: none; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0E1410; }
.hero__photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
.js .hero__photo-img { transform: scale(1.1); transition: transform 3.2s var(--ease-out); }
.is-ready .hero__photo-img { transform: scale(1.02); }

/* Drifting mist through the canopy */
.hero__mist {
  position: absolute; inset: -10% -30%; pointer-events: none; opacity: .55; mix-blend-mode: screen;
  background:
    radial-gradient(40% 22% at 20% 30%, rgba(210, 225, 220, .35), transparent 70%),
    radial-gradient(35% 18% at 60% 18%, rgba(210, 225, 220, .3), transparent 70%),
    radial-gradient(45% 20% at 85% 45%, rgba(210, 225, 220, .22), transparent 70%);
  animation: mist 38s linear infinite alternate;
}
@keyframes mist { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.hero__rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Readability: dark veil on the left and top, clear on the right so the car shows */
.hero__bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 9, 7, .82) 0%, rgba(6, 9, 7, .62) 34%, rgba(6, 9, 7, .18) 58%, rgba(6, 9, 7, 0) 72%),
    linear-gradient(180deg, rgba(6, 9, 7, .55) 0%, rgba(6, 9, 7, 0) 22%, rgba(6, 9, 7, 0) 78%, rgba(6, 9, 7, .35) 100%);
}

/* Hero text on the photo */
.hero__content { max-width: 620px; }
.hero--photo .hero__title { color: #FFFFFF; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero--photo .hero__title .accent { background: linear-gradient(135deg, #F3E1B4 0%, #E0C285 45%, #C9A15A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero--photo .hero__lead { color: rgba(255, 255, 255, .86); }
.hero--photo .btn--ghost { --btn-fg: #FFFFFF; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero--photo .btn--ghost:hover { background: rgba(255, 255, 255, .16); }

/* Header sits light over the photo until the page scrolls */
.has-photo-hero .site-header:not(.is-scrolled) .brand__name strong,
.has-photo-hero .site-header:not(.is-scrolled) .nav a:not(.btn),
.has-photo-hero .site-header:not(.is-scrolled) .header-phone { color: #FFFFFF; }
.has-photo-hero .site-header:not(.is-scrolled) .brand__name span { color: rgba(255, 255, 255, .7); }
.has-photo-hero .site-header:not(.is-scrolled) .nav a:not(.btn):hover,
.has-photo-hero .site-header:not(.is-scrolled) .header-phone:hover { background: rgba(255, 255, 255, .12); }
.has-photo-hero .site-header:not(.is-scrolled) .header-actions .btn { --btn-bg: #FFFFFF; --btn-fg: #0B0B0B; }
.has-photo-hero .site-header:not(.is-scrolled) .menu-toggle { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #FFFFFF; }

@media (max-width: 760px) {
  /* Phones: header on a dark band, then the full-width photo (3:2) so the whole car shows */
  .hero--photo { min-height: calc(76px + 66.7vw); }
  /* Show the photo full width at its own 3:2 shape so the whole car fits, fading into the dark top behind the text */
  .hero__photo-img { top: auto; bottom: 0; height: auto; aspect-ratio: 3 / 2; object-position: 50% 50%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 32%); mask-image: linear-gradient(180deg, transparent 0%, #000 32%); }
  .hero__bg::after { background: linear-gradient(180deg, rgba(6, 9, 7, .78) 0%, rgba(6, 9, 7, .7) 45%, rgba(6, 9, 7, .15) 68%, rgba(6, 9, 7, 0) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__photo-img { transform: none !important; }
  .hero__mist { animation: none; }
  .hero__rain { display: none; }
}
/* Sun shower: warm glow and light shafts through the palms */
.hero__sun {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(32% 40% at 88% 2%, rgba(255, 226, 165, .75) 0%, rgba(255, 200, 120, .26) 45%, transparent 75%),
    radial-gradient(65% 65% at 80% 10%, rgba(255, 190, 110, .2) 0%, transparent 70%);
  animation: sunPulse 9s ease-in-out infinite alternate;
}
.hero__rays {
  position: absolute; inset: -20% -10% 0 0; pointer-events: none; mix-blend-mode: screen; opacity: .75;
  transform-origin: 88% 0%;
  background: repeating-conic-gradient(from 196deg at 88% 0%,
    rgba(255, 228, 175, 0) 0deg, rgba(255, 228, 175, .32) 1.8deg, rgba(255, 228, 175, 0) 3.8deg,
    rgba(255, 228, 175, 0) 6deg, rgba(255, 228, 175, .2) 7.4deg, rgba(255, 228, 175, 0) 9.5deg);
  -webkit-mask-image: radial-gradient(75% 85% at 88% 0%, #000 0%, rgba(0,0,0,.6) 45%, transparent 80%);
          mask-image: radial-gradient(75% 85% at 88% 0%, #000 0%, rgba(0,0,0,.6) 45%, transparent 80%);
  animation: raySway 14s ease-in-out infinite alternate;
}
@keyframes sunPulse { from { opacity: .8; } to { opacity: 1; } }
@keyframes raySway { from { transform: rotate(-2.5deg); opacity: .75; } to { transform: rotate(2.5deg); opacity: 1; } }
.js .hero__sun, .js .hero__rays { opacity: 0; transition: opacity 2.4s var(--ease-out) .6s; }
.is-ready .hero__sun { opacity: 1; }
.is-ready .hero__rays { opacity: .75; }
@media (max-width: 760px) {
  .hero__sun { background: radial-gradient(55% 30% at 90% 0%, rgba(255, 222, 160, .5) 0%, rgba(255, 200, 120, .15) 50%, transparent 80%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__sun, .hero__rays { animation: none; }
}

/* Logo image (assets/img/logo.svg) replaces the plain GC square in every theme */
.brand .brand__mark.brand__mark--logo { background: none; box-shadow: none; overflow: hidden; }
.brand__mark--logo img { display: block; width: 100%; height: 100%; }
