/* ============================================================
   HUGHES FIRE EQUIPMENT  - New Ambulances
   Brand palette: charcoal #1C1C1C, race-red #C0272D, amber #C0272D
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #F5F5F5;
  --color-surface: #FFFFFF;
  --color-surface-2: #FAFAFA;
  --color-surface-offset: #EEEEEE;
  --color-border: #DCDCDC;
  --color-divider: #E5E5E5;

  /* Text */
  --color-text: #1A1A1A;
  --color-text-muted: #5A5A5A;
  --color-text-faint: #9A9A9A;
  --color-text-inverse: #FFFFFF;

  /* Brand */
  --color-charcoal: #1C1C1C;
  --color-charcoal-hover: #333333;
  --color-orange: #C0272D;
  --color-orange-hover: #A01F24;
  --color-orange-light: #FDEAEA;
  --color-amber: #C0272D;
  --color-amber-light: #FDEAEA;

  /* Semantic */
  --color-available: #2E7D32;
  --color-available-bg: #E8F5E9;
  --color-sold: #9E9E9E;
  --color-sold-bg: #F5F5F5;
  --color-rental: #1565C0;
  --color-rental-bg: #E3F2FD;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.14);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Type */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  --font-body: 'Barlow', system-ui, sans-serif;
  --font-display: 'Barlow Condensed', system-ui, sans-serif;

  --content-wide: 1280px;
  --content-default: 960px;
}

[data-theme='dark'] {
  --color-bg: #111111;
  --color-surface: #1A1A1A;
  --color-surface-2: #1E1E1E;
  --color-surface-offset: #222222;
  --color-border: #333333;
  --color-divider: #2A2A2A;
  --color-text: #E8E8E8;
  --color-text-muted: #9A9A9A;
  --color-text-faint: #555555;
  --color-text-inverse: #FFFFFF;
  --color-orange-light: #2D1010;
  --color-amber-light: #2D1010;
  --color-available-bg: #1A2E1A;
  --color-sold-bg: #1E1E1E;
  --color-rental-bg: #1A2030;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.5);
}

/* ---- BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100dvh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; }

/* ---- ANNOUNCEMENT BAR ---- */
.announcement-bar {
  background: var(--color-orange);
  color: white;
  text-align: center;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 4px;
  margin-bottom: var(--space-6);
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-charcoal);
  border-bottom: 3px solid var(--color-orange);
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 68px;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }

/* Text wordmark */
.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.wordmark-top {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}
.wordmark-bottom {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-orange);
}

/* Footer wordmark */
.footer-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
  margin-bottom: var(--space-4);
}
.footer-wordmark .wordmark-top {
  font-size: 1.25rem;
  color: #ffffff;
}
.footer-wordmark .wordmark-bottom {
  font-size: 0.78rem;
  color: var(--color-orange);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.site-nav .nav-cta {
  background: var(--color-orange);
  color: white;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
  margin-left: var(--space-2);
}
.site-nav .nav-cta:hover { background: var(--color-orange-hover); color: white; }
.theme-toggle {
  color: rgba(255,255,255,0.6);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { color: white; }

/* ---- HERO AMBULANCE IMAGE ---- */
@keyframes ambulance-enter {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.hero-ambulance-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38.4%;
  max-width: 552px;
  pointer-events: none;
  user-select: none;
  z-index: 3;
  animation: ambulance-enter 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-ambulance {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
}

/* Individual ambulance lights — tight, contained within each light head */
.amb-light {
  position: absolute;
  width: 1.6%;
  height: 2.0%;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: amb-flash-white infinite;
}

/* White */
.amb-white {
  background: #ffffff;
  box-shadow: 0 0 2px 1px rgba(255,255,255,0.9), 0 0 5px 2px rgba(220,235,255,0.6);
  animation-name: amb-flash-white;
}
/* Red */
.amb-red {
  background: #ff3333;
  box-shadow: 0 0 2px 1px rgba(255,60,60,0.95), 0 0 5px 2px rgba(255,20,20,0.55);
  animation-name: amb-flash-red;
}
/* Blue */
.amb-blue {
  background: #4477ff;
  box-shadow: 0 0 2px 1px rgba(80,120,255,0.95), 0 0 5px 2px rgba(40,80,255,0.55);
  animation-name: amb-flash-blue;
}

/* Sporadic flash — quick double-burst then long off */
@keyframes amb-flash-white {
  0%    { opacity: 1; }
  7%    { opacity: 0; }
  13%   { opacity: 1; }
  20%   { opacity: 0; }
  100%  { opacity: 0; }
}
@keyframes amb-flash-red {
  0%    { opacity: 1; }
  6%    { opacity: 0; }
  14%   { opacity: 1; }
  22%   { opacity: 0; }
  30%   { opacity: 1; }
  38%   { opacity: 0; }
  100%  { opacity: 0; }
}
@keyframes amb-flash-blue {
  0%    { opacity: 0; }
  35%   { opacity: 0; }
  43%   { opacity: 1; }
  50%   { opacity: 0; }
  58%   { opacity: 1; }
  65%   { opacity: 0; }
  100%  { opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 52%;
}
@media (max-width: 900px) {
  .hero-ambulance-wrap { display: none; }
  .hero-content { max-width: 100%; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  background: #0a0000;
  padding: clamp(3rem, 8vw, 6rem) var(--space-6);
  overflow: hidden;
}

/* --- Video background --- */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
/* Overlay: dark vignette only — no color tint */
.hero-video-grade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Dark left side — keeps text readable */
    linear-gradient(to right, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.15) 100%),
    /* Vignette corners */
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
}
/* The original charcoal bg now acts as a subtle dark layer, reduced opacity */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(28,28,28,0.0) 0%, rgba(28,28,28,0.0) 100%);
  opacity: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 80% 50%, rgba(212, 98, 42, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(245, 166, 35, 0.08) 0%, transparent 50%);
}
/* Subtle diagonal stripe texture */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.01) 0px,
    rgba(255,255,255,0.01) 1px,
    transparent 1px,
    transparent 20px
  );
}
.hero-content {
  position: relative;
  max-width: 38%;
  margin: 0;
  z-index: 3;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-amber);
  border: 1px solid rgba(245, 166, 35, 0.4);
  padding: var(--space-1) var(--space-4);
  border-radius: 2px;
  margin-bottom: var(--space-4);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: white;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  line-height: 1.05;
}
.hero-accent { color: var(--color-orange); }
.hero-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.65);
  max-width: 100%;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: white;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ---- FILTER BAR ---- */
.listings-section { padding: var(--space-12) 0 var(--space-16); }
.content-wrap { max-width: var(--content-wide); margin: 0 auto; padding: 0 var(--space-6); }

.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-8);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.filter-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.filter-pills { display: flex; gap: var(--space-1); }
.pill {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-4);
  border-radius: 99px;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  background: transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.pill:hover { border-color: var(--color-orange); color: var(--color-orange); }
.pill.active { background: var(--color-charcoal); border-color: var(--color-charcoal); color: white; }
.filter-select {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  transition: border-color var(--transition);
}
.filter-select:hover, .filter-select:focus { border-color: var(--color-orange); outline: none; }
.filter-input {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  width: 220px;
  transition: border-color var(--transition);
}
.filter-input::placeholder { color: var(--color-text-faint); }
.filter-input:focus { outline: none; border-color: var(--color-orange); }
.filter-results {
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ---- LISTINGS GRID ---- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

/* ---- CARD ---- */
.vehicle-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.vehicle-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: var(--color-orange);
}
.vehicle-card.is-sold {
  opacity: 0.72;
}

/* Card image */
.card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-surface-offset);
  cursor: pointer;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.vehicle-card:hover .card-img { transform: scale(1.04); }
.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  background: var(--color-surface-offset);
}
.card-img-count {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Availability badge */
.card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
}
.badge-available { background: var(--color-available); color: white; }
.badge-sold { background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.85); }
.badge-rental { background: var(--color-rental); color: white; }

/* Card body */
.card-body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
}
.spec-item {}
.spec-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.spec-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
  margin-top: 1px;
}

.card-divider { height: 1px; background: var(--color-divider); margin: var(--space-4) 0; }

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.card-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-orange);
  text-transform: uppercase;
}
.card-price.is-sold-price { color: var(--color-text-muted); font-size: var(--text-base); }
.card-cta {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-5);
  background: var(--color-charcoal);
  color: white;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  white-space: nowrap;
}
.card-cta:hover { background: var(--color-orange); color: white; }

/* Type badges */
.type-badge {
  top: var(--space-3);
  left: var(--space-3);
}
.status-badge {
  top: var(--space-3);
  right: var(--space-3);
  left: auto;
}
.badge-type1 { background: #1565C0; color: white; }
.badge-type2 { background: #6A1B9A; color: white; }
.badge-type3 { background: #C0272D; color: white; }

/* Card meta row */
.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.card-year {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-orange);
  background: var(--color-orange-light);
  padding: 2px 8px;
  border-radius: 3px;
}
.card-make {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card-unit {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-source-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(192,39,45,0.15);
  color: var(--color-orange);
  border: 1px solid rgba(192,39,45,0.35);
  line-height: 1.4;
}

/* Features list */
.card-features {
  list-style: none;
  margin-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-features li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.5;
  max-width: none;
}
.card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--color-orange);
  border-radius: 50%;
}

/* Status dot */
.card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--color-available);
  font-weight: 600;
}

/* Photo gallery trigger */
.view-photos {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
  padding: 0;
  margin-top: var(--space-2);
}
.view-photos:hover { color: var(--color-orange); }

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.btn-outline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-6);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  background: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--color-orange); color: var(--color-orange); }

/* ---- CONTACT BAND ---- */
.contact-band {
  background: var(--color-charcoal);
  padding: var(--space-12) var(--space-6);
  border-top: 4px solid var(--color-orange);
}
.contact-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.contact-text h2 {
  font-size: var(--text-xl);
  color: white;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.contact-text p { color: rgba(255,255,255,0.6); max-width: 480px; }
.contact-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-6);
  background: var(--color-orange);
  color: white;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--color-orange-hover); }
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-6);
  border: 2px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-outline-light:hover { border-color: white; color: white; }

/* ---- FOOTER ---- */
.site-footer {
  background: #111111;
  padding: var(--space-12) var(--space-6) 0;
}
.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-12);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {}
.footer-logo { height: 44px; width: auto; margin-bottom: var(--space-4); }
.footer-brand p { color: rgba(255,255,255,0.4); font-size: var(--text-sm); max-width: 260px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--space-4);
}
.footer-col a, .footer-col p {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-2);
  transition: color var(--transition);
  line-height: 1.5;
}
.footer-col a:hover { color: white; }
.footer-address { color: rgba(255,255,255,0.4); }
.footer-bottom {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-5) 0;
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.25);
}

/* ---- LIGHTBOX ---- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  display: none;
}
.lightbox-overlay.active { display: block; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}
.lightbox.active { display: flex; }
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: fixed;
  top: var(--space-5);
  right: var(--space-5);
  font-size: 2rem;
  color: white;
  background: rgba(255,255,255,0.12);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: white;
  background: rgba(255,255,255,0.12);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-prev { left: var(--space-4); }
.lightbox-next { right: var(--space-4); }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-counter {
  position: fixed;
  bottom: var(--space-5);
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
/* ---- HAMBURGER BUTTON ---- */
.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav */
  .hamburger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-charcoal);
    border-top: 2px solid var(--color-orange);
    padding: var(--space-4) 0;
    z-index: 200;
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .site-nav .nav-cta {
    margin: var(--space-4) var(--space-6) 0;
    text-align: center;
    border-radius: var(--radius-sm);
  }

  /* Fix filter pills overflow */
  .filter-pills {
    flex-wrap: wrap;
  }

  .listings-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .filter-input { width: 100%; }
  .contact-inner { flex-direction: column; }
  .hero-stats { gap: var(--space-4); }
  .footer-links { grid-template-columns: 1fr; }
}

/* ---- DARK MODE SYSTEM PREF ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #111111;
    --color-surface: #1A1A1A;
    --color-surface-2: #1E1E1E;
    --color-surface-offset: #222222;
    --color-border: #333333;
    --color-divider: #2A2A2A;
    --color-text: #E8E8E8;
    --color-text-muted: #9A9A9A;
    --color-text-faint: #555555;
    --color-orange-light: #2D1010;
    --color-available-bg: #1A2E1A;
    --color-sold-bg: #1E1E1E;
    --color-rental-bg: #1A2030;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ================================================
   IN PRODUCTION SECTION
   ================================================ */
.production-section {
  background: #111111;
  border-top: 3px solid var(--color-orange);
  padding: var(--space-8) 0;
}

.production-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.production-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.production-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

.production-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2A1A00;
  border: 1px solid #C87A00;
  color: #F0A500;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.production-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #F0A500;
  border-radius: 50%;
  animation: pulse-amber 2s ease-in-out infinite;
}

@keyframes pulse-amber {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}

.production-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.production-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) 0;
}

.production-type {
  background: var(--color-orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}

.production-make {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.production-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: var(--space-2) var(--space-5) var(--space-1);
  line-height: 1.25;
}

.production-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 var(--space-5) var(--space-4);
}

/* Table */
.production-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.production-table thead {
  background: var(--color-surface-offset);
}

.production-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.production-table td {
  padding: var(--space-2) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  font-family: var(--font-body, 'Barlow', sans-serif);
}

.production-table tbody tr:last-child td {
  border-bottom: none;
}

.production-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}

.production-table tbody tr.row-sold td { opacity: 0.55; }
.production-table .unit-status { font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.production-table tbody tr.row-sold .unit-status { color: #ff4d4d; }
.production-table tbody tr.row-pending .unit-status { color: #f5a623; }
.production-table tbody tr.row-pending td { opacity: 0.75; }
.production-table tbody tr.row-demo td { opacity: 0.85; }
.production-table .unit-status.demo { color: #4a9fd4; }
.production-table .unit-status.avail { color: #4caf82; }

.production-table tbody tr:hover {
  background: rgba(192, 39, 45, 0.06);
}

/* Footer row */
.production-footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.production-status-dot {
  width: 8px;
  height: 8px;
  background: #F0A500;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-amber 2s ease-in-out infinite;
}

.production-footer span:last-of-type {
  flex: 1;
}

.production-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.production-cta:hover {
  background: var(--color-orange-hover);
}

/* Mobile */
@media (max-width: 600px) {
  .production-table th,
  .production-table td {
    padding: var(--space-2) var(--space-3);
    font-size: 0.78rem;
  }

  .production-header h2 {
    font-size: 1.5rem;
  }

  .production-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .production-cta {
    width: 100%;
    justify-content: center;
  }
}

.production-section-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-5) 0;
  max-width: 680px;
  line-height: 1.6;
}

/* ================================================
   INTERACTIVE ENHANCEMENTS
   ================================================ */

/* ---- 1. Card entrance animations ---- */
.vehicle-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.vehicle-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 6. Photo hover zoom ---- */
.card-img-wrap {
  overflow: hidden;
}
.card-img {
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}
.card-img-wrap:hover .card-img {
  transform: scale(1.05);
}

/* ---- 4. Back to top button ---- */
#back-to-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  background: var(--color-orange);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(192,39,45,0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover {
  background: var(--color-orange-hover);
}

/* ---- 7. Sticky contact bar ---- */
#sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--color-charcoal);
  border-top: 2px solid var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.6rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  flex-wrap: wrap;
}
#sticky-bar.visible {
  transform: translateY(0);
}
#sticky-bar .sticky-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}
#sticky-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
#sticky-bar a:hover { color: var(--color-orange); }
#sticky-bar .sticky-divider {
  width: 1px;
  height: 16px;
  background: #444;
}
#sticky-bar .sticky-email-copy {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  padding: 0;
  transition: color 0.2s;
  white-space: nowrap;
}
#sticky-bar .sticky-email-copy:hover { color: var(--color-orange); }
#sticky-bar .sticky-copied {
  font-size: 0.7rem;
  color: #4CAF50;
  opacity: 0;
  transition: opacity 0.3s;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
}
#sticky-bar .sticky-copied.show { opacity: 1; }

/* Hide sticky bar on very small screens if it crowds too much */
@media (max-width: 400px) {
  #sticky-bar .sticky-divider { display: none; }
  #sticky-bar { gap: 0.75rem; }
}

/* ---- 8. Copy-to-clipboard on nav email ---- */
.nav-cta { position: relative; }
.copy-toast {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1C1C1C;
  color: #4CAF50;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 999;
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- 5. Active nav highlight ---- */
.site-nav a.nav-active {
  color: var(--color-orange) !important;
}

/* ---- Reduced motion overrides ---- */
@media (prefers-reduced-motion: reduce) {
  .vehicle-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  #back-to-top, #sticky-bar {
    transition: none !important;
  }
}

/* ================================================
   MOBILE — polished layout, no video
   ================================================ */

@media (max-width: 768px) {

  /* ---- Hero ---- */
  .hero-video-wrap { display: none; }  /* no video on mobile */
  .hero-ambulance-wrap { display: none; } /* no floating ambulance PNG */

  .hero {
    /* Solid charcoal bg with a subtle Race Red glow bottom-right */
    background: #111;
    padding: 3rem 1.5rem 3.5rem;
    min-height: 0;
  }
  /* Replace video grade with a clean dark bg + red accent glow */
  .hero-video-grade {
    background:
      radial-gradient(ellipse at 90% 110%, rgba(192,39,45,0.35) 0%, transparent 55%),
      radial-gradient(ellipse at 10% 0%, rgba(255,255,255,0.03) 0%, transparent 50%);
  }

  .hero-content {
    max-width: 100% !important;
    width: 100%;
    text-align: left;
  }

  .hero-badge {
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
    line-height: 1;
    margin-bottom: 1rem;
  }

  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
    max-width: 100%;
  }

  /* Stats row: full width, evenly spaced, dividers between */
  .hero-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: nowrap;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
  }
  .stat {
    flex: 1;
    text-align: center;
    padding: 0 0.5rem;
  }
  .stat:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.12);
  }
  .stat-num {
    font-size: 1.9rem;
    color: #fff;
  }
  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
  }
  .stat-divider { display: none; } /* using flex borders instead */

  /* ---- Listings section ---- */
  .listings-section {
    padding: 1.5rem 0 2rem;
  }
  .content-wrap {
    padding: 0 1rem;
  }
  .filter-bar {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
  }
  .filter-pills { flex-wrap: nowrap; overflow-x: auto; gap: 0.4rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-right: 1rem; }
  .filter-pills::-webkit-scrollbar { display: none; }
  .filter-pill { flex-shrink: 0; }
  .filter-results { display: none; }
  .filter-input { width: 100%; }
  .listings-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* ---- Announcement bar ---- */
  .announcement-bar {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
    text-align: center;
  }

  /* ---- Cards ---- */
  .vehicle-card { min-width: 0; }
  .card-img-wrap { height: 220px; }
  .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ---- Production section ---- */
  .production-section { padding: 2rem 0; }
  .production-inner { padding: 0 1rem; }
  .production-header h2 { font-size: 1.6rem; }
  .production-table th:nth-child(2),
  .production-table td:nth-child(2) { display: none; } /* hide Chassis col */
  .production-table th,
  .production-table td { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
  .production-footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .production-cta { width: 100%; justify-content: center; }

  /* ---- Contact band ---- */
  .contact-inner {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
  .contact-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .btn-primary, .btn-outline-light {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* ---- Footer ---- */
  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    font-size: 0.75rem;
  }

  /* ---- Sticky bar ---- */
  #sticky-bar {
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  }

  /* ---- Back to top ---- */
  #back-to-top { bottom: 4.5rem; }
}

/* Extra small (≤ 420px) */
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.6rem; }

  #sticky-bar {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  }
  #sticky-bar .sticky-divider,
  #sticky-bar .sticky-label { display: none; }

  .footer-links { grid-template-columns: 1fr; }
}

/* ================================================
   PRODUCTION TABLE — PROGRESS BARS & COUNTDOWN
   ================================================ */

/* Progress bar column */
.prod-bar-wrap {
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  height: 8px;
  width: 100%;
  min-width: 80px;
  overflow: hidden;
  position: relative;
}
.prod-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-orange) 0%, #e8454b 100%);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
/* Animated shimmer on the bar */
.prod-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  animation: bar-shimmer 2.5s ease-in-out infinite;
  border-radius: inherit;
}
@keyframes bar-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Percentage label below the bar */
.prod-bar-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-top: 4px;
  text-align: right;
}

/* Delivery date + countdown cell */
.delivery-date {
  font-size: var(--text-sm);
  color: var(--color-text);
}
.delivery-countdown {
  display: inline-block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #F0A500;
  white-space: nowrap;
}
.delivery-countdown.soon {
  color: var(--color-orange);
  animation: pulse-amber 1.5s ease-in-out infinite;
}

/* Mobile: hide Progress column on narrow screens */
@media (max-width: 600px) {
  .production-table th:nth-child(6),
  .production-table td:nth-child(6) { display: none; }
}

/* ============================================================
   AGENCY LOGO STRIP
   ============================================================ */

.logo-strip {
  background: #111;
  border-bottom: 1px solid rgba(192,39,45,0.25);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.logo-strip-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
}

.logo-strip-track-wrap {
  overflow: hidden;
  width: 100%;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logo-strip-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: logo-scroll 40s linear infinite;
}

.logo-strip-track:hover {
  animation-play-state: paused;
}

@keyframes logo-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  min-width: 100px;
  max-width: 140px;
}

.logo-item img {
  height: 52px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: brightness(1);
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 4px;
}

.logo-item:hover img {
  opacity: 1;
  transform: scale(1.08);
}

.logo-item span {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.logo-item:hover span {
  color: #ffffff;
}

/* SVG badge items — slightly different sizing */
.logo-item--badge img {
  height: 44px;
  border-radius: 6px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .logo-strip {
    padding: 8px 0;
  }
  .logo-strip-label {
    font-size: 0.58rem;
    margin-bottom: 8px;
  }
  .logo-item img {
    height: 50px;
    max-width: 110px;
  }
  .logo-strip-track {
    gap: 28px;
    animation-duration: 30s;
  }
  .logo-item span {
    display: none;
  }
}

/* ============================================================
   SNEAK PEEK GALLERY
   ============================================================ */

.sneak-peek {
  margin: 28px 0 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(192,39,45,0.2);
  border-radius: 10px;
  overflow: hidden;
}

.sneak-peek-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(192,39,45,0.08);
  border-bottom: 1px solid rgba(192,39,45,0.2);
}

.sneak-peek-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
  white-space: nowrap;
  background: rgba(192,39,45,0.15);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(192,39,45,0.3);
}

.sneak-peek-header p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.sneak-peek-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 0;
}

.sneak-main {
  background: #0d0d0d;
  aspect-ratio: 16/10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sneak-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.sneak-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: #0a0a0a;
  padding: 3px;
  overflow-y: auto;
  max-height: 400px;
}

.sneak-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #0d0d0d;
  cursor: pointer;
  opacity: 0.55;
  border-radius: 3px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 2px solid transparent;
}

.sneak-thumb:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.sneak-thumb.active {
  opacity: 1;
  border-color: var(--color-orange);
}

.sneak-features {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.sneak-features h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 14px;
}

.sneak-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 20px;
}

.sneak-feature-list li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding-left: 0;
}

.feat-check {
  color: var(--color-orange);
  font-size: 0.8rem;
  line-height: 1.5;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.feat-text {
  line-height: 1.45;
}

/* Mobile */
@media (max-width: 700px) {
  /* Sneak peek grid: stack vertically */
  .sneak-peek-grid {
    grid-template-columns: 1fr;
  }
  .sneak-main {
    aspect-ratio: 4/3;
  }
  /* Thumbnails: horizontal scroll row */
  .sneak-thumbs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    gap: 4px;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .sneak-thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    aspect-ratio: 1;
    min-width: unset;
  }
  .sneak-feature-list {
    grid-template-columns: 1fr 1fr;
  }
  .sneak-peek-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Table horizontal scroll on mobile */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .table-scroll-wrap {
    margin: 0 -0.5rem;
    width: calc(100% + 1rem);
    border-radius: 0;
  }
  /* Fix white gap on production section */
  .production-section {
    background: #111;
  }
}

.production-section-desc strong {
  color: var(--color-orange);
  font-weight: 700;
}

/* ============================================================
   ATTENTION BOX — Emergency light callout
   ============================================================ */

.attention-box {
  position: relative;
  margin: 0 0 var(--space-5) 0;
  padding: 26px 28px;
  border: 2px solid rgba(192,39,45,0.5);
  border-radius: 10px;
  background: rgba(192,39,45,0.07);
  box-shadow:
    0 0 0 1px rgba(192,39,45,0.15),
    0 0 28px rgba(192,39,45,0.12),
    inset 0 0 40px rgba(192,39,45,0.05);
  overflow: hidden;
}

/* Sweeping border highlight — pseudo element rotates a conic gradient */
.attention-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 11px;
  background: conic-gradient(
    from var(--attn-angle, 0deg),
    transparent 0deg,
    rgba(192,39,45,1) 35deg,
    rgba(255,60,60,0.8) 55deg,
    transparent 80deg,
    transparent 175deg,
    rgba(30,80,255,1) 210deg,
    rgba(120,160,255,0.7) 230deg,
    transparent 260deg,
    transparent 360deg
  );
  animation: border-spin 1.6s linear infinite;
  z-index: 0;
}

/* Inner mask to make border appear as a line */
.attention-box::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 8px;
  background: #111;
  z-index: 1;
}

@property --attn-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes border-spin {
  from { --attn-angle: 0deg; }
  to   { --attn-angle: 360deg; }
}

/* Content sits above the pseudo elements */
.attn-content {
  position: relative;
  z-index: 2;
}

.attn-alert-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-orange);
  background: rgba(192,39,45,0.12);
  border: 1px solid rgba(192,39,45,0.35);
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 10px;
}

.production-section-desc {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
  font-size: var(--text-base);
}
.attn-content { text-align: center; }
.attn-content .attn-alert-tag { margin-left: auto; margin-right: auto; }

/* Mobile: keep border effect */
@media (max-width: 600px) {
  .attention-box { padding: 20px 18px; }
  .production-section-desc { font-size: var(--text-sm); line-height: 1.55; }
}
