/* Base + layout. Mobile first. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-feature-settings: "cv11";
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 var(--sp-3); letter-spacing: -0.015em; font-feature-settings: "ss01", "cv11"; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
@media (min-width: 640px) { h1 { font-size: var(--fs-3xl); } }
p { margin: 0 0 var(--sp-3); }
a { color: var(--blue-deep); text-underline-offset: 2px; }
a:hover { color: var(--blue); }
small, .small { font-size: var(--fs-sm); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; font-size: 0.92em; }
.num, .money, .tabular, td.num, .kv dd, .vehicle-card .vin { font-variant-numeric: tabular-nums; }
ul, ol { padding-left: 1.25em; margin: 0 0 var(--sp-3); }
li { margin-bottom: var(--sp-1); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--sp-3); top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); z-index: 1000; text-decoration: none; }
.skip-link:focus { top: var(--sp-3); }

/* App shell */
.site-header {
  position: relative; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .site-header { position: sticky; top: 0; } }
.site-header .inner {
  max-width: 1040px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: var(--sp-3);
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: 8px; }
.brand small { font-family: var(--font-body); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--teal); display: inline-block; vertical-align: middle; position: relative; top: 3px; }
.brand-mark::after { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); }
.site-nav { margin-left: auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; padding: 8px 10px; border-radius: var(--radius-sm); white-space: nowrap; min-height: var(--tap); display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--ink); background: var(--ink-soft); }
.site-nav a[aria-current="page"] { color: var(--teal); background: var(--teal-soft); }
@media (max-width: 719px) {
  .site-header .inner { flex-wrap: wrap; padding: 8px 16px 4px; row-gap: 2px; }
  .site-nav { order: 3; margin-left: -10px; width: calc(100% + 20px); padding: 0 10px 4px; -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
  .site-header [data-header-vehicle] { display: none; }
}

main.page { flex: 1; width: 100%; }
.page-head { margin-bottom: var(--sp-5); }
.page-head .eyebrow, .eyebrow { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-deep); font-weight: 600; margin-bottom: var(--sp-2); display: block; }
.page-head p.lead { color: var(--muted); font-size: var(--fs-lg); margin: 0; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }
.site-footer .inner { max-width: 1040px; margin: 0 auto; padding: var(--sp-5) 16px; display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; }
.site-footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: var(--tap); }
.site-footer .promise { font-weight: 600; letter-spacing: -0.01em; color: var(--ink); font-size: var(--fs-md); margin-right: auto; }

.stack > * + * { margin-top: var(--sp-4); }
.stack-sm > * + * { margin-top: var(--sp-2); }
.row { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid-2 { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.hidden, [hidden] { display: none !important; }
