:root {
  --navy: #0a1f3d;
  --navy-dark: #06142a;
  --red: #c8102e;
  --red-dark: #a30d26;
  --orange: #ff8a00;
  --bg: #f7f8fa;
  --card: #ffffff;
  --ink: #1a1f2b;
  --muted: #5b6472;
  --border: #e4e7ec;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(10, 31, 61, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Top utility bar */
.topbar {
  background: var(--navy-dark);
  color: #cfd8e3;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar .hours-hint { color: #9fb0c6; }

/* Header */
header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo img { height: 42px; }
nav.main-nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a { color: var(--navy); }
nav.main-nav a:hover { color: var(--red); }
.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 16px;
}
.hero h1 span { color: var(--orange); }
.hero p.lead {
  font-size: 1.1rem;
  color: #cfd8e3;
  margin: 0 0 28px;
  max-width: 520px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  border: 4px solid rgba(255,255,255,0.08);
}
.hero-photo img { width: 100%; height: 380px; object-fit: cover; }

/* Trust strip */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.trust-item .num { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.trust-item .label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* Sections */
section { padding: 64px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-head h2 { font-size: 1.9rem; margin: 0; color: var(--navy); }
.section-head p { color: var(--muted); margin: 6px 0 0; }

/* Vehicle grid */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vehicle-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.vehicle-card .photo { position: relative; }
.vehicle-card .photo img { height: 190px; width: 100%; object-fit: cover; }
.vehicle-card .price-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}
.vehicle-card .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.vehicle-card h3 { font-size: 1.02rem; margin: 0 0 8px; color: var(--navy); }
.vehicle-card .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.vehicle-card .cta-row { display: flex; gap: 8px; margin-top: auto; }
.vehicle-card .cta-row .btn { flex: 1; padding: 10px 10px; font-size: 0.82rem; }

/* Financing banner */
.financing-band {
  background: var(--orange);
  color: var(--navy-dark);
  padding: 48px 0;
}
.financing-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.financing-inner h2 { margin: 0 0 6px; font-size: 1.7rem; }
.financing-inner p { margin: 0; font-weight: 600; max-width: 560px; }

/* About / why buy */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.why-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.why-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.1rem; }
.why-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Hours / location */
.hours-location {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.info-card h3 { margin: 0 0 14px; color: var(--navy); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours-table td { padding: 5px 0; border-bottom: 1px dashed var(--border); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.map-embed iframe { width: 100%; height: 220px; border: 0; border-radius: 8px; }

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #b9c4d4;
  padding: 40px 0 24px;
  font-size: 0.9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-inner h4 { color: #fff; margin: 0 0 12px; font-size: 0.95rem; }
.footer-inner a { display: block; margin-bottom: 6px; color: #b9c4d4; }
.footer-inner a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #8494ab;
}

/* Sticky mobile call bar */
.mobile-call-bar { display: none; }

/* Inventory page */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar input, .filter-bar select {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
}
.filter-bar input { flex: 1; min-width: 220px; }
.results-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }

/* Credit app page */
.app-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.app-wrap h1 { color: var(--navy); margin-top: 0; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-grid input, .form-grid select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
.form-section-title {
  grid-column: 1 / -1;
  font-weight: 800;
  color: var(--navy);
  margin: 18px 0 -4px;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 8px;
}
.consent { font-size: 0.82rem; color: var(--muted); margin: 18px 0; }
#appSuccess {
  display: none;
  background: #eafaf0;
  border: 1px solid #b7e4c7;
  color: #1a6b3c;
  padding: 18px 20px;
  border-radius: 10px;
  margin-top: 20px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo img { height: 260px; }
  nav.main-nav { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .hours-location { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .financing-inner { text-align: center; justify-content: center; }
  .mobile-call-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--red);
    color: #fff;
    text-align: center;
    padding: 14px;
    font-weight: 800;
    z-index: 60;
    justify-content: center;
    gap: 8px;
  }
  body { padding-bottom: 54px; }
}

@media (max-width: 640px) {
  .vehicle-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

/* VDP (Vehicle Detail Page) */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--navy); font-weight: 600; }
.breadcrumb a:hover { color: var(--red); }

.vdp-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
  align-items: start;
}
.vdp-layout > * { min-width: 0; }

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #000;
}
.gallery-main img { width: 100%; height: 430px; object-fit: cover; display: block; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumbs img {
  width: 84px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.75;
}
.gallery-thumbs img:hover { opacity: 1; }
.gallery-thumbs img.active { border-color: var(--red); opacity: 1; }

.vdp-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 22px 0 8px;
  flex-wrap: wrap;
}
.vdp-title-row h1 { margin: 0; font-size: 1.7rem; color: var(--navy); }
.vdp-price { font-size: 1.9rem; font-weight: 800; color: var(--red); white-space: nowrap; }

.vdp-quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}
.spec-table td {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}
.spec-table td:first-child { color: var(--muted); width: 40%; }
.spec-table td:last-child { font-weight: 600; color: var(--navy); }

.dealer-comments {
  background: #fff8ec;
  border: 1px solid #f2e2bd;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 16px 20px;
  font-style: italic;
  color: #6b5322;
  margin: 20px 0;
}

.options-grid {
  columns: 2;
  column-gap: 28px;
  font-size: 0.9rem;
  color: var(--muted);
}
.options-grid div { break-inside: avoid; padding: 4px 0; }
.options-grid div::before { content: "✓ "; color: var(--red); font-weight: 700; }

.vdp-sidebar {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.vdp-sidebar .vdp-price-lg { font-size: 2rem; font-weight: 800; color: var(--red); margin-bottom: 4px; }
.vdp-sidebar .vdp-title-sm { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.vdp-sidebar .btn { margin-bottom: 10px; }
.vdp-sidebar .stock-line { font-size: 0.8rem; color: var(--muted); margin-top: 14px; text-align: center; }

.section-title-sm {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.1rem;
  margin: 26px 0 12px;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 8px;
}

@media (max-width: 900px) {
  .vdp-layout { grid-template-columns: 1fr; }
  .gallery-main img { height: 300px; }
  .vdp-sidebar { position: static; }
  .options-grid { columns: 1; }
}
