/* =========================================================
   Atlantic Auto Dealer — Remaster
   Palette from the logo: Red / Gold / Steel / White on Charcoal
   ========================================================= */
:root {
  --bg: #0b0c0e;
  --bg-2: #101215;
  --surface: #15171b;
  --surface-2: #1c1f24;
  --surface-3: #252930;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f6;
  --muted: #9ca1a8;
  --red: #e31b23;
  --red-2: #ff3b42;
  --red-glow: rgba(227, 27, 35, 0.45);
  --gold: #f5c400;
  --gold-2: #ffd84a;
  --steel: #6c7076;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --header-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 115%; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: #fff; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.ic { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; stroke: currentColor; stroke-width: 2; }
.card__fav svg { fill: transparent; stroke: #fff; }
.card__fav.is-on svg { fill: #fff; }
.btn--icon svg { fill: transparent; }
.btn--icon.is-on svg { fill: currentColor; }
.ic--xl { width: 48px; height: 48px; }
.txt-red { color: var(--red); }
.txt-gold { color: var(--gold); }
.muted { color: var(--muted); }
.fine { font-size: .78rem; color: var(--muted); margin-top: 14px; }
.hide-sm { }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { width: 120px; }
.loader .ln { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1s var(--ease) forwards; }
.ln--red { stroke: var(--red); }
.ln--gold { stroke: var(--gold); animation-delay: .15s !important; }
.ln--steel { stroke: var(--steel); animation-delay: .3s !important; }
.ln--white { stroke: #fff; animation-delay: .4s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Buttons ---------- */
.btn {
  --bh: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--bh); padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s;
}
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--sm { --bh: 40px; padding: 0 18px; font-size: .88rem; }
.btn--lg { --bh: 56px; padding: 0 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px var(--red-glow); }
.btn--red::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--red:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--red-glow); background: var(--red-2); }
.btn--red:hover::before { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn--light { background: #fff; color: #111; }
.btn--light:hover { transform: translateY(-2px); background: var(--gold); }
.btn--icon { width: 48px; padding: 0; border: 1px solid var(--line-2); }
.btn--icon.is-on { color: var(--red); border-color: var(--red); background: rgba(227,27,35,.1); }
.link-btn { color: var(--gold); font-weight: 600; font-size: .9rem; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .4s var(--ease); }
.topbar { background: #000; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); transition: margin .4s var(--ease), opacity .3s; }
.topbar__inner { display: flex; gap: 28px; align-items: center; height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item .ic { color: var(--gold); }
.topbar__phone { margin-left: auto; color: #fff; font-weight: 600; }
.topbar__phone:hover { color: var(--gold); }
.nav { transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav__inner { display: flex; align-items: center; gap: 30px; height: 74px; }
.nav__logo img { height: 44px; width: auto; transition: height .4s var(--ease); }
.nav__links { display: flex; gap: 6px; list-style: none; margin: 0 auto; padding: 0; }
.nav__links a { padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: .93rem; color: rgba(255,255,255,.8); position: relative; transition: color .3s, background .3s; }
.nav__links a::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 2px; background: var(--red); transition: width .35s var(--ease), left .35s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after, .nav__links a:hover::after { width: 18px; left: calc(50% - 9px); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.fav-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: .85rem; transition: .3s; }
.fav-pill .ic { color: var(--red); }
.fav-pill:hover { border-color: var(--red); }
.fav-pill.bump { animation: bump .45s var(--ease); }
@keyframes bump { 50% { transform: scale(1.18); } }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: .35s var(--ease); }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.header.is-scrolled .topbar { margin-top: -38px; opacity: 0; }
.header.is-scrolled .nav { background: rgba(11,12,14,.78); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.header.is-scrolled .nav__inner { height: 66px; }
.header.is-scrolled .nav__logo img { height: 36px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 40px) 0 60px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 65% 60%; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.18) translate(-1.5%, -1%); } }
.hero__shade { position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(11,12,14,.96) 0%, rgba(11,12,14,.78) 38%, rgba(11,12,14,.25) 70%, rgba(11,12,14,.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11,12,14,0) 45%),
    radial-gradient(60% 60% at 80% 20%, rgba(227,27,35,.18), transparent 70%);
}
.hero__stripes { position: absolute; right: -40px; top: 120px; width: min(46vw, 620px); z-index: -1; opacity: .38; pointer-events: none; }
.hero__stripes .st { fill: none; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; }
.is-loaded .hero__stripes .st { animation: draw 2.2s var(--ease) forwards; }
.st--red { stroke: var(--red); }
.st--gold { stroke: var(--gold); animation-delay: .25s !important; }
.st--steel { stroke: var(--steel); animation-delay: .5s !important; }
.st--white { stroke: rgba(255,255,255,.7); animation-delay: .65s !important; }
.st--white2 { stroke: rgba(255,255,255,.35); animation-delay: .8s !important; }

.hero__content { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-bottom: 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red-glow); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(227,27,35,0); } 100% { box-shadow: 0 0 0 0 rgba(227,27,35,0); } }
.hero__title { font-size: clamp(3rem, 7.2vw, 6.6rem); font-weight: 900; text-transform: uppercase; line-height: .9; margin: 22px 0 22px; font-stretch: 125%; letter-spacing: -0.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero__title .line > span { transform: none; }
.hero__lead { max-width: 520px; font-size: 1.1rem; color: rgba(255,255,255,.78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__chips { display: grid; gap: 12px; }
.chip-card { padding: 16px 22px; min-width: 190px; border-radius: var(--radius-sm); background: rgba(21,23,27,.55); border: 1px solid var(--line-2); backdrop-filter: blur(14px); display: flex; flex-direction: column; }
.chip-card b { font-family: var(--display); font-stretch: 125%; font-size: 2rem; line-height: 1; font-weight: 800; }
.chip-card span { color: var(--muted); font-size: .82rem; }
.chip-card--gold b { color: var(--gold); }

.scroll-cue { position: absolute; left: 50%; bottom: 14px; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Search panel ---------- */
.search { position: relative; padding: 14px; border-radius: 24px; background: rgba(21,23,27,.72); border: 1px solid var(--line-2); backdrop-filter: blur(20px) saturate(1.3); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.search::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(120deg, var(--red), transparent 30%, transparent 70%, var(--gold)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .7; }
.search__tabs { display: flex; gap: 4px; padding: 4px 4px 12px; }
.search__tab { padding: 7px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); transition: .3s; }
.search__tab:hover { color: #fff; }
.search__tab.is-active { background: #fff; color: #111; }
.search__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.field:focus-within { border-color: var(--gold); background: rgba(255,255,255,.07); }
.field > span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.field select, .field input { background: none; border: 0; outline: 0; padding: 0; font-weight: 600; width: 100%; }
.field select option, select option { background: var(--surface); color: var(--text); }
.field__input { display: flex; align-items: center; gap: 10px; }
.field__input .ic { color: var(--muted); }
.search__btn { height: auto; min-height: 64px; border-radius: 14px; padding: 0 26px; }
.search__count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.25); font-size: .78rem; transition: transform .3s var(--ease); }
.search__count.bump { animation: bump .45s var(--ease); }

/* ---------- Marquee ---------- */
.marquee { padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__row { display: flex; align-items: center; }
.marquee__row span { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.6rem); text-transform: uppercase; padding: 0 28px; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); transition: color .3s, -webkit-text-stroke-color .3s; white-space: nowrap; cursor: default; }
.marquee__row span:hover { color: #fff; -webkit-text-stroke-color: #fff; }
.marquee__row i { width: 14px; height: 14px; flex: none; transform: rotate(45deg); background: var(--red); }
.marquee__row i:nth-of-type(3n+2) { background: var(--gold); }
.marquee__row i:nth-of-type(3n) { background: var(--steel); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section__head { margin-bottom: 48px; max-width: 760px; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section__head--split p { max-width: 380px; margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.section__head--center .kicker::after { content: ""; width: 28px; height: 2px; background: var(--red); }

/* ---------- Body types ---------- */
.bodies { padding-bottom: 40px; }
.bodies__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.body-card { position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-align: left; transition: transform .5s var(--ease), border-color .4s; display: flex; flex-direction: column; gap: 18px; min-height: 230px; }
.body-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(227,27,35,.22), transparent 45%); opacity: 0; transition: opacity .4s; }
.body-card:hover { transform: translateY(-6px); border-color: rgba(227,27,35,.5); }
.body-card:hover::before { opacity: 1; }
.body-card svg { width: 150px; height: 60px; color: #fff; position: relative; transition: transform .6s var(--ease), color .3s; }
.body-card:hover svg { transform: translateX(14px); color: var(--gold); }
.body-card h3 { font-size: 1.6rem; text-transform: uppercase; margin: auto 0 0; position: relative; }
.body-card small { color: var(--muted); position: relative; }
.body-card__n { position: absolute; top: 22px; right: 24px; font-family: var(--display); font-stretch: 125%; font-size: 4.2rem; font-weight: 900; line-height: 1; color: rgba(255,255,255,.05); transition: color .4s; }
.body-card:hover .body-card__n { color: rgba(227,27,35,.25); }

/* ---------- Spotlight ---------- */
.spotlight { padding: 60px 0 0; }
.spotlight__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; padding: 30px; border-radius: 28px; background: linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%); border: 1px solid var(--line); position: relative; overflow: hidden; }
.spotlight__inner::after { content: "AMG"; position: absolute; right: -10px; bottom: -60px; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 16rem; line-height: 1; color: rgba(255,255,255,.025); pointer-events: none; }
.spotlight__media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/4.2; }
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transition: transform 1.2s var(--ease); }
.spotlight__media:hover img { transform: scale(1.06); }
.spotlight__badge { position: absolute; top: 18px; left: 18px; padding: 7px 14px; border-radius: 999px; background: var(--gold); color: #111; font-weight: 800; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.spotlight__copy h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.spotlight__copy > p { color: rgba(255,255,255,.75); font-size: 1.05rem; }
.spec-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; margin: 26px 0; border: 1px solid var(--line); }
.spec-row > div { background: var(--surface-2); padding: 14px 16px; display: flex; flex-direction: column; }
.spec-row small { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.spec-row b { font-weight: 700; }
.spotlight__price { display: flex; gap: 40px; align-items: end; margin-bottom: 26px; }
.spotlight__price small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.spotlight__price strong { font-family: var(--display); font-stretch: 125%; font-size: 3rem; font-weight: 900; line-height: 1; }
.spotlight__est strong { font-size: 1.8rem; color: var(--gold); }
.spotlight__est span { color: var(--muted); }

/* ---------- Inventory ---------- */
.filters { padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 34px; display: grid; gap: 14px; position: relative; z-index: 2; }
.filters.is-stuck { box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.filters__row { display: flex; gap: 12px; align-items: center; }
.filters__row--wrap { flex-wrap: wrap; gap: 14px 22px; }
.filters__search { flex: 1; height: 50px; padding: 0 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .3s; }
.filters__search:focus-within { border-color: var(--gold); }
.filters__search input { flex: 1; background: none; border: 0; outline: 0; }
.clear-x { font-size: 1.3rem; color: var(--muted); opacity: 0; pointer-events: none; transition: .2s; }
.clear-x.is-on { opacity: 1; pointer-events: auto; }
.filters select { height: 50px; padding: 0 40px 0 16px; border-radius: 14px; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239ca1a8' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; border: 1px solid var(--line); appearance: none; font-weight: 600; font-size: .9rem; outline: 0; cursor: pointer; }
.filters select:focus { border-color: var(--gold); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.8); display: inline-flex; align-items: center; gap: 7px; transition: .25s var(--ease); }
.pill em { font-style: normal; font-size: .72rem; color: var(--muted); }
.pill:hover { border-color: #fff; color: #fff; }
.pill.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.pill.is-active em { color: rgba(255,255,255,.75); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.seg button { position: relative; z-index: 1; padding: 7px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); transition: color .3s, background .3s; }
.seg button:hover { color: #fff; }
.seg button.is-active { background: #fff; color: #111; }
.seg--full { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
.range { display: flex; flex-direction: column; gap: 6px; min-width: 200px; flex: 1; max-width: 260px; }
.range__label { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.range__label b { color: #fff; letter-spacing: 0; font-size: .9rem; text-transform: none; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--red) 0%, var(--gold) var(--p, 100%), var(--surface-3) var(--p, 100%)); outline: 0; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--red); box-shadow: 0 0 0 6px rgba(227,27,35,.15); transition: transform .2s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--red); }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; cursor: pointer; user-select: none; }
.toggle input { display: none; }
.toggle__ui { width: 42px; height: 24px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background .3s; }
.toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.toggle input:checked + .toggle__ui { background: var(--red); }
.toggle input:checked + .toggle__ui::after { transform: translateX(18px); }
.filters__status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.filters__status b { color: #fff; font-family: var(--display); font-stretch: 125%; font-size: 1.1rem; }
.active-tags { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.atag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: rgba(245,196,0,.12); color: var(--gold); font-size: .78rem; font-weight: 600; animation: pop .35s var(--ease); }
.atag button { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); line-height: 1; }
.atag button:hover { background: var(--gold); color: #111; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease), opacity .4s; animation: cardIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,.2); box-shadow: 0 30px 60px -25px rgba(0,0,0,.9), 0 0 0 1px rgba(227,27,35,.2); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,12,14,.85) 0%, transparent 45%); }
.card__badges { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 5px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(11,12,14,.7); backdrop-filter: blur(6px); border: 1px solid var(--line-2); }
.badge--red { background: var(--red); border-color: var(--red); }
.badge--gold { background: var(--gold); border-color: var(--gold); color: #111; }
.card__fav { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,12,14,.6); backdrop-filter: blur(6px); border: 1px solid var(--line-2); transition: .3s var(--ease); }
.card__fav svg { width: 18px; height: 18px; }
.card__fav:hover { transform: scale(1.1); }
.card__fav.is-on { background: var(--red); border-color: var(--red); color: #fff; animation: bump .45s var(--ease); }
.card__view { position: absolute; left: 16px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; opacity: 0; transform: translateY(10px); transition: .45s var(--ease); }
.card:hover .card__view { opacity: 1; transform: none; }
.card__body { padding: 20px 20px 22px; }
.card__year { font-size: .78rem; font-weight: 700; color: var(--gold); letter-spacing: .12em; }
.card__title { font-size: 1.25rem; text-transform: uppercase; margin: 4px 0 14px; min-height: 2.1em; display: flex; flex-direction: column; justify-content: end; }
.card__title small { display: block; font-family: var(--sans); font-size: .82rem; color: var(--muted); text-transform: none; font-weight: 500; margin-bottom: 2px; letter-spacing: 0; }
.card__specs { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); padding-bottom: 16px; border-bottom: 1px dashed var(--line-2); }
.card__specs span { display: inline-flex; align-items: center; gap: 6px; }
.card__specs .ic { color: var(--steel); }
.swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); }
.card__foot { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 16px; }
.card__price small { display: block; font-size: .7rem; color: var(--muted); }
.card__price strong { font-family: var(--display); font-stretch: 125%; font-size: 1.7rem; font-weight: 900; line-height: 1; }
.card__est { font-size: .78rem; color: var(--muted); text-align: right; }
.card__est b { display: block; color: #fff; font-size: 1rem; }
mark { background: rgba(245,196,0,.3); color: inherit; border-radius: 3px; padding: 0 2px; }

.empty { text-align: center; padding: 70px 20px; border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--muted); }
.empty .ic { color: var(--steel); margin-bottom: 10px; }
.empty h3 { color: #fff; font-size: 1.4rem; }
.inventory__more { margin-top: 40px; padding: 26px 30px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(227,27,35,.14), rgba(245,196,0,.06)); border: 1px solid rgba(227,27,35,.25); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.inventory__more p { margin: 0; }

/* ---------- Why / About ---------- */
.why { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.why::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(227,27,35,.12), transparent 65%); left: -250px; top: -200px; pointer-events: none; }
.why__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.why__copy p { color: rgba(255,255,255,.72); font-size: 1.05rem; }
.why__copy .btn { margin-top: 10px; }
.why__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why__cards .feat:nth-child(even) { transform: translateY(36px); }
.feat { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .4s, background .4s; }
.feat:hover { border-color: var(--line-2); background: var(--surface-2); }
.feat p { color: var(--muted); font-size: .92rem; margin: 0; }
.feat__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(227,27,35,.14); color: var(--red); margin-bottom: 18px; flex: none; }
.feat__ic .ic { width: 22px; height: 22px; }
.feat__ic--gold { background: rgba(245,196,0,.14); color: var(--gold); }
.feat__ic--steel { background: rgba(255,255,255,.08); color: #fff; }
.stats { margin-top: 110px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 34px 10px 0; border-right: 1px solid var(--line); text-align: center; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-stretch: 125%; font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; line-height: 1; background: linear-gradient(180deg, #fff 30%, var(--steel)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 40px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--red), var(--gold), var(--steel), #fff); opacity: .35; }
.step { position: relative; padding: 0 10px; text-align: center; }
.step__n { width: 80px; height: 80px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 1.4rem; background: var(--bg); border: 2px solid var(--line-2); position: relative; transition: .4s var(--ease); }
.step:hover .step__n { border-color: var(--red); background: var(--red); transform: scale(1.08) rotate(-6deg); box-shadow: 0 14px 30px -10px var(--red-glow); }
.step p { color: var(--muted); font-size: .92rem; }
.step h3 { text-transform: uppercase; font-size: 1.25rem; }

/* ---------- Financing ---------- */
.financing { background: radial-gradient(70% 80% at 100% 0%, rgba(245,196,0,.08), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(227,27,35,.12), transparent 60%); }
.financing__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.financing__copy > p { color: rgba(255,255,255,.72); font-size: 1.05rem; max-width: 520px; }
.credit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 30px 0 34px; }
.credit { padding: 16px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); text-align: left; transition: .3s var(--ease); display: flex; flex-direction: column; }
.credit b { font-size: .95rem; }
.credit span { font-size: .78rem; color: var(--muted); }
.credit:hover { border-color: #fff; transform: translateY(-3px); }
.credit.is-active { border-color: var(--gold); background: rgba(245,196,0,.1); }
.credit.is-active b { color: var(--gold); }
.calc { padding: 32px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); display: grid; gap: 22px; }
.calc__head { display: flex; justify-content: space-between; align-items: center; }
.calc__head h3 { font-size: 1.4rem; text-transform: uppercase; margin: 0; }
.calc__badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #4ade80; }
.calc__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
.calc__field { display: grid; gap: 10px; }
.calc select { height: 48px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; outline: 0; }
.calc__result { padding: 22px 24px; border-radius: 18px; background: linear-gradient(135deg, var(--red) 0%, #9d0f15 100%); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; position: relative; overflow: hidden; }
.calc__result::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border: 18px solid rgba(255,255,255,.08); transform: rotate(30deg); }
.calc__result small { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.calc__result strong { display: block; font-family: var(--display); font-stretch: 125%; font-size: 3rem; font-weight: 900; line-height: 1; }
.calc__meta { display: grid; gap: 4px; font-size: .85rem; text-align: right; position: relative; z-index: 1; }
.calc .fine { margin: 0; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form { padding: 30px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.form__tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.form__tabs button { padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); transition: .3s; }
.form__tabs button.is-active { background: var(--gold); color: #111; border-color: var(--gold); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ffield { position: relative; display: block; }
.ffield input, .ffield textarea, .ffield select { width: 100%; padding: 22px 16px 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); outline: 0; transition: border-color .3s; resize: vertical; }
.ffield select { padding: 15px 16px; appearance: none; }
.ffield span { position: absolute; left: 17px; top: 15px; color: var(--muted); pointer-events: none; transition: .25s var(--ease); font-size: .95rem; }
.ffield input:focus, .ffield textarea:focus, .ffield select:focus { border-color: var(--gold); }
.ffield input:focus + span, .ffield input:not(:placeholder-shown) + span,
.ffield textarea:focus + span, .ffield textarea:not(:placeholder-shown) + span { top: 6px; font-size: .7rem; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contact__side { display: grid; gap: 16px; align-content: start; }
.map { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg); transition: filter .5s; }
.map:hover iframe { filter: none; }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
a.info:hover { border-color: var(--gold); }
.info .feat__ic { margin: 0; }
.info small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.info b { font-weight: 600; line-height: 1.4; }
.info--hours { grid-column: 1 / -1; }
.info--hours > div { flex: 1; }
.hours { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 2px; }
.hours li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.hours li:last-child { border: 0; }
.hours li.is-today { color: var(--gold); font-weight: 700; }
.open-badge { font-style: normal; padding: 2px 8px; border-radius: 999px; font-size: .66rem; letter-spacing: .06em; }
.open-badge.is-open { background: rgba(74,222,128,.15); color: #4ade80; }
.open-badge.is-closed { background: rgba(227,27,35,.15); color: var(--red-2); }

/* ---------- CTA band ---------- */
.band { padding: 90px 0; background: var(--red); position: relative; overflow: hidden; }
.band::before, .band::after { content: ""; position: absolute; height: 18px; width: 140%; left: -20%; transform: rotate(-8deg); }
.band::before { top: 30%; background: rgba(0,0,0,.18); }
.band::after { top: 30%; margin-top: 34px; background: var(--gold); opacity: .9; }
.band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.band h2 { margin: 0; max-width: 640px; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.band .txt-gold { color: #111; }

/* ---------- Footer ---------- */
.footer { background: #050506; padding: 80px 0 30px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 48px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); max-width: 300px; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer__bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel { position: relative; width: min(1040px, 100%); max-height: calc(100svh - 40px); overflow: auto; display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 26px; background: var(--surface); border: 1px solid var(--line-2); transform: translateY(40px) scale(.96); opacity: 0; transition: transform .55s var(--ease), opacity .4s; }
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.5); border: 1px solid var(--line-2); font-size: 1.5rem; line-height: 1; transition: .3s; }
.modal__close:hover { background: var(--red); transform: rotate(90deg); }
.modal__media { position: relative; min-height: 420px; background: var(--surface-2); }
.modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal__stock { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); font-size: .78rem; font-weight: 600; }
.modal__body { padding: 36px 32px; display: flex; flex-direction: column; }
.modal__body h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); text-transform: uppercase; font-weight: 800; }
.modal__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.modal__price strong { font-family: var(--display); font-stretch: 125%; font-size: 2.6rem; font-weight: 900; line-height: 1; }
.modal__price small { color: var(--muted); }
.spec-row--modal { grid-template-columns: repeat(2, 1fr); margin: 22px 0; }
.modal__est { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: rgba(245,196,0,.1); border: 1px solid rgba(245,196,0,.3); margin-bottom: 22px; flex-wrap: wrap; }
.modal__est small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.modal__est b { font-family: var(--display); font-stretch: 125%; font-size: 1.6rem; color: var(--gold); }
.modal__est span { font-size: .8rem; color: var(--muted); }
.modal .hero__actions { margin-top: auto; }

/* ---------- Toast / FAB ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 400; transform: translate(-50%, 160%); opacity: 0; visibility: hidden; padding: 14px 22px; border-radius: 14px; background: #fff; color: #111; font-weight: 600; box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); transition: transform .5s var(--ease), opacity .3s, visibility .5s; max-width: calc(100% - 40px); }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: none; place-items: center; background: var(--red); box-shadow: 0 12px 30px -8px var(--red-glow); }
.fab .ic { width: 22px; height: 22px; }

/* ---------- Reveal ---------- */
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.is-visible { opacity: 1 !important; transform: none !important; }
.why__cards .feat:nth-child(even).is-visible { transform: translateY(36px) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .search__grid { grid-template-columns: 1fr 1fr; }
  .field--grow { grid-column: 1 / -1; }
  .search__btn { grid-column: 1 / -1; min-height: 56px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight__inner, .why__inner, .financing__inner, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .spotlight__media { aspect-ratio: 16/11; }
  .hero__chips { display: none; }
  .hero__content { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .filters { position: static; }
}
@media (max-width: 860px) {
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(340px, 85vw); flex-direction: column; gap: 4px; padding: 110px 26px 30px; margin: 0; background: rgba(11,12,14,.97); backdrop-filter: blur(16px); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .5s var(--ease); }
  .nav__links.is-open { transform: none; }
  .nav__links a { display: block; font-size: 1.4rem; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; padding: 12px 6px; }
  .nav__links a::after { display: none; }
  .burger { display: block; z-index: 2; }
  .nav__cta { margin-left: auto; }
  .hide-sm { display: none !important; }
  .bodies__grid, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat { padding-bottom: 24px; }
  .section__head--split { flex-direction: column; align-items: start; }
  .credit-grid { grid-template-columns: 1fr 1fr; }
  .fab { display: grid; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .why__cards { grid-template-columns: 1fr; }
  .why__cards .feat:nth-child(even), .why__cards .feat:nth-child(even).is-visible { transform: none !important; }
  .spec-row { grid-template-columns: 1fr 1fr; }
  .form__row, .info-cards { grid-template-columns: 1fr; }
  .filters__row:first-child { flex-wrap: wrap; }
  .filters__search { flex-basis: 100%; }
  .filters select { flex: 1; }
  .range { max-width: none; min-width: 100%; }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__media { min-height: 260px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .spotlight__inner { padding: 16px; }
  .spotlight__price { gap: 24px; }
  .topbar__inner { gap: 14px; }
  .topbar__item:first-child { display: none; }
  .calc { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.spotlight__pre { display: block; font-size: .42em; color: var(--muted); letter-spacing: .04em; margin-bottom: .3em; }

/* Prevent transformed / decorative elements from widening the mobile layout viewport */
html { overflow-x: hidden; }
main, footer, .hero, .section, .spotlight { overflow-x: clip; }
.grid > *, .spotlight__inner > *, .financing__inner > *, .contact__grid > *, .why__inner > * { min-width: 0; }
