/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0c0c0c;   /* near-black, warm neutral, never pure #000 */
  --bg-2:      #141414;
  --bg-3:      #1b1b1b;   /* card */
  --paper:     #f7f6f4;   /* off-white, never pure #fff */
  --paper-2:   #eceae6;
  --ink:       #f2f1ee;   /* text on dark */
  --ink-soft:  #cfcdc8;
  --ink-mute:  #8d8b86;
  --ink-dark:  #141311;   /* text on paper */
  --ink-dark-mute: #55524c;
  --accent:    #e21c1c;   /* racing red */
  --accent-2:  #a10f0f;   /* deep red */
  --accent-soft: rgba(226,28,28,0.14);
  --line:      rgba(242,241,238,0.12);
  --line-dark: rgba(20,19,17,0.14);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Manrope", var(--sans);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
::selection { background: var(--accent); color: var(--ink); }

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

svg[aria-hidden] { pointer-events: none; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--paper); color: var(--ink-dark);
  z-index: 9999; border-radius: 8px; font-weight: 700;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px) { .container { padding-inline: 2rem; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  position: relative;
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: .6rem; }
.section-head p { margin-top: 1rem; color: var(--ink-mute); font-size: 1.05rem; }
.section-on-paper .section-head p { color: var(--ink-dark-mute); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), box-shadow .35s var(--ease-out), color .35s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(226,28,28,.65);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-dark {
  background: var(--ink-dark);
  color: var(--paper);
}
.btn-dark:hover { background: #000; transform: translateY(-2px); }

/* =============================================================
   4. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12,12,12,.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .nav.is-scrolled { background: rgba(12,12,12,.97); }
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-mark {
  display: inline-flex; align-items: baseline; gap: .35rem;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em;
}
.brand-mark .dot { color: var(--accent); }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .92rem; font-weight: 600; color: var(--ink-soft);
  position: relative; padding-block: .3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
@media (min-width: 960px) { .nav-links { display: flex; } }

.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-actions .btn { padding: .7rem 1.15rem; font-size: .85rem; }
.nav-burger {
  display: inline-flex; width: 42px; height: 42px; border-radius: 50%;
  align-items: center; justify-content: center; border: 1px solid var(--line);
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span, .nav-burger::before, .nav-burger::after { display: none; }
.nav-burger svg { width: 18px; height: 18px; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 190;
  background: rgba(12,12,12,.98); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 0;
  padding: 1.5rem 1.25rem;
  transform: translateY(-8px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu a {
  font-size: 1.4rem; font-weight: 700; font-family: var(--display);
  padding-block: .85rem; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 1.5rem; }

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 2rem);
  overflow: clip;
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-bg .diag {
  position: absolute;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  transform: rotate(-8deg);
}
.hero-bg .diag-1 { width: 60%; height: 140%; right: -18%; top: -20%; opacity: .9; }
.hero-bg .diag-2 { width: 24%; height: 160%; right: 6%; top: -30%; background: linear-gradient(135deg, #1b1b1b, #000); opacity: .9; }
.hero-bg .glow {
  position: absolute; inset: -20%;
  background: radial-gradient(45% 35% at 78% 30%, rgba(226,28,28,.35), transparent 70%);
  filter: blur(60px);
  animation: heroGlow 16s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-2%, 2%, 0) scale(1.08); }
}
.hero-bg .grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-inner .eyebrow { margin-bottom: 1.4rem; }
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  max-width: 14ch;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.hero-stat b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--ink);
}
.hero-stat span { font-size: .82rem; color: var(--ink-mute); }

/* =============================================================
   6. Trust bar (paper section)
   ============================================================= */
.trust {
  background: var(--paper);
  color: var(--ink-dark);
  padding-block: clamp(2.2rem, 5vw, 3.2rem);
  border-bottom: 6px solid var(--accent);
}
.trust .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.5rem;
}
@media (min-width: 720px) { .trust .container { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; flex-direction: column; gap: .6rem; }
.trust-item svg { width: 30px; height: 30px; color: var(--accent); }
.trust-item h3 { font-size: .98rem; font-weight: 800; }
.trust-item p { font-size: .85rem; color: var(--ink-dark-mute); }

/* =============================================================
   7. Inventory
   ============================================================= */
.inventory { background: var(--bg); }

.filters {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-bottom: 2.2rem;
  padding: 1rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.filters input[type="search"],
.filters select {
  appearance: none;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: .78rem 1rem;
  border-radius: 10px;
  font-size: .92rem;
  font-family: var(--sans);
  min-width: 0;
}
.filters input[type="search"] { flex: 1 1 220px; }
.filters select { flex: 1 1 150px; cursor: pointer; }
.filters input:focus, .filters select:focus { border-color: var(--accent); }
.filters .filters-count {
  flex-basis: 100%;
  font-size: .82rem;
  color: var(--ink-mute);
  padding-top: .3rem;
}
.filters .filters-count b { color: var(--ink); }

.v-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.4rem;
}
@media (min-width: 640px) { .v-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .v-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .v-grid { grid-template-columns: repeat(4, 1fr); } }

.v-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .5s var(--ease-out), border-color .35s var(--ease-out), box-shadow .5s var(--ease-out);
  position: relative;
}
.v-card:hover {
  border-color: rgba(226,28,28,.4);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,.6);
}
.v-card.is-hidden { display: none; }

.v-photo {
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.v-card.g1 .v-photo { background: linear-gradient(150deg, #241414, #120a0a 60%, #000); }
.v-card.g2 .v-photo { background: linear-gradient(150deg, #1a1414, #0d0a0a 60%, #000); }
.v-card.g3 .v-photo { background: linear-gradient(150deg, #201010, #100808 60%, #000); }
.v-card.g4 .v-photo { background: linear-gradient(150deg, #221515, #110a0a 60%, #000); }
.v-card.g5 .v-photo { background: linear-gradient(150deg, #1e1212, #0f0909 60%, #000); }
.v-card.g6 .v-photo { background: linear-gradient(150deg, #251616, #120b0b 60%, #000); }
.v-photo::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 40%, rgba(226,28,28,.16), transparent 70%);
}
.v-icon {
  width: 46%; height: 46%;
  color: rgba(242,241,238,.16);
  position: relative; z-index: 1;
  transition: transform .5s var(--ease-out);
}
.v-card:hover .v-icon { transform: scale(1.06) translateY(-2%); }
.v-photo.has-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.v-card:hover .v-photo.has-photo img { transform: scale(1.05); }
.v-photo.has-photo::before { z-index: 1; }
.v-photo.has-photo .v-photo-tag { z-index: 2; }
.v-photo-tag {
  position: absolute; left: .7rem; bottom: .7rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-mute);
  background: rgba(0,0,0,.45);
  border: 1px solid var(--line);
  padding: .3rem .55rem;
  border-radius: 999px;
}

.v-body { padding: 1.15rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.v-brand { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.v-title { font-size: 1.08rem; font-weight: 800; }
.v-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .1rem; }
.v-badge {
  font-size: .72rem; font-weight: 600; color: var(--ink-soft);
  background: var(--bg-2); border: 1px solid var(--line);
  padding: .28rem .55rem; border-radius: 999px;
}
.v-foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.v-price { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.v-see {
  font-size: .8rem; font-weight: 700; color: var(--ink);
  padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.v-see:hover { background: var(--accent); border-color: var(--accent); }

.v-card.is-capped { display: none; }

.inventory-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
}
.inventory-more-wrap.is-hidden { display: none; }

.no-results {
  display: none;
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--ink-mute);
  border: 1px dashed var(--line);
  border-radius: 18px;
}
.no-results.is-visible { display: block; }
.no-results button { margin-top: 1rem; }

/* =============================================================
   8. Process
   ============================================================= */
.process { background: var(--bg-2); }
.process-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 720px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
.process-step {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-3);
}
.process-step .num {
  font-family: var(--display); font-weight: 800; font-size: 2.4rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent);
}
.process-step h3 { margin-top: .8rem; font-size: 1.15rem; }
.process-step p { margin-top: .5rem; color: var(--ink-mute); font-size: .94rem; }

/* =============================================================
   8b. Sell your car (consignment)
   ============================================================= */
.sell { background: var(--bg); }
.sell-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .sell-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; } }

.sell-info h2 { margin-top: .6rem; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.sell-info > p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.02rem; max-width: 46ch; }

.sell-points { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.sell-points li {
  position: relative; padding-left: 1.6rem;
  color: var(--ink-soft); font-size: .96rem;
}
.sell-points li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

.sell-contact { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.sell-form {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.sell-form h3 { font-size: 1.15rem; }
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-size: .82rem; font-weight: 600; color: var(--ink-mute); }
.form-row input, .form-row textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: .78rem 1rem;
  border-radius: 10px;
  font-size: .95rem;
  font-family: var(--sans);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); }
.sell-form-note { font-size: .8rem; color: var(--ink-mute); text-align: center; }

/* =============================================================
   9. Contact / CTA
   ============================================================= */
.cta {
  background: linear-gradient(180deg, var(--bg) 0%, #150606 100%);
  text-align: center;
}
.cta-inner { max-width: 640px; margin-inline: auto; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.cta p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.cta-meta {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem;
  font-size: .88rem; color: var(--ink-mute);
}
.cta-meta strong { color: var(--ink-soft); }

/* =============================================================
   10. Footer
   ============================================================= */
.site-footer {
  background: #000;
  border-top: 1px solid var(--line);
  padding-block: 2.4rem;
}
.footer-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
}
.footer-note { font-size: .82rem; color: var(--ink-mute); max-width: 46ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .85rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-social { display: inline-flex; align-items: center; gap: .4rem; }
.footer-social svg { width: 16px; height: 16px; }

/* =============================================================
   11. WhatsApp FAB
   ============================================================= */
.wa-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 150;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #1fae52; color: #fff;
  padding: .85rem 1.1rem; border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.55);
  font-weight: 700; font-size: .88rem;
  transition: transform .35s var(--ease-bounce);
}
.wa-fab:hover { transform: translateY(-3px) scale(1.03); }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 300;
  transform: translate(-50%, 20px);
  background: var(--paper); color: var(--ink-dark);
  padding: .85rem 1.3rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.wa-fab svg { width: 22px; height: 22px; }

/* =============================================================
   12. Modal (vehicle detail)
   ============================================================= */
.v-dialog {
  border: 0; border-radius: 22px; padding: 0;
  background: var(--bg-3); color: var(--ink);
  max-width: min(640px, 92vw); width: 100%;
  max-height: 88vh;
}
.v-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.v-dialog-inner { display: flex; flex-direction: column; max-height: 88vh; overflow: auto; }
.v-dialog-photo {
  aspect-ratio: 16/9;
  background: linear-gradient(150deg, #241414, #120a0a 60%, #000);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.v-dialog-photo svg { width: 32%; height: 32%; color: rgba(242,241,238,.18); }
.v-dialog-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-dialog-close {
  position: absolute; top: .8rem; right: .8rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.v-dialog-close svg { width: 16px; height: 16px; }
.v-dialog-body { padding: 1.5rem; }
.v-dialog-body .v-brand { font-size: .78rem; }
.v-dialog-body h3 { font-size: 1.6rem; margin-top: .3rem; }
.v-dialog-body .v-badges { margin-top: .8rem; }
.v-dialog-price {
  font-family: var(--display); font-weight: 800; font-size: 1.7rem; margin-top: 1rem;
}
.v-dialog-desc { margin-top: 1rem; color: var(--ink-soft); font-size: .96rem; line-height: 1.65; }
.v-dialog-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* =============================================================
   13. Reveal
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   14. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg .glow { animation: none; }
  .hero-bg .grain { display: none; }
}
