:root {
  --bg: #0c1116;
  --surface: #ffffff;
  --ink: #10161d;
  --muted: #5b6673;
  --line: #e6e9ee;
  --brand: #1f6feb;
  --brand-ink: #0b3ea8;
  --accent: #12b886;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 22, 29, 0.08);
  --maxw: 1120px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #f6f8fb;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

a { color: inherit; text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover { background: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #eef2f7; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(246, 248, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}
.nav-links { display: flex; gap: 1.25rem; margin-left: auto; font-size: 0.95rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { margin-left: 0.5rem; }

/* Hero */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.8rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.lede { font-size: 1.15rem; color: var(--muted); margin: 1rem 0 1.6rem; max-width: 34ch; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-stats {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 2.2rem 0 0;
}
.hero-stats strong { display: block; font-size: 1.5rem; }
.hero-stats span { color: var(--muted); font-size: 0.85rem; }

.hero-card {
  background: linear-gradient(160deg, #10161d, #1c2733);
  color: #fff;
  border-radius: 20px;
  padding: 1.6rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.hero-plate {
  align-self: flex-start;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: #f4d03f;
  color: #10161d;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
}
.hero-price span { color: #9fb3c8; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.hero-price strong { display: block; font-size: 1.4rem; margin: 0.35rem 0; }
.hero-price em { color: #9fb3c8; font-style: normal; }

/* Sections */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}
.section-alt { background: #fff; max-width: none; border-block: 1px solid var(--line); }
.section-alt > * { max-width: var(--maxw); margin-inline: auto; }
.section-head { max-width: 46ch; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--muted); margin: 0.6rem 0 0; }
.section-head p a { color: var(--brand); font-weight: 600; white-space: nowrap; }
.section-head p a:hover { color: var(--brand-ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media {
  height: 120px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dbe6f5, #eef2f7);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--brand-ink);
  position: relative;
}
.card-media::after {
  content: attr(data-make);
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  padding: 2px 8px;
  border-radius: 999px;
}
.card h3 { font-size: 1.05rem; margin-top: 0.3rem; }
.card h3 a:hover { color: var(--brand); }
.card-meta { color: var(--muted); font-size: 0.85rem; margin: 0; }
.card-price { font-weight: 800; font-size: 1.2rem; margin: 0.1rem 0 0.6rem; }
.card .btn { margin-top: auto; }

.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.feature { background: #f6f8fb; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.section-alt .feature { background: #f6f8fb; }
.feature h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); margin: 0; }
.prose { max-width: 62ch; color: var(--muted); font-size: 1.05rem; }

/* Lead form */
.lead-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
  max-width: 640px;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.lead-form input, .lead-form select {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.lead-form input:focus, .lead-form select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.lead-form .btn { grid-column: 1 / -1; justify-self: start; }
.lead-done { grid-column: 1 / -1; color: var(--accent); font-weight: 600; margin: 0; }

/* Footer */
.footer {
  background: var(--ink);
  color: #c6d2df;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  justify-content: space-between;
  align-items: center;
}
.footer strong { color: #fff; }
.footer p { margin: 0.3rem 0 0; font-size: 0.9rem; }
.footer-note { max-width: 44ch; font-size: 0.8rem; color: #8698ab; }

/* Vehicle detail pages (VDP) */
.breadcrumb {
  max-width: var(--maxw);
  margin: 1.5rem auto 0;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span[aria-current] { color: var(--ink); font-weight: 600; }

.vdp {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: start;
}
.vdp-gallery { display: grid; gap: 0.75rem; }
.vdp-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  display: block;
}
.vdp-gallery-thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

.vdp-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 5.5rem;
}
.vdp-panel h1 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.vdp-sub { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 1rem; }
.badge {
  display: inline-block;
  background: #eef4ff;
  color: var(--brand-ink);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.price-row { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.price-now { font-size: 2rem; font-weight: 800; }
.price-msrp { color: var(--muted); text-decoration: line-through; font-size: 1rem; }
.price-note { color: var(--muted); font-size: 0.8rem; margin: 0.25rem 0 1.25rem; }
.vdp-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.vdp-actions .btn { width: 100%; }
.vdp-phone { text-align: center; font-size: 0.85rem; color: var(--muted); margin: 0.9rem 0 0; }
.vdp-phone strong { color: var(--ink); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 0;
}
.spec-grid > div {
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}
.spec-k { display: block; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.spec-v { display: block; font-weight: 600; }

.feature-list {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.feature-list li { margin-bottom: 0.3rem; break-inside: avoid; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.related-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: block;
}
.related-card:hover { box-shadow: var(--shadow); }
.related-card strong { display: block; font-size: 0.98rem; }
.related-card span { color: var(--muted); font-size: 0.85rem; }

@media (max-width: 900px) {
  .vdp { grid-template-columns: 1fr; }
  .vdp-panel { position: static; }
  .feature-list { columns: 1; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .lead-form { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.2rem; }
}
