/* ==========================================================================
   OA Auto Center — "Garage Silver" design system
   Light cool register · black/silver from the shop's own logo pixels
   Cobalt #0058C0 = interactive · Deep red #880000 = SOLD/high-signal ONLY
   Type: Satoshi (display) + Geist (body), approved stacks only
   ========================================================================== */

:root {
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --band: #E9EDF2;
  --ink: #17181C;
  --muted: #434852;
  --accent: #0058C0;        /* cobalt — logo pixel-verified */
  --accent-deep: #0548A0;
  --accent-soft: #E3ECF9;
  --signal: #880000;        /* deep red — logo pixel-verified, SOLD only */
  --signal-soft: #F7E9E9;
  --dark: #14161B;
  --dark-2: #1D2026;
  --dark-text: #F2F4F7;
  --dark-muted: #A9B0BC;
  --line: #D9DEE6;
  --line-dark: #2C3038;

  --font-display: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", "Helvetica Neue", Arial, sans-serif;

  --fs-body: 1.0625rem;          /* 17px mobile, grows on desktop */
  --lh-body: 1.55;
  --measure: 66ch;
  --wrap: 1180px;
  --radius: 10px;
  --radius-s: 7px;
  --shadow-card: 0 1px 2px rgba(20, 22, 27, .05), 0 8px 24px -12px rgba(20, 22, 27, .14);
  --shadow-pop: 0 12px 40px -12px rgba(20, 22, 27, .3);
}

@media (min-width: 760px) { :root { --fs-body: 1.125rem; } }

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

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-color: rgba(0, 88, 192, .35); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); font-weight: 900; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker--dark { color: #7FB0F2; }
.num, .price-tab { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  min-height: 48px; padding: 10px 22px; border-radius: var(--radius-s);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: var(--dark-text); border-color: var(--dark-muted); }
.btn-ghost-light:hover { border-color: var(--dark-text); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { min-height: 42px; padding: 6px 16px; font-size: .92rem; }

/* ---------- Chips / badges (auction grammar) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--band); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px; padding: 4px 9px; white-space: nowrap;
}
.chip--run { background: var(--accent-soft); color: #05417F; border-color: #BCD3F2; }
.chip--title { background: #EFF3EE; color: #2E5237; border-color: #CFDCCF; }
.chip--salvage { background: #FFF4E3; color: #7A4E12; border-color: #EBD5AE; }
.chip--sold { background: var(--signal); color: #fff; border-color: var(--signal); }

.badge-flag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-display); font-weight: 900; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 5px;
}
.badge-flag--sold { background: var(--signal); color: #fff; }
.badge-flag--sample { background: #fff; color: var(--accent); border: 2px dashed var(--accent); }
.badge-flag--reserved { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand {
  font-family: var(--font-display); font-weight: 900; font-size: 1.35rem;
  letter-spacing: .01em; color: var(--ink); text-decoration: none; line-height: 1;
  display: flex; align-items: baseline; gap: 8px; white-space: nowrap;
}
.brand em { font-style: normal; color: var(--signal); }
.brand span { font-weight: 700; font-size: .95rem; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--ink); text-decoration: none; padding: 10px 13px; border-radius: 6px;
}
.nav a:hover { background: var(--band); }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.header-cta { margin-left: 4px; }
.nav-toggle {
  display: none; margin-left: auto; min-height: 44px; min-width: 44px;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  background: var(--ink); color: #fff; border: 0; border-radius: 6px; cursor: pointer;
}
@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 10px 18px 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 10px; font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(44px, 7vw, 92px) 0 clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 30px;
  padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero-facts li { list-style: none; font-size: .92rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.hero-facts strong { color: var(--ink); font-weight: 600; }
.hero-facts .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--signal); flex: none; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* framed real-photo card */
.photo-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-card);
}
.photo-card img { border-radius: 6px; }
.photo-card figcaption {
  margin-top: 10px; font-size: .85rem; color: var(--muted);
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
}
.photo-card figcaption b { font-family: var(--font-display); color: var(--ink); font-size: .9rem; letter-spacing: .02em; }

/* ---------- Sections / rhythm ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--band { background: var(--band); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--dark-muted); }
.section--dark .lead { color: var(--dark-muted); }
.section-head { margin-bottom: clamp(26px, 4vw, 44px); }
.section-head .lead { margin-bottom: 0; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Vehicle grid + cards ---------- */
.vehicle-grid {
  display: grid; gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.card-vehicle {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card); text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-vehicle:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--band); }

/* designed photo slot — intentional placeholder, never broken */
.photo-slot {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 8px;
  background:
    linear-gradient(var(--band), var(--band)) padding-box,
    var(--surface);
  color: var(--muted); text-align: center; padding: 18px;
}
.photo-slot::before, .photo-slot::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 2.5px solid var(--accent); opacity: .55;
}
.photo-slot::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.photo-slot::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.photo-slot .slot-body {
  font-family: var(--font-display); font-weight: 900; font-size: 1.05rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: .8;
}
.photo-slot .slot-note { font-size: .8rem; letter-spacing: .02em; }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1.2; letter-spacing: -0.005em; }
.card-title small { display: block; font-weight: 500; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.card-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; }
.card-price { font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; color: var(--ink); }
.card-price--sold { color: var(--signal); }
.card-price small, .card-miles { font-size: .88rem; color: var(--muted); font-weight: 500; }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Filters ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: end;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 26px; box-shadow: var(--shadow-card);
}
.field { display: grid; gap: 5px; }
.field label { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.field select, .field input {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 6px;
  min-height: 46px; padding: 8px 12px; cursor: pointer;
}
.filter-count { margin-left: auto; font-size: .95rem; color: var(--muted); padding-bottom: 10px; }
@media (max-width: 620px) { .filter-count { margin-left: 0; width: 100%; } }

/* ---------- Spec / disclosure ---------- */
.spec-grid {
  display: grid; gap: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 640px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
.spec-cell { padding: 13px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; }
@media (min-width: 640px) { .spec-cell:nth-child(odd) { border-right: 1px solid var(--line); } }
.spec-cell dt { color: var(--muted); font-size: .9rem; }
.spec-cell dd { margin: 0; font-weight: 600; font-size: .95rem; text-align: right; font-variant-numeric: tabular-nums; }

.damage-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.damage-table th, .damage-table td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: .98rem; }
.damage-table th { font-family: var(--font-display); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); background: var(--band); }

/* repair log — the signature section */
.repair-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.repair-log li {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius-s);
  padding: 15px 18px;
}
.repair-log .r-date { font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.repair-log .r-what { font-weight: 600; margin: 3px 0 2px; }
.repair-log .r-parts { font-size: .92rem; color: var(--muted); }

/* ---------- Stats / trust ---------- */
.stat-row { display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 20px 22px; }
.stat .n { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 3vw, 2.6rem); color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.stat .l { font-size: .88rem; color: var(--dark-muted); margin-top: 8px; }
.stat .l b { color: #E6EAF0; }

/* ---------- Gallery ---------- */
.gallery-main { position: relative; aspect-ratio: 16/10; background: var(--band); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumb { position: relative; aspect-ratio: 16/10; border-radius: 7px; overflow: hidden; border: 2px solid transparent; background: var(--band); cursor: pointer; padding: 0; }
.gallery-thumb.on { border-color: var(--accent); }
.gallery-thumb .slot-body { font-size: .58rem; letter-spacing: .1em; }

/* ---------- Sticky mobile action bar ---------- */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(20, 22, 27, .97); backdrop-filter: blur(8px);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: none; flex-direction: column; gap: 8px;
}
.sticky-bar .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.sticky-bar .row--text { grid-template-columns: 1fr; }
.sticky-bar .btn { min-height: 46px; font-size: .95rem; }
@media (max-width: 760px) { .sticky-bar { display: flex; } body { padding-bottom: 128px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-muted); padding: clamp(40px, 6vw, 64px) 0 90px; }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer a { color: var(--dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: #fff; }
.footer-brand em { font-style: normal; color: var(--signal); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.license-line { border-top: 1px solid var(--line-dark); margin-top: 34px; padding-top: 20px; font-size: .84rem; line-height: 1.6; }

/* ---------- Utility ---------- */
.grid-2 { display: grid; gap: clamp(20px, 3vw, 40px); }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.note-box { background: var(--accent-soft); border: 1px solid #BCD3F2; border-radius: var(--radius-s); padding: 13px 16px; font-size: .95rem; color: #05417F; }
.note-box--sample { background: #FFF9E8; border-color: #EAD89E; color: #6E5312; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Motion (restraint = premium) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Cinematic full-page hero ---------- */
.hero-cine {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #0B0D11; color: var(--dark-text); overflow: hidden;
  padding-top: 68px; /* clears the sticky header */
}
.hero-cine::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(1100px 560px at 64% 26%, rgba(0, 88, 192, .30), transparent 66%),
    radial-gradient(900px 500px at 12% 88%, rgba(136, 0, 0, .12), transparent 60%),
    linear-gradient(180deg, rgba(11,13,17,.25), rgba(11,13,17,.1) 40%, rgba(11,13,17,.72) 82%, #0B0D11 100%);
}
.hero-media { position: absolute; top: 0; right: -4%; width: min(60vw, 880px); height: 100%; z-index: 0; will-change: transform; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  opacity: .52; filter: saturate(.85) contrast(1.06);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36%, #000 80%, transparent 99%);
  mask-image: linear-gradient(to right, transparent 0, #000 36%, #000 80%, transparent 99%);
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-cine .wrap { position: relative; z-index: 2; padding-bottom: clamp(120px, 16vh, 170px); }
.hero-mark { width: clamp(64px, 8vw, 92px); height: auto; margin-bottom: 18px; border-radius: 16px; box-shadow: 0 18px 50px -18px rgba(0,0,0,.8); }
.hero-cine h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 13ch; }
.hero-cine .lead { color: var(--dark-muted); max-width: 52ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-stats {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(11,13,17,.6); backdrop-filter: blur(8px);
}
.hero-stats .wrap { display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 4vw, 48px); padding-block: 15px; }
.hero-stats p { margin: 0; font-size: .88rem; color: var(--dark-muted); max-width: none; }
.hero-stats b { color: #fff; font-weight: 600; }
.hero-stats .stat-dot { color: var(--signal); }
.scroll-cue {
  position: absolute; right: clamp(18px, 4vw, 34px); bottom: 108px; z-index: 3;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: .68rem;
  letter-spacing: .3em; text-transform: uppercase; color: #7FB0F2;
}
.scroll-cue::after {
  content: ""; width: 1.5px; height: 54px; background: linear-gradient(#7FB0F2, transparent);
  animation: cuedip 2.4s ease-in-out infinite;
}
@keyframes cuedip { 0%, 100% { opacity: .3; transform: scaleY(.55); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
.rise { opacity: 0; transform: translateY(20px); animation: rise .85s cubic-bezier(.2,.7,.2,1) forwards; }
.rise-1 { animation-delay: .05s; } .rise-2 { animation-delay: .2s; } .rise-3 { animation-delay: .38s; } .rise-4 { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (max-width: 820px) {
  .hero-media { width: 100%; right: 0; opacity: 1; }
  .hero-media img {
    opacity: .3; object-position: center 24%;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
  }
  .hero-cine .wrap { padding-bottom: 190px; justify-content: flex-start; }
  .hero-cine { justify-content: center; }
  .scroll-cue { display: none; }
  .hero-stats .wrap { gap: 6px 18px; padding-block: 12px; }
  .hero-stats p { font-size: .8rem; }
}
