/* ==================================================================
   Luxury Drive — styles
   Palette: charcoal + champagne gold on warm ivory
================================================================== */
:root {
  --ink: #141311;
  --ink-2: #1D1B18;
  --ink-3: #2A2723;
  --paper: #F8F6F1;
  --paper-2: #EFEADF;
  --card: #FFFFFF;
  --line: #E4DDCF;
  --text: #1A1916;
  --muted: #6B655A;
  --gold: #C8A96A;
  --gold-2: #D9BE85;
  --gold-deep: #8C6D33;
  --gold-light: #E3C88F;
  --gold-pale: #EED9AE;
  --mint: #2F9E6E;
  --danger: #E11D48;
  --grad: linear-gradient(135deg, #C8A96A 0%, #E3C88F 100%);
  --grad-deep: linear-gradient(135deg, #141311 0%, #2E2922 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 19, 17, .05), 0 8px 24px rgba(20, 19, 17, .07);
  --shadow-hover: 0 2px 6px rgba(20, 19, 17, .06), 0 24px 48px rgba(140, 109, 51, .18);
  --shadow-lg: 0 24px 70px rgba(20, 19, 17, .3);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--ink); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.narrow { max-width: 820px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.modal .grad-text { background: none; color: var(--gold-deep); }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 0;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-accent { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(184, 145, 74, .3); }
.btn-accent::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  opacity: 0; transition: opacity .3s;
}
.btn-accent:hover { box-shadow: 0 12px 28px rgba(184, 145, 74, .42); }
.btn-accent:hover::before { opacity: 1; }
/* shine sweep */
.btn-accent::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn-accent:hover::after { left: 130%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--gold-deep); box-shadow: 0 10px 24px rgba(140, 109, 51, .3); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-white { background: #fff; color: var(--ink); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--gold-deep); text-decoration: underline; font-weight: 600; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 19, 17, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(20, 19, 17, .95); box-shadow: 0 10px 30px rgba(20, 19, 17, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; transition: height .3s var(--ease); }
.site-header.scrolled .header-inner { height: 62px; }
/* Wordmark: "LUXURY" light + "DRIVE" bold, with a short gold lane line */
.logo { display: inline-grid; justify-items: center; gap: 6px; text-decoration: none; color: #fff; }
.logo-word { font-family: "Jost", var(--font-display); font-size: 1.4rem; line-height: 1; letter-spacing: .1em; white-space: nowrap; }
.lw-thin { font-weight: 300; }
.lw-bold { font-weight: 600; margin-left: .32em; }
.logo-bar { width: 24px; height: 2.5px; border-radius: 2px; background: var(--gold); transition: width .45s var(--ease); }
.logo:hover .logo-bar { width: 100%; }
.logo-footer .logo-word { font-size: 1.6rem; }
.logo-tag { font: 400 .62rem/1 "Jost", var(--font-body); letter-spacing: .5em; margin-right: -.5em; color: rgba(255, 255, 255, .55); margin-top: 4px; }
@media (max-width: 380px) { .logo-word { font-size: 1.2rem; } }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  position: relative; color: rgba(255, 255, 255, .75); text-decoration: none;
  font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.main-nav a.active { color: #fff; }
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; border-radius: 3px;
  background: var(--gold-light); transform: translateX(-50%) scaleX(0); transition: transform .3s var(--ease);
}
.main-nav a.active::after { transform: translateX(-50%) scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; width: 42px; height: 42px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .08);
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path .4s var(--ease), opacity .3s;
  }
  .main-nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 1.05rem; }
  .main-nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero-bg {
  position: absolute; inset: -6% 0 0;
  background-size: cover; background-position: center 60%;
  animation: kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 85% 20%, rgba(214, 182, 120, .25), transparent 60%),
    linear-gradient(180deg, rgba(20, 19, 17, .55) 0%, rgba(20, 19, 17, .35) 40%, rgba(20, 19, 17, .95) 100%),
    linear-gradient(90deg, rgba(20, 19, 17, .85) 0%, rgba(20, 19, 17, 0) 70%);
}
/* soft floating glows */
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; }
.glow-1 { width: 380px; height: 380px; background: #C8A96A; left: -120px; bottom: -120px; animation: float 14s ease-in-out infinite; }
.glow-2 { width: 300px; height: 300px; background: #E3C88F; right: 10%; top: 8%; opacity: .25; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, -30px) scale(1.1); } }

.hero-inner { position: relative; padding: 96px 16px 64px; display: grid; gap: 40px; width: 100%; }
@media (min-width: 768px) { .hero-inner { padding: 120px 32px 80px; } }
.hero-copy { max-width: 700px; }
.hero h1 { font-size: clamp(2.3rem, 5.8vw, 4.2rem); font-weight: 800; margin-bottom: .35em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; animation: rise 1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { transform: translateY(110%); opacity: 0; } }
.fade-up { animation: fadeUp .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }
.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .82); max-width: 560px; }

.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%); transition: opacity .5s, transform .6s var(--ease); }
.rotator > span.on { opacity: 1; transform: none; }
.rotator > span.off { opacity: 0; transform: translateY(-40%); }

.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: .45em .95em; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .85rem; color: rgba(255, 255, 255, .9); backdrop-filter: blur(6px);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em;
  font-size: .75rem; font-weight: 700; color: var(--gold-light); margin-bottom: .9em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow.dark { color: var(--gold-deep); }

.search-card {
  background: rgba(255, 255, 255, .97); color: var(--text);
  border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 8px 8px 16px; max-width: 980px;
  border: 1px solid rgba(255, 255, 255, .6);
}
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 4px; margin: 4px 4px 10px; background: var(--paper-2); border-radius: 999px; }
.tab {
  position: relative; z-index: 1; padding: .6em 1.3em; border-radius: 999px; border: 0;
  background: transparent; color: var(--muted); font-weight: 600; transition: color .3s;
}
.tab.is-active { color: #fff; }
.tab-ind {
  position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--ink);
  transition: transform .45s var(--ease), width .45s var(--ease);
}
.search-form { display: grid; gap: 12px; padding: 0 8px; grid-template-columns: 1fr; animation: fadeUp .5s var(--ease); }
@media (min-width: 720px) { .search-form { grid-template-columns: repeat(3, 1fr) auto; align-items: end; } }
.search-form .btn { height: 50px; }

label { display: grid; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
input, select, textarea {
  font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--text);
  width: 100%; height: 50px; padding: 0 14px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
input:hover, select:hover { border-color: #CFC6B4; }
input:focus, select:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(184, 145, 74, .14); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 14px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 720px), (max-height: 760px) { .scroll-cue { display: none; } }

/* ---------- Trust strip ---------- */
.trust { position: relative; background: var(--ink-2); color: #fff; overflow: hidden; }
.trust::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(214, 182, 120, .08), transparent); animation: sweep 6s linear infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.trust-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-grid div { display: grid; }
.trust-grid strong { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.trust-grid span { font-size: .9rem; color: rgba(255, 255, 255, .65); }

/* ---------- Brand marquee ---------- */
.brands { background: var(--paper); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.brands:hover .marquee { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase;
  color: #BDB4A3; padding: 0 36px; transition: color .2s; white-space: nowrap;
}
.marquee span:hover { color: var(--gold-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 104px 0; } }
.section-dark { background: var(--ink); color: #fff; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -250px; top: -250px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 145, 74, .35), transparent 65%); pointer-events: none;
}
.section-dark > .container { position: relative; }
.section-soft { background: var(--paper-2); }
.section-accent { background: var(--grad-deep); color: #fff; overflow: hidden; }
.section-accent::before, .section-accent::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.section-accent::before { width: 520px; height: 520px; left: -160px; bottom: -220px; background: radial-gradient(circle, rgba(214, 182, 120, .45), transparent 65%); animation: float 16s ease-in-out infinite; }
.section-accent::after { width: 400px; height: 400px; right: -100px; top: -140px; background: radial-gradient(circle, rgba(235, 214, 168, .3), transparent 65%); animation: float 20s ease-in-out infinite reverse; }
.section-accent > .container { position: relative; z-index: 1; }
.section-accent .eyebrow { color: var(--gold-pale); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .sub { margin-left: auto; margin-right: auto; }
.sub { color: rgba(255, 255, 255, .72); max-width: 520px; margin: 0; }
.sub.dark { color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.toolbar select { width: auto; height: 44px; background: var(--card); }

.chips { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: .5em 1.1em; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--text); font-weight: 500; font-size: .92rem;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-1px); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips-dark { margin-bottom: 28px; }
.chips-dark .chip { background: rgba(255, 255, 255, .03); color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .16); }
.chips-dark .chip:hover { border-color: var(--gold-light); color: #fff; }
.chips-dark .chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(184, 145, 74, .4); }

.budget { display: grid; gap: 6px; flex: 1 1 220px; max-width: 320px; }
@media (max-width: 520px) { .budget { max-width: none; } }
.budget-top { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.budget-top b { color: var(--gold-deep); font-family: var(--font-display); text-transform: none; letter-spacing: 0; font-size: .95rem; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 6px; padding: 0; border: 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--gold) 0 var(--p, 100%), var(--line) var(--p, 100%) 100%);
  box-shadow: none;
}
input[type="range"]:focus { box-shadow: none; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 3px solid var(--gold); box-shadow: 0 4px 10px rgba(184, 145, 74, .35); cursor: grab; transition: transform .2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); cursor: grab; }

.switch { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); }
.switch-opt { position: relative; z-index: 1; border: 0; background: transparent; color: rgba(255, 255, 255, .75); padding: .6em 1.25em; border-radius: 999px; font-weight: 600; transition: color .3s; }
.switch-opt.is-active { color: var(--ink); }
.switch-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: #fff; transition: transform .45s var(--ease), width .45s var(--ease); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; transition: opacity .25s, transform .25s; }
.grid.swap { opacity: 0; transform: translateY(10px); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.car-card {
  position: relative;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .5s var(--ease), box-shadow .4s var(--ease);
}
.car-card:hover { --ty: -6px; box-shadow: var(--shadow-hover); }
.car-card.tilting { transition: transform .12s linear, box-shadow .4s var(--ease); }
.car-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .25), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.car-card:hover::after { opacity: 1; }
.car-media { position: relative; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.car-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .6s; opacity: 0; }
.car-media img.loaded { opacity: 1; }
.car-media::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--paper-2) 30%, #FBF9F4 50%, var(--paper-2) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }
.car-card:hover .car-media img { transform: scale(1.07); }
.car-media::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(20, 19, 17, .35)); pointer-events: none; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--gold); color: var(--ink);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .4em .85em; border-radius: 999px; box-shadow: 0 4px 12px rgba(184, 145, 74, .35);
}
.badge.teal { color: #fff; background: rgba(20, 19, 17, .7); backdrop-filter: blur(6px); box-shadow: none; }
.fav {
  position: absolute; top: 10px; right: 10px; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center;
  transition: transform .25s var(--ease);
}
.fav:hover { transform: scale(1.1); }
.fav svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; transition: fill .2s, stroke .2s; }
.fav.is-on svg { fill: var(--danger); stroke: var(--danger); }
.fav.pop { animation: heart .5s var(--ease); }
@keyframes heart { 30% { transform: scale(1.35); } 60% { transform: scale(.9); } }

.car-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.car-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.car-title h3 { margin: 0; font-size: 1.12rem; }
.car-title .year { color: var(--muted); font-weight: 500; font-size: .9rem; white-space: nowrap; }
.car-grade { color: var(--muted); font-size: .9rem; margin-top: -8px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.specs li { font-size: .8rem; background: var(--paper); border: 1px solid var(--line); padding: .25em .7em; border-radius: 999px; color: var(--text); }
.car-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.price small { font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--muted); display: block; }
.loc { display: inline-flex; gap: 4px; align-items: center; font-size: .85rem; color: var(--muted); }
.loc svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

.section-dark .car-card { background: rgba(255, 255, 255, .04); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.section-dark .car-card:hover { border-color: rgba(214, 182, 120, .4); box-shadow: 0 24px 50px rgba(0, 0, 0, .35), 0 0 0 1px rgba(214, 182, 120, .2); }
.section-dark .car-card::after { background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(214, 182, 120, .12), transparent 40%); }
.section-dark .car-media, .section-dark .car-media::before { background-color: var(--ink-3); }
.section-dark .car-media::before { background-image: linear-gradient(100deg, var(--ink-3) 30%, #3A352E 50%, var(--ink-3) 70%); }
.section-dark .car-grade, .section-dark .price small, .section-dark .car-title .year { color: rgba(255, 255, 255, .6); }
.section-dark .specs li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); }
.section-dark .car-foot { border-top-color: rgba(255, 255, 255, .1); }
.section-dark .price { color: var(--gold-light); }
.na { font-size: .9rem; color: rgba(255, 255, 255, .55); }
.note { margin-top: 24px; font-size: .9rem; color: rgba(255, 255, 255, .6); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Steps ---------- */
.steps { position: relative; list-style: none; padding: 0; margin: 0 0 48px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before {
    content: ""; position: absolute; top: 50px; left: 16%; right: 16%; height: 2px; z-index: 0;
    background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 20px);
    background-size: 20px 2px; animation: dash 1s linear infinite; opacity: .4;
  }
}
@keyframes dash { to { background-position: 20px 0; } }
.steps li { position: relative; z-index: 1; background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.steps li:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.step-no {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px;
  background: var(--grad); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(184, 145, 74, .3);
}
.steps p { color: var(--muted); margin: 0; }
.requirements { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; }
.requirements::before { content: ""; position: absolute; width: 400px; height: 400px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(214, 182, 120, .3), transparent 65%); }
@media (min-width: 768px) { .requirements { padding: 36px 40px; } }
.requirements .ticks li { color: rgba(255, 255, 255, .85); }

.ticks { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081430' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Sell ---------- */
.sell-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .sell-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.sell-copy p { font-size: 1.08rem; max-width: 480px; color: rgba(255, 255, 255, .82); }
.card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 24px; }
@media (min-width: 768px) { .card { padding: 32px; } }
.form { display: grid; gap: 16px; color: var(--text); }
.form h3 { margin-bottom: 4px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Features ---------- */
.features { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature svg {
  width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--paper-2);
  fill: none; stroke: var(--gold-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px;
  transition: background .3s, stroke .3s, transform .5s var(--ease);
}
.feature:hover svg { background: var(--gold); stroke: var(--ink); transform: rotate(-8deg) scale(1.05); }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: var(--radius-sm); border: 1px solid var(--line); padding: 0 20px; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: rgba(184, 145, 74, .35); box-shadow: 0 10px 30px rgba(184, 145, 74, .08); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; transition: color .2s;
}
.faq summary:hover { color: var(--gold-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  display: grid; place-items: center; border-radius: 50%; background: var(--paper-2);
  font-size: 1.3rem; font-weight: 400; color: var(--gold-deep); transition: transform .4s var(--ease), background .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background: var(--gold); color: var(--ink); }
.faq-body { overflow: hidden; transition: height .4s var(--ease); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-list span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); padding-top: 2px; }
.contact-list a { font-weight: 600; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.contact-list a:hover { color: var(--gold-deep); background-size: 100% 2px; }
.map-card { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--paper-2); border: 6px solid #fff; }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 64px 0 24px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer-grid > div:first-child { grid-column: auto; } }
.footer-grid p { margin-top: 16px; max-width: 280px; }
.footer-grid h4 { color: #fff; font-size: .9rem; margin-bottom: 14px; }
.footer-grid a:not(.logo) { display: block; width: fit-content; text-decoration: none; padding: 4px 0; font-size: .95rem; transition: color .2s, transform .3s var(--ease); }
.footer-grid a:not(.logo):hover { color: var(--gold-light); transform: translateX(4px); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.credits { opacity: .6; }

/* ---------- Floating buttons ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .3s var(--ease);
  animation: waIn .8s var(--ease) 1.2s both;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waRing 2.4s ease-out infinite; }
@keyframes waRing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@keyframes waIn { from { transform: scale(0) rotate(-90deg); } }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.to-top {
  position: fixed; right: 26px; bottom: 90px; z-index: 40; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--ink); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, calc(100% + 40px));
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 500; font-size: .92rem;
  box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; transition: transform .45s var(--ease);
  max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); flex: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 19, 17, .7); backdrop-filter: blur(6px); animation: fade .3s ease; }
.modal-panel {
  position: relative; width: 100%; max-width: 880px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow-lg); animation: pop .45s var(--ease);
}
.modal.closing .modal-backdrop { animation: fade .25s ease reverse forwards; }
.modal.closing .modal-panel { animation: pop .25s ease reverse forwards; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .95); font-size: 1.6rem; line-height: 1; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .3s var(--ease);
}
.modal-close:hover { transform: rotate(90deg); }
.modal-grid { display: grid; }
@media (min-width: 760px) { .modal-grid { grid-template-columns: 1.1fr 1fr; } }
.modal-media { position: relative; background: var(--paper-2); min-height: 220px; overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; animation: zoomOut 1.2s var(--ease); }
@keyframes zoomOut { from { transform: scale(1.15); } }
@media (min-width: 760px) { .modal-media img { aspect-ratio: auto; position: absolute; inset: 0; } }
.modal-content { padding: 24px; display: grid; gap: 16px; align-content: start; }
.modal-content > * { animation: fadeUp .6s var(--ease) both; }
.modal-content > *:nth-child(2) { animation-delay: .05s; }
.modal-content > *:nth-child(3) { animation-delay: .1s; }
.modal-content > *:nth-child(4) { animation-delay: .15s; }
.modal-content > *:nth-child(5) { animation-delay: .2s; }
.modal-content > *:nth-child(n+6) { animation-delay: .25s; }
@media (min-width: 760px) { .modal-content { padding: 32px; } }
.modal-content h3 { font-size: 1.5rem; margin: 0; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); margin: 0; }
.spec-table div { background: var(--card); padding: 10px 12px; transition: background .2s; }
.spec-table div:hover { background: var(--paper); }
.spec-table dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.spec-table dd { margin: 0; font-weight: 600; }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 6px; font-size: .92rem; }
.quote-row { display: flex; justify-content: space-between; gap: 12px; }
.quote-row.total { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--gold-deep); padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 4px; }
.quote-row .save { color: var(--mint); font-weight: 600; }
.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 160px; }
.mini-switch { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); width: fit-content; }
.mini-switch button { position: relative; z-index: 1; border: 0; background: transparent; padding: .45em 1.05em; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: color .3s; }
.mini-switch button.is-active { color: #fff; }
.mini-switch button:disabled { opacity: .4; cursor: not-allowed; }
.mini-switch .switch-ind { background: var(--ink); }
.small { font-size: .85rem; color: var(--muted); margin: 0; }
.success { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 24px; }
.success svg { width: 72px; height: 72px; }
.success circle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s var(--ease) forwards; }
.success path { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
.car-card.reveal { transform: perspective(900px) translateY(36px) scale(.97); }
.car-card.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); }
.car-card.reveal.in.settled { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .car-card.reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
  .car-media img { opacity: 1; }
}

/* ==================================================================
   WordPress additions
================================================================== */

/* Keep the sticky header below the WordPress admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.badge-right { left: auto; right: 12px; }
.empty-dark { color: rgba(255, 255, 255, .7); }
.empty a.link { color: var(--gold-deep); }

/* Photo thumbnails inside popups */
.modal-media { display: flex; flex-direction: column; }
.modal-media > img[data-gallery-main] { flex: 1; min-height: 0; }
@media (min-width: 760px) { .modal-media > img[data-gallery-main] { position: static; inset: auto; } }
.modal-thumbs, .car-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px; background: var(--paper-2); }
.modal-thumbs button, .car-gallery-thumbs button {
  flex: 0 0 auto; width: 76px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: 8px;
  overflow: hidden; background: none; opacity: .7; transition: opacity .2s, border-color .2s;
}
.modal-thumbs button img, .car-gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs button:hover, .car-gallery-thumbs button:hover { opacity: 1; }
.modal-thumbs button.is-active, .car-gallery-thumbs button.is-active { opacity: 1; border-color: var(--gold); }

/* Regular pages (About, Terms…) */
.page-hero { background: var(--ink); color: #fff; padding-block: 72px 48px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; text-wrap: balance; }
.page-body { padding-top: 48px; }
.prose { font-size: 1.05rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; }
.prose a { color: var(--gold-deep); }
.prose img { border-radius: var(--radius-sm); height: auto; }
.post-summary + .post-summary { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-summary h2 a { text-decoration: none; }

/* A car's own page */
.car-page { padding-block: 32px 80px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; text-decoration: none; font-weight: 600; color: var(--muted); }
.back-link:hover { color: var(--gold-deep); }
.back-link svg { width: 18px; height: 18px; }
.car-page-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .car-page-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; } }
.car-gallery { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); min-width: 0; }
.car-gallery-main { position: relative; aspect-ratio: 16 / 10; }
.car-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.car-gallery-main a { display: block; height: 100%; cursor: zoom-in; }
.car-info { display: grid; gap: 18px; align-content: start; min-width: 0; }
.car-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; text-wrap: balance; }
.car-info .eyebrow { margin-bottom: 0; }
.price-lg { font-size: 2rem; }
.car-rates { display: flex; flex-wrap: wrap; gap: 24px; }
.sold-note { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0; }
.spec-table div:last-child:nth-child(odd) { grid-column: 1 / -1; }
