/* ==========================================================================
   Independence Day Golf Carts — design system
   Patriotic dealership theme: Old Glory red + navy, white surfaces,
   full dark-mode support, mobile first.
   ========================================================================== */

:root {
  --red: #b31942;
  --red-bright: #d42a50;
  --red-soft: #fdeef2;
  --navy: #0a3161;
  --navy-mid: #143a72;
  --navy-deep: #071a38;
  --navy-soft: #eef3fb;

  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f2;
  --line-strong: #cbd5e1;

  --bg: #ffffff;
  --surface: #f6f8fc;
  --surface-2: #eef2f9;
  --card: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.94);

  --success: #0f7b45;
  --success-soft: #e7f6ee;
  --gold: #c8992b;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 18px 40px rgba(10, 49, 97, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);

  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1280px;
  --gutter: 20px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #e4405f;
    --red-bright: #f2597a;
    --red-soft: #2a0f1a;
    --navy: #7fa0d8;
    --navy-mid: #5f84c4;
    --navy-deep: #05122a;
    --navy-soft: #0f2144;

    --ink: #f1f5f9;
    --body: #cbd5e1;
    --muted: #94a3b8;
    --line: #1e3057;
    --line-strong: #2b4270;

    --bg: #070f22;
    --surface: #0b1730;
    --surface-2: #0f1f3d;
    --card: #0d1a35;
    --header-bg: rgba(7, 15, 34, 0.92);

    --success: #34d399;
    --success-soft: #0b2f22;
    --gold: #e6bf5c;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 44px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  --red: #e4405f;
  --red-bright: #f2597a;
  --red-soft: #2a0f1a;
  --navy: #7fa0d8;
  --navy-mid: #5f84c4;
  --navy-deep: #05122a;
  --navy-soft: #0f2144;
  --ink: #f1f5f9;
  --body: #cbd5e1;
  --muted: #94a3b8;
  --line: #1e3057;
  --line-strong: #2b4270;
  --bg: #070f22;
  --surface: #0b1730;
  --surface-2: #0f1f3d;
  --card: #0d1a35;
  --header-bg: rgba(7, 15, 34, 0.92);
  --success: #34d399;
  --success-soft: #0b2f22;
  --gold: #e6bf5c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 44px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------- base --- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.brand svg, .footer-brand svg, .gallery__thumb svg { display: block; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-bright); }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .4em; }
strong { color: var(--ink); font-weight: 700; }
small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); min-width: 0; }
.wrap-narrow { max-width: 820px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }
.page-head + .section > .wrap > h2:first-child,
.page-head + .section .wrap > h2:first-of-type { margin-top: 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy-deep); color: #c9d8f2; }
.section--navy h2, .section--navy h3 { color: #fff; }

/* -------------------------------------------------------------- header --- */

.topbar {
  background: var(--navy-deep);
  color: #b9cbe9;
  font-size: .8125rem;
  letter-spacing: .02em;
  border-bottom: 3px solid var(--red);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px; flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #ffd9e1; text-decoration: underline; }
.topbar__list { display: flex; gap: 18px; align-items: center; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar__list li { margin: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
@media (max-width: 700px) { .topbar__meta { display: none; } .topbar__inner { justify-content: center; } }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img, .brand svg { height: 42px; width: auto; }
.brand__dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__light { display: none; }
  :root:not([data-theme="light"]) .brand__dark { display: block; }
}
:root[data-theme="dark"] .brand__light { display: none; }
:root[data-theme="dark"] .brand__dark { display: block; }

.mainnav { margin-left: auto; min-width: 0; }
.mainnav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.mainnav__list li { margin: 0; }
.mainnav a {
  display: block; padding: 8px 10px; border-radius: var(--radius);
  color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none;
  white-space: nowrap;
}
.mainnav a:hover { background: var(--surface-2); color: var(--red); }
.mainnav a[aria-current="page"] { color: var(--red); background: var(--red-soft); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.navtoggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  margin-left: auto; padding: 9px 13px; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--ink); border-radius: var(--radius);
  font: 600 .9rem/1 var(--font-body); cursor: pointer;
}
.navtoggle:hover { border-color: var(--red); color: var(--red); }

/* Below the desktop breakpoint the inline nav is replaced by the drawer toggle. */
@media (max-width: 1180px) {
  .mainnav { display: none; }
  .navtoggle { display: inline-flex; }
}
@media (max-width: 620px) {
  .brand img, .brand svg { height: 34px; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 11px 13px; }
  .navtoggle span { display: none; }
  .site-header__inner { gap: 10px; min-height: 60px; }
  :root { --header-h: 60px; --gutter: 16px; }
}

.mobilenav { display: none; border-top: 1px solid var(--line); background: var(--card); }
.mobilenav[data-open="true"] { display: block; }
.mobilenav ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.mobilenav li { margin: 0; }
.mobilenav a {
  display: block; padding: 13px var(--gutter); font-weight: 600; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobilenav a:hover, .mobilenav a[aria-current="page"] { background: var(--surface); color: var(--red); }

/* ------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--radius); border: 2px solid transparent;
  font: 700 1rem/1.1 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--red-bright); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-mid); color: #fff; }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: var(--card); }
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--sm { padding: 9px 15px; font-size: .875rem; }
.btn--lg { padding: 16px 30px; font-size: 1.125rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- hero --- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(179,25,66,.55), transparent 62%),
    linear-gradient(160deg, #0a1f45 0%, #0a3161 46%, #6d1230 100%);
  color: #dce7f8;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: repeating-linear-gradient(180deg,
    rgba(255,255,255,.055) 0 14px, transparent 14px 28px);
  z-index: -1;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 520px; height: 520px;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.10) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 55%, rgba(255,255,255,.08) 0 4px, transparent 5px);
  background-size: 90px 90px, 130px 130px;
  z-index: -1; pointer-events: none;
}
.hero__inner {
  display: grid; gap: 40px; align-items: center;
  /* Vertical only — the horizontal gutter comes from .wrap. */
  padding-top: clamp(44px, 7vw, 88px);
  padding-bottom: clamp(52px, 7vw, 92px);
  grid-template-columns: 1fr;
}
@media (min-width: 980px) { .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 56px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28);
  color: #fff; padding: 7px 15px; border-radius: var(--radius-pill);
  font: 700 .8125rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow--light { background: var(--red-soft); border-color: transparent; color: var(--red); }

.hero h1 { color: #fff; margin-bottom: .35em; text-wrap: balance; }
.hero h1 .accent { color: #ff9db3; display: block; }
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #c3d5f0; max-width: 60ch; margin-bottom: 28px; }
.hero .btn-row { margin-bottom: 28px; }

.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 560px; min-width: 0; }
@media (min-width: 620px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 14px 16px;
}
.stat__value { font: 700 1.75rem/1 var(--font-display); color: #fff; display: block; }
.stat__label { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #a9c0e2; line-height: 1.35; }

.hero__panel {
  background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--red);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero__panel { background: #0d1a35; color: var(--ink); }
}
:root[data-theme="dark"] .hero__panel { background: #0d1a35; }
.hero__panel h2 { font-size: 1.5rem; margin-bottom: 4px; }
.hero__panel .muted { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.offer-list { list-style: none; padding: 0; margin: 0 0 20px; }
.offer-list li {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 0;
  border-bottom: 1px dashed var(--line); color: var(--body); font-size: .97rem;
}
.offer-list li:last-child { border-bottom: 0; }
.offer-list .tick { color: var(--success); flex-shrink: 0; margin-top: 3px; }

/* ------------------------------------------------------------ elements --- */

.section-head { margin-bottom: 32px; max-width: 780px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; margin-bottom: 0; }
.section-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head__row .section-head { margin-bottom: 0; }

.eventbar {
  background: linear-gradient(90deg, #0a3161 0%, #b31942 100%);
  color: #fff; text-align: center; padding: 12px var(--gutter);
  font-weight: 600; font-size: .95rem;
}
.eventbar a { color: #fff; text-decoration: underline; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none;
}
.chip:hover { background: var(--red); border-color: var(--red); color: #fff; }
.chip__count { color: var(--muted); font-weight: 500; }
.chip:hover .chip__count { color: rgba(255,255,255,.8); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 5px; font-size: .72rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; line-height: 1.5;
}
.badge--new { background: var(--success-soft); color: var(--success); }
.badge--used { background: var(--navy-soft); color: var(--navy); }
.badge--electric { background: #e8f1ff; color: #1b56b8; }
.badge--gas { background: #fff2e0; color: #a35b06; }
.badge--legal { background: var(--red-soft); color: var(--red); }
.badge--lifted { background: var(--surface-2); color: var(--body); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge--electric { background: #0d2547; color: #8fbaff; }
  :root:not([data-theme="light"]) .badge--gas { background: #3a2506; color: #ffc678; }
}

/* ----------------------------------------------------------- cart card --- */

.grid-carts {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.cart-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cart-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.cart-card__media { position: relative; background: var(--surface-2); aspect-ratio: 4 / 3; overflow: hidden; }
.cart-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-card__flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--red); color: #fff; padding: 4px 10px; border-radius: 5px;
  font: 700 .7rem/1.5 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
}
.cart-card__count {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  background: rgba(7,15,34,.78); color: #fff; padding: 3px 9px; border-radius: 5px;
  font-size: .75rem; font-weight: 600;
}
.cart-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.cart-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cart-card__title { font-size: 1.15rem; margin: 0 0 4px; line-height: 1.22; }
.cart-card__title a { color: var(--ink); text-decoration: none; }
.cart-card__title a:hover { color: var(--red); }
.cart-card__meta { font-size: .85rem; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cart-card__price-row {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.cart-card__price { font: 700 1.5rem/1 var(--font-display); color: var(--red); }
.cart-card__mo { font-size: .8rem; color: var(--muted); }
.cart-card__cta { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.empty-state {
  text-align: center; padding: 56px 24px; background: var(--surface);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted);
}
.empty-state h3 { color: var(--ink); }

/* ------------------------------------------------------------ features --- */

.grid-features { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 14px;
}
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature h3 a { color: var(--ink); text-decoration: none; }
.feature h3 a:hover { color: var(--red); text-decoration: underline; }

/* Lender cards: the whole card is a click target, the button stays the label. */
.feature--link { position: relative; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.feature--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.feature--link:focus-within { border-color: var(--red); }
/* Higher specificity than `.feature p`, so the button pins to the card floor
   and every card in a row aligns regardless of blurb length. */
.feature--link .feature__cta { margin: auto 0 0; padding-top: 16px; }
.feature__cta .btn { width: 100%; }
/* Stretch the button's hit area over the card without trapping the heading link. */
.feature--link .feature__cta .btn::after { content: ""; position: absolute; inset: 0; }
.feature--link h3 a { position: relative; z-index: 1; }
.feature p { margin: 0; font-size: .96rem; color: var(--body); }

.grid-2 { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-lenders { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
@media (min-width: 1000px) { .grid-lenders { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------- breadcrumbs --- */

.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--line); font-size: .875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 11px 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); text-decoration: underline; }

.page-head { padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { margin-bottom: .25em; text-wrap: balance; }
.page-head__lede { font-size: 1.125rem; color: var(--muted); max-width: 70ch; margin: 0; }

/* ----------------------------------------------------------- inventory --- */

.inventory-layout { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .inventory-layout { grid-template-columns: 288px minmax(0, 1fr); } }

.filters {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-sm);
}
@media (min-width: 1000px) { .filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; } }
@media (max-width: 999px) { .filters[data-collapsed="true"] { display: none; } }
/* The filter drawer toggle only exists below the two-column breakpoint. */
.filters-toggle { display: none; }
@media (max-width: 999px) { .filters-toggle { display: inline-flex; } }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filters__head h2 { font-size: 1.2rem; margin: 0; }
.filter-group { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group > h3 {
  font: 700 .78rem/1 var(--font-body); letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.filter-group__scroll { max-height: 220px; overflow-y: auto; padding-right: 4px; }
.check { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: .93rem; color: var(--body); }
.check input { width: 17px; height: 17px; accent-color: var(--red); cursor: pointer; flex-shrink: 0; }
.check:hover { color: var(--red); }
.check .count { margin-left: auto; color: var(--muted); font-size: .8rem; }
.field { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font: 400 .95rem var(--font-body); }
.field:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px var(--red-soft); }
select.field { cursor: pointer; }

.results-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.results-bar__count { font-weight: 600; color: var(--ink); }
.results-bar__count strong { color: var(--red); }
.results-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.pagination a, .pagination span {
  min-width: 42px; padding: 9px 13px; border-radius: var(--radius); border: 1px solid var(--line);
  text-align: center; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; background: var(--card);
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination [aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* ------------------------------------------------------------- vehicle --- */

.vehicle { display: grid; gap: 34px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .vehicle { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); } }

.gallery__main {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 4 / 3;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 9px; margin-top: 10px; }
.gallery__thumb {
  padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--surface-2); cursor: pointer; aspect-ratio: 4 / 3;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--red); }

.buybox {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-md); border-top: 5px solid var(--red);
}
@media (min-width: 1000px) { .buybox { position: sticky; top: calc(var(--header-h) + 16px); } }
.buybox__price { font: 700 2.5rem/1 var(--font-display); color: var(--red); margin-bottom: 2px; }
.buybox__finance {
  background: var(--surface); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0;
  font-size: .93rem; color: var(--body);
}
.buybox__finance strong { display: block; font: 700 1.35rem/1.2 var(--font-display); color: var(--ink); }
.buybox .btn { margin-bottom: 10px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table caption { text-align: left; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); padding-bottom: 10px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 46%; color: var(--muted); font-weight: 600; }
/* Tables with more than a label/value pair size their own columns. */
.spec-table--cols th { width: auto; white-space: nowrap; }
.spec-table--cols thead th { color: var(--ink); }
.spec-table td { color: var(--ink); font-weight: 600; }
.spec-table tr:nth-child(odd) { background: var(--surface); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 24px;
}
.panel h2, .panel h3 { margin-top: 0; }

/* ----------------------------------------------------------------- faq --- */

.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: var(--card); }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-family: var(--font-display); font-size: 1.15rem;
  font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--red); font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item__body { padding: 16px 20px; color: var(--body); }
.faq-item__body p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------- locations --- */

.location-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px;
}
.location-card h3 { margin-bottom: 2px; font-size: 1.25rem; }
.location-card h3 a { color: var(--ink); text-decoration: none; }
.location-card h3 a:hover { color: var(--red); }
.location-card address { font-style: normal; color: var(--muted); font-size: .95rem; }
.location-card__links { margin-top: auto; padding-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

/* -------------------------------------------------------------- prose --- */

.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { margin-bottom: 1.2em; }
.prose li { margin-bottom: .55em; }
.prose blockquote {
  margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--red);
  color: var(--ink); font-size: 1.1rem;
}

.article-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.article-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.article-card h3 a { color: var(--ink); text-decoration: none; }
.article-card h3 a:hover { color: var(--red); }
.article-card p { color: var(--body); font-size: .96rem; }
.article-card__meta { margin-top: auto; padding-top: 12px; font-size: .82rem; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }

/* ------------------------------------------------------------- cta band --- */

.ctaband {
  background: linear-gradient(140deg, #071a38 0%, #0a3161 55%, #7c1433 100%);
  color: #d5e2f6; text-align: center; padding: clamp(44px, 6vw, 76px) 0; position: relative; overflow: hidden;
}
.ctaband::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px);
  opacity: .5;
}
.ctaband > * { position: relative; }
.ctaband h2 { color: #fff; margin-bottom: .35em; }
.ctaband p { color: #c0d3ef; font-size: 1.1rem; max-width: 62ch; margin: 0 auto 26px; }
.ctaband .btn-row { justify-content: center; }

.phone-big { font: 700 clamp(2rem,5vw,3rem)/1 var(--font-display); color: #fff; text-decoration: none; display: inline-block; }
.phone-big:hover { color: #ffd9e1; }

/* -------------------------------------------------------------- footer --- */

.site-footer { background: var(--navy-deep); color: #9db2d6; padding: 56px 0 0; font-size: .95rem; }
.site-footer a { color: #cddcf3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); padding-bottom: 40px; }
.footer-col h3 {
  color: #fff; font-size: .85rem; letter-spacing: .11em; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 700; margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-brand img, .footer-brand svg { height: 54px; width: auto; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #7e94ba;
}
.footer-bottom ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

/* ---------------------------------------------------------------- misc --- */

.theme-toggle {
  width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.theme-toggle:hover { border-color: var(--red); color: var(--red); }
.theme-toggle .icon-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-light { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-dark { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-light { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-dark { display: block; }

.note { font-size: .85rem; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag-list li { margin: 0; }
.tag-list a { font-size: .82rem; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--body); text-decoration: none; }
.tag-list a:hover { background: var(--red); color: #fff; }

.linkgrid { display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); list-style: none; padding: 0; margin: 0; }
.linkgrid li { margin: 0; }
.linkgrid a { color: var(--body); text-decoration: none; font-size: .93rem; }
.linkgrid a:hover { color: var(--red); text-decoration: underline; }

@media print {
  .site-header, .topbar, .site-footer, .ctaband, .navtoggle, .filters { display: none !important; }
  body { color: #000; background: #fff; font-size: 12pt; }
}
