/* ==========================================================================
   Oliver Sales & Leasing — Global Stylesheet
   Modern, centered, responsive. System font stack (no external requests).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0d1f33;
  --navy-800: #132c47;
  --navy-700: #1b3c60;
  --navy-600: #25507c;
  --gold: #c9a44c;
  --gold-dark: #a8873a;
  --gold-soft: #f3e7c9;
  --ink: #1d2733;
  --muted: #5b6b7d;
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #e2e8f0;
  --danger: #b3423a;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(13, 31, 51, 0.08);
  --shadow-md: 0 8px 28px rgba(13, 31, 51, 0.12);
  --max: 1080px;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-600);
  text-decoration: none;
}

a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--navy-900);
  margin: 0 0 0.6em;
  font-weight: 700;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

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

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--navy-900);
}

.brand:hover { text-decoration: none; color: var(--navy-700); }

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.site-nav a:hover {
  color: var(--navy-600);
  background: var(--bg);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--gold-dark);
  background: var(--gold-soft);
}

/* Nav bar: menu links and phone pill on one row.
   The phone pill needs higher specificity than ".site-nav a" below —
   that rule (block display + dark ink color) would otherwise flatten the
   pill into a full-width bar with unreadable dark-on-navy text that only
   became readable on hover. */
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav .header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav .header-phone:hover {
  background: var(--navy-600);
  color: #fff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  margin: 4px 0;
  border-radius: 2px;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 10px 20px 18px;
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .site-nav a { padding: 12px 10px; }

  .site-nav .header-phone {
    margin-top: 10px;
    justify-content: center;
    display: flex;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
}

.btn-gold:hover { background: var(--gold-dark); color: #fff; }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--navy-900);
}

.btn-navy {
  background: var(--navy-800);
  color: #fff;
}

.btn-navy:hover { background: var(--navy-600); color: #fff; }

.btn-outline-navy {
  border-color: var(--navy-800);
  color: var(--navy-800);
}

.btn-outline-navy:hover {
  background: var(--navy-800);
  color: #fff;
}

/* ---------- Hero (home) ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(201, 164, 76, 0.22), transparent 60%),
    linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  padding: 84px 0 92px;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero .eyebrow { color: var(--gold); }

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  margin-bottom: 16px;
}

.hero .lead {
  font-size: 1.13rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 36px;
}

.chip {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 320px at 15% -20%, rgba(201, 164, 76, 0.18), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 46px 0 52px;
}

.page-hero h1 { color: #fff; margin-bottom: 10px; }

.page-hero .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 760px;
  margin: 0;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  margin: 0 0 14px;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a { color: rgba(255, 255, 255, 0.9); }

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb li + li::before {
  content: "\203A";
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb [aria-current="page"] { color: var(--gold); font-weight: 600; }

/* On-page breadcrumb outside navy hero */
.breadcrumb-light { color: var(--muted); }
.breadcrumb-light a { color: var(--navy-600); }

/* ---------- Car cards ---------- */
.grid-cars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
}

.car-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.car-card .thumb {
  position: relative;
  background: #e9edf3;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.car-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-card .price-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.car-card .body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.car-card h3 { margin: 0; font-size: 1.08rem; }

.car-card h3 a { color: var(--navy-900); }

.car-card h3 a:hover { color: var(--gold-dark); }

.car-card .specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.car-card .specs strong { color: var(--ink); font-weight: 600; }

.car-card .card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--navy-600);
}

/* ---------- Feature / service cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.feature-card .icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.feature-card h3 { margin-bottom: 8px; }

.feature-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.feature-card a { font-weight: 700; }

/* ---------- Vehicle detail page ---------- */
.vehicle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.vehicle-photo {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.vehicle-photo img { width: 100%; }

.vehicle-photo figcaption {
  padding: 12px 18px;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.spec-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.spec-panel .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 4px;
}

.spec-panel .price-note { color: var(--muted); font-size: 0.88rem; }

.spec-list {
  margin: 20px 0;
  border-top: 1px solid var(--line);
}

.spec-list > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

.spec-list dd { margin: 0; }

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.pill-list li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-700);
}

.vehicle-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

@media (max-width: 820px) {
  .vehicle-layout { grid-template-columns: 1fr; }
}

.vehicle-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.vehicle-nav a { font-weight: 600; }

/* ---------- Contact / info blocks ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.info-card p { margin: 0 0 6px; }

.info-card a { font-weight: 600; }

.map-figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-figure img { margin: 0 auto; }

.map-figure figcaption {
  padding: 12px 18px;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ---------- FAQ (details/summary) ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-900);
  padding: 16px 20px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--gold-dark);
  transition: transform 0.15s ease;
}

.faq-list details[open] summary::after { content: "\2013"; }

.faq-list .answer {
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq-list .answer p:last-child { margin-bottom: 0; }

/* ---------- Steps / directions ---------- */
.direction-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.direction-block h2 { margin-bottom: 8px; font-size: 1.25rem; }

.direction-block p { color: var(--muted); margin: 0; }

.direction-block ol { color: var(--muted); margin: 0; padding-left: 1.4em; }

.direction-block ol li { margin-bottom: 6px; }

.address-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.address-card p { margin: 0 0 4px; }

.address-card .tel {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-800);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 260px at 90% 120%, rgba(201, 164, 76, 0.25), transparent 60%),
    var(--navy-800);
  color: #fff;
  padding: 46px 0;
  text-align: center;
}

.cta-band h2 { color: #fff; margin-bottom: 10px; }

.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 24px; }

.cta-band .hero-actions { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 40px;
  padding: 52px 20px 36px;
}

.footer-grid h3 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-grid .brand-name { color: #fff; }
.footer-grid .brand-sub { color: var(--gold); }

.footer-grid p { font-size: 0.93rem; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-links a { color: rgba(255, 255, 255, 0.78); }

.footer-links a:hover { color: var(--gold); }

.footer-contact p { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 0;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
}

/* ---------- Tables (data) ---------- */
.simple-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.simple-table th,
.simple-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.simple-table th {
  background: var(--bg);
  color: var(--navy-900);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.simple-table tr:last-child td { border-bottom: 0; }

/* ---------- Recommended reading / resource cards ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.resource-card .eyebrow { margin-bottom: 10px; }

.resource-card h3 { margin-bottom: 8px; }

.resource-card p { color: var(--muted); margin: 0 0 16px; font-size: 0.95rem; }

.resource-card .visit {
  margin-top: auto;
  font-weight: 700;
  color: var(--navy-600);
}

.resource-card .visit:hover { color: var(--gold-dark); }

.resource-lead {
  max-width: 720px;
  margin: 0 auto 10px;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Lightweight homepage recommendation module */
.rec-module {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 30px 26px;
}

.rec-module h3 { margin-bottom: 10px; }

.rec-module p { color: var(--muted); margin: 0 0 14px; }

.rec-module .btn { margin-top: 4px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.note { color: var(--muted); font-size: 0.9rem; }