/* ============================================================
   L&E Motorsports — Design System
   Black / White / Gray with red accent
   ============================================================ */

/* ============================================================
   Inventory listing — toolbar, advanced panel, chips, vehicle card
   ============================================================ */
.inv-page { padding-block: 0 var(--s-20); }

/* ── Toolbar (search + sort + filters toggle) ──────────────── */
.inv-toolbar {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  box-shadow: var(--shadow-md);
  margin-top: calc(var(--s-12) * -1);
  margin-bottom: var(--s-4);
  position: relative;
  z-index: 2;
}
.inv-toolbar__right { display: flex; gap: var(--s-2); align-items: center; flex-shrink: 0; }
.inv-search { position: relative; flex: 1; min-width: 0; }
.inv-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-500);
  pointer-events: none;
}
.inv-search input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--gray-50);
  font-size: 0.95rem;
  min-height: 48px;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.inv-search input::placeholder { color: var(--gray-500); }
.inv-search input:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(211, 32, 39, 0.12);
}
.inv-sort select {
  padding: 0.7rem 2.25rem 0.7rem 1rem;
  min-height: 48px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23111418' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m1 1.5 5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
.inv-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.inv-filter-toggle:hover { border-color: var(--gray-700); }
.inv-filter-toggle.is-open { background: var(--ink); color: var(--white); border-color: var(--ink); }
.inv-filter-toggle svg { width: 18px; height: 18px; }
.inv-filter-toggle__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
}
.inv-filter-toggle__count[hidden] { display: none; }

@media (max-width: 720px) {
  .inv-toolbar { flex-wrap: wrap; }
  .inv-search { flex: 1 1 100%; }
  .inv-toolbar__right { width: 100%; }
  .inv-sort { flex: 1; }
  .inv-sort select { width: 100%; }
}

/* ── Collapsible advanced filter panel ─────────────────────── */
.inv-advanced {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-3);
  box-shadow: var(--shadow-sm);
}
.inv-advanced__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (max-width: 880px) { .inv-advanced__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .inv-advanced__grid { grid-template-columns: 1fr; } }
.inv-field { display: flex; flex-direction: column; gap: 6px; }
.inv-field > span {
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.inv-field select,
.inv-field input,
.inv-range input {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  min-height: 42px;
  width: 100%;
}
.inv-field select:focus,
.inv-field input:focus,
.inv-range input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(211, 32, 39, 0.12);
}
.inv-range { display: flex; gap: 6px; align-items: center; }
.inv-range > span { color: var(--gray-500); font-weight: var(--fw-bold); }

/* ── Status row (count + active chips + reset) ─────────────── */
.inv-status {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding: var(--s-2) 2px var(--s-4);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--gray-200);
}
.inv-count { color: var(--ink); font-size: 0.95rem; font-weight: var(--fw-semibold); margin: 0; }
.inv-chips { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.inv-chips button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 14px;
  min-height: 36px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  border: 0;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.inv-chips button:hover { background: var(--red); }
.inv-chips svg { width: 14px; height: 14px; }
.inv-reset {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--red);
  font-weight: var(--fw-semibold);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 8px;
}
.inv-reset:hover { text-decoration: underline; }

/* ── Vehicle grid ──────────────────────────────────────────── */
.inv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  margin-top: var(--s-2);
}
@media (max-width: 1080px) { .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .inv-grid { grid-template-columns: 1fr; } }

.inv-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--s-16);
  background: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
}

/* ── Vehicle card (rebuilt) ────────────────────────────────── */
.vc {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  position: relative;
  isolation: isolate;
}
.vc:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}
.vc-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  overflow: hidden;
}
.vc-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 480ms var(--ease);
}
.vc:hover .vc-media__img { transform: scale(1.04); }

.vc-badge {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 1;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.vc-badge--sold { background: var(--gray-700); }

.vc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--s-5) var(--s-5) var(--s-4);
  gap: var(--s-2);
}
.vc-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  /* line-clamp 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.vc-specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 0;
  margin: 0;
  color: var(--gray-700);
  font-size: 0.85rem;
}
.vc-specs li { position: relative; }
.vc-specs li + li::before {
  content: '·';
  position: absolute;
  left: -10px;
  color: var(--gray-400);
}
.vc-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-3);
}
.vc-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.vc-price--muted { font-size: 1.05rem; color: var(--gray-700); font-weight: var(--fw-bold); }
.vc-stock {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: var(--fw-medium);
}
.vc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-4);
  padding: 0.85rem 1rem;
  min-height: 44px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.005em;
  transition: background var(--t-fast) var(--ease);
}
.vc:hover .vc-cta { background: var(--red); }
.vc-cta svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.vc:hover .vc-cta svg { transform: translateX(3px); }

/* "Photos Coming Soon" — premium card fallback */
.vc-no-photo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  text-align: center;
  padding: var(--s-4);
  color: var(--gray-300);
  background:
    radial-gradient(600px 240px at 80% 0%, rgba(211, 32, 39, 0.15), transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--gray-900) 100%);
}
.vc-no-photo svg { width: 44px; height: 44px; color: var(--gray-700); }
.vc-no-photo span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

/* ============================================================
   Vehicle detail page (/inventory/<slug>/)
   ============================================================ */
.vd-page { padding-bottom: 96px; /* room for mobile sticky bar */ }

/* ── Hero ─────────────────────────────────────────────────────── */
.vd-hero {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  padding-block: var(--s-8) var(--s-16);
  border-bottom: 1px solid var(--gray-200);
}
.vd-hero .breadcrumbs { color: var(--gray-500); margin-bottom: var(--s-6); }
.vd-hero .breadcrumbs a { color: var(--gray-700); }
.vd-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s-10);
  align-items: start;
}
@media (max-width: 980px) {
  /* `minmax(0, 1fr)` instead of `1fr` is critical: bare `1fr` defaults to
     min-width: auto on the grid item, which lets the column GROW with its
     content's min-content size. The thumbnail strip's intrinsic width
     (~2000px for 20 thumbs) was forcing the gallery track that wide and
     making the whole page horizontally scrollable. minmax(0,…) caps the
     minimum at 0 so the grid item respects the viewport. */
  .vd-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
}
.vd-hero__media { min-width: 0; }

.vd-hero__panel {
  position: sticky;
  top: calc(var(--header-h) + var(--s-4));
}
@media (max-width: 980px) { .vd-hero__panel { position: static; } }
.vd-hero__panel-inner {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--s-7) var(--s-7) var(--s-6);
  box-shadow: var(--shadow);
}
.vd-eyebrow { padding-left: 18px; }
.vd-hero__panel h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 1.6vw + 1rem, 2.1rem);
  line-height: 1.15;
  margin-top: var(--s-2);
  margin-bottom: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.vd-price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.2vw + 1rem, 3.25rem);
  font-weight: var(--fw-black);
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: var(--s-5) 0 var(--s-2);
}
.vd-price-meta {
  font-size: 0.95rem;
  color: var(--gray-700);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--gray-200);
}

/* Trust badges row */
.vd-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
}
.vd-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  background: var(--gray-100);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  color: var(--ink);
  white-space: nowrap;
}
.vd-trust__icon {
  width: 16px;
  height: 16px;
  color: var(--red);
  display: inline-flex;
}
.vd-trust__icon svg { width: 100%; height: 100%; }

/* CARFAX report link (only rendered when vehicle has a real 17-char VIN) */
.vd-carfax {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 12px 14px;
  margin: 0 0 var(--s-5);
  background: linear-gradient(135deg, #102a4f 0%, #1a4378 100%);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 6px rgba(16, 42, 79, 0.18);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.vd-carfax:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 42, 79, 0.28);
}
.vd-carfax__mark {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
}
.vd-carfax__mark svg { width: 20px; height: 20px; }
.vd-carfax__body { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.vd-carfax__label { font-size: 0.88rem; font-weight: var(--fw-semibold); color: #fff; }
.vd-carfax__label strong {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  letter-spacing: 0.02em;
}
.vd-carfax__sub { font-size: 0.74rem; color: rgba(255, 255, 255, 0.65); margin-top: 1px; }
.vd-carfax__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.vd-carfax:hover .vd-carfax__arrow {
  transform: translate(2px, -2px);
  color: #fff;
}

/* Quick stats inside the hero panel */
.vd-quick-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0 0 var(--s-6);
}
.vd-quick-stats > div {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
}
.vd-quick-stats span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: var(--fw-bold);
}
.vd-quick-stats strong {
  font-size: 0.95rem;
  color: var(--ink);
  margin-top: 2px;
  font-weight: var(--fw-semibold);
}

.vd-cta-stack { display: flex; flex-direction: column; gap: var(--s-3); }
.vd-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.vd-cta-row .btn { padding: 0.85rem 1rem; min-height: 48px; }
.vd-cta-row svg { width: 18px; height: 18px; }
.vd-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  color: var(--gray-700);
  margin-top: var(--s-2);
  padding: 6px 0;
}
.vd-cta-link:hover { color: var(--red); }
.vd-cta-link svg { width: 18px; height: 18px; }

/* ID block (VIN + stock) at bottom of panel */
.vd-id-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin: var(--s-6) 0 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--gray-200);
}
.vd-id-block dt {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: var(--fw-bold);
}
.vd-id-block dd { margin: 4px 0 0; font-weight: var(--fw-semibold); color: var(--ink); }
.vd-id-block code {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.85em;
  background: var(--gray-100);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ── Gallery ──────────────────────────────────────────────────── */
.vd-gallery {
  margin: 0;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.vd-main-img {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  /* Aspect ratio is enforced on the IMG itself below — that resolves
     reliably regardless of parent layout chain (grid track, sticky panel,
     etc.). The older `aspect-ratio + height: 100%` combo on the wrapper
     was unreliable when nested inside a grid container, leaving the box
     unconstrained and the image rendering at its natural height. */
}
.vd-main-img > img,
.vd-main-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: opacity 220ms var(--ease);
}
.vd-gallery__counter {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  background: rgba(10, 10, 10, 0.7);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.vd-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.vd-gallery__nav:hover { transform: translateY(-50%) scale(1.05); background: var(--white); }
.vd-gallery__nav svg { width: 22px; height: 22px; }
.vd-gallery__nav--prev { left: 12px; }
.vd-gallery__nav--next { right: 12px; }
@media (max-width: 540px) {
  .vd-gallery__nav { width: 40px; height: 40px; }
  .vd-gallery__nav svg { width: 20px; height: 20px; }
}

.vd-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--ink);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-700) transparent;
}
.vd-thumbs::-webkit-scrollbar { height: 6px; }
.vd-thumbs::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 999px; }
.vd-thumb {
  flex: 0 0 auto;
  width: 92px;
  height: 64px;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--gray-900);
  scroll-snap-align: start;
  transition: border-color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
  opacity: 0.65;
}
.vd-thumb:hover { opacity: 1; }
.vd-thumb.is-active { border-color: var(--red); opacity: 1; }
.vd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vd-gallery--empty { aspect-ratio: 4 / 3; }
.vd-no-photo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  color: var(--gray-300);
  text-align: center;
  padding: var(--s-8);
  background:
    radial-gradient(900px 480px at 80% 0%, rgba(211, 32, 39, 0.22), transparent 60%),
    radial-gradient(600px 360px at 10% 100%, rgba(255, 255, 255, 0.04), transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--gray-900) 100%);
}
.vd-no-photo > svg {
  width: 76px;
  height: 76px;
  color: rgba(255, 255, 255, 0.18);
}
.vd-no-photo strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  color: var(--white);
}
.vd-no-photo p {
  max-width: 36ch;
  font-size: 0.95rem;
  color: var(--gray-300);
  line-height: 1.5;
}
.vd-no-photo a {
  color: var(--white);
  font-weight: var(--fw-bold);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}

/* ── Section rhythm: alternating bg, decisive vertical spacing ── */
.vd-section { padding-block: var(--s-16); }
.vd-specs-section { background: var(--gray-50); }
.vd-description-section { background: var(--white); }
.vd-description-section .section-head { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
.vd-features-section { background: var(--gray-50); }
.vd-finance-section { background: var(--white); }
.vd-finance-wrap { max-width: 920px; margin-left: auto; margin-right: auto; }
.vd-finance-wrap .section-head { text-align: center; max-width: none; }
.vd-inquiry-section { background: var(--gray-50); }
.vd-similar { padding-block: var(--s-16); border-top: 1px solid var(--gray-200); margin-top: 0; }

/* ── Spec card grid ───────────────────────────────────────────── */
.vd-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (max-width: 980px) { .vd-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .vd-spec-grid { grid-template-columns: 1fr; } }
.vd-spec-card {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.vd-spec-card:hover { border-color: var(--gray-300); transform: translateY(-1px); }
.vd-spec-card__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 10px;
}
.vd-spec-card__icon svg { width: 22px; height: 22px; }
.vd-spec-card__body { display: flex; flex-direction: column; min-width: 0; }
.vd-spec-card__label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: var(--fw-bold);
}
.vd-spec-card__value {
  font-weight: var(--fw-semibold);
  color: var(--ink);
  margin-top: 2px;
  word-break: break-word;
}

/* ── Description / prose blocks ───────────────────────────────── */
.vd-prose {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  max-width: 820px;
  margin: 0 auto;
}
.vd-prose-block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-7);
}
.vd-prose-block h3 {
  font-size: 1.1rem;
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.vd-prose-block h3::before {
  content: '';
  width: 5px;
  height: 22px;
  background: var(--red);
  border-radius: 3px;
  flex-shrink: 0;
}
.vd-prose-block p { color: var(--gray-700); line-height: 1.65; }
.vd-prose-block--notes {
  border-color: rgba(211, 32, 39, 0.25);
  background: var(--red-soft);
}
.vd-prose-block--dealer {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gray-300);
}
.vd-prose-block--dealer h3 { color: var(--white); }
.vd-prose-block--dealer p { color: var(--gray-300); }
.vd-highlights, .vd-known-notes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.vd-highlights li, .vd-known-notes li {
  position: relative;
  padding-left: 26px;
  color: var(--gray-700);
  line-height: 1.5;
}
.vd-highlights li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 0 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0Z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 0 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0Z'/></svg>") no-repeat center / contain;
}
.vd-known-notes li::before {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M10 1.7 18.3 16H1.7zM9 7v5h2V7zM9 13.5v2h2v-2z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M10 1.7 18.3 16H1.7zM9 7v5h2V7zM9 13.5v2h2v-2z'/></svg>") no-repeat center / contain;
}

/* ── Feature groups (chip pills) ──────────────────────────────── */
.vd-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}
@media (max-width: 720px) { .vd-feature-grid { grid-template-columns: 1fr; } }
.vd-feature-group {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-6);
}
.vd-feature-group h3 {
  font-size: 1rem;
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.vd-feature-group__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
}
.vd-feature-group__icon svg { width: 18px; height: 18px; }
.vd-feature-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vd-feature-chip {
  background: var(--gray-100);
  color: var(--ink);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

/* ── Inquiry section ──────────────────────────────────────────── */
.vd-inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: start;
}
@media (max-width: 980px) { .vd-inquiry-grid { grid-template-columns: 1fr; gap: var(--s-8); } }
.vd-inquiry-intro h2 { font-family: var(--font-display); margin: var(--s-3) 0 var(--s-4); }
.vd-inquiry-perks {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 var(--s-6);
  display: grid;
  gap: 10px;
}
.vd-inquiry-perks li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--gray-700);
  font-size: 0.95rem;
}
.vd-inquiry-perks svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }

.vd-dealer-card {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--gray-300);
}
.vd-dealer-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.vd-dealer-card p { color: var(--gray-700); margin-bottom: var(--s-2); font-size: 0.95rem; }

.vd-inquiry-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--s-7);
  box-shadow: var(--shadow);
}
.vd-form-vehicle {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--s-5);
}
.vd-form-vehicle .eyebrow { color: var(--red); padding-left: 0; }
.vd-form-vehicle .eyebrow::before { display: none; }
.vd-form-vehicle strong { font-family: var(--font-display); font-size: 1.05rem; }
.vd-form-vehicle .muted { color: var(--gray-400); font-size: 0.85rem; }

/* ── Finance section wrapper (carries section heading) ────────── */
.vd-finance-wrap > .section-head { text-align: left; max-width: none; margin-bottom: var(--s-6); }

/* ── Sticky mobile CTA bar ────────────────────────────────────── */
.vd-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  gap: 8px;
  transition: transform var(--t-med) var(--ease);
}
.has-mobile-cta .vd-mobile-cta { display: flex; }
.vd-mobile-cta.is-hidden { transform: translateY(110%); }
.vd-mobile-cta__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vd-mobile-cta__btn svg { width: 22px; height: 22px; color: var(--white); }
.vd-mobile-cta__btn--primary { background: var(--red); }
.vd-mobile-cta__btn--primary:hover { background: var(--red-hover); }
@media (min-width: 880px) {
  .has-mobile-cta .vd-mobile-cta { display: none; }
  .vd-page { padding-bottom: 0; }
}

/* Finance calculator */
.vd-finance {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-6);
  align-items: stretch;
}
@media (max-width: 720px) {
  .vd-finance { grid-template-columns: 1fr; }
}
.vd-finance__inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
.vd-finance__inputs .field label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--gray-500);
}
.vd-finance__readout {
  font-weight: var(--fw-bold);
  color: var(--ink);
  padding: 0.65rem 0;
}
.vd-finance__output {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vd-finance__monthly span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  font-weight: var(--fw-bold);
}
.vd-finance__monthly strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: var(--fw-black);
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.vd-finance__small {
  margin-top: var(--s-4);
  font-size: 0.8rem;
  color: var(--gray-400);
  line-height: 1.5;
}
.vd-finance__small a { color: var(--white); border-bottom: 1px solid var(--red); }

/* Sidebar cards */
.vd-sidebar { display: flex; flex-direction: column; gap: var(--s-5); }
.vd-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
}
.vd-card h3 { font-size: 1.15rem; margin-bottom: var(--s-3); }
.vd-inquiry-card { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
@media (max-width: 980px) { .vd-inquiry-card { position: static; } }
.vd-dealer .btn--block { width: 100%; }

/* Similar vehicles */
.vd-similar {
  padding-top: var(--s-12);
  border-top: 1px solid var(--gray-200);
  margin-top: var(--s-12);
}
.vd-similar h2 { margin-bottom: var(--s-6); }

/* ============================================================
   Admin (sync status) page
   ============================================================ */
.admin-page { padding-block: var(--s-12); }
.admin-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
@media (max-width: 880px) { .admin-status { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-stat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
}
.admin-stat .label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: var(--fw-bold);
}
.admin-stat .value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  line-height: 1;
  margin-top: var(--s-2);
  letter-spacing: -0.02em;
}
.admin-stat.is-error .value { color: var(--red); }
.admin-stat.is-ok .value { color: #16a34a; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.9rem;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}
.admin-table th {
  background: var(--gray-50);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--gray-500);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.admin-table .pill--ok { background: #ecfdf5; color: #15803d; }
.admin-table .pill--warn { background: #fef3c7; color: #92400e; }
.admin-table .pill--err { background: var(--red-soft); color: var(--red); }

.admin-cmd {
  background: var(--ink);
  color: var(--gray-300);
  font-family: ui-monospace, "SF Mono", monospace;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.85rem;
}
.admin-cmd code { color: var(--white); }


:root {
  /* Palette */
  --black: #0a0a0a;
  --ink: #111418;
  --gray-900: #1a1d22;
  --gray-800: #25292f;
  --gray-700: #3a3f47;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #fafafa;
  --white: #ffffff;
  --red: #d32027;
  --red-hover: #b8181f;
  --red-soft: #fdecec;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-7: 1.75rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --s-32: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.06), 0 1px 3px rgba(10, 10, 10, 0.04);
  --shadow:    0 4px 12px rgba(10, 10, 10, 0.08), 0 2px 4px rgba(10, 10, 10, 0.04);
  --shadow-lg: 0 16px 40px rgba(10, 10, 10, 0.12), 0 4px 12px rgba(10, 10, 10, 0.06);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 140ms;
  --t-med: 220ms;
  --t-slow: 360ms;

  /* Header height */
  --header-h: 104px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}
:where(h1, h2, h3, h4, h5, h6, p, ul, ol) { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
h1, .h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(2.5rem, 5.5vw + 1rem, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(1.85rem, 2.8vw + 1rem, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.italic-accent {
  font-style: italic;
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  color: var(--red);
  display: inline-block;
}
.italic-accent--white { color: var(--white); font-style: italic; font-weight: var(--fw-bold); }
h4 { font-weight: var(--fw-bold); font-size: 1.125rem; line-height: 1.3; }
.lead { font-size: 1.125rem; color: var(--gray-700); line-height: 1.65; }
.muted { color: var(--gray-500); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-6);
}
.container--narrow { max-width: var(--container-narrow); }
section { padding-block: var(--s-20); }
@media (max-width: 720px) {
  section { padding-block: var(--s-16); }
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-12);
}
.section-head .eyebrow { margin-bottom: var(--s-3); }
.section-head p { color: var(--gray-700); margin-top: var(--s-4); }

.grid {
  display: grid;
  gap: var(--s-6);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  font-weight: var(--fw-semibold);
  font-size: 1rem;
  letter-spacing: 0.005em;
  min-height: 52px;
  transition: transform var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-hover); box-shadow: var(--shadow); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--gray-900); box-shadow: var(--shadow); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--gray-300); }
.btn--ghost-dark:hover { background: var(--gray-100); border-color: var(--gray-700); }
.btn--lg { padding: 1.1rem 2rem; min-height: 58px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* Inline arrow */
.btn .arrow,
.link .arrow { transition: transform var(--t-med) var(--ease); }
.btn:hover .arrow,
.link:hover .arrow { transform: translateX(4px); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: var(--fw-semibold);
  color: var(--red);
}
.link:hover { color: var(--red-hover); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: var(--header-h);
}
.site-header__inner > .brand        { flex-shrink: 0; }
.site-header__inner > .primary-nav  { flex: 1; justify-content: center; }
.site-header__inner > .header-cta   { flex-shrink: 0; margin-left: auto; }
.site-header__inner > .nav-toggle   { flex-shrink: 0; margin-left: auto; }
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: var(--fw-black);
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand img { height: 77px; width: auto; }
@media (max-width: 540px) { .brand img { height: 62px; } }
.brand__name { display: none; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.primary-nav a {
  position: relative;
  padding: 0.6rem 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.primary-nav a:hover { color: var(--ink); background: var(--gray-100); }
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: var(--fw-semibold);
}
.primary-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 24px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: translateX(-50%);
}
.primary-nav .btn { margin-left: var(--s-3); }

/* ---------- Nav dropdown (desktop) ---------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown__trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
}
.nav-dropdown__chevron {
  width: 12px;
  height: 8px;
  transition: transform var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.nav-dropdown:hover .nav-dropdown__chevron,
.nav-dropdown:focus-within .nav-dropdown__chevron {
  transform: rotate(180deg);
}
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--s-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease),
              transform var(--t-med) var(--ease),
              visibility 0s linear var(--t-med);
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity var(--t-med) var(--ease),
              transform var(--t-med) var(--ease),
              visibility 0s linear 0s;
}
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
  /* Bridge so hover doesn't break crossing the gap to the menu */
}
.nav-dropdown__menu a {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: var(--fw-medium);
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  display: block;
}
.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
  background: var(--gray-100);
  color: var(--red);
}
.nav-dropdown__menu a:first-child {
  font-weight: var(--fw-semibold);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 4px;
  padding-bottom: 0.7rem;
  border-radius: 0;
}
.nav-dropdown__icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  color: var(--red);
  flex-shrink: 0;
  vertical-align: -3px;
}
.nav-dropdown__menu a {
  display: flex;
  align-items: center;
}

/* ---------- Mobile nav sub-items ---------- */
.mobile-nav__sub {
  padding-left: var(--s-8) !important;
  font-size: 1rem !important;
  font-weight: var(--fw-medium) !important;
  color: var(--gray-700) !important;
  position: relative;
}
.mobile-nav__sub::before {
  content: '';
  position: absolute;
  left: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: var(--gray-400);
}
.mobile-nav__sub[aria-current="page"] { color: var(--red) !important; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white);
  color: var(--ink);
  z-index: 49;
  overflow-y: auto;
  padding: var(--s-8) var(--s-6) var(--s-10);
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  display: block;
  padding: var(--s-4) var(--s-2);
  font-size: 1.15rem;
  font-weight: var(--fw-semibold);
  font-family: var(--font-display);
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--gray-100);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.mobile-nav a:hover,
.mobile-nav a:focus-visible { color: var(--red); background: var(--gray-50); }
.mobile-nav a[aria-current="page"] { color: var(--red); }
.mobile-nav__sub {
  font-size: 1rem !important;
  font-weight: var(--fw-medium) !important;
  font-family: var(--font-sans) !important;
  color: var(--gray-700) !important;
}
.mobile-nav .btn {
  margin-top: var(--s-5);
  align-self: stretch;
}
.mobile-nav__contact {
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--gray-200);
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.8;
  text-align: center;
}
.mobile-nav__contact strong { color: var(--ink); display: block; margin-bottom: var(--s-2); }
.mobile-nav__contact a { color: var(--red); font-weight: var(--fw-semibold); }
.mobile-nav__contact strong { color: var(--ink); }

@media (max-width: 1080px) {
  .primary-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 8rem);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  opacity: 0.42;
  filter: saturate(0.75) contrast(1.05) brightness(0.92);
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.7) 100%),
    radial-gradient(900px 480px at 80% 20%, rgba(211, 32, 39, 0.22), transparent 60%),
    radial-gradient(700px 420px at 10% 90%, rgba(255,255,255,0.05), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: var(--white);
  max-width: 14ch;
}
.hero h1 .accent { color: var(--red); }
.hero p.lead {
  color: var(--gray-300);
  max-width: 56ch;
  margin-top: var(--s-5);
  font-size: 1.15rem;
}
.hero .btn-row { margin-top: var(--s-8); }
.hero .btn--ghost-light { color: var(--white); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6) var(--s-10);
  margin-top: var(--s-12);
  padding-top: var(--s-8);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: var(--fw-medium);
  color: var(--gray-300);
  font-size: 0.95rem;
}
.trust-strip__item svg {
  width: 20px;
  height: 20px;
  color: var(--red);
  flex-shrink: 0;
}

/* ---------- Vehicle cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.vehicle-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
  overflow: hidden;
}
.vehicle-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.card:hover .vehicle-card__media img { transform: scale(1.04); }
.vehicle-card__badge {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  background: var(--red);
  color: var(--white);
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.vehicle-card__body { padding: var(--s-5) var(--s-5) var(--s-6); }
.vehicle-card__title {
  font-weight: var(--fw-bold);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.vehicle-card__meta {
  margin-top: var(--s-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  color: var(--gray-500);
  font-size: 0.9rem;
}
.vehicle-card__price {
  margin-top: var(--s-4);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}
.vehicle-card__price .amount {
  font-weight: var(--fw-black);
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.vehicle-card__price .label {
  font-size: 0.8rem;
  color: var(--gray-500);
}
.vehicle-card__cta {
  margin-top: var(--s-5);
  display: flex;
  gap: var(--s-2);
}

/* ---------- Service cards ---------- */
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-5);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: var(--s-3); }
.service-card p { color: var(--gray-700); flex: 1; }
.service-card__footer {
  margin-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
}

/* ---------- Why us ---------- */
.why-us {
  background: var(--gray-50);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }

.why-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
}
.why-item__num {
  font-family: var(--font-sans);
  font-weight: var(--fw-black);
  font-size: 1rem;
  color: var(--red);
  letter-spacing: 0.08em;
}
.why-item h3 { margin: var(--s-3) 0 var(--s-3); }
.why-item p { color: var(--gray-700); }

/* ---------- About / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-12);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: var(--s-8); } }
.split__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 5;
  position: relative;
}
.split__media .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink), var(--gray-800));
  color: var(--gray-500);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 400px at 90% 50%, rgba(211,32,39,0.22), transparent 60%);
  pointer-events: none;
}
.cta-strip__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 880px) { .cta-strip__inner { grid-template-columns: 1fr; } }
.cta-strip h2 { color: var(--white); }
.cta-strip p { color: var(--gray-300); margin-top: var(--s-3); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: var(--s-16) 0 var(--s-8);
  font-size: 0.95rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  font-weight: var(--fw-bold);
}
.site-footer a { color: var(--gray-300); transition: color var(--t-fast) var(--ease); }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s-10);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img {
  height: 56px;
  width: auto;
  filter: invert(1) brightness(2);
  margin-bottom: var(--s-4);
}
.footer-brand p { color: var(--gray-400); max-width: 36ch; }
.footer-links { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-contact-line { display: flex; gap: var(--s-2); margin-bottom: var(--s-3); }
.footer-contact-line svg { color: var(--red); flex-shrink: 0; width: 18px; margin-top: 3px; }
.site-footer__bottom {
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: var(--s-5);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label {
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  color: var(--gray-700);
  letter-spacing: 0.01em;
}
.field input,
.field textarea,
.field select {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  background: var(--white);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  font-size: 1rem;
  min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(211, 32, 39, 0.15);
}
.field--required label::after { content: ' *'; color: var(--red); }
.form-note { font-size: 0.85rem; color: var(--gray-500); }
.form-success {
  display: none;
  padding: var(--s-5);
  background: var(--red-soft);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
}
.form-success.is-visible { display: block; }

/* ---------- Page hero (smaller) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.inv-page + * .page-hero, /* fallback if reordered */
.page-hero + .inv-page { padding-top: 0; }
.page-hero--inventory { padding-bottom: clamp(5rem, 10vw, 7rem); }
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 360px at 80% 30%, rgba(211, 32, 39, 0.18), transparent 60%);
  pointer-events: none;
}
.page-hero__inner { position: relative; max-width: 780px; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--gray-300); font-size: 1.15rem; margin-top: var(--s-5); max-width: 60ch; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: var(--s-5);
}
.breadcrumbs a { color: var(--gray-400); transition: color var(--t-fast) var(--ease); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs .sep { color: var(--gray-700); }
.breadcrumbs [aria-current] { color: var(--white); }

/* ---------- Map ---------- */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ---------- Service detail page ---------- */
.service-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s-12);
}
@media (max-width: 980px) { .service-content { grid-template-columns: 1fr; } }
.service-prose { max-width: 720px; }
.service-prose h2 { margin-top: var(--s-12); margin-bottom: var(--s-4); }
.service-prose h2:first-child { margin-top: 0; }
.service-prose p { color: var(--gray-700); margin-bottom: var(--s-4); }
.service-prose ul.checks { display: grid; gap: var(--s-3); margin: var(--s-4) 0 var(--s-6); }
.service-prose ul.checks li {
  position: relative;
  padding-left: var(--s-8);
  color: var(--gray-700);
}
.service-prose ul.checks li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 20px; height: 20px;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 0 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0Z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 0 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0Z'/></svg>") no-repeat center / contain;
}

.service-aside {
  position: sticky;
  top: calc(var(--header-h) + var(--s-6));
  align-self: start;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
}
.service-aside h3 { margin-bottom: var(--s-3); }
.service-aside p { color: var(--gray-700); margin-bottom: var(--s-4); font-size: 0.95rem; }
.service-aside .btn { width: 100%; }
.service-aside ul { margin-top: var(--s-5); display: grid; gap: var(--s-2); }
.service-aside ul li {
  display: flex; gap: var(--s-2); align-items: center;
  font-size: 0.9rem; color: var(--gray-700);
}
.service-aside ul li svg { color: var(--red); flex-shrink: 0; }

.related-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-4);
}
.related-services a {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.related-services a:hover { border-color: var(--red); background: var(--red-soft); }
@media (max-width: 540px) { .related-services { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-6);
  transition: border-color var(--t-fast) var(--ease);
}
.faq details[open] { border-color: var(--gray-300); }
.faq summary {
  font-weight: var(--fw-semibold);
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: var(--fw-regular);
  color: var(--red);
  transition: transform var(--t-fast) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: var(--s-3); color: var(--gray-700); }

/* ---------- Inventory page ---------- */
.inventory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--gray-200);
}
.inventory-toolbar p { color: var(--gray-500); font-size: 0.95rem; }
.inventory-empty {
  text-align: center;
  padding: var(--s-16);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--gray-300);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--s-2); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0; }
.bg-soft { background: var(--gray-50); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Creative direction: editorial accents ---------- */

/* Giant outlined watermark text behind hero */
.hero__watermark {
  position: absolute;
  bottom: -2rem;
  right: -3rem;
  font-family: var(--font-display);
  font-size: clamp(10rem, 22vw, 22rem);
  font-weight: 800;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  line-height: 0.85;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .hero__watermark { font-size: 11rem; right: -1rem; bottom: -1rem; }
}

/* Stats band — dark social-proof strip */
.stats-band {
  background: var(--ink);
  color: var(--white);
  padding-block: var(--s-16);
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--red);
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 360px at 80% 50%, rgba(211,32,39,0.12), transparent 60%);
  pointer-events: none;
}
.stats-band__inner { position: relative; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8);
}
.stat { text-align: left; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--fw-black);
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}
.stat__num .accent { color: var(--red); }
.stat__num .suffix { font-size: 0.5em; font-weight: var(--fw-bold); color: var(--gray-400); }
.stat__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: var(--fw-bold);
  color: var(--gray-400);
  margin-top: var(--s-3);
}
@media (max-width: 880px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); } }

/* Service cards: punchier hover, red corner accent */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle at center, rgba(211, 32, 39, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
}
.service-card:hover::after { opacity: 1; }
.service-card__icon {
  transition: background var(--t-med) var(--ease),
              color var(--t-med) var(--ease),
              transform var(--t-med) var(--ease);
}
.service-card:hover .service-card__icon {
  background: var(--red);
  color: var(--white);
  transform: rotate(-4deg) scale(1.05);
}

/* Vehicle cards: hover image lift + overlay */
.vehicle-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.55));
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
}
.card:hover .vehicle-card__media::after { opacity: 1; }

/* Why-us cards: numbered with hover accent */
.why-item {
  position: relative;
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.why-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--red);
}
.why-item__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: var(--fw-black);
  font-style: italic;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}

/* Section divider with diagonal red slash */
.diagonal-accent {
  position: relative;
  padding-top: var(--s-12) !important;
}
.diagonal-accent::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 4px;
  background: var(--red);
  border-radius: 2px;
}

/* About split: replace placeholder with real image treatment */
.split__media {
  background: var(--ink);
  position: relative;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.split__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.05), rgba(211,32,39,0.12));
  pointer-events: none;
}
.split__badge {
  position: absolute;
  bottom: var(--s-6);
  left: var(--s-6);
  background: var(--white);
  color: var(--ink);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  z-index: 2;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.split__badge svg { color: var(--red); width: 16px; height: 16px; }

/* CTA strip: add a diagonal red ribbon */
.cta-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: -2%;
  width: 30%;
  background: linear-gradient(115deg, transparent 70%, rgba(211, 32, 39, 0.25) 70%, rgba(211, 32, 39, 0.25) 78%, transparent 78%);
  pointer-events: none;
}

/* Section head — bigger, more editorial */
.section-head h2 { font-family: var(--font-display); }

/* Hero refinements */
.hero h1 .accent {
  font-style: italic;
  font-weight: var(--fw-bold);
  color: var(--red);
}
.hero p.lead { color: var(--gray-300); }

/* Trust strip → uppercase, monospaced-feel for "premium" labels */
.trust-strip__item {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
}

/* Eyebrow gets a small leading mark */
.eyebrow {
  position: relative;
  padding-left: 18px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

/* Scroll-triggered fade-in (set by JS) */
[data-fade] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
  will-change: opacity, transform;
}
[data-fade].is-visible {
  opacity: 1;
  transform: none;
}
[data-fade-delay="1"] { transition-delay: 80ms; }
[data-fade-delay="2"] { transition-delay: 160ms; }
[data-fade-delay="3"] { transition-delay: 240ms; }
[data-fade-delay="4"] { transition-delay: 320ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-fade] { opacity: 1 !important; transform: none !important; }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .mobile-nav, .cta-strip { display: none !important; }
  body { color: #000; }
  a { text-decoration: underline; }
}

/* ============================================================
   Customer reviews section (homepage)
   Reads /assets/data/reviews.json — section is hidden by JS
   when there are no real reviews to show.
   ============================================================ */
.reviews-section { padding-block: var(--s-20); }
.reviews-section .section-head { text-align: center; margin-bottom: var(--s-10); }
.rv-aggregate-slot:empty { display: none; }
.rv-aggregate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-3);
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--ink);
}
.rv-aggregate strong { font-weight: var(--fw-bold); }
.rv-aggregate .muted { color: var(--gray-700); }

.rv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}
@media (max-width: 1080px) { .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .rv-grid { grid-template-columns: 1fr; } }

.rv-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--s-7) var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.rv-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.rv-quote {
  position: absolute;
  top: var(--s-4);
  right: var(--s-5);
  width: 28px;
  height: 28px;
  color: var(--red-soft);
  opacity: 0.9;
}
.rv-card:hover .rv-quote { color: var(--red); opacity: 0.18; }

.rv-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--red);
}
.rv-star { width: 16px; height: 16px; flex-shrink: 0; }
.rv-aggregate .rv-star { width: 14px; height: 14px; }

.rv-text {
  color: var(--gray-700);
  line-height: 1.6;
  font-size: 0.97rem;
  margin: 0;
  flex: 1;
}

.rv-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: var(--s-3);
  border-top: 1px solid var(--gray-100);
}
.rv-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--fw-bold);
}
.rv-author__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.rv-name { font-weight: var(--fw-semibold); color: var(--ink); }
.rv-meta { font-size: 0.78rem; color: var(--gray-500); }
.rv-meta .rv-vehicle { color: var(--ink); font-weight: var(--fw-semibold); }

.rv-cta-row {
  display: flex;
  justify-content: center;
  margin-top: var(--s-8);
}
.rv-cta-row:empty { display: none; }
.rv-google-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.rv-google-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: var(--gray-300);
}
.rv-google-cta__icon { width: 20px; height: 20px; flex-shrink: 0; }
.rv-google-cta__arrow { color: var(--gray-500); margin-left: 2px; }

/* ============================================================
   Mobile/responsive refinements (consolidated bottom block)
   Tightens layout and spacing on phones and small tablets so
   the site reads naturally at 320–540px without breaking the
   existing desktop design.
   ============================================================ */

/* ── Tablet / large phone: bring nav + brand down a half-step */
@media (max-width: 880px) {
  .brand img { height: 70px; }
}

/* ── Small phone (≤640px): kill the inventory-toolbar negative margin
   that pulls the toolbar up into the dark hero. Looks great on desktop
   but on phones it crowds the H1 and clips the rounded corners. */
@media (max-width: 640px) {
  .inv-toolbar {
    margin-top: var(--s-4);
    box-shadow: var(--shadow-sm);
  }
  .page-hero--inventory { padding-bottom: clamp(3rem, 8vw, 4rem); }
}

/* ── Small phone: tighten admin table cells so 9 columns don't blow
   past the viewport even with overflow-x: auto. */
@media (max-width: 640px) {
  .admin-table { font-size: 0.78rem; min-width: 720px; }
  .admin-table th,
  .admin-table td { padding: 0.5rem 0.6rem; }
}

/* ── Smaller phone (≤540px): tighten the vehicle detail hero panel,
   gallery nav, and form-row so things don't feel cramped. */
@media (max-width: 540px) {
  .vd-hero__panel-inner { padding: var(--s-5); }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Tiny phone (≤480px): aggressive scale-down of section spacing,
   container side padding, and gallery nav buttons. This range is iPhone
   SE / older Androids — every pixel of horizontal real estate matters. */
@media (max-width: 480px) {
  section { padding-block: var(--s-12); }
  .container { padding-inline: var(--s-4); }
  .vd-gallery__nav { width: 36px; height: 36px; }
  .vd-gallery__nav svg { width: 18px; height: 18px; }
  .page-hero { padding-block: clamp(2.75rem, 9vw, 4rem); }
  .page-hero p { font-size: 1rem; }
  /* Hero CTA buttons stack better than wrap on tight screens */
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn { justify-content: center; }
}

/* ── Mobile sticky CTA: tighter on tiny phones so it doesn't
   eat half the visible viewport. */
@media (max-width: 375px) {
  .vd-mobile-cta { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .vd-mobile-cta__btn { font-size: 0.68rem; padding: 8px 4px; }
  .vd-mobile-cta__btn svg { width: 20px; height: 20px; }
}

/* ── Reviews + service grid: ensure cards never collide with the
   container edges on a 320px phone (their card padding is generous
   on desktop but feels right with reduced container padding above). */
@media (max-width: 480px) {
  .rv-card { padding: var(--s-6) var(--s-5) var(--s-4); }
  .vd-prose-block { padding: var(--s-5) var(--s-5); }
  .vd-feature-group { padding: var(--s-5); }
}

/* ── Form fields: iOS zooms inputs whose font-size < 16px on focus.
   Make sure all form inputs/selects/textareas are at least 16px. */
@media (max-width: 540px) {
  .form input,
  .form select,
  .form textarea,
  .inv-search input,
  .inv-sort select,
  .inv-field input,
  .inv-field select,
  .inv-range input { font-size: 16px; }
}

/* ── CTA strip + financing band: stack to single column more
   gracefully on phones so the buttons don't push out of the card. */
@media (max-width: 540px) {
  .cta-strip__inner { gap: var(--s-5); }
  .cta-strip h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .cta-strip .btn-row { flex-direction: column; align-items: stretch; }
  .cta-strip .btn-row .btn { justify-content: center; }
}

/* ── Footer grid: 4-up at desktop → 2-up at 880 → 1-up on phones
   already works, but ensure each block has breathing room. */
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .site-footer__bottom { flex-direction: column; gap: var(--s-2); text-align: center; }
}

/* ── Long content guard: any HTML (URLs, VINs, stock numbers, etc.)
   should wrap rather than blow out the container. */
@media (max-width: 540px) {
  .vd-id-block code,
  .admin-cmd code,
  .vd-prose-block p { overflow-wrap: anywhere; }
}

/* ============================================================
   Auto Detailing pricing — package cards (per /services/auto-detailing-lafayette-in/)
   Dark cards with red accents, "Most Popular" badge on featured tier.
   ============================================================ */
.dt-pricing {
  background: var(--gray-50);
  padding-block: var(--s-16) var(--s-20);
}
.dt-pricing__sub {
  max-width: 640px;
  margin: var(--s-3) auto 0;
  color: var(--gray-700);
}
.dt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-10);
}
@media (max-width: 1080px) { .dt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); } }
@media (max-width: 540px)  { .dt-grid { grid-template-columns: minmax(0, 1fr); } }

.dt-card {
  min-width: 0; /* prevents card from growing beyond column track when content has wide min-content */
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--s-7) var(--s-6) var(--s-6);
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.08);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  overflow: hidden;
}
.dt-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--gray-700) 50%, transparent 100%);
}
.dt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 10, 10, 0.18);
}
.dt-card--featured {
  background: linear-gradient(165deg, var(--ink) 0%, var(--gray-900) 100%);
  border-color: var(--red);
  box-shadow: 0 12px 32px rgba(211, 32, 39, 0.20);
}
.dt-card--featured::before { background: var(--red); }
.dt-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(211, 32, 39, 0.35);
}
.dt-card__head { margin-bottom: var(--s-5); }
.dt-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(211, 32, 39, 0.12);
  color: var(--red);
  margin-bottom: var(--s-4);
}
.dt-card__icon svg { width: 28px; height: 28px; }
.dt-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 4px;
}
.dt-card__tag {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin: 0;
}
.dt-card__prices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--s-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--s-5);
}
.dt-card__prices > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}
.dt-card__prices span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--fw-semibold);
  color: var(--gray-400);
}
.dt-card__prices strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: var(--fw-black);
  color: var(--white);
  line-height: 1;
}
.dt-card--featured .dt-card__prices strong { color: var(--red); }
.dt-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6);
  display: grid;
  gap: 8px;
  flex: 1;
}
.dt-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--gray-300);
  line-height: 1.45;
}
.dt-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 14px; height: 14px;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 0 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0Z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 0 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0Z'/></svg>") no-repeat center / contain;
}
.dt-card .btn { margin-top: auto; }
.dt-card .btn--ghost-dark {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  background: transparent;
}
.dt-card .btn--ghost-dark:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.dt-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-10);
}
@media (max-width: 540px) {
  .dt-cta-row { flex-direction: column; align-items: stretch; }
  .dt-cta-row .btn { justify-content: center; }
}
.dt-pricing__note {
  text-align: center;
  margin-top: var(--s-8);
  color: var(--gray-700);
  font-size: 0.9rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Flyer thumbnail (below FAQ) */
.dt-flyer {
  display: block;
  max-width: 480px;
  margin: var(--s-4) 0 var(--s-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.dt-flyer:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.dt-flyer img { display: block; width: 100%; height: auto; }

/* Flyer block — sits between pricing section and prose */
.dt-flyer-section { padding-block: var(--s-12); background: var(--white); }
.dt-flyer-block {
  display: grid;
  grid-template-columns: 1fr minmax(0, 360px);
  gap: var(--s-10);
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
}
.dt-flyer-block__copy h2 { margin: var(--s-2) 0 var(--s-3); }
.dt-flyer-block__copy .muted { margin-bottom: var(--s-4); }
@media (max-width: 880px) {
  .dt-flyer-block { grid-template-columns: 1fr; padding: var(--s-6); }
}
