@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================================
   SATELLITE THEME — dark industrial
   ----------------------------------------------------------------------------
   The accent comes from each site's theme_color, which index.php injects as
   --primary in an inline <style> after this file. Everything else is fixed, so
   two satellites share one layout and differ only in colour.

   Derived shades use color-mix() rather than hard-coded hexes, so a new client
   only sets one field in the admin and the whole site follows.
   ========================================================================== */

:root {
  --accent:        var(--primary, #b11226);
  --accent-hover:  color-mix(in srgb, var(--accent) 78%, #000);
  --accent-soft:   color-mix(in srgb, var(--accent) 13%, transparent);
  --accent-line:   color-mix(in srgb, var(--accent) 34%, transparent);
  --accent-glow:   color-mix(in srgb, var(--accent) 30%, transparent);
  --on-accent:     #fff;

  --bg:        #0b0b0b;
  --bg-2:      #111;
  --bg-3:      #171717;
  --bg-deep:   #080808;

  --ink:       #fff;
  --ink-2:     #d7d7d7;
  --ink-3:     #b3b3b3;
  --ink-4:     #8a8a8a;

  --line:      rgba(255, 255, 255, .13);
  --line-soft: rgba(255, 255, 255, .07);

  --glass:     linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.045));
  --glass-hi:  linear-gradient(180deg, rgba(255,255,255,.115), rgba(255,255,255,.06));
  --shadow:    0 24px 60px rgba(0,0,0,.34);

  --fd: 'Oswald', 'Bebas Neue', sans-serif;
  --fb: 'Inter', 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;

  --soft:      #101010;
  --muted:     #8a8a8a;

  --wrap: 1320px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: var(--fb); }

h1, h2, h3, h4 {
  font-family: var(--fd);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0;
}

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

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

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

/* the faint engineering grid that sits behind every dark panel */
.reveal, .hero, .site-footer, .spotlight-wrap {
  position: relative;
}
.reveal { padding: 56px 0; }
.reveal > .container { position: relative; z-index: 2; }

/* ============================================================================
   UTILITY BAR
   ========================================================================== */

.utility-bar {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-4);
}
.utility-bar .container,
.utility-bar > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  flex-wrap: wrap;
}
.ub-left, .ub-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ub-right a:hover, .ub-left a:hover { color: var(--ink); }
.ub-text-short { display: none; }

/* ============================================================================
   HEADER
   ========================================================================== */

.site-header {
  background: var(--bg);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 86px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: .02em;
  flex-shrink: 0;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}
.brand-logo-frame {
  display: block;
  background: #fff;
  padding: 6px 10px;
  border-radius: 2px;
}
.brand-logo { max-height: 46px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: var(--fd);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 10px 13px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

.nav-cta {
  margin-left: auto;
  background: var(--accent);
  color: var(--on-accent) !important;
  border: 0 !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  padding: 9px 13px;
  cursor: pointer;
  margin-left: auto;
}

/* ============================================================================
   HERO
   ========================================================================== */

.hero {
  background:
    radial-gradient(circle at 82% 14%, var(--accent-glow), transparent 36%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 58%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--line);
  padding: 84px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .62;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: -240px;
  top: 90px;
  width: 640px;
  height: 640px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 80px var(--accent-soft), 0 0 0 160px rgba(255,255,255,.018);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0;
  text-shadow: 0 18px 50px rgba(0,0,0,.34);
  max-width: 20ch;
  text-wrap: balance;
}
.hero h1 em, .hero h1 span { font-style: normal; color: var(--accent); }
.hero p, .hero-sub {
  max-width: 62ch;
  color: var(--ink-3);
  font-size: 15.5px;
  line-height: 1.8;
  margin: 20px 0 0;
}

/* the kicker pill */
.hero-eyebrow, .section-eyebrow, .spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 8px 18px;
  color: var(--accent);
  font-family: var(--fd);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin: 0 0 20px;
}
.hero-eyebrow::before, .section-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--accent-soft);
  flex-shrink: 0;
}

/* the smaller heroes used by the inner pages */
.hero-alt, .hero-about, .hero-contact, .hero-inventory,
.hero-reviews, .hero-warranty, .hero-buyback, .hero-delivery {
  padding: 62px 0 52px;
}
.hero-alt h1, .hero-about h1, .hero-contact h1, .hero-inventory h1,
.hero-reviews h1, .hero-warranty h1, .hero-buyback h1, .hero-delivery h1 {
  font-size: clamp(34px, 4.4vw, 62px);
}

/* ============================================================================
   STATS STRIP
   ========================================================================== */

.stats-strip {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.stats-strip > .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.stat-item { background: var(--bg); padding: 26px 24px; }
.stat-num {
  font-family: var(--fd);
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  display: block;
}
.stat-label {
  margin-top: 7px;
  color: var(--ink-4);
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ============================================================================
   SECTION HEADINGS
   ========================================================================== */

.section-title {
  font-size: clamp(25px, 2.7vw, 36px);
  margin: 0 0 12px;
  letter-spacing: -.015em;
}
/* An inline bar rather than a border, so a heading the template centres keeps
   its accent centred with it instead of stranding it at the left margin. */
.section-title::before {
  content: '';
  display: inline-block;
  vertical-align: baseline;
  width: 5px;
  height: .78em;
  margin-right: 14px;
  background: var(--accent);
  transform: translateY(.04em);
}
.section-sub {
  color: var(--ink-3);
  font-size: 14.5px;
  max-width: 68ch;
  margin: 0 0 30px;
}
.section-title[style*="center"] + .section-sub { margin-left: auto; margin-right: auto; }
.section-title + .section-sub { margin-top: -4px; }

/* a centred block centres its pill too */
[style*="text-align:center"] > .hero-eyebrow,
[style*="text-align: center"] > .hero-eyebrow,
.section-eyebrow[style*="center"],
.hero-eyebrow[style*="center"] { display: inline-flex; }
p.section-eyebrow[style*="center"], p.hero-eyebrow[style*="center"] { display: block; text-align: center; }
p.section-eyebrow[style*="center"]::before, p.hero-eyebrow[style*="center"]::before { display: none; }

/* ============================================================================
   BUTTONS
   ========================================================================== */

.btn, .view-link, .mail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 26px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  font-family: var(--fd);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  text-align: center;
}
.btn:hover, .view-link:hover, .mail-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px var(--accent-soft);
}
.btn.secondary, .secondary {
  background: rgba(255,255,255,.07);
  color: var(--ink);
  border-color: var(--line);
}
.btn.secondary:hover, .secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--accent-line);
  box-shadow: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ============================================================================
   PANELS
   ========================================================================== */

.info-card, .review-card, .step, .spotlight, .filter-bar, .contact-form {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 30px;
  color: var(--ink-2);
}
.info-card h2, .info-card h3, .review-card h3 { color: var(--ink); }
.info-card h3 { font-size: 19px; margin: 0 0 12px; }
.info-card p:last-child { margin-bottom: 0; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rich p { margin: 0 0 15px; }
.rich h2 { font-size: 22px; margin: 30px 0 12px; }
.rich h3 { font-size: 17px; margin: 24px 0 10px; }
.rich ul, .rich ol { padding-left: 22px; margin: 0 0 15px; }
.rich li { margin-bottom: 7px; }
.rich a { color: var(--accent); }
.rich strong { color: var(--ink); }

.meta { color: var(--ink-4); font-size: 13px; }
.on-dark { color: var(--ink-2); }

/* ============================================================================
   CATEGORY CARDS  — the three top-level categories
   ========================================================================== */

.bodytype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.bodytype-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 26px;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  font-family: var(--fd);
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  overflow: hidden;
  transition: transform .22s, border-color .22s, background .22s;
}
.bodytype-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.bodytype-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  background: var(--glass-hi);
}
.bodytype-card:hover::after { transform: scaleX(1); }
.bodytype-card .count {
  font-family: var(--fb);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-4);
}

.icon-badge {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  flex-shrink: 0;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ============================================================================
   LISTING CARDS
   ========================================================================== */

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.vehicle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .22s, border-color .22s;
  min-width: 0;
}
.vehicle-card:hover { transform: translateY(-5px); border-color: var(--accent-line); }

.vehicle-card .img {
  aspect-ratio: 4 / 3;
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
}
.vehicle-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.vehicle-card:hover .img img { transform: scale(1.05); }

.vehicle-card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 0;
  gap: 2px;
}
.vehicle-card .body > .status-tag { align-self: flex-start; margin-bottom: 8px; }
.vehicle-card h3 {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  line-height: 1.22;
}

/* the little icon row on a card: mileage, fuel, transmission - or hours */
.spec-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 0;
  color: var(--ink-4);
  font-size: 12.5px;
}
.spec-row span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.spec-row svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .8; }
.spec-row span:empty { display: none; }

.card-foot {
  margin-top: auto;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.price {
  font-family: var(--fd);
  font-size: 23px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* inside a card the call to action is a small tag, not a full button */
.card-foot .view-link {
  min-height: 34px;
  padding: 0 14px;
  font-size: 11.5px;
  letter-spacing: .08em;
  box-shadow: none;
}
.card-foot .view-link:hover { transform: none; }

.card-plate, .plate {
  display: inline-block;
  font-family: var(--fd);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  padding: 3px 9px;
  margin-top: 8px;
  align-self: flex-start;
}

.status-tag, .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.status-tag.reserved, .reserved {
  background: rgba(255,255,255,.08);
  border-color: var(--line);
  color: var(--ink-3);
}

/* ============================================================================
   FILTER BAR
   ========================================================================== */

.filter-bar { padding: 20px; margin-bottom: 22px; }
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--ink-4);
  font-size: 13px;
}
.search-bar, .search-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.search-row > * { flex: 1; min-width: 180px; }
.search-bar input[type=text] { flex: 3 1 260px; }
.search-bar select { flex: 1 1 180px; }
.search-bar button {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 0 28px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  font-family: var(--fd);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.search-bar button:hover { background: var(--accent-hover); transform: translateY(-2px); }

input[type=text], input[type=email], input[type=tel], input[type=search],
input[type=number], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: rgba(255,255,255,.08);
}
select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 22px, calc(100% - 13px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
select option { background: var(--bg-2); color: var(--ink); }

/* ============================================================================
   LISTING PAGE
   ========================================================================== */

.vehicle-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.vehicle-head h1 { font-size: clamp(28px, 3.6vw, 46px); }
.vehicle-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.vehicle-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 12px;
  align-items: start;
}
.main-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.thumb-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 100%;
  overflow: auto;
}
.thumb-col img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .62;
  transition: opacity .2s, border-color .2s;
}
.thumb-col img:hover, .thumb-col img.active { opacity: 1; border-color: var(--accent); }
.gallery-count { color: var(--ink-4); font-size: 12.5px; margin-top: 10px; }

/* the specification table on a listing */
.overview-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-2);
  border: 1px solid var(--line);
  margin-top: 20px;
}
.overview-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.overview-table tr:last-child td { border-bottom: 0; }
.overview-table td:first-child {
  width: 40%;
  font-size: 11px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: .1em;
  border-right: 1px solid var(--line-soft);
}
.overview-table td:last-child {
  font-family: var(--fd);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}
.overview-table tr:empty, .overview-table td:empty { display: none; }

/* ============================================================================
   SPOTLIGHT
   ========================================================================== */

.spotlight { background: none; border: 0; box-shadow: none; backdrop-filter: none; padding: 56px 0; }
.spotlight-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 26px;
}
.spotlight-img { background: #000; min-height: 340px; }
.spotlight-img img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-body { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.spotlight-body h3 { font-family: var(--fd); font-size: clamp(22px, 2.4vw, 32px); margin: 0 0 12px; }
.spotlight-body .price { font-size: 34px; margin-bottom: 12px; }
.spotlight-body .meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* ============================================================================
   STEPS
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.step {
  position: relative;
  padding: 30px 26px;
  overflow: hidden;
  transition: transform .22s, border-color .22s;
}
.step:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.step .num {
  font-family: var(--fd);
  font-size: 76px;
  font-weight: 700;
  color: rgba(255,255,255,.05);
  line-height: 1;
  position: absolute;
  top: 6px;
  right: 14px;
  letter-spacing: -.03em;
  pointer-events: none;
}
.step h3 { font-size: 17px; margin: 0 0 9px; }
.step p { margin: 0; font-size: 13.5px; color: var(--ink-3); }

/* ============================================================================
   REVIEWS
   ========================================================================== */

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.review-card { padding: 26px; }
.stars { color: var(--accent); letter-spacing: .18em; font-size: 15px; margin-bottom: 12px; }

/* ============================================================================
   FORMS — messages
   ========================================================================== */

.contact-form { padding: 28px; }
.contact-form p { margin: 0 0 14px; }
.contact-form label {
  display: block;
  font-family: var(--fd);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}
.form-ok, .form-err {
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 14px;
  border-left: 3px solid;
}
.form-ok  { background: rgba(60,190,110,.10); border-color: #3cbe6e; color: #b9f0cf; }
.form-err { background: rgba(255,90,70,.10);  border-color: #ff5a46; color: #ffcabf; }
.form-note { color: var(--ink-4); font-size: 12.5px; margin-top: 10px; }

.mail-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
/* not the call-to-action button, which carries its own colours */
.mail-block a:not(.mail-cta) { color: var(--accent); }

/* ============================================================================
   EMPTY STATES
   ========================================================================== */

.empty-state, .no-results {
  grid-column: 1 / -1;
  padding: 64px 26px;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink-3);
  font-family: var(--fd);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.empty-state a, .no-results a { color: var(--accent); display: inline-block; margin-top: 12px; }

/* ============================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 92vw; max-height: 88vh; position: relative; }
.lightbox-inner img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close, .lightbox-arr {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid var(--line);
  color: #fff;
  width: 46px;
  height: 46px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover, .lightbox-arr:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-close { top: -58px; right: 0; }
.lightbox-l { left: -62px; top: 50%; transform: translateY(-50%); }
.lightbox-r { right: -62px; top: 50%; transform: translateY(-50%); }
.lightbox-count {
  position: absolute;
  bottom: -42px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-3);
  font-size: 13px;
  font-family: var(--fd);
  letter-spacing: .1em;
}

/* ============================================================================
   FLOATING CONTACT
   ========================================================================== */

.contact-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 13px 20px;
  box-shadow: 0 16px 38px rgba(0,0,0,.45);
  transition: transform .2s, background .2s;
}
.contact-fab:hover { transform: translateY(-3px); background: var(--accent-hover); }
.fab-ic { display: flex; font-size: 19px; }
.fab-title { font-family: var(--fd); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.fab-txt { font-size: 11.5px; opacity: .85; }

/* ============================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-deep);
  border-top: 3px solid var(--accent);
  margin-top: 64px;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 34px;
  padding: 52px 0 38px;
}
.footer-grid h4 {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--accent);
  margin: 0 0 14px;
}
.footer-grid a { display: block; color: var(--ink-4); font-size: 13.5px; margin-bottom: 9px; transition: color .2s; }
.footer-grid a:hover { color: var(--ink); }
.footer-grid p { color: var(--ink-4); font-size: 13.5px; margin: 0 0 9px; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-4);
  font-size: 12.5px;
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--ink); }
.powered-by { color: rgba(255,255,255,.28); font-size: 12px; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1050px) {
  .two-col, .spotlight-wrap { grid-template-columns: 1fr; }
  .spotlight-img { min-height: 220px; }
  .vehicle-gallery { grid-template-columns: 1fr; }
  .thumb-col { flex-direction: row; overflow-x: auto; }
  .thumb-col img { width: 96px; flex-shrink: 0; }
}

@media (max-width: 860px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 68px; flex-wrap: wrap; }
  .brand { border-right: 0; padding-right: 0; font-size: 19px; }
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 12px;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }
  .main-nav a.active { border-bottom-color: var(--line-soft); color: var(--accent); }
  .nav-cta { margin: 12px 0 0; }

  .reveal { padding: 40px 0; }
  .hero { padding: 62px 0 52px; }
  .hero::after { display: none; }
  .info-card, .contact-form, .filter-bar { padding: 22px; }
  .spotlight-body { padding: 26px; }
  .ub-text-full { display: none; }
  .ub-text-short { display: inline; }
}

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .hero { padding: 46px 0 40px; }
  .hero h1 { font-size: 34px; letter-spacing: -.02em; }
  .section-title { font-size: 24px; padding-left: 13px; border-left-width: 4px; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .bodytype-grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .overview-table td:first-child { width: 45%; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .card-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .lightbox-l { left: 4px; }
  .lightbox-r { right: 4px; }
  .lightbox-close { top: 4px; right: 4px; }
  .contact-fab { right: 12px; bottom: 12px; padding: 11px 15px; }
  .fab-txt { display: none; }
  .footer-grid { padding: 36px 0 26px; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .vehicle-card:hover, .bodytype-card:hover, .step:hover, .btn:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .contact-fab, .filter-bar, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* ============================================================================
   CATEGORY TABS  — above the inventory filters
   ========================================================================== */

.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.cat-tab span {
  font-size: 11.5px;
  padding: 2px 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line-soft);
  color: var(--ink-4);
  line-height: 1.5;
}
.cat-tab:hover { color: var(--ink); border-color: var(--accent-line); transform: translateY(-2px); }
.cat-tab.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.cat-tab.on span { background: rgba(0,0,0,.22); border-color: transparent; color: #fff; }

@media (max-width: 560px) {
  .cat-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .cat-tab { padding: 0 11px; font-size: 11.5px; justify-content: center; }
}

/* ============================================================================
   ALIGNMENT FIXES FOR THE TEMPLATE'S INLINE STYLES
   ----------------------------------------------------------------------------
   Some headings are centred with an inline style, and the pill above them
   carries justify-content:center - which does nothing to an inline-flex box.
   Left alone, the text sits in the middle while the pill hangs at the left
   margin, which is exactly what makes a page look unfinished.
   ========================================================================== */

.hero-eyebrow[style*="center"],
.section-eyebrow[style*="center"],
.spotlight-tag[style*="center"] {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
[style*="text-align:center"] > .hero-eyebrow,
[style*="text-align:center"] > .section-eyebrow,
[style*="text-align: center"] > .hero-eyebrow,
[style*="text-align: center"] > .section-eyebrow {
  margin-left: auto;
  margin-right: auto;
}
.section-title[style*="center"] + .section-sub,
[style*="text-align:center"] > .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------------------------
   Inner-page heroes are centred as a whole, so the pill and the heading agree.
   legal_page() sets text-align:left inline on its own hero, which still wins.
   -------------------------------------------------------------------------- */
.hero-inventory > .container,
.hero-contact > .container,
.hero-reviews > .container,
.hero-about > .container,
.hero-warranty > .container,
.hero-buyback > .container,
.hero-delivery > .container { text-align: center; }

.hero-inventory h1, .hero-contact h1, .hero-reviews h1,
.hero-about h1, .hero-warranty h1, .hero-buyback h1, .hero-delivery h1 { max-width: none; }

.hero-inventory > .container > p,
.hero-contact > .container > p,
.hero-reviews > .container > p,
.hero-about > .container > p,
.hero-warranty > .container > p,
.hero-buyback > .container > p,
.hero-delivery > .container > p { margin-left: auto; margin-right: auto; }

/* A status flag belongs on the photo, not above the title - otherwise one
   reserved listing pushes its title down and the whole row stops lining up. */
.vehicle-card .body > .status-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  margin: 0;
  background: rgba(10,10,10,.82);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

/* ============================================================================
   PIECES THE TEMPLATE USED TO STYLE INLINE
   ----------------------------------------------------------------------------
   The old light-theme block that lived in the page head is gone, so the mail
   call-to-action and the floating contact widget are styled here instead.
   ========================================================================== */

.mail-cta {
  flex-direction: row;
  text-align: left;
  line-height: 1.25;
  word-break: break-word;
}
.mail-cta .ic { font-size: 18px; flex: 0 0 auto; }
.mail-cta small {
  display: block;
  font-family: var(--fb);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
}
.mail-cta.on-dark {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.mail-cta.on-dark:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.contact-fab .fab-ic {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.contact-fab .fab-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
  font-size: inherit;
  opacity: 1;
}
.contact-fab .fab-title {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contact-fab .fab-mail {
  font-size: 12px;
  opacity: .92;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .contact-fab {
    left: 0; right: 0; bottom: 0;
    max-width: none;
    justify-content: center;
    padding: 13px 18px;
    box-shadow: 0 -6px 22px rgba(0,0,0,.4);
  }
  .contact-fab .fab-txt { display: flex; }
  .contact-fab .fab-mail { font-size: 11.5px; }
  body { padding-bottom: 74px; }
}
@media print { .contact-fab { display: none; } }
