/* ============================================================
   APEX MOTORHAUS — Design System
   Charcoal + chrome, one accent (Apex Red). Precision over softness.
   ============================================================ */

:root {
  /* Color */
  --charcoal-950: #08080a;
  --charcoal-900: #0e0e11;
  --charcoal-850: #16161a;
  --charcoal-800: #1e1e23;
  --charcoal-700: #2a2a30;
  --charcoal-600: #3a3a41;

  --chrome-100: #f4f4f2;
  --chrome-300: #cfd0d4;
  --chrome-500: #9698a0;
  --chrome-700: #63646b;

  --accent: #c4122b;
  --accent-bright: #e8172f;
  --accent-dim: #7a0c1c;

  --success: #2f9e5b;

  /* Type */
  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1320px;
  --gutter: 20px;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--charcoal-950);
  color: var(--chrome-100);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }

.visually-hidden {
  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;
  top: -100px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ LAYOUT UTILITIES ============ */
.section-head { max-width: 720px; margin: 0 auto 48px; padding: 0 var(--gutter); text-align: center; }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-bright);
  margin: 0 0 12px;
}
.section-lede { color: var(--chrome-500); margin-top: 14px; font-size: 1.05rem; }

section > h2, .section-head h2 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.08;
  color: var(--chrome-100);
}

/* speed-line signature: thin angled divider used between major sections */
.speed-rule {
  position: relative;
  height: 1px;
  background: var(--charcoal-700);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-bright); }
.btn-accent:active { transform: scale(0.98); }

.btn-ghost { border-color: rgba(244,244,242,0.45); color: var(--chrome-100); }
.btn-ghost:hover { border-color: #fff; background: rgba(244,244,242,0.06); }

.btn-outline { border-color: var(--chrome-700); color: var(--chrome-100); }
.btn-outline:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(8,8,10,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244,244,242,0.08);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 0.92;
  flex-shrink: 0;
}
.wordmark-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--chrome-100);
}
.wordmark-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  color: var(--accent-bright);
  margin-top: 3px;
}

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--chrome-300);
  position: relative;
  padding: 4px 0;
  transition: color 0.18s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent-bright);
  transition: width 0.22s var(--ease);
}
.main-nav a:hover { color: var(--chrome-100); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-cta { padding: 11px 22px; font-size: 0.85rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--chrome-100);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid rgba(244,244,242,0.08);
  background: var(--charcoal-950);
  padding: 20px var(--gutter) 28px;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.mobile-menu a {
  display: block;
  padding: 13px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--chrome-100);
  border-bottom: 1px solid rgba(244,244,242,0.07);
}

/* mobile-only sticky bottom CTA bar */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 480;
  padding: 12px var(--gutter);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(8,8,10,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(244,244,242,0.1);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8,8,10,0.96) 0%, rgba(8,8,10,0.55) 42%, rgba(8,8,10,0.25) 68%, rgba(8,8,10,0.55) 100%),
    linear-gradient(100deg, rgba(8,8,10,0.55) 0%, rgba(8,8,10,0.05) 45%);
}
.hero-content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
  width: 100%;
}
.hero-headline {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.03;
  color: var(--chrome-100);
  max-width: 15ch;
  margin-bottom: 22px;
}
.hero-sub {
  max-width: 46ch;
  color: var(--chrome-300);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--chrome-300);
}
.scroll-cue-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--accent-bright), transparent);
  animation: scrollcue 2.2s var(--ease) infinite;
}
.scroll-cue-text {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-family: var(--font-display);
  font-size: 0.72rem;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ============ BRAND STRIP ============ */
.brand-strip {
  border-top: 1px solid var(--charcoal-700);
  border-bottom: 1px solid var(--charcoal-700);
  background: var(--charcoal-900);
  padding: 26px 0;
  overflow: hidden;
}
.brand-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 44px;
}
.brand-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chrome-300);
  position: relative;
  padding-left: 24px;
}
.brand-chip::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 12px; height: 2px;
  background: var(--accent);
  transform: translateY(-50%) skewX(-20deg);
}
.brand-chip:first-child { padding-left: 0; }
.brand-chip:first-child::before { display: none; }
.brand-chip-muted {
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--chrome-700);
}

/* ============ GENERIC SECTION SPACING ============ */
.inventory, .compare, .why-apex, .financing, .testimonials {
  padding: 88px 0;
  max-width: var(--max-width);
  margin: 0 auto;
}
.compare, .financing, .testimonials { max-width: none; }
.compare-panel, .financing-grid, .testimonials .carousel { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }

/* ============ INVENTORY ============ */
.inventory { padding-left: var(--gutter); padding-right: var(--gutter); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.filter-chip {
  padding: 9px 18px;
  border: 1px solid var(--charcoal-600);
  color: var(--chrome-300);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: skewX(-12deg);
  transition: all 0.18s var(--ease);
}
.filter-chip span, .filter-chip { display: inline-block; }
.filter-chip:hover { border-color: var(--chrome-300); color: var(--chrome-100); }
.filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.filter-status {
  text-align: center;
  color: var(--chrome-700);
  font-size: 0.88rem;
  margin-bottom: 40px;
}
.filter-empty {
  text-align: center;
  color: var(--chrome-500);
  padding: 60px 20px;
}
.filter-empty a { color: var(--accent-bright); text-decoration: underline; }

.inventory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.vehicle-card {
  background: var(--charcoal-900);
  border: 1px solid var(--charcoal-700);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.vehicle-card:hover { border-color: var(--chrome-700); transform: translateY(-4px); }

.vehicle-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--charcoal-800); }
.vehicle-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.vehicle-card:hover .vehicle-media img { transform: scale(1.05); }
.vehicle-media img.tint-cool { filter: saturate(0.75) hue-rotate(-8deg) brightness(0.95); }

.vehicle-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(8,8,10,0.82);
  border: 1px solid rgba(244,244,242,0.25);
  color: var(--chrome-100);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
}
.vehicle-badge-cpo { border-color: var(--accent-bright); color: var(--accent-bright); }

.vehicle-body { padding: 22px 22px 26px; }
.vehicle-year { color: var(--chrome-700); font-size: 0.85rem; letter-spacing: 0.04em; margin-bottom: 2px; }
.vehicle-name { font-size: 1.35rem; margin-bottom: 8px; color: var(--chrome-100); }
.vehicle-price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--accent-bright); margin-bottom: 14px; }

.spec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.spec-chips li {
  border: 1px solid var(--charcoal-600);
  color: var(--chrome-300);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 5px 10px;
}

.vehicle-link {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  color: var(--chrome-100);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vehicle-link span { transition: transform 0.18s var(--ease); }
.vehicle-link:hover { color: var(--accent-bright); }
.vehicle-link:hover span { transform: translateX(4px); }

/* ============ COMPARE / CONFIGURATOR ============ */
.compare { background: var(--charcoal-900); border-top: 1px solid var(--charcoal-700); border-bottom: 1px solid var(--charcoal-700); }

.compare-tabs {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--charcoal-700);
  margin-bottom: -1px;
}
.compare-tab {
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--chrome-500);
  border-bottom: 1px solid var(--charcoal-700);
  position: relative;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.compare-tab:last-child { border-bottom: 0; }
.compare-tab::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.18s var(--ease);
}
.compare-tab:hover { color: var(--chrome-100); background: rgba(244,244,242,0.03); }
.compare-tab.is-active { color: var(--chrome-100); background: var(--charcoal-850); }
.compare-tab.is-active::before { background: var(--accent-bright); }

.compare-body { border: 1px solid var(--charcoal-700); }

.compare-visual {
  position: relative;
  padding: 28px 24px 24px;
  border-bottom: 1px solid var(--charcoal-700);
}
.compare-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 20%, var(--swatch, var(--accent)) 0%, transparent 72%);
  opacity: 0.22;
  transition: background 0.3s var(--ease);
  pointer-events: none;
}
.compare-visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 1px solid var(--charcoal-700);
}
.swatch-row { position: relative; display: flex; gap: 12px; margin-top: 20px; }
.swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--swatch);
  border: 2px solid rgba(244,244,242,0.25);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}
.swatch:hover { transform: scale(1.1); }
.swatch.is-active { border-color: #fff; box-shadow: 0 0 0 2px var(--charcoal-900), 0 0 0 4px var(--swatch); }
.swatch-label { position: relative; margin-top: 14px; color: var(--chrome-300); font-size: 0.92rem; }
#swatch-color-label { color: var(--chrome-100); font-weight: 600; }

.spec-table { font-size: 0.96rem; }
.spec-table tr { border-bottom: 1px solid var(--charcoal-700); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th, .spec-table td { padding: 15px 24px; text-align: left; }
.spec-table th {
  color: var(--chrome-500);
  font-weight: 500;
  width: 42%;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}
.spec-table td { color: var(--chrome-100); font-weight: 600; }

/* ============ WHY APEX ============ */
.why-apex { padding-left: var(--gutter); padding-right: var(--gutter); }
.differentiators {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--charcoal-700);
  border: 1px solid var(--charcoal-700);
  margin-bottom: 60px;
}
.diff-card { background: var(--charcoal-950); padding: 32px 28px; }
.diff-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--chrome-100); }
.diff-card p { color: var(--chrome-500); font-size: 0.97rem; }

.facility-banner { position: relative; margin: 0; max-width: var(--max-width); }
.facility-banner img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.facility-banner figcaption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 28px 32px;
  max-width: 480px;
  background: linear-gradient(90deg, rgba(8,8,10,0.88), transparent);
}
.facility-banner figcaption p:not(.eyebrow) { color: var(--chrome-100); font-size: 1.1rem; }

/* ============ FINANCING ============ */
.financing { background: var(--charcoal-900); border-top: 1px solid var(--charcoal-700); border-bottom: 1px solid var(--charcoal-700); }
.financing-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.financing-card {
  background: var(--charcoal-950);
  border: 1px solid var(--charcoal-700);
  padding: 32px 28px;
}
.financing-card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.financing-card > p { color: var(--chrome-500); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--chrome-500);
  margin-bottom: 7px;
}
.form-field input, .form-field select {
  width: 100%;
  background: var(--charcoal-850);
  border: 1px solid var(--charcoal-600);
  color: var(--chrome-100);
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: border-color 0.18s var(--ease);
}
.form-field input:focus, .form-field select:focus { border-color: var(--accent-bright); }
.form-field input::placeholder { color: var(--chrome-700); }
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--chrome-500) 50%), linear-gradient(135deg, var(--chrome-500) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.field-error {
  display: block;
  min-height: 1.1em;
  color: var(--accent-bright);
  font-size: 0.8rem;
  margin-top: 5px;
}
.form-field.has-error input,
.form-field.has-error select { border-color: var(--accent-bright); }

.form-success {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(47,158,91,0.12);
  border: 1px solid var(--success);
  color: #b6e8c8;
  font-size: 0.92rem;
}

/* ============ TESTIMONIALS ============ */
.testimonials { background: var(--charcoal-950); }
.carousel { position: relative; max-width: 780px; }
.carousel-track { position: relative; min-height: 190px; }
.testimonial-slide {
  margin: 0;
  padding: 0 var(--gutter);
  text-align: center;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.testimonial-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.testimonial-slide p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.35;
  color: var(--chrome-100);
  margin-bottom: 20px;
}
.testimonial-slide footer { color: var(--chrome-500); font-size: 0.92rem; }
.testimonial-slide cite { font-style: normal; color: var(--accent-bright); font-weight: 600; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 24px; }
.carousel-arrow {
  width: 40px; height: 40px;
  border: 1px solid var(--charcoal-600);
  display: flex; align-items: center; justify-content: center;
  color: var(--chrome-300);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.carousel-arrow:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--charcoal-600);
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.carousel-dots button.is-active { background: var(--accent-bright); transform: scale(1.3); }

/* ============ SCHEDULE BAND ============ */
.schedule-band {
  background: var(--charcoal-900);
  border-top: 1px solid var(--charcoal-700);
  padding: 88px var(--gutter);
}
.schedule-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.schedule-copy h2 { margin-bottom: 16px; }
.schedule-copy > p { color: var(--chrome-300); max-width: 46ch; margin-bottom: 32px; font-size: 1.05rem; }

.visit-details { display: grid; grid-template-columns: 1fr; gap: 20px; }
.visit-details dt {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--accent-bright);
  margin-bottom: 4px;
}
.visit-details dd { margin: 0; color: var(--chrome-100); }
.visit-details a { text-decoration: underline; text-underline-offset: 3px; }

.schedule-form-wrap { background: var(--charcoal-950); border: 1px solid var(--charcoal-700); padding: 28px 24px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--charcoal-950); border-top: 1px solid var(--charcoal-700); padding: 64px var(--gutter) 0; }
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  padding-bottom: 48px;
}
.wordmark-footer { margin-bottom: 16px; }
.footer-about p { color: var(--chrome-500); max-width: 40ch; margin-bottom: 20px; }
.footer-brands { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-brands li {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--chrome-700);
}
.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--chrome-500);
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a:hover { color: var(--accent-bright); }
.footer-col address { font-style: normal; color: var(--chrome-300); line-height: 1.9; margin-bottom: 14px; }
.footer-hours { color: var(--chrome-500); font-size: 0.92rem; line-height: 1.7; }

.footer-social { flex-direction: row !important; gap: 14px !important; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--charcoal-600);
  display: flex; align-items: center; justify-content: center;
  color: var(--chrome-300);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.footer-social a:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--charcoal-700);
  padding: 22px 0 90px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--chrome-700);
  font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--chrome-300); }

/* ============================================================
   RESPONSIVE — mobile-first, real breakpoints
   ============================================================ */

/* base (< 640px) is mobile: hide desktop nav, show hamburger + sticky CTA */
.main-nav, .header-cta { display: none; }
.hamburger { display: flex; }
.mobile-sticky-cta { display: block; }
body { padding-bottom: 76px; } /* room for sticky bar */

@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .inventory-grid { grid-template-columns: repeat(2, 1fr); }
  .differentiators { grid-template-columns: repeat(2, 1fr); }
  .visit-details { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .hero-content { padding-bottom: 120px; }
  .compare-tabs { flex-direction: row; }
  .compare-tab { flex: 1; text-align: center; }
  .compare-tab::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 3px; }
  .financing-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
  .mobile-sticky-cta { display: none; }
  body { padding-bottom: 0; }

  .inventory-grid { grid-template-columns: repeat(3, 1fr); }
  .why-apex, .compare, .financing, .testimonials { padding-top: 120px; padding-bottom: 120px; }

  .compare-body { display: grid; grid-template-columns: 1fr 1fr; }
  .compare-visual { border-bottom: 0; border-right: 1px solid var(--charcoal-700); }

  .schedule-inner { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

@media (min-width: 1280px) {
  .hero-headline { max-width: 17ch; }
}
