/* ============================================================
   MAZZ MOTORS - used car dealership, Surbiton
   Full single-page site. White drench, warm terracotta accent
   lifted from the logo, warm charcoal ink. Big, simple, premium,
   with CCW-style scroll choreography. One dark interlude + dark
   footer for rhythm.
   Type: Sora (display) + Inter (UI/body).
   ============================================================ */

:root {
  --paper:      #fbf8f5;   /* warm white */
  --paper-dim:  #f4eee8;   /* warmer alt sections */
  --card:       #ffffff;

  --ink:        #241d18;   /* warm near-black */
  --ink-soft:   #6f655d;
  --ink-faint:  #b3a99f;

  --accent:        #c25a3c;  /* terracotta */
  --accent-deep:   #a4492e;  /* AA text on white */
  --accent-bright: #db7250;
  --accent-soft:   #f5e6df;

  --line:      #eae2d9;
  --line-soft: #f1ebe4;

  --dark:      #1a1411;    /* dark interlude / footer */
  --dark-2:    #221a15;
  --dark-soft: #b8aaa0;
  --dark-line: rgba(255, 255, 255, 0.10);

  --font:  "Inter", system-ui, sans-serif;
  --disp:  "Sora", "Inter", system-ui, sans-serif;
  --mono:  ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, monospace;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.1rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============ Section scaffolding ============ */
.section-title {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 0.98; letter-spacing: -0.025em;
  overflow: hidden;
}
.section-title-inner { display: inline-block; }
.kicker {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent-deep);
}

/* ============ Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper);
  display: grid; place-items: center;
}
.preloader-inner { text-align: center; width: min(440px, 82vw); }
.preloader-mark {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.preloader-rule { height: 2px; flex: 1; background: var(--line); }
.preloader-word {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(2.2rem, 6.5vw, 3.2rem);
  letter-spacing: -0.02em; line-height: 1; white-space: nowrap;
}
.preloader-word b { color: var(--accent); font-weight: 800; }
.preloader-word i { color: var(--ink); font-weight: 600; font-style: italic; }
.preloader-sub {
  margin-top: 0.7rem;
  font-size: 0.66rem; letter-spacing: 0.34em; font-weight: 600;
  color: var(--ink-soft); text-transform: uppercase;
}
.preloader-track {
  margin: 2.1rem auto 0; height: 2px; width: 100%;
  background: var(--line); overflow: hidden;
}
.preloader-bar { height: 100%; width: 0%; background: var(--accent); }
.preloader-pct {
  margin-top: 0.8rem;
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft);
}

/* ============ Cursor ============ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 150;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 7px; height: 7px; background: var(--accent); }
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(194, 90, 60, 0.5);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.cursor-ring.is-active {
  width: 56px; height: 56px;
  border-color: var(--accent);
  background: rgba(194, 90, 60, 0.07);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ Header ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding: 1.05rem var(--pad);
  transition: background-color 0.4s ease, box-shadow 0.4s ease,
              padding 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.is-scrolled {
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: blur(16px);
  padding-block: 0.65rem;
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: inline-flex; align-items: center; text-decoration: none;
  transition: transform 0.3s var(--ease-out);
}
.brand:hover { transform: translateY(-1px); }
.brand-logo { height: clamp(28px, 3vw, 38px); width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 1.9rem); }
.site-nav a {
  text-decoration: none; font-weight: 500; font-size: 0.9rem;
  color: var(--ink-soft);
  position: relative; padding-block: 0.25rem;
  transition: color 0.3s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
/* Sell Your Car - standout CTA pill */
.site-nav a.nav-sell {
  color: var(--accent-deep); font-weight: 700;
  padding: 0.5rem 1.05rem; border: 1.5px solid var(--accent);
  border-radius: 999px; line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.site-nav a.nav-sell::after { display: none; }
.site-nav a.nav-sell:hover { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgba(194,90,60,0.8); }
.site-nav a.nav-sell.is-current { background: var(--accent); color: #fff; }
.mobile-menu a.nav-sell { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; font-weight: 600; font-size: 0.88rem;
  background: var(--ink); color: var(--paper);
  padding: 0.65rem 1.25rem; border-radius: 999px;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent); color: #fff; }
/* Sell Your Car - outlined CTA sitting next to the phone button */
.header-sell { background: transparent; color: var(--accent-deep); box-shadow: inset 0 0 0 1.5px var(--accent); }
.header-sell:hover { background: var(--accent); color: #fff; }
.header-sell.is-current { background: var(--accent); color: #fff; }
@media (max-width: 860px) { .header-sell { display: none; } }
.header-cta svg { width: 15px; height: 15px; }
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column; justify-content: center; gap: 7px;
}
.nav-toggle span {
  display: block; height: 2px; width: 26px; background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
  margin-inline: auto;
}
.nav-toggle.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: grid; gap: 1.2rem; text-align: center; }
.mobile-menu a {
  text-decoration: none; font-family: var(--disp); font-weight: 700;
  font-size: clamp(1.9rem, 8vw, 2.8rem); line-height: 1;
  letter-spacing: -0.02em;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-call { color: var(--accent) !important; font-size: 1.3rem !important; font-weight: 600 !important; }

/* ============ Hero (scroll-scrub showroom video) ============ */
.hero { position: relative; }
.hero-pin {
  position: relative; min-height: 100svh; overflow: hidden;
  padding: calc(5.5rem + 1.5vw) var(--pad) clamp(2rem, 5vh, 3.5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 64% 54%;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(100deg, rgba(251,248,245,0.97) 0%, rgba(251,248,245,0.86) 24%, rgba(251,248,245,0.42) 48%, rgba(251,248,245,0.05) 68%, rgba(251,248,245,0) 80%),
    linear-gradient(180deg, rgba(251,248,245,0.55) 0%, transparent 16%, transparent 66%, rgba(251,248,245,0.94) 100%);
}
.hero-inner { position: relative; z-index: 3; max-width: 1320px; width: 100%; margin-inline: auto; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.6rem;
  font-size: 0.8rem; font-weight: 500; color: var(--ink-soft);
  margin-bottom: clamp(1.4rem, 3.5vh, 2.2rem);
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta-item + .hero-meta-item { position: relative; }
.hero-meta-item + .hero-meta-item::before {
  content: ""; position: absolute; left: -0.85rem; top: 50%;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-faint); transform: translateY(-50%);
}
.hero-meta .stars { color: var(--accent); letter-spacing: 0.06em; }
.hero-meta .meta-strong { color: var(--ink); font-weight: 700; }

.hero-title {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(2.9rem, 9vw, 8rem);
  line-height: 0.95; letter-spacing: -0.03em;
}
.h-line { display: block; overflow: hidden; position: relative; }
.h-line-inner { display: inline-block; will-change: transform; }
.hero-accent {
  position: relative; color: var(--accent);
  background: linear-gradient(92deg, var(--accent-deep), var(--accent-bright));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-accent::after {
  content: ""; position: absolute;
  left: -0.01em; right: -0.01em; bottom: 0.05em; height: 0.06em;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease-out);
}
.hero-accent.is-underlined::after { transform: scaleX(1); }

.hero-sub {
  margin-top: clamp(1.2rem, 3vh, 1.9rem);
  max-width: 52ch;
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.55; color: var(--ink-soft);
}
.hero-sub b { color: var(--ink); font-weight: 600; }

/* search bar */
.hero-search {
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px; padding: 0.5rem;
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0.4rem;
  max-width: 980px;
  box-shadow: 0 30px 60px -34px rgba(36, 29, 24, 0.35);
}
.search-field {
  position: relative; display: flex; flex-direction: column;
  padding: 0.7rem 1rem 0.65rem; border-radius: 14px;
  transition: background-color 0.3s ease;
}
.search-field:hover { background: var(--paper-dim); }
.search-field + .search-field::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--line);
}
.search-field label {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.15rem;
}
.search-select-wrap { position: relative; display: flex; align-items: center; }
.search-field select {
  appearance: none; -webkit-appearance: none; width: 100%;
  background: transparent; border: 0; outline: none;
  font-size: 1.02rem; font-weight: 600; color: var(--ink);
  cursor: pointer; padding-right: 1.4rem;
}
.search-chevron {
  position: absolute; right: 0; pointer-events: none;
  width: 16px; height: 16px; color: var(--ink-faint);
  transition: transform 0.3s var(--ease-out), color 0.3s ease;
}
.search-field:hover .search-chevron, .search-field:focus-within .search-chevron { color: var(--accent); }
.search-field:focus-within .search-chevron { transform: rotate(180deg); }
.search-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--accent); color: #fff; border: 0; border-radius: 14px;
  cursor: pointer; font-family: var(--disp); font-weight: 700; font-size: 1rem;
  padding: 0 1.8rem; min-height: 62px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 28px -12px rgba(194, 90, 60, 0.7); will-change: transform;
}
.search-submit:hover { background: var(--accent-deep); }
.search-submit svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.search-submit:hover svg { transform: translateX(4px); }
.search-note {
  margin-top: 0.85rem; font-size: 0.85rem; color: var(--ink-soft);
  min-height: 1.2rem; opacity: 0; transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.search-note.is-on { opacity: 1; transform: none; }
.search-note a { color: var(--accent-deep); font-weight: 600; }

.hero-trust {
  margin-top: clamp(1.3rem, 3.5vh, 2rem);
  display: flex; flex-wrap: wrap; gap: 0.6rem 0.7rem;
}
.trust-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 500; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line);
  padding: 0.5rem 0.95rem; border-radius: 999px;
}
.trust-chip svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.3em; color: var(--ink-faint);
  z-index: 4;
}
.hero-scroll-line { width: 1.5px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  animation: scrollPulse 1.8s var(--ease-out) infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); }
}

/* ============ Statement ============ */
.statement { padding: clamp(4.5rem, 13vh, 9rem) var(--pad); max-width: 1500px; }
.statement .kicker { margin-bottom: 2rem; display: block; }
.statement-text {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 1.18; letter-spacing: -0.02em; max-width: 26ch;
}
.statement-text .w { color: var(--ink-faint); transition: color 0.1s linear; }
.statement-text .w.is-on { color: var(--ink); }
.statement-row {
  margin-top: clamp(3rem, 7vh, 5rem);
  display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 6rem);
}
.statement-fact { display: grid; gap: 0.25rem; }
.statement-num {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.statement-fact:first-child .statement-num { color: var(--accent); }
.statement-label { font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); }

/* ============ Stock ============ */
.stock { background: var(--paper-dim); padding: clamp(4rem, 10vh, 7rem) var(--pad); }
.stock-head {
  max-width: 1320px; margin: 0 auto clamp(2.2rem, 5vh, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem 3rem;
}
.stock-head .kicker { display: block; margin-bottom: 1rem; }
.stock-intro { color: var(--ink-soft); max-width: 32ch; font-weight: 500; }
.stock-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem);
}
.car-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s ease;
  text-decoration: none; color: inherit;
}
.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -30px rgba(36, 29, 24, 0.4);
  border-color: var(--accent);
}
.car-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, #efe7df 0%, #e4d8cd 100%);
  display: grid; place-items: center;
}
.car-media[data-hue="1"] { background: linear-gradient(135deg, #eee6f0 0%, #ded3e2 100%); }
.car-media[data-hue="2"] { background: linear-gradient(135deg, #e6ede9 0%, #d2ddd6 100%); }
.car-media[data-hue="3"] { background: linear-gradient(135deg, #f0e8e2 0%, #e6d3c7 100%); }
.car-media[data-hue="4"] { background: linear-gradient(135deg, #e7ebf0 0%, #d2dae4 100%); }
.car-media[data-hue="5"] { background: linear-gradient(135deg, #f1e9e6 0%, #e3d2cf 100%); }
.car-ghost {
  width: 78%; color: var(--ink);
  opacity: 0.12; transition: transform 0.6s var(--ease-out), opacity 0.4s ease;
}
.car-ghost svg { width: 100%; height: auto; }
.car-card:hover .car-ghost { transform: translateX(8px) scale(1.03); opacity: 0.18; }
.car-media-watermark {
  position: absolute; top: 0.9rem; left: 1rem;
  font-family: var(--disp); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.06em; color: var(--ink); opacity: 0.32;
}
.car-media-watermark b { color: var(--accent); opacity: 0.9; }
.car-tag {
  position: absolute; top: 0.85rem; right: 0.9rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 0.3rem 0.6rem; border-radius: 999px;
}
.car-tag[data-kind="reserved"] { background: var(--ink); }
.car-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.car-year { font-size: 0.78rem; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.02em; }
.car-name {
  font-family: var(--disp); font-weight: 700; font-size: 1.18rem;
  line-height: 1.2; letter-spacing: -0.01em;
}
.car-specs {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem;
  font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.1rem;
}
.car-specs .spec { display: inline-flex; align-items: center; gap: 0.4rem; }
.car-specs .spec svg { width: 14px; height: 14px; color: var(--accent); }
.car-foot {
  margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.car-price { font-family: var(--disp); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.car-mo { font-size: 0.76rem; color: var(--ink-soft); }
.car-mo b { color: var(--ink); font-weight: 600; }
.car-go {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.84rem; font-weight: 600; color: var(--accent-deep);
}
.car-go svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease-out); }
.car-card:hover .car-go svg { transform: translateX(4px); }
.stock-foot { max-width: 1320px; margin: clamp(2.2rem, 5vh, 3.2rem) auto 0; text-align: center; }
.btn-line {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  background: var(--ink); color: var(--paper);
  padding: 0.95rem 1.8rem; border-radius: 999px;
  transition: background-color 0.3s ease, transform 0.4s var(--ease-out);
}
.btn-line:hover { background: var(--accent); }
.btn-line svg { width: 17px; height: 17px; transition: transform 0.4s var(--ease-out); }
.btn-line:hover svg { transform: translateX(4px); }

/* ============ How it works (dark interlude) ============ */
.how { background: var(--dark); color: #f2ece6; }
.how-pin {
  min-height: 100vh; position: relative;
  display: grid; align-items: center; overflow: hidden;
  padding: clamp(3rem, 8vh, 6rem) var(--pad);
}
.how-bg { position: absolute; inset: 0; z-index: 0; }
.how-fallback, .how-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.how-video { opacity: 0; transition: opacity 0.6s ease; }
.how-video.is-ready { opacity: 1; }
.how-bg-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,16,14,0.95) 0%, rgba(20,16,14,0.86) 26%, rgba(20,16,14,0.50) 58%, rgba(20,16,14,0.26) 100%),
    linear-gradient(180deg, rgba(20,16,14,0.5) 0%, transparent 24%, transparent 76%, rgba(20,16,14,0.72) 100%);
}
.how-inner { position: relative; z-index: 1; max-width: 1320px; margin-inline: auto; width: 100%; }
.how-kicker { color: var(--accent-bright); margin-bottom: clamp(1.5rem, 4vh, 2.6rem); display: block; }
.how-steps { position: relative; min-height: clamp(320px, 50vh, 480px); }
.how-step {
  position: absolute; inset: 0; opacity: 0; transform: translateY(34px);
  max-width: 820px;
}
.how-step.is-on { opacity: 1; transform: none; }
.how-step-num {
  display: block; font-family: var(--disp); font-weight: 800;
  font-size: clamp(2.6rem, 7vh, 4.5rem); line-height: 1; color: var(--accent-bright);
}
.how-step h3 {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 0.98;
  letter-spacing: -0.025em; margin-top: 0.4rem;
}
.how-step p {
  margin-top: 1.3rem; color: var(--dark-soft); max-width: 48ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5;
}
.how-progress {
  margin-top: clamp(1.8rem, 5vh, 3rem); height: 3px; width: min(460px, 80%);
  background: rgba(255, 255, 255, 0.12); overflow: hidden;
}
.how-progress-fill { display: block; height: 100%; width: 100%; background: var(--accent-bright); transform: scaleX(0); transform-origin: left; }
.how-dots { margin-top: 1.4rem; display: flex; gap: 0.6rem; }
.how-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: background-color 0.4s ease, transform 0.4s ease; }
.how-dot.is-on { background: var(--accent-bright); transform: scale(1.25); }

/* ============ Services / offers ============ */
.services { padding: clamp(4.5rem, 12vh, 8rem) var(--pad); }
.services-head { max-width: 1320px; margin: 0 auto clamp(2.5rem, 6vh, 4rem); }
.services-head .kicker { display: block; margin-bottom: 1rem; }
.services-head .section-title { max-width: 16ch; }
.services-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.service-card {
  background: var(--card); padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: background-color 0.4s ease;
}
.service-card:hover { background: var(--paper-dim); }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; margin-bottom: 0.3rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-family: var(--disp); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }
.service-card .service-num { font-family: var(--mono); font-size: 0.74rem; color: var(--accent-deep); }

/* ============ Reviews ============ */
.reviews {
  background: var(--paper-dim);
  padding: clamp(5rem, 14vh, 9rem) var(--pad);
  display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 1500px; margin-inline: auto;
}
.reviews-rating { position: sticky; top: 18vh; align-self: start; }
.reviews-score {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(4.5rem, 12vw, 9rem); line-height: 0.9;
  display: block; font-variant-numeric: tabular-nums; color: var(--accent);
}
.reviews-stars { color: var(--accent); font-size: clamp(1.2rem, 2.4vw, 1.8rem); letter-spacing: 0.16em; margin-top: 0.5rem; }
.reviews-source { margin-top: 1rem; color: var(--ink-soft); font-weight: 500; max-width: 24ch; }
.reviews-source b { color: var(--ink); font-weight: 700; }
.reviews-quotes { display: grid; gap: clamp(2.2rem, 6vh, 4rem); }
.review { max-width: 56ch; }
.review-offset { justify-self: end; }
.review p {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem); line-height: 1.32; letter-spacing: -0.015em;
}
.review cite { display: block; margin-top: 1rem; font-style: normal; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.review cite span { color: var(--accent-deep); }

/* ============ Visit ============ */
.visit { padding: clamp(4rem, 11vh, 8rem) var(--pad); }
.visit-panel {
  max-width: 1320px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  min-height: clamp(380px, 52vh, 520px);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 70px -44px rgba(36, 29, 24, 0.4);
}
.visit-info {
  background: var(--dark); color: #f2ece6;
  padding: clamp(2.2rem, 4vw, 3.6rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.visit-info .kicker { color: var(--accent-bright); margin-bottom: 1.1rem; }
.visit-addr {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: -0.02em;
}
.visit-sub { margin-top: 1rem; color: var(--dark-soft); max-width: 32ch; line-height: 1.5; }
.visit-rows { display: grid; gap: 1.1rem; }
.visit-rowblock h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 0.4rem; }
.visit-rowblock a, .visit-rowblock p { color: #f2ece6; text-decoration: none; font-weight: 500; line-height: 1.5; }
.visit-rowblock a:hover { color: var(--accent-bright); }
.visit-go {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em;
  padding: 0.9rem 1.6rem; border-radius: 999px;
  transition: background-color 0.3s ease, transform 0.4s var(--ease-out);
}
.visit-go:hover { background: var(--accent-bright); }
.visit-go svg { width: 16px; height: 16px; }
.visit-map { position: relative; min-height: 340px; }
.visit-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.2) contrast(1.04); }

/* ============ Footer (dark) ============ */
.site-footer { background: var(--dark); color: #d8cfc8; padding: clamp(3.5rem, 8vh, 5.5rem) var(--pad) 1.8rem; }
.footer-main {
  max-width: 1320px; margin-inline: auto;
  display: grid; grid-template-columns: 1.7fr 1fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}
.footer-logo { width: clamp(170px, 18vw, 220px); height: auto; margin-bottom: 1.4rem; }
.footer-tag { max-width: 36ch; color: var(--dark-soft); line-height: 1.55; }
.footer-rating { margin-top: 1.3rem; font-weight: 600; font-size: 0.9rem; color: #e8ded7; }
.footer-rating .stars { color: var(--accent-bright); letter-spacing: 0.08em; margin-right: 0.5rem; }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 1.2rem; }
.footer-col a { display: block; text-decoration: none; color: var(--dark-soft); font-weight: 500; margin: 0.55rem 0; width: fit-content; transition: color 0.25s ease; }
.footer-col a:hover { color: #fff; }
.footer-hours { margin-top: 1rem; font-size: 0.85rem; color: var(--dark-soft); }
.footer-socials { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.footer-socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--dark-line); color: var(--dark-soft); transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease; }
.footer-socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.footer-socials svg { width: 18px; height: 18px; }
.footer-bottom {
  max-width: 1320px; margin: 0 auto; padding-top: 1.5rem;
  border-top: 1px solid var(--dark-line);
  display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--dark-soft);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-bright); }

/* ============ Reveal helpers ============ */
.gs-fade { opacity: 0; transform: translateY(28px); }

/* ============ Responsive ============ */
@media (max-width: 1024px) { .site-nav { display: none; } }
@media (max-width: 980px) {
  .stock-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .reviews-rating { position: static; }
  .review-offset { justify-self: start; }
  .visit-panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .header-cta span { display: none; }
  .header-cta { padding: 0.6rem; aspect-ratio: 1; justify-content: center; }
  .nav-toggle { display: flex; }
  .hero-search { grid-template-columns: 1fr 1fr; gap: 0.3rem; }
  .search-submit { grid-column: 1 / -1; min-height: 54px; margin-top: 0.2rem; }
  .search-field + .search-field:nth-child(2)::before { display: none; }
  .hero-scroll { display: none; }
}
@media (max-width: 620px) {
  .stock-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-search { grid-template-columns: 1fr; }
  .search-field + .search-field::before { display: none; }
  .search-field { border-bottom: 1px solid var(--line-soft); border-radius: 10px; }
  .footer-main { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .gs-fade { opacity: 1; transform: none; }
  .preloader { display: none; }
  .hero-accent::after { transform: scaleX(1); }
  .how-step { position: relative; opacity: 1; transform: none; margin-bottom: 3rem; }
}

/* ============================================================
   EXPLORE PAGE
   ============================================================ */
.site-header.is-solid {
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.site-nav a.is-current { color: var(--ink); }
.site-nav a.is-current::after { transform: scaleX(1); }

.explore { padding: calc(5rem + 2vw) var(--pad) clamp(3rem, 8vh, 6rem); max-width: 1480px; margin-inline: auto; }
.explore-head { margin-bottom: clamp(1.8rem, 4vh, 3rem); }
.explore-head .kicker { display: block; margin-bottom: 0.8rem; }
.explore-title { font-family: var(--disp); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
.explore-lead { margin-top: 1rem; color: var(--ink-soft); max-width: 52ch; font-size: 1.05rem; }

.explore-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.8rem); align-items: start; }

/* filters */
.filters {
  position: sticky; top: 92px; align-self: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 1.1rem;
}
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters-head h2 { font-family: var(--disp); font-weight: 700; font-size: 1.2rem; }
.filters-clear { background: none; border: 0; cursor: pointer; color: var(--accent-deep); font-weight: 600; font-size: 0.85rem; }
.filters-clear:hover { text-decoration: underline; }
.filter-group { display: flex; flex-direction: column; gap: 0.4rem; }
.filter-group label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.filter-search { position: relative; display: flex; align-items: center; }
.filter-search svg { position: absolute; left: 0.8rem; width: 16px; height: 16px; color: var(--ink-faint); pointer-events: none; }
.filter-search input {
  width: 100%; padding: 0.7rem 0.8rem 0.7rem 2.3rem; border: 1px solid var(--line);
  border-radius: 11px; background: var(--paper); font-size: 0.95rem; outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.filter-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sel { position: relative; display: flex; align-items: center; }
.sel select {
  appearance: none; -webkit-appearance: none; width: 100%;
  padding: 0.7rem 2.1rem 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 11px;
  background: var(--paper); font-size: 0.95rem; font-weight: 500; color: var(--ink);
  cursor: pointer; outline: none; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.sel select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sel-chev { position: absolute; right: 0.7rem; width: 16px; height: 16px; color: var(--ink-faint); pointer-events: none; }
.filters-call {
  margin-top: 0.3rem; font-size: 0.82rem; font-weight: 600; color: var(--accent-deep);
  text-decoration: none; line-height: 1.4;
}
.filters-call:hover { text-decoration: underline; }

/* results */
.results-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line);
}
.results-count { font-weight: 700; font-family: var(--disp); font-size: 1.05rem; margin-right: auto; }
.results-sort { display: flex; align-items: center; gap: 0.6rem; }
.results-sort label { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.results-sort .sel select { padding-block: 0.55rem; }
.results-filterbtn { display: none; align-items: center; gap: 0.5rem; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 0.6rem 1.1rem; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.results-filterbtn svg { width: 16px; height: 16px; }

.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: clamp(1.1rem, 2vw, 1.8rem); }
.car-grid .car-card { cursor: pointer; }
.car-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.car-media.has-img { background: var(--ink); }
.car-card.is-sold .car-media::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,14,0.45); }

.results-empty { text-align: center; padding: clamp(3rem, 10vh, 6rem) 1rem; }
.results-empty h3 { font-family: var(--disp); font-weight: 700; font-size: 1.6rem; margin-bottom: 0.8rem; }
.results-empty p { color: var(--ink-soft); margin-bottom: 1.6rem; }

.filters-backdrop { position: fixed; inset: 0; background: rgba(20,16,14,0.5); z-index: 95; }

/* car detail modal */
.modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: var(--pad); }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,16,14,0.6); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; z-index: 1; background: var(--card); border-radius: 22px; overflow: hidden;
  width: min(940px, 100%); max-height: 90vh; overflow-y: auto;
  display: grid; grid-template-columns: 1.1fr 1fr; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
}
.modal-close { position: absolute; top: 0.8rem; right: 1rem; z-index: 3; background: rgba(255,255,255,0.9); border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.modal-close:hover { background: #fff; color: var(--accent); }
.modal-media { position: relative; min-height: 280px; background: linear-gradient(135deg, #efe7df, #e4d8cd); display: grid; place-items: center; }
.modal-media.has-img { background: var(--ink); }
.modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-media .car-ghost { width: 80%; color: var(--ink); opacity: 0.14; }
.modal-info { padding: clamp(1.4rem, 3vw, 2.2rem); }
.modal-year { font-size: 0.82rem; font-weight: 600; color: var(--ink-faint); }
.modal-info h2 { font-family: var(--disp); font-weight: 800; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.1; margin: 0.3rem 0 0.7rem; letter-spacing: -0.02em; }
.modal-price { font-family: var(--disp); font-weight: 800; font-size: 1.7rem; color: var(--ink); }
.modal-price span { font-family: var(--font); font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); margin-left: 0.5rem; }
.modal-price b { color: var(--ink); }
.modal-specs { margin: 1.3rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem 1.5rem; }
.ms-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line-soft); }
.ms-row dt { color: var(--ink-soft); font-size: 0.9rem; }
.ms-row dd { font-weight: 600; font-size: 0.9rem; text-align: right; }
.modal-desc { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin-bottom: 1.3rem; }
.modal-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.modal-cta a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.9rem; padding: 0.85rem 1.4rem; border-radius: 999px; text-decoration: none; }
.modal-cta .hero-btn-primary { background: var(--accent); color: #fff; }
.modal-cta .hero-btn-primary:hover { background: var(--accent-deep); }
.modal-cta .hero-btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.modal-cta .hero-btn-ghost:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 900px) {
  .explore-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 86vw); z-index: 96;
    border-radius: 0; transform: translateX(-100%); transition: transform 0.4s var(--ease-out);
    overflow-y: auto; max-height: 100vh;
  }
  .filters.is-open { transform: none; }
  .results-filterbtn { display: inline-flex; }
  .modal-panel { grid-template-columns: 1fr; }
  .modal-media { min-height: 220px; }
}
@media (min-width: 901px) { .filters-backdrop { display: none; } }

/* ============================================================
   ADMIN
   ============================================================ */
body.admin-on { padding-bottom: 70px; }
.admin-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 150;
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--dark); color: #f2ece6; padding: 0.6rem 0.7rem 0.6rem 1.1rem;
  border-radius: 999px; box-shadow: 0 18px 40px -16px rgba(0,0,0,0.6);
  font-size: 0.85rem; font-weight: 600;
}
.admin-dot { width: 9px; height: 9px; border-radius: 50%; background: #45c46a; box-shadow: 0 0 0 0 rgba(69,196,106,0.6); animation: adminPulse 2s infinite; }
@keyframes adminPulse { 0% { box-shadow: 0 0 0 0 rgba(69,196,106,0.5); } 70% { box-shadow: 0 0 0 7px rgba(69,196,106,0); } 100% { box-shadow: 0 0 0 0 rgba(69,196,106,0); } }
.admin-bar-label { font-weight: 700; }
.admin-bar-hint { color: var(--dark-soft); font-weight: 500; font-size: 0.78rem; }
.admin-btn {
  background: rgba(255,255,255,0.12); color: #fff; border: 0; border-radius: 999px;
  padding: 0.5rem 1rem; font-weight: 600; font-size: 0.84rem; cursor: pointer; font-family: var(--font);
  transition: background-color 0.25s ease;
}
.admin-btn:hover { background: var(--accent); }
.admin-btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }
.admin-btn.ghost:hover { background: rgba(255,255,255,0.12); }
.admin-btn.danger { background: transparent; color: #ff8a6b; box-shadow: inset 0 0 0 1px rgba(255,138,107,0.5); }
.admin-btn.danger:hover { background: rgba(255,138,107,0.15); }
.admin-btn-primary {
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 0.7rem 1.5rem; font-weight: 700; font-size: 0.9rem; cursor: pointer; font-family: var(--disp);
}
.admin-btn-primary:hover { background: var(--accent-deep); }

/* editable image hover */
.admin-on .admin-img-host { outline: 2px dashed transparent; outline-offset: -4px; transition: outline-color 0.25s ease; }
.admin-on .admin-img-host:hover { outline-color: var(--accent); }
.admin-edit-badge {
  position: absolute; top: 12px; left: 12px; z-index: 130;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 0.5rem 0.9rem; font-weight: 600; font-size: 0.8rem; cursor: pointer;
  opacity: 0; transform: translateY(-4px); transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.5);
}
/* keep the hero badge clear of the fixed header and the headline */
.hero-media .admin-edit-badge { top: 90px; right: 24px; left: auto; }
.admin-edit-badge svg { width: 14px; height: 14px; }
.admin-img-host:hover .admin-edit-badge { opacity: 1; transform: none; }
.admin-edit-badge:hover { background: var(--accent-deep); }

/* car card admin controls */
.admin-card-bar {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 6; display: flex; gap: 0.35rem;
}
.admin-card-bar button {
  background: var(--ink); color: #fff; border: 0; border-radius: 8px; cursor: pointer;
  padding: 0.35rem 0.55rem; font-size: 0.78rem; font-weight: 600; line-height: 1; font-family: var(--font);
  box-shadow: 0 6px 16px -8px rgba(0,0,0,0.6);
}
.admin-card-bar button:hover { background: var(--accent); }
.car-card[data-id] { position: relative; }

/* login overlay */
.admin-login { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(20,16,14,0.75); backdrop-filter: blur(6px); padding: 1.5rem; }
.admin-login-card { background: var(--card); border-radius: 20px; padding: clamp(1.8rem, 4vw, 2.6rem); width: min(380px, 100%); text-align: center; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6); }
.admin-login-lock { font-size: 2rem; }
.admin-login-card h2 { font-family: var(--disp); font-weight: 800; font-size: 1.5rem; margin: 0.6rem 0 0.3rem; }
.admin-login-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.3rem; }
.admin-login-card input { width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; outline: none; margin-bottom: 0.5rem; }
.admin-login-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.admin-login-err { color: #c0392b !important; font-weight: 600; margin: 0 0 0.6rem !important; }
.admin-login-card .admin-btn-primary { width: 100%; margin-top: 0.4rem; }
.admin-login-cancel { display: inline-block; margin-top: 1rem; color: var(--ink-soft); font-size: 0.88rem; text-decoration: none; }
.admin-login-cancel:hover { color: var(--accent); }

/* editor modal */
.admin-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.5rem; }
.admin-modal-backdrop { position: absolute; inset: 0; background: rgba(20,16,14,0.65); backdrop-filter: blur(5px); }
.admin-modal-panel { position: relative; z-index: 1; background: var(--card); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.2rem); width: min(680px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6); }
.admin-modal-close { position: absolute; top: 0.9rem; right: 1.1rem; background: none; border: 0; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.admin-modal-close:hover { color: var(--accent); }
.admin-modal-panel h2 { font-family: var(--disp); font-weight: 800; font-size: 1.5rem; margin-bottom: 1.2rem; }
.admin-photo { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.admin-photo-prev { width: 130px; height: 86px; border-radius: 10px; overflow: hidden; background: var(--paper-dim); border: 1.5px dashed var(--line); display: grid; place-items: center; flex: none; cursor: pointer; text-align: center; transition: border-color 0.2s ease, background-color 0.2s ease; }
.admin-photo-prev:hover { border-color: var(--accent); }
.admin-photo-prev.drag { border-color: var(--accent); background: var(--accent-soft); }
.admin-photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.admin-photo-prev span { font-size: 0.74rem; color: var(--ink-faint); padding: 0 0.4rem; }
.admin-photo-actions { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.admin-photo-hint { font-size: 0.74rem; color: var(--ink-faint); }
/* the .admin-btn base is styled for the dark toolbar - restyle inside the light editor modal */
.admin-modal .admin-btn { background: var(--paper-dim); color: var(--ink); }
.admin-modal .admin-btn:hover { background: var(--line); }
.admin-modal .admin-btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-soft); }
.admin-modal .admin-btn.ghost:hover { background: var(--paper-dim); color: var(--ink); }
.admin-modal .admin-btn.danger { color: #c0392b; box-shadow: inset 0 0 0 1px rgba(192,57,43,0.45); }
.admin-modal .admin-btn.danger:hover { background: rgba(192,57,43,0.08); }

/* car editor gallery (unlimited photos) */
.admin-gallery-wrap { margin-bottom: 1.2rem; }
.admin-gallery-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 0.5rem; }
.admin-gallery { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0.6rem; border: 1.5px dashed var(--line); border-radius: 12px; transition: border-color 0.2s ease, background-color 0.2s ease; }
.admin-gallery.drag { border-color: var(--accent); background: var(--accent-soft); }
.admin-thumb { position: relative; width: 92px; height: 70px; border-radius: 9px; overflow: hidden; background: var(--paper-dim); border: 1px solid var(--line); flex: none; cursor: pointer; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-thumb.is-main { outline: 2px solid var(--accent); outline-offset: -2px; }
.thumb-rm { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(20,16,14,0.7); color: #fff; font-size: 0.95rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.thumb-rm:hover { background: #c0392b; }
.thumb-main { position: absolute; bottom: 0; left: 0; right: 0; background: var(--accent); color: #fff; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-align: center; padding: 1px 0; }
.admin-thumb.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; background: var(--paper); border-style: dashed; color: var(--ink-soft); }
.admin-thumb.add span { font-size: 1.4rem; font-weight: 300; line-height: 1; }
.admin-thumb.add small { font-size: 0.6rem; }
.admin-thumb.add:hover { border-color: var(--accent); color: var(--accent); }
.admin-checks-hint { font-size: 0.8rem; color: var(--ink-soft); margin: -0.5rem 0 1.2rem; line-height: 1.4; }

/* card photo-count badge + modal gallery */
.car-photocount { position: absolute; bottom: 0.7rem; right: 0.7rem; display: inline-flex; align-items: center; gap: 0.3rem; background: rgba(20,16,14,0.6); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 999px; backdrop-filter: blur(4px); }
.car-photocount svg { width: 12px; height: 12px; }
.modal-gallery { display: flex; flex-direction: column; min-width: 0; }
.modal-gallery .modal-media { flex: 1; }
.modal-thumbs { display: flex; gap: 0.5rem; padding: 0.7rem; flex-wrap: wrap; background: var(--paper-dim); }
.modal-thumb { width: 62px; height: 46px; border-radius: 7px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-thumb.active { border-color: var(--accent); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.admin-field { display: flex; flex-direction: column; gap: 0.3rem; }
.admin-field.span2 { grid-column: 1 / -1; }
.admin-field label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.admin-field input, .admin-field select, .admin-field textarea {
  padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 10px; font-size: 0.92rem;
  background: var(--paper); outline: none; font-family: var(--font); width: 100%;
}
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.admin-checks { display: flex; gap: 1.5rem; margin: 1rem 0 1.3rem; }
.admin-checks label { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.admin-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.admin-modal-foot > div { display: flex; gap: 0.6rem; }
@media (max-width: 560px) { .admin-grid { grid-template-columns: 1fr; } .admin-bar-hint { display: none; } }

/* toast */
.admin-toast { position: fixed; bottom: 80px; left: 50%; transform: translate(-50%, 16px); z-index: 400; background: var(--ink); color: #fff; padding: 0.7rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: 0.88rem; opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; box-shadow: 0 16px 36px -14px rgba(0,0,0,0.6); }
.admin-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   CAR DETAIL PAGE
   ============================================================ */
.car-detail { padding: calc(5rem + 2vw) var(--pad) clamp(3rem, 8vh, 6rem); max-width: 1320px; margin-inline: auto; }
.cd-loading { padding: 5rem 0; text-align: center; color: var(--ink-soft); }
.cd-empty { text-align: center; padding: clamp(4rem, 12vh, 7rem) 1rem; }
.cd-empty h1 { font-family: var(--disp); font-weight: 800; font-size: 2rem; margin-bottom: 0.6rem; }
.cd-empty p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.cd-back { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; text-decoration: none; margin-bottom: 1.4rem; transition: color 0.25s ease; }
.cd-back svg { width: 16px; height: 16px; }
.cd-back:hover { color: var(--accent); }

.cd-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; margin-bottom: clamp(2.5rem, 6vh, 4rem); }

/* gallery */
.cd-main { position: relative; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #efe7df, #e4d8cd); display: grid; place-items: center; }
.cd-main.has-img { background: var(--ink); cursor: zoom-in; }
.cd-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cd-main .car-ghost { width: 70%; color: var(--ink); opacity: 0.14; }
.cd-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.85); border: 0; cursor: pointer; font-size: 1.7rem; line-height: 1; color: var(--ink); display: grid; place-items: center; transition: background-color 0.2s ease; z-index: 2; }
.cd-arrow:hover { background: #fff; }
.cd-arrow.prev { left: 12px; } .cd-arrow.next { right: 12px; }
.cd-expand { position: absolute; bottom: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(20,16,14,0.6); color: #fff; border: 0; border-radius: 999px; padding: 0.5rem 0.9rem; font-weight: 600; font-size: 0.8rem; cursor: pointer; backdrop-filter: blur(4px); }
.cd-expand svg { width: 14px; height: 14px; }
.cd-counter { position: absolute; bottom: 12px; left: 12px; z-index: 2; background: rgba(20,16,14,0.6); color: #fff; border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.75rem; font-weight: 600; backdrop-filter: blur(4px); }
.cd-thumbs { display: flex; gap: 0.6rem; margin-top: 0.8rem; flex-wrap: wrap; }
.cd-thumb { width: 92px; height: 66px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; transition: border-color 0.2s ease; }
.cd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-thumb.active { border-color: var(--accent); }

/* buy panel */
.cd-buy { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 2.5vw, 2rem); box-shadow: 0 30px 60px -40px rgba(36,29,24,0.35); }
.cd-reg { font-size: 0.82rem; font-weight: 600; color: var(--ink-faint); }
.cd-title { font-family: var(--disp); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0.3rem 0 0.7rem; }
.cd-price { font-family: var(--disp); font-weight: 800; font-size: 2rem; color: var(--ink); letter-spacing: -0.01em; }
.cd-price span { font-family: var(--font); font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); margin-left: 0.5rem; }
.cd-price b { color: var(--ink); font-weight: 600; }
.cd-keyspecs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0; }
.cd-chip { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--paper-dim); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.8rem; font-size: 0.82rem; font-weight: 500; color: var(--ink); }
.cd-chip svg { width: 14px; height: 14px; color: var(--accent); }
.cd-ctas { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.2rem; }
.cd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 700; font-size: 0.92rem; padding: 0.95rem 1.4rem; border-radius: 12px; text-decoration: none; cursor: pointer; border: 0; font-family: var(--font); text-align: center; transition: background-color 0.25s ease, color 0.25s ease; }
.cd-btn.primary { background: var(--accent); color: #fff; }
.cd-btn.primary:hover { background: var(--accent-deep); }
.cd-btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.cd-btn.ghost:hover { background: var(--ink); color: var(--paper); }
.admin-edit-listing { background: var(--ink); color: #fff; margin-top: 0.2rem; width: 100%; }
.admin-edit-listing:hover { background: var(--accent); }
.cd-trust { list-style: none; display: grid; gap: 0.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.cd-trust li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--ink-soft); }
.cd-trust svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.cd-dealer { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-soft); line-height: 1.6; }
.cd-dealer strong { color: var(--ink); font-family: var(--disp); }

/* body sections */
.cd-body { display: flex; flex-direction: column; gap: clamp(2rem, 4vh, 3rem); }
.cd-section h2 { font-family: var(--disp); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 1rem; letter-spacing: -0.01em; }
.cd-section-gap { margin-top: clamp(1rem, 3vh, 2.2rem); }
.cd-desc { color: var(--ink-soft); line-height: 1.7; max-width: 72ch; white-space: pre-line; }
.cd-specgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 2.5rem; }
.cd-spec { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); }
.cd-spec dt { color: var(--ink-soft); font-size: 0.9rem; }
.cd-spec dd { font-weight: 600; font-size: 0.9rem; text-align: right; }
.cd-assure { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.cd-assure-card { background: var(--paper-dim); border-radius: 14px; padding: 1.3rem; }
.cd-assure-card h3 { font-family: var(--disp); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--accent-deep); }
.cd-assure-card p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; }
.cd-similar .car-grid { margin-top: 0.5rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(10,8,6,0.94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox-close { position: absolute; top: 16px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: 0; color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; transition: background-color 0.2s ease; }
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav.prev { left: 24px; } .lightbox-nav.next { right: 24px; }
.lightbox-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 600; font-size: 0.9rem; }

@media (max-width: 900px) {
  .cd-top { grid-template-columns: 1fr; }
  .cd-buy { position: static; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lightbox-nav.prev { left: 10px; } .lightbox-nav.next { right: 10px; }
}

/* ============================================================
   SELL YOUR CAR
   ============================================================ */
.sell { padding: calc(5rem + 2vw) var(--pad) clamp(3rem, 8vh, 6rem); max-width: 1040px; margin-inline: auto; }
.sell-head { text-align: center; max-width: 62ch; margin: 0 auto clamp(2rem, 5vh, 3rem); }
.sell-head .kicker { display: block; margin-bottom: 0.9rem; }
.sell-title { font-family: var(--disp); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; }
.sell-lead { margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; }
.sell-usps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; margin-top: 1.4rem; }
.sell-usps li { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.sell-usps svg { width: 18px; height: 18px; color: var(--accent); }

.sell-step-h { display: flex; align-items: center; gap: 0.7rem; font-family: var(--disp); font-weight: 700; font-size: 1.3rem; margin-bottom: 1.3rem; }
.sell-step-h > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.95rem; flex: none; }
.sell-step-h em { font-style: normal; color: var(--accent-deep); font-weight: 600; font-size: 0.95rem; }

.sell-reg { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1.4rem; }
.plate-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.plate { display: inline-flex; align-items: stretch; border-radius: 8px; overflow: hidden; border: 2px solid #111; box-shadow: 0 6px 16px -8px rgba(0,0,0,0.4); }
.plate-gb { background: #063298; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0 0.6rem; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.05em; }
.plate input { border: 0; background: #f4d000; color: #111; font-family: var(--disp); font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: 0.06em; text-align: center; text-transform: uppercase; padding: 0.5rem 1rem; width: 8.5ch; outline: none; }
.plate input::placeholder { color: #9a8a00; }
.plate.shake { animation: plateShake 0.45s; }
@keyframes plateShake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-7px); } 40%,80% { transform: translateX(7px); } }
.plate-note { margin-top: 1rem; color: var(--ink-soft); font-size: 0.88rem; }

.sell-form { display: flex; flex-direction: column; gap: 1.4rem; }
.sell-form[hidden], .sell-done[hidden] { display: none; }
.sell-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.4rem); }
.sell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.sell-field { display: flex; flex-direction: column; gap: 0.35rem; }
.sell-field.span2 { grid-column: 1 / -1; }
.sell-field label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.sell-field input, .sell-field textarea { padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); font-size: 0.98rem; font-family: var(--font); color: var(--ink); outline: none; width: 100%; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.sell-field textarea { resize: vertical; }
.sell-field input:focus, .sell-field textarea:focus, .sell-field .sel select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sell-field .sel select { padding: 0.75rem 2.1rem 0.75rem 0.9rem; border-radius: 11px; font-size: 0.98rem; }
.sell-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.sell-actions .cd-btn { padding: 0.95rem 1.8rem; }
.sell-smallprint { margin-top: 1rem; font-size: 0.78rem; color: var(--ink-faint); line-height: 1.5; }

.sell-done { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(2.2rem, 5vw, 3.5rem); max-width: 560px; margin: 0 auto; }
.sell-done-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.sell-done-tick svg { width: 32px; height: 32px; }
.sell-done h2 { font-family: var(--disp); font-weight: 800; font-size: 1.6rem; margin-bottom: 0.6rem; }
.sell-done p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.sell-done-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }

@media (max-width: 620px) { .sell-grid { grid-template-columns: 1fr; } }
