/* Google Fonts, self-hosted: Big Shoulders (wide display headings) and Outfit (body) */
@font-face {
  font-family: "Big Shoulders";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/big-shoulders.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+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/outfit.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+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #050608;
  --bg-elevated: #0B0D11;
  --card: #101317;
  --input: #161A20;
  --border: #2A3038;
  --text: #F2F4F6;
  --muted: #9AA3AE;
  --chrome: #D5DBE2;
  --blue: #1E90FF;
  --blue-bright: #4AA8FF;
  --blue-dim: rgba(30, 144, 255, 0.16);
  --blue-glow: rgba(30, 144, 255, 0.45);
  --yellow: #F5C518;
  --yellow-dim: rgba(245, 197, 24, 0.18);
  --danger: #ff6b6b;
  --radius: 14px;
  --header-h: 60px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-bright); }

.skip-link {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  width: 1px; height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  clip: auto;
  clip-path: none;
  width: auto; height: auto;
  overflow: visible;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(30, 144, 255, 0.22);
  box-shadow: 0 1px 0 rgba(245, 197, 24, 0.12), 0 12px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  min-width: max-content;
  flex: 0 0 auto;
}

.brand img,
.site-logo {
  width: auto;
  height: 42px;
  max-width: 168px;
  background: transparent;
  flex: 0 0 auto;
  -webkit-mask-image: radial-gradient(ellipse 96% 92% at 50% 50%, #000 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 96% 92% at 50% 50%, #000 78%, transparent 100%);
}

.footer-brand .site-logo {
  height: 72px;
  max-width: 280px;
}

.thanks-card .site-logo {
  margin: 0 auto 16px;
  height: 88px;
  max-width: 340px;
  display: block;
}

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

.nav-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: relative;
  content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(8, 10, 14, 0.98);
  border-bottom: 1px solid rgba(30, 144, 255, 0.22);
  padding: 12px 16px 20px;
  flex-direction: column;
  gap: 4px;
}
.site-nav.is-open { display: flex; }
body.nav-open { overflow: hidden; }

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 10px;
  border-radius: 10px;
}
.site-nav a:hover { background: var(--blue-dim); color: #fff; }
.site-nav .btn { text-align: center; }

.header-actions { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(30, 144, 255, 0.3), 0 0 22px var(--blue-glow);
}
.btn-primary:hover {
  background: var(--blue-bright);
  box-shadow: 0 0 0 1px rgba(74, 168, 255, 0.5), 0 0 32px var(--blue-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--chrome);
  border-color: rgba(213, 219, 226, 0.32);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue-dim);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-facebook svg {
  width: 18px; height: 18px; flex: 0 0 auto;
}
.footer-brand .btn-facebook {
  margin-top: 12px;
  width: fit-content;
  min-height: 44px;
  padding: 10px 16px;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(86vh, 860px);
  display: flex;
  align-items: center;
  padding: 28px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% 30%, rgba(30, 144, 255, 0.16), transparent 62%),
    #000;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}
.hero-glow-a {
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  right: -6%;
  top: -8%;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.34) 0%, rgba(30, 144, 255, 0.07) 42%, transparent 70%);
}
.hero-glow-b {
  /* Keep the left/logo side near-black so the logo's black field blends */
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  left: 8%;
  bottom: -22%;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.10) 0%, transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.hero-logo-wrap {
  max-width: 740px;
}
.hero-logo {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content { max-width: 36rem; }

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--blue) 18%, #d7dce2 50%, var(--blue) 82%, transparent 100%);
  box-shadow: 0 0 16px var(--blue-glow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 10px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 8px, transparent 8px 13px);
}

.hero h1,
.page-hero h1,
h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0 0 14px;
  color: var(--text);
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(2.15rem, 8vw, 4.1rem);
  max-width: 14ch;
  text-shadow: 0 0 28px rgba(30, 144, 255, 0.18);
}

.hero .lede,
.lede {
  margin: 0 0 22px;
  color: #c9cfd6;
  font-size: 1.05rem;
  max-width: 34ch;
}

.page-hero {
  padding: 28px 0 8px;
}
.page-hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}
.page-hero .sub {
  margin: 0 0 10px;
  color: var(--blue-bright);
  font-weight: 600;
}
.page-hero .intro {
  color: var(--muted);
  max-width: 62ch;
}

/* Sections */
.section { padding: 64px 0; }

.section-head { margin-bottom: 28px; max-width: 640px; }

.section h2,
.article-body h2,
h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  color: var(--text);
}

.section-lead {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.step h3 {
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.step p { margin: 0; color: var(--muted); }

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #111;
  background: var(--yellow);
  margin-bottom: 12px;
  box-shadow: 0 0 16px var(--yellow-dim);
}

.financing-panel {
  display: grid;
  gap: 24px;
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.07), transparent 40%), var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 0 0 1px rgba(30, 144, 255, 0.06), var(--shadow);
}
.financing-panel p { color: var(--muted); margin: 0 0 12px; max-width: 62ch; }

.inventory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-btn {
  appearance: none;
  background: var(--bg-elevated);
  color: var(--chrome);
  border: 1px solid var(--border);
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 16px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--blue); color: #fff; }
.filter-btn.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 16px var(--blue-glow);
}

.vehicle-grid {
  display: grid;
  gap: 16px;
}

.vehicle-card,
.hours-card,
.faq-list details,
.apply-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.vehicle-card {
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.vehicle-card[hidden] { display: none; }
.vehicle-card:hover {
  border-color: rgba(30, 144, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(30, 144, 255, 0.45), 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 36px rgba(30, 144, 255, 0.28);
  transform: translateY(-2px);
}

.vehicle-media { position: relative; background: #000; }

.badge-arrived {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  background: var(--yellow);
  color: #111;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 6px;
  animation: badge-pulse 2.2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(245, 197, 24, 0); }
}

.vehicle-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 55%;
  transition: transform .45s ease;
}
.vehicle-card:hover img,
.vehicle-card:focus-within img {
  transform: scale(1.07);
}
.vehicle-media { overflow: hidden; }

.vehicle-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.vehicle-body h3 {
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: 0.02em;
  margin: 0;
  font-size: 1.25rem;
}
.vehicle-km { margin: 0; color: var(--muted); font-size: 0.9rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--chrome);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
}
.vehicle-body .btn { margin-top: auto; }

.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 0 18px; }
.faq-list summary {
  cursor: pointer;
  font-weight: 650;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--yellow);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 16px; color: var(--muted); }

.hours-card { padding: 8px 20px; }
.hours-card table { width: 100%; border-collapse: collapse; }
.hours-card th,
.hours-card td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.hours-card tr:last-child th,
.hours-card tr:last-child td { border-bottom: 0; }
.hours-card th { color: var(--text); font-weight: 600; }
.hours-card td { color: var(--muted); font-weight: 500; }
.hours-note { margin: 10px 0 0; color: var(--muted); font-size: 0.88rem; }

/* Footer */
.site-footer {
  padding: 40px 0 28px;
  border-top: 1px solid rgba(30, 144, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(30, 144, 255, 0.05), transparent 40%),
    #000;
}
.footer-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 22px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-brand strong {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
  display: block;
}
.footer-brand p { margin: 6px 0 0; color: var(--muted); }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--chrome);
  text-decoration: none;
  font-weight: 550;
}
.footer-links a:hover { color: var(--blue-bright); }
.footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  border-top: 1px dashed rgba(245, 197, 24, 0.25);
  padding-top: 16px;
}

/* Apply / form */
.apply-layout { max-width: 720px; margin: 0 auto; padding-bottom: 56px; }
.apply-form { padding: 8px 0 26px; }

.form-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 18px 24px;
  box-shadow: 0 0 0 1px rgba(30, 144, 255, 0.06), var(--shadow);
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-weight: 650;
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.req { color: var(--yellow); }
.optional { color: var(--muted); font-weight: 500; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim), 0 0 16px rgba(30, 144, 255, 0.2);
}

.row { display: grid; gap: 12px; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}
.consent input {
  margin-top: 4px;
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.consent a { color: var(--blue-bright); }

.fine { margin: 4px 0 14px; color: var(--muted); font-size: 0.86rem; }
.notice {
  margin: 0 0 10px;
  color: var(--chrome);
  font-size: 0.9rem;
}

.error {
  display: none;
  color: #ffd4d4;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 14px;
}
.error.show { display: block; }

.apply-form button[type="submit"] {
  appearance: none;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-weight: 750;
  font-size: 1.02rem;
  cursor: pointer;
  box-shadow: 0 0 24px var(--blue-glow);
}
.apply-form button[type="submit"]:hover { background: var(--blue-bright); }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.thanks-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0 72px;
}
.thanks-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(30, 144, 255, 0.08), var(--shadow);
}
.thanks-card h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}
.thanks-card p { color: #d5dbe0; margin: 0 0 12px; }
.thanks-card .btn { margin-top: 8px; }

.article-body { max-width: 720px; }
.article-body h2 { margin: 28px 0 10px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p,
.article-body li { color: var(--muted); }
.article-body p { margin: 0 0 14px; }
.article-body ul { margin: 0 0 16px; padding-left: 1.2em; }
.article-body li { margin-bottom: 8px; }
.article-cta {
  margin-top: 32px;
  padding: 24px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.1), var(--card));
  border: 1px solid var(--border);
}
.article-cta h2 { margin-top: 0; }
.article-body a:not(.btn) { color: var(--blue-bright); }

.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
}
.radios input { accent-color: var(--blue); }

@media (min-width: 520px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .form-section { padding: 28px 26px 30px; }
  .hero { padding: 40px 0 80px; }
}

@media (max-width: 899px) {
  /* Keep electric-blue atmosphere under the copy, not behind the logo */
  .hero-atmosphere { display: none; }
  .hero {
    background:
      radial-gradient(640px 380px at 50% 86%, rgba(30, 144, 255, 0.18), transparent 62%),
      #000;
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.9fr;
    align-items: center;
    gap: 56px;
  }
  .financing-panel { grid-template-columns: 1.2fr 0.8fr; padding: 32px 28px; }
}

@media (min-width: 980px) {
  :root { --header-h: 64px; }

  .brand img,
  .site-logo { height: 48px; max-width: 196px; }

  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .site-nav a { padding: 8px 11px; font-size: 0.9rem; }
  .site-nav .btn { display: none; }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .vehicle-grid { grid-template-columns: repeat(3, 1fr); }
}

.fb-label-full { display: none; }
@media (min-width: 1180px) {
  .fb-label-full { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .vehicle-card { transition: none; }
  .hero-logo { filter: none; }
  .btn-primary, .filter-btn.is-active, .apply-form button[type="submit"] { box-shadow: none; }
}

/* ===== v3 dealer layout + engagement ===== */

/* Full-width dealer hero */
.dealer-hero {
  position: relative;
  isolation: isolate;
  min-height: min(86vh, 820px);
  height: min(86vh, 820px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #000;
  color: var(--text);
}
.hero-slides,
.hero-slide,
.hero-shade {
  position: absolute;
  inset: 0;
}
.hero-slides { z-index: 0; }
.hero-slide {
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.06);
  animation: kenburns 18s ease-in-out infinite alternate;
}
.hero-slide:nth-child(2) img { animation-delay: -5s; transform-origin: 40% 50%; }
.hero-slide:nth-child(3) img { animation-delay: -9s; transform-origin: 60% 40%; }
.hero-slide:nth-child(4) img { animation-delay: -13s; transform-origin: 45% 55%; }
@keyframes kenburns {
  from { transform: scale(1.06); }
  to { transform: scale(1.16); }
}
.hero-shade {
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 52% at 50% 42%, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 46%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 26%, rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.5) 100%);
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo-stage {
  width: min(680px, 94vw);
  margin: 0 auto 10px;
}
.dealer-hero .hero-logo {
  width: 100%;
  height: auto;
  display: block;
}
.dealer-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.02;
  max-width: 18ch;
  margin: 0 0 22px;
  color: #fff;
  text-wrap: balance;
  font-size: clamp(1.85rem, 4.4vw, 3.35rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}
.hero-cta { justify-content: center; }
.hero-dots {
  position: absolute;
  z-index: 4;
  left: 0; right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
}
.hero-dot.is-active {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 10px var(--blue-glow);
}

.inventory-section { padding-top: 48px; }
.inventory-empty {
  margin: 28px 0 0;
  color: var(--muted);
  text-align: center;
}

/* Credit reassurance */
.credit-strip {
  padding: 28px 0;
  border-top: 1px solid rgba(30, 144, 255, 0.2);
  border-bottom: 1px solid rgba(30, 144, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(30, 144, 255, 0.08), transparent 30%, transparent 70%, rgba(30, 144, 255, 0.08)),
    #000;
}
.credit-strip-inner {
  display: grid;
  gap: 14px;
  text-align: center;
}
.credit-item {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--chrome);
}
.credit-item strong { color: var(--yellow); font-weight: 800; }

/* Why buyers choose us */
.benefit-grid {
  display: grid;
  gap: 16px;
}
.benefit {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 0 0 1px rgba(30, 144, 255, 0.05);
}
.benefit h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.benefit p { margin: 0; color: var(--muted); }

/* Afford */
.afford-section {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(30, 144, 255, 0.1), transparent 70%),
    var(--bg);
}
.afford-form fieldset {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
}
.afford-form legend {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--chrome);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 44px;
}
.chip input {
  appearance: none;
  width: 0;
  height: 0;
  margin: 0;
  position: absolute;
}
.chip:has(input:checked),
.chip:has(input:focus-visible) {
  border-color: var(--blue);
  background: var(--blue-dim);
  box-shadow: 0 0 16px rgba(30, 144, 255, 0.2);
  color: #fff;
}
.chip:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.quick-apply { max-width: 720px; }
.quick-form .form-section { margin-top: 8px; }
.form-error {
  color: var(--danger);
  background: rgba(255, 107, 107, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 14px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Quick view */
.qv-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 60;
}
.qv {
  position: fixed;
  z-index: 61;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(840px, calc(100% - 24px));
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #0a0c10;
  border: 1px solid rgba(30, 144, 255, 0.35);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(30, 144, 255, 0.2);
  padding: 16px 16px 22px;
}
.qv[hidden],
.qv-backdrop[hidden] { display: none; }
.qv-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.qv-gallery {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.qv-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.qv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
.qv-prev { left: 10px; }
.qv-next { right: 10px; }
.qv-nav[hidden] { display: none; }
.qv-body { padding: 16px 6px 4px; }
.qv-body h2 {
  font-family: var(--display);
  font-weight: 800;
  margin: 0 0 6px;
}
.qv-meta { margin: 0 0 16px; color: var(--muted); }
body.qv-open { overflow: hidden; }

/* Sticky mobile apply/message bar */
.mobile-bar {
  display: none;
}

@media (max-width: 979px) {
  .page-home { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .dealer-hero {
    height: auto;
    min-height: calc(100svh - var(--header-h) - 72px - env(safe-area-inset-bottom, 0px));
  }
  .hero-inner { padding: 28px 0 60px; }
  .hero-dots { bottom: 14px; }
  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 35;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.94);
    border-top: 1px solid rgba(30, 144, 255, 0.28);
    backdrop-filter: blur(12px);
  }
  .mobile-bar .btn { flex: 1; }
  body.nav-open .mobile-bar,
  body.qv-open .mobile-bar { display: none; }
}

@media (min-width: 700px) {
  .credit-strip-inner { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .dealer-hero { align-items: center; }
  .hero-inner { padding: 24px 0 56px; }
  .dealer-hero .hero-logo { width: min(680px, 70vw); margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-slide img,
  .hero-slide.is-active img {
    animation: none;
    transform: scale(1.04);
  }
  .hero-slide { transition: none; }
  .badge-arrived { animation: none; }
  .vehicle-card,
  .vehicle-card img { transition: none; }
  .vehicle-card:hover,
  .vehicle-card:hover img { transform: none; }
}
