/* =========================================================
   A.H Auto Groupe — Stylesheet
   Dark, premium, brand-driven (rust red / black / silver)
   ========================================================= */

:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --surface: #141416;
  --surface-2: #1b1b1f;
  --surface-3: #232328;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f1ed;
  --text-2: #c9c7c2;
  --muted: #8f8f95;
  --brand: #c7401b;
  --brand-hot: #e6431c;
  --brand-soft: rgba(199, 64, 27, 0.14);
  --silver: #b9b9be;
  --ok: #3fb27f;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

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

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
.display { font-family: var(--font-display); font-weight: 500; }
h1.display { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2.display { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.lead { font-size: 1.125rem; color: var(--text-2); max-width: 60ch; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-hot);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.section-head.split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.section-head .lead { margin-top: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.35s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px rgba(199, 64, 27, 0.28); }
.btn-primary:hover { background: var(--brand-hot); transform: translateY(-2px); box-shadow: 0 16px 38px rgba(230, 67, 28, 0.35); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); transform: translateY(-2px); }
.btn-light { background: var(--text); color: #0a0a0b; }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { height: 64px; width: auto; display: block; flex: none; }
@media (max-width: 720px) { .brand-logo { height: 46px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; font-size: 0.92rem; font-weight: 600; color: var(--text-2);
  border-radius: 8px; transition: color 0.25s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: transparent; place-items: center; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--text); position: absolute;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 78% 40%, rgba(199, 64, 27, 0.32), transparent 70%),
    radial-gradient(40% 40% at 20% 90%, rgba(199, 64, 27, 0.14), transparent 70%),
    linear-gradient(180deg, #0c0c0d 0%, var(--bg) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 100%);
}
.hero-mark {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: min(62vw, 880px);
  z-index: -1; opacity: 0.16; pointer-events: none;
  filter: drop-shadow(0 30px 80px rgba(199, 64, 27, 0.5));
}
.hero .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 60px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-copy h1 span { color: var(--brand-hot); font-style: italic; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-trust div { display: flex; flex-direction: column; gap: 2px; }
.hero-trust strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; }
.hero-trust small { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.04em; }

.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 28px;
  backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.hero-card h3 { font-size: 1.05rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero-card h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-hot); box-shadow: 0 0 0 5px var(--brand-soft); }
.quick-search { display: grid; gap: 12px; }
.quick-search .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Form controls ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.control {
  width: 100%; padding: 13px 14px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--text); outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface-3); }
.control::placeholder { color: var(--muted); }
select.control {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238f8f95' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
textarea.control { min-height: 140px; resize: vertical; }

/* ---------- Marquee (brands) ---------- */
.brands { padding: 34px 0; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.marquee { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28); white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; transition: transform 0.45s var(--ease), border-color 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--surface-2); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--brand-soft); color: var(--brand-hot); border: 1px solid rgba(199, 64, 27, 0.3);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.97rem; }
.card .num {
  position: absolute; top: 20px; right: 24px; font-family: var(--font-display); font-size: 3rem; line-height: 1;
  color: rgba(255, 255, 255, 0.05); font-weight: 600;
}

/* ---------- Vehicle cards ---------- */
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.vehicle {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease);
}
.vehicle:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.vehicle-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.vehicle-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.vehicle:hover .vehicle-media img { transform: scale(1.05); }
.vehicle-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 11, 0.75));
}
.badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 1; flex-wrap: wrap; }
.badge {
  padding: 6px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(10, 10, 11, 0.7); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); color: var(--text);
}
.badge.hot { background: var(--brand); border-color: var(--brand); }
.badge.ok { background: rgba(63, 178, 127, 0.18); border-color: rgba(63, 178, 127, 0.4); color: #8fe0ba; }
.vehicle-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.vehicle-title { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.vehicle-title h3 { font-size: 1.1rem; line-height: 1.3; }
.vehicle-title small { display: block; color: var(--muted); font-weight: 500; font-size: 0.86rem; margin-top: 4px; }
.price { font-family: var(--font-display); font-size: 1.45rem; white-space: nowrap; color: #fff; }
.price small { display: block; font-family: var(--font-body); font-size: 0.7rem; color: var(--muted); text-align: right; letter-spacing: 0.04em; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.specs div { display: flex; flex-direction: column; gap: 2px; }
.specs small { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.specs span { font-size: 0.88rem; font-weight: 700; }
.vehicle-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.vehicle-foot .link { font-weight: 700; font-size: 0.92rem; color: var(--brand-hot); display: inline-flex; align-items: center; gap: 8px; }
.vehicle-foot .link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.vehicle-foot .link:hover svg { transform: translateX(4px); }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .float {
  position: absolute; left: 22px; bottom: 22px; right: 22px; padding: 20px; border-radius: var(--radius);
  background: rgba(10, 10, 11, 0.72); backdrop-filter: blur(12px); border: 1px solid var(--line-strong);
  display: flex; gap: 18px; align-items: center;
}
.split-media .float strong { font-family: var(--font-display); font-size: 2rem; font-weight: 500; color: var(--brand-hot); }
.split-media .float span { color: var(--text-2); font-size: 0.92rem; }
.checks { display: grid; gap: 14px; margin-top: 10px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e6431c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid rgba(199, 64, 27, 0.35);
}
.checks li strong { color: var(--text); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 28px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 0.95rem; color: var(--brand-hot); letter-spacing: 0.1em;
  display: block; margin-bottom: 18px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.stars { color: #f0b429; letter-spacing: 2px; font-size: 0.95rem; }
.quote p { color: var(--text-2); font-size: 1rem; line-height: 1.7; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand-soft); color: var(--brand-hot); border: 1px solid rgba(199, 64, 27, 0.3); }
.quote footer strong { display: block; font-size: 0.95rem; }
.quote footer small { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 72px);
  background: linear-gradient(120deg, #a5341a 0%, var(--brand) 55%, #d64d24 100%);
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; color: #fff;
}
.cta::after {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.86); font-size: 1.05rem; margin-top: 12px; max-width: 54ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; position: relative; z-index: 1; }
.cta .btn-light { color: var(--brand); }
.cta .btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.cta .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 30px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer p, .footer li { color: var(--text-2); font-size: 0.95rem; }
.footer li { margin-bottom: 10px; }
.footer li a:hover { color: var(--brand-hot); }
.footer .brand { margin-bottom: 18px; }
.footer address { font-style: normal; display: grid; gap: 10px; }
.footer address a { display: flex; gap: 10px; align-items: flex-start; }
.footer address svg { width: 18px; height: 18px; color: var(--brand-hot); flex: none; margin-top: 3px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 0.93rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; color: var(--text-2); }
.footer-bottom {
  margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted);
}
.footer-bottom a:hover { color: var(--text); }
.footer-bottom nav { display: flex; gap: 20px; }

/* ---------- Page header ---------- */
.page-head {
  padding: calc(var(--header-h) + 70px) 0 60px; position: relative; overflow: hidden;
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(199, 64, 27, 0.24), transparent 70%),
    linear-gradient(180deg, #0d0d0e, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-head .container { display: flex; flex-direction: column; gap: 16px; }
.crumbs { display: flex; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span::before { content: "/"; margin-right: 10px; opacity: 0.5; }

/* ---------- Inventory layout ---------- */
.inventory { display: grid; grid-template-columns: 290px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.filters h3 { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
.filters h3 button { background: none; border: 0; color: var(--brand-hot); font-size: 0.82rem; font-weight: 700; }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 0.95rem; }
.toolbar .count strong { color: var(--text); }
.toolbar select { width: auto; min-width: 220px; }
.inventory .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
.empty { padding: 60px 30px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); grid-column: 1 / -1; }
.filters-toggle { display: none; }

/* ---------- Vehicle detail ---------- */
.detail { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 40px; align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); transition: border-color 0.25s; }
.thumbs button.active, .thumbs button:hover { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.detail-card { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; }
.detail-card .price { font-size: 2.2rem; }
.detail-card .price small { text-align: left; }
.finance { display: flex; justify-content: space-between; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.92rem; }
.finance strong { color: var(--brand-hot); }
.dealer { display: flex; gap: 14px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.dealer strong { display: block; }
.dealer small { color: var(--muted); }

.spec-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.spec-table div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 700; text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 9px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.88rem; color: var(--text-2); }
.detail-section { padding: 36px 0; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.detail-section h2 { font-size: 1.3rem; }
.detail-section p { color: var(--text-2); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-tile { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.35s var(--ease); }
.info-tile:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.info-tile .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-hot); flex: none; }
.info-tile .icon svg { width: 22px; height: 22px; }
.info-tile strong { display: block; margin-bottom: 4px; }
.info-tile span, .info-tile a { color: var(--text-2); font-size: 0.95rem; }
.info-tile a:hover { color: var(--brand-hot); }
.form-card { padding: 34px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; }
.consent a { color: var(--text-2); text-decoration: underline; }
.form-note { display: none; padding: 16px; border-radius: 12px; background: rgba(63, 178, 127, 0.12); border: 1px solid rgba(63, 178, 127, 0.35); color: #9be5c4; font-size: 0.95rem; }
.form-note.show { display: block; }
.map { margin-top: 60px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9) hue-rotate(180deg); }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 78ch; display: grid; gap: 18px; color: var(--text-2); }
.prose h2 { font-size: 1.35rem; color: var(--text); margin-top: 22px; }
.prose h3 { font-size: 1.05rem; color: var(--text); margin-top: 8px; }
.prose a { color: var(--brand-hot); }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }

/* ---------- About ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; color: var(--brand-hot); line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; }
.team { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; padding: 40px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.team .portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(160deg, var(--surface-3), var(--surface)); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.team .portrait svg { width: 60%; opacity: 0.9; }
.team blockquote { margin: 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.45; color: var(--text); font-weight: 400; font-style: italic; }
.team .who { margin-top: 20px; }
.team .who strong { display: block; font-size: 1.05rem; }
.team .who span { color: var(--muted); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- WhatsApp float ---------- */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.35s var(--ease);
}
.wa:hover { transform: translateY(-3px) scale(1.04); }
.wa svg { width: 28px; height: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .split, .detail, .contact, .team { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .inventory { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: grid; }
  .filters-toggle { display: inline-flex; }
  .inventory .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h)); flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); overflow-y: auto;
    padding: 12px 20px 22px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.35s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 10px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle { display: grid; }
  .header-cta .btn { display: none; }
  .header { background: rgba(10, 10, 11, 0.85); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
  .grid-3, .quotes { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--container)); }
  .vehicle-grid, .inventory .vehicle-grid, .grid-2, .grid-4, .steps, .stats, .footer-grid, .form-row, .quick-search .row, .spec-table, .thumbs { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: calc(var(--header-h) + 36px); min-height: auto; }
  .hero-mark { width: 120vw; right: -40%; top: 30%; opacity: 0.1; }
  .hero-trust { gap: 18px; }
  .section { padding: 60px 0; }
  .card, .quote, .form-card { padding: 24px; }
  .btn { padding: 13px 20px; }
  .hero-actions .btn { flex: 1; }
  .footer-bottom { flex-direction: column; }
  .wa { right: 16px; bottom: 16px; }
}
