:root {
  --ink: #0a0c0e;
  --ink-2: #14171a;
  --ink-3: #1d2125;
  --paper: #f5f4f1;
  --surface: #ffffff;
  --surface-2: #eceae5;
  --gold: #c89a2b;
  --gold-bright: #e7c363;
  --gold-soft: #f5e6bd;
  --text: #15181b;
  --muted: #646a70;
  --line: #dcd9d1;
  --success: #1f7a4d;
  --danger: #a83832;
  --shadow-sm: 0 8px 24px rgba(10,12,14,.08);
  --shadow: 0 24px 70px rgba(10,12,14,.14);
  --radius: 18px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
h1, h2, h3 {
  margin: 0 0 .6em;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
}
p { margin: 0 0 1em; }
.wrap { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: white; color: black; padding: 12px 16px; border-radius: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  color: white;
  background: rgba(10,12,14,.96);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}
.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; }
.brand img { width: 210px; height: 64px; padding: 6px 9px; border: 1px solid rgba(200,154,43,.35); border-radius: 10px; background: linear-gradient(145deg,#fff,#eeeae0); object-fit: contain; object-position: center; }
.brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 10px 13px; border-radius: 9px; text-decoration: none; font-size: .92rem; font-weight: 700; color: #d8dadd; transition: .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: white; background: rgba(255,255,255,.08); }
.nav-links a:last-child { margin-left: 6px; padding-inline: 18px; color: #101214; background: linear-gradient(135deg,var(--gold-bright),var(--gold)); }
.menu { display: none; min-width: 44px; min-height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: transparent; color: white; font-size: 1.45rem; cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .78rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(135deg,var(--gold-bright),var(--gold));
  color: #111315;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(200,154,43,.28); }
.btn.alt { border-color: #aeb2b5; background: transparent; color: inherit; box-shadow: none; }
.btn.dark { border-color: var(--ink); background: var(--ink); color: white; }
.btn.small { min-height: 42px; padding: .62rem .9rem; font-size: .9rem; }

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 78% 38%, rgba(200,154,43,.22), transparent 27%),
    linear-gradient(120deg, #07090b 0%, #121518 65%, #080a0c 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size: 70px 70px; mask-image: linear-gradient(90deg,#000,transparent 82%); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -240px; bottom: -360px; border: 1px solid rgba(231,195,99,.42); border-radius: 50%; box-shadow: 0 0 0 90px rgba(231,195,99,.035),0 0 0 180px rgba(231,195,99,.025); }
.hero-content { position: relative; z-index: 1; padding: 108px 0 96px; max-width: 880px; }
.hero h1 { max-width: 830px; font-size: clamp(3.2rem,7.5vw,6.9rem); letter-spacing: -.06em; }
.hero h1 em { color: var(--gold-bright); font-style: normal; }
.hero .hero-lead { max-width: 680px; color: #c9cdd0; font-size: clamp(1.05rem,2vw,1.28rem); }
.eyebrow { margin-bottom: 16px; color: var(--gold); font-size: .76rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.hero .eyebrow { color: var(--gold-bright); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.trust-row { display: flex; gap: 12px 30px; flex-wrap: wrap; margin-top: 48px; color: #d5d8da; font-size: .88rem; font-weight: 700; }
.trust-row span::before { content: "✓"; margin-right: 8px; color: var(--gold-bright); }

.section { padding: 94px 0; }
.section.tight { padding: 58px 0; }
.section.dark { background: var(--ink); color: white; }
.section.cream { background: var(--surface-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-title { max-width: 760px; font-size: clamp(2.15rem,4.6vw,4.3rem); }
.lead { max-width: 780px; color: var(--muted); font-size: 1.12rem; }
.dark .lead { color: #b9bec2; }
.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(3,1fr); }
.grid.two { grid-template-columns: repeat(2,1fr); }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.service-card { position: relative; overflow: hidden; padding-top: 72px; }
.service-card::before { content: attr(data-number); position: absolute; top: 22px; right: 24px; color: rgba(200,154,43,.22); font-size: 3.4rem; font-weight: 900; line-height: 1; }
.service-card h3 { font-size: 1.45rem; }
.number { color: var(--gold); font-size: .78rem; font-weight: 900; letter-spacing: .13em; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split > img { width: 100%; min-height: 480px; max-height: 560px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.dealer-panel { min-height: 510px; display: grid; place-items: center; padding: 54px; border: 1px solid #292d30; border-radius: 28px; background: radial-gradient(circle at 50% 30%,rgba(200,154,43,.18),transparent 45%),linear-gradient(145deg,#1a1e21,#0b0d0f); }
.dealer-panel strong { display: block; color: var(--gold-bright); font-size: clamp(4rem,8vw,7rem); letter-spacing: -.08em; }
.dealer-panel span { color: #bbc0c4; font-size: 1rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.checklist { padding: 0; list-style: none; }
.checklist li { position: relative; padding: .42rem 0 .42rem 1.8rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }
.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.page-hero { position: relative; overflow: hidden; padding: 96px 0 72px; color: white; background: linear-gradient(120deg,var(--ink),#1a1e21); }
.page-hero::after { content: ""; position: absolute; width: 330px; height: 330px; right: 4%; top: -190px; border: 1px solid rgba(231,195,99,.3); border-radius: 50%; box-shadow: 0 0 0 55px rgba(231,195,99,.03); }
.page-hero h1 { max-width: 850px; font-size: clamp(2.7rem,6vw,5.4rem); }
.page-hero p:not(.eyebrow) { max-width: 720px; color: #c8ccd0; font-size: 1.12rem; }
.inventory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.inventory-note { color: var(--muted); font-size: .92rem; }

.vehicle-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.featured-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.vehicle-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); transition: transform .25s ease,box-shadow .25s ease; }
.vehicle-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.vehicle-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4/3; background: #e2e2df; }
.vehicle-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vehicle-card:hover .vehicle-card-media img { transform: scale(1.035); }
.vehicle-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.badge { padding: 7px 10px; border-radius: 999px; background: rgba(10,12,14,.9); color: white; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.badge.featured { background: linear-gradient(135deg,var(--gold-bright),var(--gold)); color: #151719; }
.badge.sold { background: var(--danger); }
.vehicle-card-body { padding: 24px; }
.vehicle-card h2 { margin-bottom: 6px; font-size: clamp(1.55rem,2.4vw,2rem); }
.vehicle-subtitle { margin-bottom: 18px; color: var(--muted); font-weight: 700; }
.vehicle-card-specs { display: flex; gap: 8px 16px; flex-wrap: wrap; min-height: 28px; margin-bottom: 16px; color: #555b60; font-size: .9rem; }
.vehicle-card-price { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.price { margin: 0; color: #8a6715; font-size: clamp(1.65rem,3vw,2.25rem); font-weight: 900; letter-spacing: -.04em; }
.vehicle-card-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 18px; }

.vehicle-detail-shell { padding-top: 38px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--muted); text-decoration: none; font-weight: 700; }
.breadcrumb:hover { color: var(--gold); }
.vehicle-detail { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(340px,.8fr); gap: 50px; align-items: start; }
.detail-gallery { position: sticky; top: 116px; min-width: 0; }
.main-media { position: relative; overflow: hidden; border-radius: 20px; background: #111416; box-shadow: var(--shadow); }
.vehicle-main { width: 100%; aspect-ratio: 16/10; object-fit: contain; background: #111416; cursor: zoom-in; }
.gallery-counter { position: absolute; right: 16px; bottom: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(0,0,0,.72); color: white; font-size: .82rem; font-weight: 800; }
.gallery-arrow { position: absolute; top: 50%; width: 46px; height: 46px; translate: 0 -50%; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(8,10,12,.74); color: white; font-size: 1.55rem; cursor: pointer; backdrop-filter: blur(8px); }
.gallery-arrow:hover { background: var(--gold); color: black; }
.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }
.thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(92px,1fr); gap: 10px; overflow-x: auto; margin-top: 12px; padding: 2px 2px 8px; scrollbar-width: thin; }
.thumbs button { overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 9px; background: #d6d6d2; cursor: pointer; }
.thumbs button.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200,154,43,.2); }
.thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.vehicle-info { padding-top: 8px; }
.vehicle-info h1 { margin-bottom: 8px; font-size: clamp(2.6rem,5vw,4.8rem); }
.vehicle-status { display: inline-flex; margin-bottom: 18px; padding: 7px 11px; border-radius: 999px; background: #e5f2eb; color: var(--success); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.vehicle-status.sold { background: #f5e4e2; color: var(--danger); }
.detail-price { margin: 22px 0 18px; font-size: clamp(2.1rem,4vw,3.3rem); }
.facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 26px 0 32px; }
.facts .card { padding: 16px; box-shadow: none; }
.facts strong { color: var(--muted); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.facts p { margin: .28rem 0 0; font-weight: 800; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }

.gallery-dialog { width: min(1180px,96vw); max-width: 1180px; padding: 0; border: 0; border-radius: 16px; background: #07090a; color: white; overflow: hidden; }
.gallery-dialog::backdrop { background: rgba(0,0,0,.92); }
.gallery-dialog img { width: 100%; max-height: 84vh; object-fit: contain; }
.gallery-dialog .lightbox-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(0,0,0,.7); color: white; font-size: 1.5rem; cursor: pointer; }
.gallery-dialog .gallery-counter { bottom: 14px; left: 50%; right: auto; translate: -50% 0; }

.form { display: grid; gap: 16px; }
.form label { color: #34383c; font-weight: 800; }
.form input,.form textarea,.form select { width: 100%; margin-top: 6px; padding: 14px; border: 1px solid #babec1; border-radius: 9px; background: white; color: var(--text); }
.form input[type="checkbox"] { width: auto; margin: 0 .5rem 0 0; padding: 0; }
.form label.fine { display: flex; align-items: flex-start; gap: 5px; font-weight: 500; }
.form input:focus,.form textarea:focus,.form select:focus { outline: 3px solid rgba(200,154,43,.2); border-color: var(--gold); }
.form textarea { min-height: 145px; resize: vertical; }
.fine { color: var(--muted); font-size: .84rem; }
.notice { padding: 17px 19px; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--gold-soft); }
.map { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }
.status { display: none; padding: 10px; border-radius: 8px; background: #e7f4e9; }
.status.show { display: block; }
.status.error { background: #fbe8e8; color: #8b1e1e; }
.form button:disabled,.form select:disabled { cursor: not-allowed; opacity: .62; }

.site-footer { padding: 62px 0 26px; background: #080a0c; color: #c8ccd0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.site-footer .brand img { width: 230px; height: 68px; }
.site-footer h3 { margin-bottom: 14px; color: white; font-size: 1rem; letter-spacing: .03em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.copyright { margin-top: 38px; padding-top: 22px; border-top: 1px solid #292d30; color: #83898e; font-size: .84rem; }

@media (max-width: 980px) {
  .menu { display: grid; place-items: center; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 88px; padding: 18px 24px 24px; flex-direction: column; align-items: stretch; background: #0a0c0e; border-top: 1px solid #272b2e; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a:last-child { margin-left: 0; text-align: center; }
  .grid.three,.grid.two,.split,.footer-grid,.vehicle-detail { grid-template-columns: 1fr; }
  .vehicle-grid,.featured-grid { grid-template-columns: repeat(2,1fr); }
  .detail-gallery { position: static; }
  .dealer-panel { min-height: 360px; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px,1220px); }
  .nav { min-height: 76px; }
  .brand img { width: 168px; height: 52px; }
  .nav-links { top: 76px; }
  .hero { min-height: 610px; }
  .hero-content { padding: 82px 0 70px; }
  .hero h1 { font-size: clamp(2.85rem,14vw,4.5rem); }
  .trust-row { display: grid; gap: 10px; margin-top: 36px; }
  .section { padding: 68px 0; }
  .section-head,.contact-strip,.inventory-toolbar { align-items: flex-start; flex-direction: column; }
  .vehicle-grid,.featured-grid { grid-template-columns: 1fr; }
  .vehicle-card-media { aspect-ratio: 16/11; }
  .vehicle-card-actions,.detail-actions { grid-template-columns: 1fr; }
  .page-hero { padding: 72px 0 54px; }
  .vehicle-detail-shell { padding-top: 22px; }
  .vehicle-info h1 { font-size: 2.65rem; }
  .facts { grid-template-columns: 1fr; }
  .vehicle-main { aspect-ratio: 4/3; }
  .thumbs { grid-auto-columns: 78px; }
  .gallery-arrow { width: 42px; height: 42px; }
  .card { padding: 22px; }
  .footer-grid { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; }
}

.vehicle-fields { display:grid; grid-template-columns:.7fr 1fr 1fr; gap:12px; }
.appointment-picker { border:0; padding:0; margin:4px 0; }
.appointment-picker legend { font-weight:700; margin-bottom:10px; }
.appointment-calendar { display:grid; grid-template-columns:repeat(7,1fr); gap:7px; max-height:310px; overflow:auto; padding:2px; }
.appointment-day,.appointment-time { border:1px solid #d8d8d4; background:#fff; color:#222; border-radius:8px; cursor:pointer; transition:.15s; }
.appointment-day { min-height:58px; display:grid; place-content:center; gap:2px; }
.appointment-day span { font-size:.7rem; color:#686862; text-transform:uppercase; }
.appointment-day b { font-size:1rem; }
.appointment-day:disabled { background:#f2f2ef; color:#aaa; cursor:not-allowed; opacity:.65; }
.appointment-day.selected,.appointment-time.selected { background:#161918; color:#fff; border-color:#161918; }
.appointment-times { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.appointment-time { padding:10px 14px; font-weight:700; }
@media(max-width:640px){.vehicle-fields{grid-template-columns:1fr}.appointment-calendar{grid-template-columns:repeat(5,1fr)}}
.appointment-success{padding:clamp(1.5rem,4vw,2.5rem);border:1px solid rgba(31,119,90,.25);border-radius:18px;background:#f2faf6;color:#183d32}.appointment-success h3{margin:0 0 1.25rem;font-size:clamp(1.35rem,2.8vw,1.85rem);color:#176b50}.appointment-success dl{display:grid;grid-template-columns:minmax(9rem,.7fr) 1.3fr;gap:.55rem 1rem;margin:0}.appointment-success dt{font-weight:700;color:#536b63}.appointment-success dd{margin:0;font-weight:700}.appointment-success p{margin:1.25rem 0 0;padding-top:1rem;border-top:1px solid rgba(31,119,90,.18)}@media(max-width:560px){.appointment-success dl{grid-template-columns:1fr;gap:.15rem}.appointment-success dd{margin-bottom:.65rem}}
