:root {
  --bg: #fbfdf8;
  --surface: #ffffff;
  --surface-2: #eff8df;
  --ink: #172014;
  --muted: #687460;
  --line: #dce9d1;
  --accent: #b9f23d;
  --accent-strong: #6fa900;
  --shadow: 0 22px 70px rgba(38, 64, 22, 0.12);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.actions,
.spec-list,
.contact-panel,
.header-actions,
.dialog-actions,
.meta-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  display: block;
  width: 72px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius);
  background: #111;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

nav {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.header-actions { gap: 10px; }

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #102000;
  box-shadow: 0 12px 28px rgba(111, 169, 0, 0.18);
}

.secondary {
  background: var(--surface);
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.hero-copy { max-width: 760px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: 0;
}

.listing p,
.process p,
.vehicle-detail p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

#dialogDescription {
  white-space: pre-line;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.feature-card,
.listing,
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card { overflow: hidden; }
.feature-body { padding: 24px; }
.feature-body dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}

dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.feature-photo,
.card-photo {
  display: block;
  width: 100%;
  object-fit: cover;
  background: var(--surface-2);
}

.feature-photo { aspect-ratio: 16 / 10; }

.photo-missing {
  object-fit: contain;
  padding: 18px;
}

.section {
  padding: clamp(52px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.listing {
  display: grid;
  gap: 14px;
  padding: 16px;
  text-align: left;
  appearance: none;
  border-color: var(--line);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.listing:hover,
.listing:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-strong) 42%, var(--line));
  box-shadow: 0 26px 78px rgba(38, 64, 22, 0.17);
  outline: none;
}

.listing.featured {
  grid-column: span 3;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 20px;
}

.card-photo {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
}

.listing.featured .card-photo {
  height: 100%;
  min-height: 230px;
}

.listing strong {
  font-size: 24px;
}

.meta-row,
.spec-list {
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row span,
.spec-list span {
  padding: 9px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.process,
.contact,
.prequal {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.contact-panel {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px;
  font-weight: 800;
}

.vehicle-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(23, 32, 20, 0.28);
}

.vehicle-dialog::backdrop {
  background: rgba(23, 32, 20, 0.48);
  backdrop-filter: blur(5px);
}

.dialog-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 26px;
  padding: clamp(16px, 3vw, 28px);
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.close-dialog {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.gallery {
  min-width: 0;
}

#dialogHero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-height: 212px;
  margin-top: 12px;
  overflow: auto;
  padding-right: 4px;
}

.thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.thumb[aria-current="true"] {
  border-color: var(--accent-strong);
}

.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.vehicle-detail {
  min-width: 0;
  padding: 10px 14px 10px 0;
}

.dialog-price {
  display: block;
  margin: 6px 0 18px;
  font-size: clamp(30px, 4vw, 46px);
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.detail-specs div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.dialog-actions {
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 880px) {
  nav { display: none; }
  .header-actions .secondary { display: none; }
  .hero,
  .process,
  .contact,
  .prequal,
  .dialog-shell {
    grid-template-columns: 1fr;
  }
  .inventory-grid {
    grid-template-columns: 1fr;
  }
  .listing.featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .feature-body dl,
  .detail-specs {
    grid-template-columns: 1fr;
  }
  h1 { font-size: clamp(40px, 15vw, 64px); }
  .vehicle-detail { padding: 0; }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
  }
  .brand-logo {
    width: 58px;
    height: 36px;
  }
  .brand small {
    display: none;
  }
  .button {
    width: 100%;
  }
  .header-actions .button {
    width: auto;
  }
  .thumb-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
