/* =====================================================================
   Fair & Square Automotive Group — public site styles  (v2 refresh)
   Editorial-industrial: Bricolage Grotesque display + Archivo body,
   atmospheric darks with red glow + grain, warm-paper soft sections.
   Mobile-first, no framework, fast to load.
   ===================================================================== */

/* ---- Self-hosted fonts (no third-party Google Fonts request: privacy + speed) ---- */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --red: #e8261a;
  --red-dark: #b91409;
  --red-deep: #7d0d06;
  --ink: #0c0e13;
  --ink-2: #161a22;
  --ink-3: #20262f;
  --slate: #4a5563;
  --slate-2: #6b7585;
  --line: #e6e2db;
  /* Stronger border for INTERACTIVE controls (inputs, chips, ghost button,
     carfax pill) so their boundary meets WCAG 1.4.11 non-text contrast (>=3:1
     on white and on paper-2). --line stays for decorative hairlines/dividers. */
  --line-strong: #767b85;
  --paper: #ffffff;
  --paper-2: #f6f3ee;
  --paper-3: #ece7df;
  --cream: #faf7f2;
  --gold: #f4b829;
  --ok: #137a43;
  --shadow-sm: 0 1px 2px rgba(12,14,19,.05), 0 4px 12px rgba(12,14,19,.05);
  --shadow: 0 2px 6px rgba(12,14,19,.06), 0 14px 34px rgba(12,14,19,.09);
  --shadow-lg: 0 18px 60px rgba(12,14,19,.20);
  --shadow-red: 0 10px 30px rgba(232,38,26,.28);
  --radius: 16px;
  --radius-sm: 11px;
  --wrap: 1200px;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  /* fine film grain used on dark surfaces for depth */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Keep skip-link / deep-link targets clear of the 74px sticky header. */
#main, [id] { scroll-margin-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 18.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.04; margin: 0; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.bg-soft { background: var(--cream); }
.bg-ink { background: var(--ink); color: #eef1f5; }
.center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; }
.accent { color: var(--red); }
.muted { color: var(--slate); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 14px; z-index: 200; border-radius: 8px; box-shadow: var(--shadow); }
/* visually-hidden text equivalent for screen readers (no visual change) */
.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; }
/* darker red/green for small text to meet WCAG AA contrast on white */
a.accent { color: var(--red-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.01em;
  padding: 15px 28px; border-radius: 999px; border: 2px solid var(--red-dark);
  background: var(--red-dark); color: #fff; cursor: pointer;
  transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .16s ease, background .16s ease, border-color .16s ease;
  text-align: center; line-height: 1; box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-2px); box-shadow: var(--shadow-red); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; border-color: #000; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--paper-3); border-color: var(--paper-3); color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--lg { padding: 17px 32px; font-size: 18.5px; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #b9c1cd; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #b9c1cd; transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar .tb-right { display: flex; gap: 16px; align-items: center; }
.topbar .dot { color: var(--red); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Header / nav ---------- */
.site-head { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.site-head.scrolled { box-shadow: var(--shadow-sm); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { height: 54px; width: auto; display: block; transition: transform .2s ease; }
.brand:hover .brand-logo { transform: scale(1.03); }
@media (max-width: 480px) { .brand-logo { height: 44px; } }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 10px 14px; border-radius: 9px; font-weight: 600; font-size: 16px; color: var(--ink-2); position: relative; transition: color .15s; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; border-radius: 2px; }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red-dark); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-cta { margin-left: 8px; background: var(--red-dark); color: #fff; padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--red-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-red); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); padding: 6px; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px;
    gap: 2px; transform: translateY(-130%); transition: transform .28s cubic-bezier(.2,.7,.3,1); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 100%); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 12px; font-size: 17px; border-bottom: 1px solid var(--paper-2); }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav .nav-cta { margin: 10px 0 0; text-align: center; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(9,11,16,.95) 0%, rgba(9,11,16,.80) 40%, rgba(9,11,16,.28) 100%),
    radial-gradient(900px 460px at 86% 0%, rgba(232,38,26,.30), transparent 60%);
}
@media (max-width: 880px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(9,11,16,.93) 0%, rgba(9,11,16,.86) 45%, rgba(9,11,16,.55) 100%),
      radial-gradient(700px 360px at 80% 0%, rgba(232,38,26,.26), transparent 60%);
  }
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .10; mix-blend-mode: overlay; pointer-events: none; }
.hero .wrap { position: relative; padding: 84px 22px 92px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow { font-family: var(--display); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: #ef3b2f; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }
.hero h1 { font-size: clamp(40px, 7.4vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.hero h1 .accent { color: var(--red); }
.hero .lede { font-size: clamp(17px, 2.1vw, 20.5px); color: #c4ccd8; max-width: 540px; margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-art { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: #1a2030; border: 1px solid rgba(255,255,255,.08); }
.hero-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); border-radius: var(--radius); pointer-events: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art--tag::before { content: "Now on the lot"; position: absolute; left: 14px; top: 14px; z-index: 2; background: var(--red-dark); color: #fff; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-red); }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.13); }
.trust-row .ti { display: flex; gap: 9px; align-items: center; font-size: 14px; color: #c4ccd8; }
.trust-row .ti b { color: #fff; font-family: var(--display); font-weight: 700; }

/* hero page-load stagger */
.hero .eyebrow, .hero h1, .hero .lede, .hero .hero-cta, .hero .trust-row, .hero-art {
  animation: rise .7s cubic-bezier(.2,.7,.3,1) both;
}
.hero h1 { animation-delay: .07s; }
.hero .lede { animation-delay: .14s; }
.hero .hero-cta { animation-delay: .21s; }
.hero .trust-row { animation-delay: .28s; }
.hero-art { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--ink) url("../images/hero-road.jpg") center 35%/cover; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(1000px 420px at 88% -30%, rgba(232,38,26,.30), transparent 58%), linear-gradient(180deg, rgba(15,18,25,.80), rgba(10,12,17,.94)); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .09; mix-blend-mode: overlay; }
.page-hero .wrap { position: relative; padding: 62px 22px; }
.page-hero h1 { font-size: clamp(32px, 5.2vw, 54px); font-weight: 800; letter-spacing: -.03em; }
.page-hero h1 .accent { color: var(--red); }
.page-hero .lede { color: #c4ccd8; max-width: 640px; margin-top: 14px; font-size: 18.5px; }
.page-hero .eyebrow { margin-bottom: 14px; }

/* ---------- Section headings ---------- */
.kicker { font-family: var(--display); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: var(--red-dark); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--red); display: inline-block; }
.center .kicker { justify-content: center; }
.h-display { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.sec-head { max-width: 660px; }
.sec-head.center { margin: 0 auto; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } .split { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 560px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Value tiles ---------- */
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .22s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #ddd6cc; }
.tile:hover::before { transform: scaleY(1); }
.tile .ico { width: 50px; height: 50px; border-radius: 13px; background: linear-gradient(135deg, rgba(232,38,26,.12), rgba(232,38,26,.05)); color: var(--red); display: grid; place-items: center; margin-bottom: 16px; font-size: 23px; }
.tile h3 { font-size: 20px; margin-bottom: 7px; letter-spacing: -.02em; }
.tile p { color: var(--slate); margin: 0; font-size: 15.5px; }
.tile .num { font-family: var(--display); color: var(--red-dark); font-weight: 700; font-size: 13px; letter-spacing: .08em; }

/* ---------- Vehicle cards ---------- */
.inv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 940px) { .inv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .inv-grid { grid-template-columns: 1fr; } }
.car-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.car-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #ddd6cc; }
.car-card .photo { position: relative; display: block; aspect-ratio: 4/3; background: var(--paper-3); overflow: hidden; }
.car-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.car-card:hover .photo img { transform: scale(1.05); }
.save-tag { position: absolute; top: 12px; left: 12px; background: var(--red-dark); color: #fff; font-family: var(--display); font-weight: 700; font-size: 12px; padding: 6px 11px; border-radius: 999px; box-shadow: var(--shadow-red); letter-spacing: .02em; }
.photo-count { position: absolute; bottom: 12px; right: 12px; background: rgba(12,14,19,.78); color: #fff; font-size: 11.5px; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.body-pad { padding: 17px 18px 19px; }
.car-title { font-size: 18.5px; font-weight: 700; letter-spacing: -.02em; }
.car-title small { display: block; color: var(--slate); font-weight: 500; font-size: 13px; margin-top: 4px; font-family: var(--sans); }
.car-price { display: flex; align-items: baseline; gap: 9px; margin: 11px 0; }
.car-price b { font-family: var(--display); font-size: 25px; color: var(--ink); letter-spacing: -.03em; }
.car-price s { color: var(--slate-2); font-size: 15px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; padding: 5px 10px; border-radius: 999px; font-weight: 600; }
.card-actions { display: flex; gap: 8px; align-items: center; margin-top: 15px; }
.card-actions .btn { flex: 1; }
.carfax-link { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 700; font-size: 12.5px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color .15s, background .15s; }
.carfax-link:hover { border-color: var(--ok); background: rgba(19,122,67,.06); }

/* ---------- Inventory filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; box-shadow: var(--shadow-sm); margin-bottom: 28px; }
.filters select, .filters input { font-family: var(--sans); font-size: 15px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.filters select:focus, .filters input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,38,26,.12); background: #fff; }
.filters .grow { flex: 1; min-width: 150px; }
.result-count { color: var(--slate); font-size: 14px; margin-bottom: 16px; font-weight: 600; }

/* ---------- Vehicle detail ---------- */
.vdp { display: grid; grid-template-columns: 1.35fr 1fr; gap: 38px; align-items: start; }
@media (max-width: 900px) { .vdp { grid-template-columns: 1fr; gap: 26px; } }
.gallery .main-photo { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); box-shadow: var(--shadow); }
.gallery .main-photo img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 9px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--paper-3); transition: border-color .15s, transform .15s; }
.thumbs button:hover { transform: translateY(-2px); }
.thumbs button.active { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.vdp-info .price-big { font-family: var(--display); font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.vdp-info .was { color: var(--slate-2); text-decoration: line-through; font-size: 18px; margin-left: 8px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 20px 0; }
.spec { padding: 12px 15px; border-bottom: 1px solid var(--line); }
.spec:nth-child(odd) { border-right: 1px solid var(--line); }
.spec dt { font-size: 11px; color: var(--slate); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.spec dd { margin: 3px 0 0; font-weight: 700; font-size: 15px; }
@media (max-width: 480px) { .spec-grid { grid-template-columns: 1fr; } .spec:nth-child(odd) { border-right: 0; } }
.vdp-cta { display: grid; gap: 11px; margin-top: 18px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 17px; padding: 14px 15px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink); width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,38,26,.13); background: #fff; }
/* Restore a visible keyboard-focus outline on form & filter fields (WCAG 2.4.7);
   only shows during keyboard navigation, so mouse/touch appearance is unchanged. */
.filters select:focus-visible, .filters input:focus-visible,
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2.5px solid var(--red-dark); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--slate); }
.required-star { color: var(--red-dark); }
/* Inline, field-associated validation message (set via aria-describedby). */
.field-error { color: var(--red-dark); font-size: 13px; font-weight: 600; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red-dark); }
.req-key { font-size: 13px; color: var(--slate); margin: 0 0 4px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .n { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow-sm); }
.step h3 { font-size: 18px; letter-spacing: -.02em; } .step p { color: var(--slate); margin: 4px 0 0; font-size: 15.5px; }

/* ---------- Reviews ---------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease; display: block; }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 17px; }
.review p { font-size: 15.5px; color: var(--ink-2); margin: 11px 0 15px; }
.review .who { font-weight: 700; font-size: 14px; font-family: var(--display); }
.review .who span { color: var(--slate); font-weight: 500; font-family: var(--sans); }

/* Rating summary + review links */
.rating-summary { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; box-shadow: var(--shadow-sm); max-width: 640px; margin: 28px auto 0; }
.rating-summary .rating-score { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.rating-summary .rating-meta { text-align: left; }
.rating-summary .rating-meta .stars { font-size: 20px; }
.rating-summary .rating-meta p { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.rating-badge { margin-left: auto; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.review-links { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.link-inline { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink-2); transition: color .15s ease; display: inline-block; padding: 5px 2px; }
.link-inline:hover { color: var(--red-dark); }
@media (max-width: 560px) { .rating-summary { flex-direction: column; text-align: center; } .rating-summary .rating-meta { text-align: center; } .rating-badge { margin-left: 0; } }

/* ---------- Scroll-drawn map route (homepage) ---------- */
.map-route { position: absolute; right: 0; width: 96px; z-index: 6; pointer-events: none; }
.map-route__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.map-route__track { fill: none; stroke: rgba(232, 38, 26, .32); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.map-route__draw { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 1px 2px rgba(232, 38, 26, .35)); transition: stroke-dashoffset .12s linear; }
.map-route__head { fill: var(--red); stroke: #fff; stroke-width: 2.5; opacity: 0; transition: opacity .2s ease; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .28)); }

.map-dest { margin: 36px 0 0 auto; max-width: 290px; text-align: right; opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.map-dest.map-pin--show { opacity: 1; transform: none; }
.map-dest__pin { font-size: 36px; line-height: 1; display: inline-block; position: relative; z-index: 7; animation: mapPinBob 2.2s ease-in-out infinite; }
.map-dest__pin::before { content: ""; position: absolute; left: 50%; top: 52%; width: 40px; height: 40px; transform: translate(-50%, -50%); background: radial-gradient(circle, var(--cream) 55%, rgba(250, 247, 242, 0) 72%); z-index: -1; }
.map-dest__label { font-family: var(--display); font-weight: 800; font-size: clamp(17px, 2.3vw, 23px); letter-spacing: -.02em; line-height: 1.25; margin-top: 6px; color: var(--ink); }
@keyframes mapPinBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 880px) { .map-route { width: 70px; opacity: .9; } }
@media (max-width: 560px) { .map-route { width: 52px; opacity: .72; } .map-dest { margin-top: 24px; max-width: 70vw; } }
@media (prefers-reduced-motion: reduce) { .map-dest__pin { animation: none; } .map-route__draw { transition: none; } .map-dest { transition: none; transform: none; opacity: 1; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, var(--red-dark), var(--red-deep)); color: #fff; border-radius: var(--radius); padding: 52px 40px; text-align: center; box-shadow: var(--shadow); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .12; mix-blend-mode: overlay; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -.03em; }
.cta-band p { color: #ffe2df; max-width: 540px; margin: 14px auto 24px; }
.cta-band .btn--light { color: var(--red-dark); }
.cta-band .btn--ink:hover { background: #000; }

/* ---------- Contact / map / hours ---------- */
.map-frame { border: 0; width: 100%; height: 100%; min-height: 340px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.info-list li { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-list .ico { color: var(--red); flex: 0 0 auto; margin-top: 2px; font-size: 19px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td, .hours-table th { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours-table th { font-weight: 400; text-align: left; }
.hours-table td:last-child { text-align: right; color: var(--slate); }
.hours-table tr.today td, .hours-table tr.today th { color: var(--red-dark); font-weight: 700; }
.hours-table tr.today td:last-child { color: var(--red-dark); }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #b9c1cd; padding: 56px 0 28px; position: relative; isolation: isolate; }
.site-foot::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .06; }
.foot-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-brand { font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; }
.foot-logo { height: 60px; width: auto; }
.site-foot h3 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--display); font-weight: 700; }
.site-foot a { transition: color .15s; }
.site-foot a:hover { color: #fff; }
.site-foot li { margin-bottom: 9px; font-size: 14.5px; }
/* Give footer link text a >=24px CSS tap target (WCAG 2.5.8). */
.site-foot li a { display: inline-block; padding: 3px 0; }
.foot-legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: 13px; color: #828b99; }
@media (max-width: 780px) { .foot-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-main { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile call/text bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 0; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; box-shadow: 0 -4px 18px rgba(0,0,0,.16); }
  .mobile-bar a { padding: 17px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff; transition: filter .15s; }
  .mobile-bar a:active { filter: brightness(.9); }
  .mobile-bar .call { background: var(--red-dark); }
  .mobile-bar .text { background: var(--ink); }
  body { padding-bottom: 70px; }
}

/* ---------- Reveal animation ---------- */
.reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero .eyebrow, .hero h1, .hero .lede, .hero .hero-cta, .hero .trust-row, .hero-art { animation: none; }
  .topbar .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Success state ---------- */
.lead-success { text-align: center; padding: 30px 6px; }
.lead-success .big { font-size: 46px; line-height: 1; }

/* =====================================================================
   Integrated features (appended) — payment calc, e-Price, smart-filters,
   recently-viewed, video, trust/team, and SCAFFOLD slots.
   ===================================================================== */

/* ---- Per-card monthly estimate badge (payment-calc) ---- */
.est-mo { margin: 2px 0 4px; }
.est-mo__amt {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--red-dark);          /* 6.6:1 on paper — passes AA */
  background: rgba(232, 38, 26, .07);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  letter-spacing: .2px;
}

/* ---- VDP payment calculator (payment-calc) ---- */
.pay-calc {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.calc-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}
.calc-result__label { font-size: 13px; font-weight: 700; opacity: .85; }
.calc-result__amount {
  font-family: var(--display, "Bricolage Grotesque");
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 800;
  line-height: 1.05;
}
.calc-result__sub { font-size: 13px; opacity: .85; }
/* Value swaps are instant by design — suppress any inherited transition only
   when the user has NOT asked to reduce motion is irrelevant here; the value
   simply never animates. (Correct media query: act on reduce, not no-preference.) */
@media (prefers-reduced-motion: reduce) {
  .calc-result__amount { transition: none; }
}

/* ---- Unlock e-Price (cards + VDP) (eprice-gate) ---- */
.eprice { margin-top: 12px; }
.eprice-toggle { font-size: 15px; }
.eprice-panel {
  margin-top: 10px;
  padding: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.eprice-panel[hidden] { display: none; }
.eprice-form { display: grid; gap: 12px; position: relative; }
.eprice-lede { font-size: 13.5px; color: var(--ink-2); margin: 0 0 2px; line-height: 1.45; }
.eprice-form .field input { background: #fff; }
.eprice .lead-success { padding: 18px 6px; }
.eprice .lead-success .big { font-size: 36px; }
@media (prefers-reduced-motion: no-preference) {
  .eprice-panel { animation: eprice-in .18s ease both; }
}
@keyframes eprice-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---- Quick-filter chips (smart-filters) — renamed .qf-chip to avoid the
   .chip collision with the vehicle-card spec chips above. ---- */
.qf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: -10px 0 18px; }
.qf-chips__label { font-size: 13px; font-weight: 700; color: var(--slate); letter-spacing: .01em; margin-right: 2px; }
.qf-chip {
  font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 1;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 9px 15px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.qf-chip:hover { border-color: rgba(12,14,19,.32); box-shadow: var(--shadow-sm); }
.qf-chip:focus-visible { outline: 2.5px solid var(--red-dark); outline-offset: 2px; }
.qf-chip[aria-pressed="true"] {
  background: var(--red-dark); color: #fff; border-color: var(--red-dark);
}
.qf-chip[aria-pressed="true"]:hover { background: var(--red-deep); border-color: var(--red-deep); }
@media (prefers-reduced-motion: reduce) { .qf-chip { transition: none; } }

/* ---- Inventory card video badge (video-walkaround) ---- */
.video-tag { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 11.5px; padding: 5px 10px; border-radius: 999px; letter-spacing: .02em; }
.video-tag span[aria-hidden] { font-size: 9px; line-height: 1; }

/* ---- VDP walkaround video (video-walkaround) ---- */
.vdp-video { margin: 0 0 12px; }
.vdp-video__frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.vdp-video__el { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; background: var(--ink); }
.vdp-video__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 9px; font-size: 13px; }
.vdp-video__badge { display: inline-flex; align-items: center; gap: 6px; background: var(--red-dark); color: #fff; font-family: var(--display); font-weight: 700; font-size: 12px; padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; }
.vdp-video__badge span[aria-hidden] { font-size: 9px; line-height: 1; }

/* ---- Meet the team (trust-block) ---- */
.team { list-style: none; padding: 0; margin: 0; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); text-align: center; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #ddd6cc; }
.team-avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(232,38,26,.14), rgba(232,38,26,.05)); border: 2px solid rgba(232,38,26,.18); color: var(--red-dark); font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: .01em; overflow: hidden; }
.team-avatar::before { content: attr(data-initials); }
.team-avatar:has(img)::before { content: ""; }   /* suppress monogram when a real photo is present */
.team-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-avatar img + * { display: none; }
.team-name { font-size: 20px; letter-spacing: -.02em; margin-bottom: 2px; }
.team-role { color: var(--red-dark); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.team-bio { color: var(--slate); font-size: 15px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .team-card { transition: none; } .team-card:hover { transform: none; } }
