/* ============================================================
   X-WAGENS — DESIGN TOKENS
   Style direction: monolithic minimalism (Rivian-style reference),
   adapted with X-Wagens' own locked accent (#FF5A1F) instead of
   the reference's yellow. Flat surfaces, no shadows, huge radii,
   massive tight-tracked type, full-bleed environmental photography.
   ============================================================ */

:root {
  /* Neutrals */
  --black: #000000;
  --graphite: #151515;
  --charcoal: #212121;
  --steel: #616161;
  --fog: #b8b8b8;
  --ash: #cfd0d0;
  --concrete: #e5e7eb;
  --chalk: #f2f2f2;
  --paper: #ffffff;

  /* Accent — locked, CTAs / prices / active nav state ONLY */
  --accent: #ff5a1f;
  --accent-ink: #151515;

  /* Type */
  --font: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale (8px base) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-7: 56px;
  --sp-8: 80px;
  --sp-9: 112px;
  --sp-10: 200px;

  /* Radii */
  --r-input: 4px;
  --r-icon: 8px;
  --r-panel: 12px;
  --r-card: 20px;
  --r-btn: 40px;
  --r-pill: 9999px;

  --container: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-header :focus-visible,
.hero :focus-visible,
.showroom-content :focus-visible { outline-color: var(--paper); }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font);
  color: var(--graphite);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga" 0, "calt" 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* ============================================================
   TYPOGRAPHY — massive scale, negative tracking that loosens
   as size decreases, matching the reference type ramp.
   ============================================================ */

h1, h2, h3, .display {
  font-family: var(--font);
  font-weight: 700;
  line-height: 0.98;
}

h1 { font-size: clamp(3rem, 8vw, 7.5rem); letter-spacing: -0.04em; font-weight: 800; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.03em; font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); letter-spacing: -0.015em; font-weight: 700; }

p { letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--steel);
}

.section--dark .eyebrow,
.page-hero .eyebrow,
.hero .eyebrow,
.showroom-content .eyebrow,
.vehicle-summary .eyebrow { color: var(--accent); }

.price {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

/* ============================================================
   BUTTONS — 40px radius actions, pill nav/tags
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { opacity: 0.88; }

.btn-outline-light {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--graphite);
  color: var(--graphite);
}
.btn-outline-dark:hover { background: rgba(0,0,0,0.05); }

/* ============================================================
   HEADER / NAV — pill nav container, floating over hero
   ============================================================ */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: var(--sp-3) 0;
}

.site-header--solid {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  padding: var(--sp-2) 0;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.site-header .nav-logo,
.site-header .nav-links a {
  color: var(--paper);
}

.site-header--solid .nav-logo,
.site-header--solid .nav-links a {
  color: var(--graphite);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: -0.005em;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-pill);
  padding: 0.35rem;
}

.site-header--solid .nav-links {
  background: var(--chalk);
  border-color: var(--concrete);
}

.nav-links a {
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover { background: rgba(255,255,255,0.15); }
.site-header--solid .nav-links a:hover { background: var(--paper); }

.nav-links a[aria-current="page"] {
  background: var(--accent);
  color: var(--paper) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 1.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 60;
  position: relative;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links,
  .site-header--solid .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100dvh;
    background: var(--graphite);
    border: none;
    border-radius: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-9) var(--sp-3) var(--sp-3);
    gap: var(--sp-1);
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a {
    color: var(--paper) !important;
    text-align: left;
    font-size: 1.25rem;
    padding: 0.9rem 1.1rem;
  }
  /* Closed menu must leave the tab order — transform alone keeps links focusable. */
  .nav-links:not(.is-open) { visibility: hidden; }
  .nav-links.is-open { visibility: visible; }
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 40;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
body.nav-locked { overflow: hidden; }

/* ============================================================
   HERO — single full-bleed environmental photo, no cutout collage
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
  overflow: hidden;
  background: var(--charcoal);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--sp-3) var(--sp-8);
}

.hero-wordmark {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(3.5rem, 13vw, 9rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--paper);
  margin-bottom: var(--sp-3);
  max-width: 14ch;
}

.hero-cta { margin-bottom: var(--sp-2); display: flex; gap: var(--sp-1); flex-wrap: wrap; }

.hero-stat {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: -0.005em;
}

.hero-stat-link { color: var(--paper); font-weight: 600; }

.view-all-row { text-align: center; margin-top: var(--sp-4); }

.about-blurb { max-width: 720px; text-align: center; margin-inline: auto; }
.about-blurb h2 { margin: var(--sp-2) 0; }
.about-blurb p { color: rgba(255,255,255,0.75); margin-bottom: var(--sp-3); font-size: 1.05rem; }

/* ============================================================
   SECTIONS (shared) — flat elevation via background tone
   ============================================================ */

.section { padding: var(--sp-8) 0; }
.section--chalk { background: var(--chalk); }
.section--dark { background: var(--graphite); color: var(--paper); }

.section-head {
  max-width: 640px;
  margin: 0 0 var(--sp-5);
}

.section-head p { color: var(--steel); margin-top: var(--sp-1); font-size: 1.05rem; }
.section--dark .section-head p { color: var(--fog); }

/* ============================================================
   CATALOG GRID / VEHICLE CARDS — 20px radius, flat, no shadow
   ============================================================ */

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

@media (min-width: 720px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
}
@media (min-width: 1280px) {
  .catalog-grid { gap: var(--sp-5); }
  .catalog-grid--triple { grid-template-columns: repeat(3, 1fr); }
}

.vehicle-card {
  background: var(--paper);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.vehicle-card:hover { transform: translateY(-4px); }

.vehicle-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--charcoal);
  overflow: hidden;
  border-radius: var(--r-card);
}

.vehicle-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-card-media.is-cutout img {
  object-fit: contain;
  padding: var(--sp-2);
}

.vehicle-card-badge {
  position: absolute;
  top: var(--sp-1);
  left: var(--sp-1);
  background: rgba(255,255,255,0.92);
  color: var(--graphite);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
}

.vehicle-card-body {
  padding: var(--sp-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.vehicle-card-body h3 {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.vehicle-card-tagline {
  color: var(--steel);
  font-size: 0.9rem;
  flex: 1;
}

.vehicle-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--sp-1);
  padding-bottom: var(--sp-2);
}

.vehicle-card-meta .price { font-size: 1.35rem; }
.vehicle-card-meta .km { font-size: 0.8rem; color: var(--steel); }

/* ============================================================
   VEHICLE DETAIL PAGE
   ============================================================ */

.vehicle-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}

@media (max-width: 900px) {
  .vehicle-detail-grid { grid-template-columns: 1fr; }
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2) var(--sp-3);
  margin: var(--sp-3) 0;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--concrete);
  border-bottom: 1px solid var(--concrete);
}

.spec-list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--steel);
}

.spec-list dd { font-weight: 700; letter-spacing: -0.01em; }

.feature-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============================================================
   ABOUT / CONTACT
   ============================================================ */

.page-hero {
  padding: calc(var(--sp-8) + 72px) 0 var(--sp-6);
  background: var(--graphite);
  color: var(--paper);
}

.page-hero p { color: var(--fog); margin-top: var(--sp-1); max-width: 560px; font-size: 1.1rem; }

.prose { max-width: 720px; }
.prose p { margin-bottom: var(--sp-2); color: var(--steel); font-size: 1.05rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-field { margin-bottom: var(--sp-2); }
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--concrete);
  border-radius: var(--r-input);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--paper);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.contact-info li { margin-bottom: var(--sp-2); }
.contact-info .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--steel); display: block; }

.form-note { margin-top: var(--sp-2); font-size: 0.85rem; color: var(--steel); }

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: var(--sp-2); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--graphite);
  color: var(--fog);
  padding: var(--sp-5) 0;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer .nav-logo { color: var(--paper); margin-bottom: var(--sp-2); font-size: 1.3rem; }
.site-footer a:hover { color: var(--paper); }

/* ============================================================
   VEHICLE DETAIL — supporting classes (replaces stale inline styles)
   ============================================================ */

.subhead {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: var(--sp-1);
  margin-top: var(--sp-3);
}
.subhead:first-of-type { margin-top: 0; }

.body-copy { color: var(--steel); margin-bottom: var(--sp-3); }

.related-section h2 { margin-top: 0.25rem; }

/* ============================================================
   SHOWROOM — full-bleed alternating panels (homepage)
   ============================================================ */

.showroom-panel {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  color: var(--paper);
}

.showroom-panel--right { justify-content: flex-end; }

.showroom-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.showroom-panel:hover img { transform: scale(1.04); }

.showroom-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}

.showroom-content {
  position: relative;
  z-index: 2;
  padding: var(--sp-5);
  max-width: 480px;
}

.showroom-content .eyebrow { color: var(--accent); }
.showroom-content h2 { margin: var(--sp-1) 0 var(--sp-2); font-size: clamp(1.75rem, 4vw, 2.75rem); }
.showroom-content p { color: rgba(255,255,255,0.8); margin-bottom: var(--sp-2); }

@media (max-width: 760px) {
  .showroom-panel { min-height: 460px; }
  .showroom-content { padding: var(--sp-3); max-width: 100%; }
}

/* ============================================================
   CATALOG CARD — hover zoom on image
   ============================================================ */

.vehicle-card-media img { transition: transform 0.4s ease; }
.vehicle-card:hover .vehicle-card-media img { transform: scale(1.05); }
.vehicle-card-media.is-cutout img { transition: transform 0.4s ease; }
.vehicle-card:hover .vehicle-card-media.is-cutout img { transform: scale(1.08); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

[data-reveal-fade] {
  opacity: 0;
  transition: opacity 0.5s ease;
}
[data-reveal-fade].is-revealed { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-fade] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .showroom-panel img, .vehicle-card-media img { transition: none !important; }
}

/* ============================================================
   VEHICLE DETAIL v2 — gallery + above-the-fold summary
   Previously the detail page opened with a single full-width photo
   that pushed the name and asking price below the fold on both a
   1440x900 laptop and a 390x844 phone. Name, price and CTA now sit
   beside the gallery, visible on load.
   ============================================================ */

.vehicle-top {
  padding-top: calc(var(--sp-6) + 72px);
  padding-bottom: var(--sp-6);
  background: var(--paper);
}

.vehicle-top-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}

@media (max-width: 980px) {
  .vehicle-top { padding-top: calc(var(--sp-5) + 64px); padding-bottom: var(--sp-4); }
  .vehicle-top-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* --- Gallery --- */

.gallery-main {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--charcoal);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.gallery-main.is-cutout img {
  object-fit: contain;
  padding: var(--sp-4);
  background: radial-gradient(ellipse at center, var(--charcoal) 0%, var(--graphite) 70%, var(--black) 100%);
}

.gallery-count {
  position: absolute;
  bottom: var(--sp-2);
  right: var(--sp-2);
  background: rgba(0,0,0,0.62);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
}

.gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--sp-1);
  margin-top: var(--sp-1);
}

.gallery-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-panel);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--charcoal);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s ease, opacity 0.15s ease;
  opacity: 0.62;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb[aria-current="true"] { border-color: var(--accent); opacity: 1; }

/* A single-image listing shouldn't render an empty thumbnail strip. */
.gallery-thumbs:empty,
.gallery-thumbs[hidden] { display: none; }

/* --- Summary panel (name / price / CTA) --- */

.vehicle-summary { position: sticky; top: 96px; }

@media (max-width: 980px) {
  .vehicle-summary { position: static; }
}

.vehicle-summary .vehicle-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  margin: var(--sp-1) 0 0.35rem;
}

.vehicle-summary .vehicle-tagline {
  color: var(--steel);
  font-size: 1.05rem;
  margin-bottom: var(--sp-3);
}

.summary-price {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.summary-price-note {
  display: block;
  color: var(--steel);
  font-size: 0.85rem;
  margin-top: 0.4rem;
  margin-bottom: var(--sp-3);
}

.summary-quickspecs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  margin-bottom: var(--sp-3);
  border-top: 1px solid var(--concrete);
  border-bottom: 1px solid var(--concrete);
}

.summary-quickspecs dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--steel);
  margin-bottom: 0.2rem;
}

.summary-quickspecs dd {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.vehicle-summary .btn { width: 100%; justify-content: center; }
.vehicle-summary .btn + .btn { margin-top: var(--sp-1); }

/* --- Trust signals --- */

.trust-list { margin-top: var(--sp-3); }

.trust-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: var(--steel);
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 0.85rem;
  height: 0.5rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* --- Sticky mobile buy bar --- */

.buy-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 0.7rem var(--sp-3) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(21,21,21,0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.buy-bar .buy-bar-price {
  display: block;
  color: var(--paper);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.buy-bar .buy-bar-label {
  display: block;
  color: var(--fog);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.buy-bar .btn { flex-shrink: 0; }

@media (max-width: 980px) {
  .buy-bar { display: flex; }
  /* Keep the footer clear of the fixed bar. */
  .site-footer { padding-bottom: calc(var(--sp-8) + env(safe-area-inset-bottom)); }
}

/* --- Not-found state --- */

.vehicle-missing {
  padding: calc(var(--sp-9) + 72px) 0 var(--sp-9);
  text-align: center;
}
.vehicle-missing p { color: var(--steel); margin: var(--sp-2) 0 var(--sp-4); font-size: 1.05rem; }

/* ============================================================
   HERO HEADLINE — now an <h1>. Class keeps the display sizing so
   the page gains a top-level heading without changing the look.
   ============================================================ */

h1.hero-wordmark {
  font-size: clamp(3.5rem, 13vw, 9rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
  font-weight: 800;
}

/* ============================================================
   CATALOG TOOLBAR — count + sort. The catalog previously had no
   controls at all, which reads as a page that cannot scale past
   the four demo vehicles.
   ============================================================ */

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--concrete);
}

.catalog-count {
  font-size: 0.8rem;
  font-family: var(--font);
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--steel);
}

.catalog-sort { display: flex; align-items: center; gap: var(--sp-1); }

.catalog-sort label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--steel);
}

.catalog-sort select {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--graphite);
  background: var(--chalk);
  border: 1px solid var(--concrete);
  border-radius: var(--r-pill);
  padding: 0.6rem 1rem;
  min-height: 44px;
  cursor: pointer;
}

/* ============================================================
   CONTACT — success / error states
   ============================================================ */

.form-note.is-success,
.form-note.is-error {
  font-size: 0.95rem;
  padding: var(--sp-3);
  border-radius: var(--r-panel);
  margin-top: 0;
}

.form-note.is-success {
  background: var(--chalk);
  border-left: 3px solid var(--accent);
  color: var(--graphite);
}

.form-note.is-success strong { display: block; font-size: 1.1rem; margin-bottom: 0.4rem; }
.form-note.is-success span { display: block; color: var(--steel); }
.form-note.is-success em { font-style: normal; opacity: 0.75; }

.form-note.is-error { background: #fdf0ea; border-left: 3px solid var(--accent); color: var(--graphite); }

/* ============================================================
   TOUCH TARGETS — inline links in the footer and hero stat line
   were 16px tall. Padding grows the hit area without moving the
   text, since these sit on their own lines.
   ============================================================ */

@media (max-width: 760px) {
  .site-footer p a,
  .hero-stat-link {
    display: inline-block;
    padding: 0.65rem 0.25rem;
  }
  .site-footer p { line-height: 1.2; }
}
