:root {
  --red: #D92027;
  --red-dark: #b3181e;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --bg: #f6f6f6;
  --card: #ffffff;
  --radius: 10px;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 12px; top: -40px; z-index: 20;
  background: var(--ink); color: #fff; padding: 8px 12px;
}
.skip-link:focus { top: 12px; }

.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
}
.logo img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.site-nav a {
  color: #fff;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 500;
  border-radius: 8px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.1); text-decoration: none; }
.nav-phone { background: var(--red) !important; }
.nav-phone:hover { background: var(--red-dark) !important; }

main { flex: 1; }
.hero {
  background: var(--ink);
  color: #fff;
  padding: 40px 0 36px;
}
.hero h1, .vehicle-summary h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--red); margin: 0 0 8px; }
.hero .lede, .lede { margin: 0; color: #d0d0d0; max-width: 40rem; }
.count { color: var(--muted); margin: 0 0 20px; }
.inventory-section { padding: 32px 0 64px; }
.inventory-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .inventory-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .inventory-grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  height: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.card:hover { border-color: #ccc; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card-body { padding: 16px 16px 20px; }
.card-body h2 { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.35; }
.ymm { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.price { margin: 0; font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.card .meta { margin: 8px 0 0; color: var(--muted); font-size: .9rem; display: flex; gap: 12px; flex-wrap: wrap; }

.ratio-4x3 { aspect-ratio: 4 / 3; overflow: hidden; background: #1a1a1a; }
.ratio-4x3 img { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback { width: 100%; height: 100%; background: linear-gradient(135deg, #222, #444); }

.crumb { padding: 20px 0 8px; color: var(--muted); font-size: .9rem; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--muted); }
.vehicle-layout {
  display: grid;
  gap: 28px;
  padding-bottom: 16px;
}
@media (min-width: 900px) {
  .vehicle-layout { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); align-items: start; }
}
.hero-photo {
  width: 100%;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}
.thumbs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  padding: 12px 0 0;
  margin: 0;
}
.thumb {
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  min-height: 44px;
}
.thumb:focus, .hero-photo:focus { outline: 3px solid var(--red); outline-offset: 2px; }

.vehicle-summary { position: sticky; top: 84px; }
.vehicle-summary .price { font-size: 2rem; margin: 0 0 16px; }
.specs { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.specs span { color: var(--muted); font-weight: 400; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; background: var(--bg); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-secondary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-secondary:hover { background: #000; }

.vehicle-details { display: grid; gap: 32px; padding: 24px 0 64px; }
@media (min-width: 900px) {
  .vehicle-details { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); align-items: start; }
}
.prose { white-space: pre-wrap; color: #222; max-width: 70ch; }
.inquiry {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
}
.inquiry h2 { margin-top: 0; }
.inquiry-form { display: grid; gap: 12px; }
.inquiry-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.inquiry-form input, .inquiry-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  min-height: 44px;
  width: 100%;
}
.inquiry-form textarea { min-height: 120px; resize: vertical; }
.optional { font-weight: 400; color: var(--muted); }
.form-errors { color: var(--red); padding-left: 1.1rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.thanks { padding: 48px 0 80px; max-width: 44rem; }
.empty { padding: 24px 0 80px; }

.site-footer { background: var(--ink); color: #cfcfcf; margin-top: auto; }
.site-footer a { color: #fff; }
.footer-inner { align-items: start; padding: 32px 0; }
.copyright { width: 100%; margin: 8px 0 0; font-size: .85rem; color: #999; }

.lightbox {
  border: 0;
  padding: 0;
  width: min(100vw, 1200px);
  max-width: 100vw;
  height: min(100vh, 900px);
  background: #000;
  color: #fff;
}
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
}
.lightbox-close { background: transparent; color: #fff; border-color: #444; min-width: 44px; }
.lightbox-stage {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: calc(100% - 60px);
  gap: 8px;
  padding: 0 8px 16px;
}
.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0 auto;
}
.lightbox-nav {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 8px;
}
.lightbox-nav:hover { background: var(--red); }
