/* ==========================================================================
   MIDWEST EXPRESS INC. — DESIGN SYSTEM & TOKENS
   Brand Foundation: Clean, Modern, Trustworthy Logistics & Freight Carrier
   ========================================================================== */

:root {
  /* --- Brand Color Tokens (Extracted from Midwest Express Logo) --- */
  --color-primary: #1e3a78;         /* Primary Navy / Royal Blue */
  --color-primary-dark: #12244f;    /* Deep Navy */
  --color-primary-light: #294d9c;   /* Vibrant Blue */
  --color-accent-red: #cf2228;      /* Midwest Core Red */
  --color-accent-red-hover: #b3191f;/* Red Hover State */
  --color-accent-red-light: #fef2f2;/* Red Tinted Background */

  /* Neutral & Base Colors */
  --color-white: #ffffff;
  --color-dark: #0a0f1d;            /* Primary Dark Background */
  --color-dark-surface: #111a2e;    /* Card / Elevated Dark */
  --color-dark-surface-hover: #17233d;
  --color-dark-border: #1e2c4a;     /* Dark Surface Borders */
  --color-light-bg: #f8fafc;        /* Off-white page background */
  --color-light-surface: #ffffff;   /* Card / Elevated Light */
  --color-border: #e2e8f0;          /* Subtle light border */
  --color-border-hover: #cbd5e1;

  /* Typography Colors */
  --color-text-primary: #0f172a;    /* High contrast dark text */
  --color-text-secondary: #475569;  /* Balanced body text */
  --color-text-muted: #64748b;      /* Captions, subheaders */
  --color-text-inverse: #f8fafc;    /* White text on dark */
  --color-text-inverse-muted: #94a3b8;

  /* Typography Scale */
  --font-display: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */

  /* Spacing Scale */
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* Container & Layout */
  --container-max: 1200px;
  --container-padding: var(--space-4);
  --header-height: 80px;

  /* Elevation / Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);

  /* Border Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-light-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

section {
  scroll-margin-top: var(--header-height);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Accessible Skip Link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: var(--font-weight-semibold);
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: var(--space-4);
}

/* Visible Focus Outline for Accessibility (WCAG AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent-red);
  outline-offset: 3px;
}

/* ==========================================================================
   LAYOUT CONTAINERS & GRIDS
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-text-inverse);
}

.section-alt {
  background-color: var(--color-white);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   TYPOGRAPHY HIERARCHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: inherit;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: var(--font-weight-extrabold); }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.section-tag-red {
  background-color: rgba(207, 34, 40, 0.15);
  color: #ff5258;
  border: 1px solid rgba(207, 34, 40, 0.3);
}

.section-tag-blue {
  background-color: rgba(30, 58, 120, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(30, 58, 120, 0.2);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 680px;
  line-height: 1.5;
}

.section-dark .section-subtitle {
  color: var(--color-text-inverse-muted);
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.75rem;
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #cf2228 0%, #b3191f 100%);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 16px rgba(179, 25, 31, 0.35);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e02a31 0%, #cf2228 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px rgba(207, 34, 40, 0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(30, 58, 120, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: rgba(10, 15, 29, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-outline:hover {
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline-dark:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: var(--text-sm);
}

/* ==========================================================================
   HEADER & STICKY NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 500;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.is-scrolled {
  background-color: rgba(6, 10, 20, 0.98);
  box-shadow: var(--shadow-lg);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1.1;
}

.brand-badge {
  font-size: var(--text-xs);
  color: #ff5258;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .brand-logo-img {
    height: 42px;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .brand-badge {
    font-size: 10px;
  }
}

.desktop-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-weight: var(--font-weight-medium);
  font-size: var(--text-sm);
  color: var(--color-text-inverse-muted);
  padding: var(--space-2) 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-red);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: none;
}

.header-phone-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: #e2e8f0;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.header-phone-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.header-phone-link svg {
  color: #ff5258;
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  color: var(--color-white);
  padding: var(--space-2);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  margin: 3px 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-toggle[aria-expanded="true"] .line-1 {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .line-2 {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .line-3 {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--color-dark);
  border-top: 1px solid var(--color-dark-border);
  padding: var(--space-6) var(--space-4);
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  z-index: 490;
}

.mobile-nav-drawer.is-open {
  display: flex;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  border-radius: var(--radius-md);
}

.mobile-nav-link:hover {
  background-color: var(--color-dark-surface);
  color: var(--color-accent-red);
}

.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-dark-border);
}

@media (min-width: 992px) {
  .desktop-nav {
    display: block;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }
  .mobile-toggle {
    display: none;
  }
}

/* ==========================================================================
   HERO SECTION (CINEMATIC TRUCK BACKGROUND & REFINED HIGH-CONTRAST LAYOUT)
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  background-color: #060a14;
  background-image: 
    linear-gradient(
      to right,
      rgba(6, 10, 20, 0.96) 0%,
      rgba(6, 10, 20, 0.90) 40%,
      rgba(6, 10, 20, 0.65) 70%,
      rgba(6, 10, 20, 0.35) 100%
    ),
    url('../assets/hero-truck.webp');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-section {
    background-image: 
      linear-gradient(
        to bottom,
        rgba(6, 10, 20, 0.94) 0%,
        rgba(6, 10, 20, 0.90) 60%,
        rgba(6, 10, 20, 0.85) 100%
      ),
      url('../assets/hero-truck.webp');
    background-position: center center;
    min-height: auto;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 1rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background-color: rgba(10, 15, 29, 0.85);
  color: #ff5258;
  border: 1px solid rgba(207, 34, 40, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-4);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.hero-section h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8);
  margin-bottom: var(--space-3);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-tagline .highlight-accent {
  color: #ff5258;
}

.hero-subhead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 640px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.trust-badge-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  color: #ffffff;
  background-color: rgba(6, 10, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.trust-pill svg {
  color: #ff5258;
}

/* Hero Quick Card (Right Column) */
.hero-quick-card {
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  position: relative;
}

.hero-quick-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent-red));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.quick-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.quick-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: #4ade80;
  font-weight: 600;
}

.quick-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-info-label {
  color: #94a3b8;
}

.quick-info-val {
  font-weight: 600;
  color: #ffffff;
}

/* ==========================================================================
   CARDS, STATS & SCOREBOARD
   ========================================================================== */

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.card-dark {
  background-color: var(--color-dark-surface);
  border-color: var(--color-dark-border);
  color: var(--color-text-inverse);
}

.card-dark:hover {
  background-color: var(--color-dark-surface-hover);
  border-color: rgba(207, 34, 40, 0.4);
}

/* Scoreboard Stat Cards */
.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background-color: var(--color-dark-surface);
  border: 1px solid var(--color-dark-border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-primary-light);
}

.stat-card-highlight::before {
  background-color: var(--color-accent-red);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-inverse-muted);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  margin-bottom: var(--space-2);
  color: var(--color-white);
}

.stat-card-highlight .stat-value {
  color: #ff5258;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.badge-success {
  background-color: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-highlight {
  background-color: rgba(207, 34, 40, 0.15);
  color: #ff5258;
  border: 1px solid rgba(207, 34, 40, 0.3);
}

.stat-desc {
  font-size: var(--text-sm);
  color: var(--color-text-inverse-muted);
  line-height: 1.4;
  margin-top: var(--space-2);
}

/* ==========================================================================
   COMMODITIES STYLING
   ========================================================================== */

.commodity-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.commodity-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.commodity-icon-box {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(30, 58, 120, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.commodity-card:hover .commodity-icon-box {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.commodity-title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-1);
}

.commodity-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   INSURANCE & CREDENTIALS
   ========================================================================== */

.insurance-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-8);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.insurance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background-color: var(--color-primary);
}

.insurance-card-alt::before {
  background-color: var(--color-accent-red);
}

.insurance-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
  line-height: 1.1;
  margin: var(--space-2) 0;
}

.insurance-card-alt .insurance-amount {
  color: var(--color-accent-red);
}

.insurance-meta-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.insurance-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.insurance-meta-label {
  color: var(--color-text-muted);
}

.insurance-meta-value {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--color-dark-surface);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.contact-card:hover {
  border-color: var(--color-accent-red);
  transform: translateY(-2px);
}

.contact-icon-box {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(207, 34, 40, 0.15);
  color: #ff5258;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card h4 {
  font-size: var(--text-base);
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.contact-value {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
}

.contact-sub {
  font-size: var(--text-xs);
  color: var(--color-text-inverse-muted);
  margin-top: var(--space-1);
}

/* Form Controls */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: #090f1d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: #0d1527;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

/* ==========================================================================
   REUSABLE SMS CONSENT COMPONENT (10DLC / TCPA COMPLIANT)
   ========================================================================== */

.sms-consent-box {
  background-color: var(--color-light-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.sms-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.sms-checkbox-input {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.sms-consent-text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: var(--font-weight-semibold);
}

.sms-consent-text a:hover {
  color: var(--color-accent-red);
}

.sms-disclaimer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* ==========================================================================
   LEGAL & COMPLIANCE PAGES STYLING (Privacy Policy & SMS Terms)
   ========================================================================== */

.legal-header {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  background-color: var(--color-dark);
  border-bottom: 1px solid var(--color-dark-border);
}

.legal-content-section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
  background-color: var(--color-light-bg);
}

.legal-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  color: var(--color-text-primary);
}

.legal-back-nav {
  margin-bottom: var(--space-6);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

.legal-back-nav:hover {
  color: var(--color-accent-red);
  transform: translateX(-3px);
}

.legal-card h2 {
  font-size: var(--text-xl);
  color: var(--color-primary-dark);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card strong {
  color: var(--color-text-primary);
}

.legal-highlight-box {
  background-color: rgba(30, 58, 120, 0.05);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-6) 0;
}

.legal-highlight-box-red {
  background-color: rgba(207, 34, 40, 0.05);
  border-left-color: var(--color-accent-red);
}

.legal-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-light-bg);
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

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

.site-footer {
  background-color: var(--color-dark);
  color: var(--color-text-inverse);
  border-top: 1px solid var(--color-dark-border);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.contact-card-title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: 2px;
}

.footer-col h3,
.footer-col h4,
.footer-heading {
  color: var(--color-white);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
}

.footer-desc {
  color: var(--color-text-inverse-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  color: var(--color-text-inverse-muted);
  font-size: var(--text-sm);
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-credentials {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.cred-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  background-color: var(--color-dark-surface);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-sm);
  color: var(--color-white);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-dark-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-inverse-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-compliance-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-compliance-link {
  color: var(--color-text-inverse-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: var(--font-weight-medium);
}

.footer-compliance-link:hover {
  color: var(--color-white);
}
