/*
  AOS Motors. Light theme only: the brief fixes white as the main background.
  Shape rule: panels, cards and buttons all use a corner chamfer (--cut on panels, 10px on buttons).
  Z-index scale: nav 10, mobile bar 20, lightbox 30.
*/
:root {
  --bg: #f7f7f6;
  --surface: #ffffff;
  --ink: #111113;
  --muted: #4d4d53;
  --line: #e3e2de;
  --black: #0f0f11;
  --black-2: #1d1d21;
  --gold: #d4af5a;        /* fills, lines, text on black */
  --gold-ink: #7a5f1c;    /* gold text on white, AA contrast */
  --cut: 16px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lb-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; }

.wrap { width: min(1320px, 100% - 40px); margin-inline: auto; }
.chamfer {
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}

/* Buttons */
.btn {
  --c: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--body); white-space: nowrap;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn i { font-size: 20px; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-lg { height: 58px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-icon { width: 52px; padding: 0; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: #e2c16f; }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark i { color: var(--gold); }
.btn-dark:hover { background: var(--black-2); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgb(247 247 246 / .86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 700 20px/1 var(--display); letter-spacing: -0.01em; }
.brand b { font-weight: 500; color: var(--gold-ink); }
.nav-links { display: flex; gap: 32px; margin-left: auto; font-weight: 500; font-size: 16px; color: var(--muted); }
.nav-links a { position: relative; padding: 6px 0; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-call { height: 46px; padding: 0 20px; font-size: 15px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 56px;
  padding: 56px 0 72px;
}
.eyebrow {
  margin: 0 0 20px; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .18em; color: var(--gold-ink);
}
.hero h1 { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.06; }
.hero h1 em { font-style: normal; display: block; color: var(--gold-ink); }
.lead { margin: 24px 0 36px; max-width: 40ch; font-size: 20px; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  position: relative; aspect-ratio: 4 / 3; background: var(--black); overflow: hidden;
  display: grid; place-items: center;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 75% 20%, rgb(212 175 90 / .28), transparent 70%),
              radial-gradient(60% 50% at 10% 100%, rgb(212 175 90 / .12), transparent 70%);
}
.hero-mark { position: relative; font: 700 clamp(90px, 13vw, 190px)/1 var(--display); letter-spacing: -0.04em; color: var(--gold); opacity: .9; }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute; left: 0; bottom: 0; z-index: 1; padding: 20px 26px;
  background: var(--black); color: #fff; display: flex; gap: 20px; align-items: baseline;
}
.hero-tag strong { font: 700 17px/1.2 var(--display); }
.hero-tag span { font: 700 18px/1 var(--body); color: var(--gold); }

/* Section heads */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.count { margin: 0; font: 500 15px/1 var(--mono); color: var(--muted); white-space: nowrap; }

/* Stock */
.stock { padding: 40px 0 104px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

.car { min-width: 0; background: var(--surface); display: flex; flex-direction: column; }
.car-media { position: relative; aspect-ratio: 4 / 3; background: var(--black); overflow: hidden; }
.car-photo { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.car-media:hover .car-photo img { transform: scale(1.03); }
.nav-btn, .lb-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 1;
  width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 22px;
  background: rgb(15 15 17 / .72); color: #fff;
  transition: background-color .25s, transform .25s var(--ease);
}
.nav-btn:hover, .lb-nav:hover { background: var(--black); }
.nav-btn:active, .lb-nav:active { transform: scale(.94); }
.nav-btn.prev { left: 14px; }
.nav-btn.next { right: 14px; }
.photo-count {
  position: absolute; right: 14px; bottom: 14px; z-index: 1; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px;
  background: rgb(15 15 17 / .72); color: #fff; font: 500 14px/1 var(--mono); border-radius: 999px;
}
.photo-count i { font-size: 16px; }
.car-media .nophoto {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 8px; align-content: center;
  color: rgb(212 175 90 / .85); font: 500 15px/1 var(--mono);
}
.car-media .nophoto i { font-size: 44px; }

.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; background: var(--surface); }
.thumbs button {
  flex: 0 0 76px; height: 56px; padding: 0; border: 0; cursor: pointer; background: var(--black);
  opacity: .6; transition: opacity .2s;
}
.thumbs button:hover { opacity: .9; }
.thumbs button[aria-current="true"] { opacity: 1; outline: 3px solid var(--gold); outline-offset: -3px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.car-body { padding: 18px 26px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.car-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.car-title h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.car-title p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.price { font: 700 clamp(24px, 2.4vw, 32px)/1 var(--display); color: var(--ink); white-space: nowrap; }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.specs li {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg);
  font: 600 15px/1.2 var(--body); color: var(--ink);
}
.specs i { font-size: 20px; color: var(--gold-ink); flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; font-weight: 500; }
.chips i { font-size: 19px; color: var(--gold-ink); }

.more { border-top: 1px solid var(--line); padding-top: 14px; }
.more summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font: 600 16px/1 var(--body); color: var(--gold-ink); padding: 4px 0;
}
.more summary::-webkit-details-marker { display: none; }
.more summary i { transition: transform .3s var(--ease); }
.more[open] summary i { transform: rotate(180deg); }
.more p { margin: 12px 0 0; font-size: 16px; color: var(--muted); }
.more h4 { margin: 18px 0 10px; font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 16px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; }
.ticks i { color: var(--gold-ink); margin-top: 4px; }

.car-foot { margin-top: auto; display: flex; gap: 10px; padding-top: 4px; }
.car-foot .btn-gold { flex: 1; }
.car.sold .car-photo img { filter: grayscale(1) brightness(.6); }
.sold-badge {
  position: absolute; top: 14px; left: 14px; z-index: 1; padding: 8px 14px; background: var(--gold); color: var(--black);
  font: 700 13px/1 var(--display); letter-spacing: .08em;
}

.empty {
  grid-column: 1 / -1; padding: 64px 32px; background: var(--surface);
  display: grid; justify-items: start; gap: 14px;
}
.empty > i { font-size: 44px; color: var(--gold-ink); }
.empty h3 { font-size: 26px; }
.empty p { margin: 0 0 8px; color: var(--muted); max-width: 52ch; }

/* Sell your car */
.sell { padding: 0 0 104px; }
.sell-inner {
  background: var(--black); color: #fff; padding: 64px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center;
}
.sell-copy p { margin: 20px 0 28px; font-size: 19px; color: #c9c9ce; max-width: 40ch; }
.sell-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sell-points li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; }
.sell-points i { font-size: 26px; color: var(--gold); }

.sell-form { background: var(--surface); color: var(--ink); padding: 32px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: 16px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid #c9c7c0; background: #fff; color: var(--ink);
  font: 400 17px/1.4 var(--body); border-radius: 0;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #6e6e74; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgb(212 175 90 / .35); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.error { margin: 0; color: #b3261e; font-size: 15px; font-weight: 500; }
.hint { margin: -6px 0 0; font-size: 14.5px; color: var(--muted); }

/* Buying */
.buying { padding: 0 0 104px; }
.buying h2 { margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.steps li { padding: 28px 32px 8px 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps i { font-size: 34px; color: var(--gold-ink); }
.steps h3 { font-size: 22px; margin: 14px 0 8px; }
.steps p { margin: 0; color: var(--muted); }

/* Contact */
.contact { padding: 0 0 112px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.contact h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; }
.contact-copy p { color: var(--muted); font-size: 19px; max-width: 40ch; margin: 20px 0 0; }
.contact-actions { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-row {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px;
  padding: 24px 26px; background: var(--surface); transition: background-color .3s var(--ease);
}
.contact-row > i:first-child { font-size: 28px; color: var(--gold-ink); }
.contact-row span { display: grid; gap: 4px; font: 600 clamp(17px, 2vw, 22px)/1.2 var(--body); overflow-wrap: anywhere; }
.contact-row small { font: 500 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-row .go { font-size: 22px; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.contact-row:hover { background: #fbfaf6; }
.contact-row:hover .go { transform: translate(3px, -3px); color: var(--gold-ink); }

/* Footer */
.footer { background: var(--black); color: #c9c9ce; }
.footer-inner { padding: 48px 0; display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.brand-light { color: #fff; }
.brand-light b { color: var(--gold); }
.legal { margin: 0; font-size: 14.5px; line-height: 1.7; max-width: 70ch; }
.copy { margin: 0; font: 400 13.5px/1 var(--mono); color: #9a9aa1; }

/* Mobile quick-contact bar */
.mobile-bar { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 30; background: #0a0a0c; color: #fff; height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto;
}
.lightbox[hidden] { display: none; }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.lb-title { margin: 0; flex: 1; font: 700 18px/1.3 var(--display); }
.lb-count { font: 500 15px/1 var(--mono); color: #c9c9ce; }
.lb-close {
  width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer; font-size: 24px;
  display: grid; place-items: center; background: rgb(255 255 255 / .12); color: #fff;
}
.lb-close:hover { background: rgb(255 255 255 / .22); }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 76px; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 180px); width: auto; height: auto; object-fit: contain; user-select: none; }
.lb-nav { width: 56px; height: 56px; font-size: 26px; background: rgb(0 0 0 / .6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
.lb-nav:hover { background: rgb(0 0 0 / .85); }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
.lb-thumbs { display: flex; gap: 8px; padding: 12px 20px 18px; overflow-x: auto; justify-content: safe center; }
.lb-thumbs button { flex: 0 0 84px; height: 62px; padding: 0; border: 0; cursor: pointer; background: #222; opacity: .5; }
.lb-thumbs button[aria-current="true"] { opacity: 1; outline: 3px solid var(--gold); outline-offset: -3px; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Motion: entry + scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-visual { animation: unveil 1.2s var(--ease) .1s both; }
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes unveil { from { opacity: 0; transform: scale(.96); } }

/* Responsive */
@media (max-width: 1080px) {
  .sell-inner { padding: 48px; gap: 40px; grid-template-columns: 1fr; }
  .contact { gap: 40px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 56px; }
  .lead { font-size: 18px; }
}
@media (max-width: 767px) {
  body { padding-bottom: 76px; }
  .wrap { width: min(1320px, 100% - 32px); }
  .nav-inner { gap: 12px; }
  .nav-links { display: none; }
  .brand { font-size: 18px; }
  .nav-call { margin-left: auto; height: 42px; padding: 0 14px; font-size: 14px; }
  .hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-tag { padding: 14px 18px; }
  .section-head { margin-bottom: 24px; }
  .stock h2 { font-size: 30px; }
  .car { --cut: 0px; }
  .stock { padding: 24px 0 72px; }
  .wrap.stock .grid { margin-inline: -16px; }
  .car-body { padding: 16px 18px 20px; }
  .car-top { flex-direction: column; gap: 10px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .nav-btn { width: 44px; height: 44px; }
  .sell { padding-bottom: 72px; }
  .sell .wrap { width: 100%; }
  .sell-inner { padding: 40px 16px; --cut: 0px; }
  .sell-form { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .buying { padding-bottom: 72px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .contact { grid-template-columns: 1fr; gap: 28px; padding-bottom: 72px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .lb-stage { padding: 0; }
  .lb-nav { width: 46px; height: 46px; }
  .lb-title { font-size: 15px; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(15 15 17 / .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .mobile-bar a {
    height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px;
    font: 600 16px/1 var(--body); color: #fff; background: var(--black-2); white-space: nowrap;
  }
  .mobile-bar a i { font-size: 22px; color: var(--gold); }
  .mobile-bar a.wa { background: var(--gold); color: var(--black); }
  .mobile-bar a.wa i { color: var(--black); }
}
@media (max-width: 380px) {
  .nav-call span { display: none; }
  .nav-call { width: 46px; padding: 0; }
}
