/* ==========================================================================
   APEX FLOW LOGISTICS LLC — CORE DESIGN SYSTEM & STYLESHEET
   LIGHT THEME EDITION (Executive Slate & High-Velocity Amber/Gold)
   Fonts: Outfit (Display/Headings), Inter (Body/UI), JetBrains Mono (Metrics)
   ========================================================================== */

/* --- CSS Variables & Design Tokens (Light Mode) --- */
:root {
  /* Color Palette - Light Theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.94);

  /* Accents - High-Velocity Amber & Rich Gold */
  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --gold-800: #92400e;
  --gold-glow: rgba(217, 119, 6, 0.25);
  --gold-glow-subtle: rgba(245, 158, 11, 0.1);

  /* Secondary Accents */
  --cyan-500: #0284c7;
  --cyan-600: #0369a1;
  --cyan-glow: rgba(2, 132, 199, 0.2);
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-bg: #ecfdf5;

  /* Neutrals & Text */
  --text-primary: #0f172a;    /* Slate 900 */
  --text-secondary: #334155;  /* Slate 700 */
  --text-muted: #64748b;      /* Slate 500 */
  --text-light: #94a3b8;      /* Slate 400 */
  --text-white: #ffffff;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-card: #e2e8f0;
  --border-card-hover: rgba(217, 119, 6, 0.4);
  --border-gold: rgba(217, 119, 6, 0.35);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 6px 14px -3px rgba(15, 23, 42, 0.04);
  --shadow-gold: 0 10px 25px -4px rgba(217, 119, 6, 0.2);

  /* Spacing Scale Tokens (Consistent 8px, 16px, 24px, 32px, 48px, 80px Scale) */
  --space-8: 8px;       /* 0.5rem */
  --space-16: 16px;     /* 1rem */
  --space-24: 24px;     /* 1.5rem */
  --space-32: 32px;     /* 2rem */
  --space-48: 48px;     /* 3rem */
  --space-80: 80px;     /* 5rem */

  /* Layout & Viewport Defaults (Mobile-First 360px Baseline) */
  --container-max: 1200px;
  --page-padding: var(--space-16);    /* 16px side padding on mobile */
  --section-spacing: var(--space-48); /* 48px section spacing on mobile */
  --header-height: 68px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Modern Custom Scrollbar (Standard W3C & WebKit) --- */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.5);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--gold-500);
}

::-webkit-scrollbar-thumb:active {
  background-color: var(--gold-600);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-16));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
  background-image: 
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(245, 158, 11, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(2, 132, 199, 0.04), transparent 60%);
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--gold-600);
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 20px;
}

/* Selection */
::selection {
  background: var(--gold-500);
  color: #000;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

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

/* Responsive Media Constraint (Strict: max-width 100%, height auto) */
img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Mono Elements */
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Container (Mobile: 16px side padding, Tablet/Desktop: 32px, Max 1200px centered) */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

/* --- Section Layout & Shared Styles (Mobile: 48px, Desktop: 80px) --- */
.section {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  background: var(--gold-50);
  border: 1px solid var(--border-gold);
  color: var(--gold-700);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-16);
}

.section-tag .dot {
  width: 7px;
  height: 7px;
  background: var(--gold-600);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold-500);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.125rem);
  font-weight: 800;
  margin-bottom: var(--space-16);
  max-width: 820px;
  color: var(--text-primary);
}

.section-title span.highlight {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.0625rem;
  max-width: 720px;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-48);
}

/* Gradient Borders & Cards */
.gradient-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.gradient-border:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

/* Glass Card */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

/* --- Buttons & Touch Targets (Strict Min 44px Height) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  box-shadow: 0 6px 22px rgba(217, 119, 6, 0.4);
  transform: translateY(-1px);
  color: #000;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--gold-600);
  color: var(--gold-700);
  transform: translateY(-1px);
}

.btn-outline-gold {
  background: var(--bg-secondary);
  color: var(--gold-700);
  border: 1.5px solid var(--gold-600);
}
.btn-outline-gold:hover {
  background: var(--gold-600);
  color: #fff;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.8125rem;
}

.btn-lg {
  min-height: 48px;
  padding: 12px 28px;
  font-size: 1.0625rem;
}

/* Pulse animation on CTA */
.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(30deg);
  animation: shineSweep 4.5s infinite;
}
@keyframes shineSweep {
  0% { transform: translateX(-100%) rotate(30deg); }
  25%, 100% { transform: translateX(100%) rotate(30deg); }
}

/* --- Top Notification Bar (Desktop Only - Single Line) --- */
.top-notice-bar {
  display: none !important; /* Mobile & Tablet default: hidden */
  background: #0f172a;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 0;
  font-size: 0.8125rem;
  color: #cbd5e1;
  z-index: 999;
  position: relative;
  width: 100%;
}

.top-bar-container,
.top-notice-bar .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  gap: var(--space-16) !important;
  min-height: 28px;
}

.top-bar-left,
.top-bar-right {
  display: flex !important;
  align-items: center !important;
  gap: var(--space-16) !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  flex-shrink: 0;
}

.notice-pill .live-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: livePing 1.8s infinite;
}
@keyframes livePing {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.top-notice-bar .corporate-reg {
  color: var(--gold-300);
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-bar-hq {
  color: #94a3b8;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.top-bar-hq strong {
  color: #f1f5f9;
}

.top-bar-email {
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.top-bar-email:hover {
  color: var(--gold-300);
  text-decoration: underline;
}

/* --- Header & Navigation (Clean Single-Line Architecture & Always Sticky) --- */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  border-bottom-color: var(--border-gold);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  flex-wrap: nowrap;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo svg {
  height: 42px;
  width: auto;
}

/* Nav Menu: Reduced Font Size & Single Line */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.8125rem; /* Decreased font size for compact elegance */
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-600);
  transition: width var(--transition-normal);
}
.nav-link:hover {
  color: var(--gold-700);
}
.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.phone-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  touch-action: manipulation;
}
.phone-quick-link:hover {
  background: var(--gold-50);
  border-color: var(--gold-500);
  color: var(--gold-700);
}

.hamburger-btn {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.hamburger-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile & Tablet Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  border-left: 1px solid var(--border-subtle);
  z-index: 2000;
  padding: var(--space-24) var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  transition: right var(--transition-smooth);
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.15);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open {
  right: 0;
}
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-16);
}
.close-drawer-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
}
.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.mobile-nav-link:hover {
  color: var(--gold-600);
  background: var(--gold-50);
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 54px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-48);
  align-items: center;
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-50);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-700);
  font-family: 'JetBrains Mono', monospace;
}
.compliance-badge svg {
  width: 15px;
  height: 15px;
  fill: var(--gold-600);
}

.hero-h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.65rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-16);
  color: var(--text-primary);
}

.hero-h1 .gold-text {
  background: linear-gradient(135deg, var(--gold-700) 0%, var(--gold-600) 50%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-32);
  max-width: 640px;
}

.hero-lead-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}

.hero-perks-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.perk-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.perk-item svg {
  color: var(--gold-600);
  width: 17px;
  height: 17px;
}

/* Hero Right: Interactive Animated Logistics Radar / Flow Graphics */
.hero-visual-card {
  position: relative;
  background: #0f172a; /* Sophisticated dark console in light UI */
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  color: #fff;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), #38bdf8, var(--gold-500));
}

.radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.radar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.725rem;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
}
.radar-hub-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.725rem;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--border-gold);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* SVG Logistics Map Display */
.logistics-svg-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: #090e1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.flow-node-ping {
  animation: nodePulse 2.4s infinite cubic-bezier(0, 0, 0.2, 1);
  transform-origin: center;
}
@keyframes nodePulse {
  0% { r: 6px; opacity: 1; }
  70% { r: 24px; opacity: 0; }
  100% { r: 24px; opacity: 0; }
}

.flow-packet-stream {
  stroke-dasharray: 6 12;
  animation: packetFlow 2s linear infinite;
}
@keyframes packetFlow {
  to { stroke-dashoffset: -36; }
}

/* Live Dispatch Ticker within card */
.live-dispatch-ticker {
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.ticker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}
.ticker-lane {
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticker-rate {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--gold-400);
}

/* --- Live Stats Metric Bar (Light Mode) --- */
.stats-banner {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 32px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 8px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1;
}
.stat-number .accent {
  color: var(--gold-600);
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Corporate Credential Card (Georgia LLC Verification) --- */
.credentials-banner {
  margin-top: calc(-1 * var(--space-24));
  margin-bottom: var(--space-32);
  position: relative;
  z-index: 5;
}

.credentials-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-24) var(--space-32);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-24);
  align-items: center;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(217, 119, 6, 0.08);
}

.seal-col {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}
.seal-col img, .seal-col svg {
  width: 100%;
  height: 100%;
}

.credentials-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.credentials-content h3 .state-tag {
  background: var(--gold-50);
  border: 1px solid var(--border-gold);
  color: var(--gold-700);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.credentials-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 6px;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.meta-chip strong {
  color: var(--gold-700);
  font-family: 'JetBrains Mono', monospace;
}

.credentials-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  text-align: right;
}

/* --- Interactive Rate & Revenue Calculator (Light Mode) --- */
.calculator-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.control-val-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gold-700);
  background: var(--gold-50);
  border: 1px solid var(--border-gold);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

/* Custom Range Slider (Light Mode) */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  cursor: grab;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--gold-600);
}

/* Equipment Selection Radio Grid in Calculator */
.calc-equip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}

.calc-equip-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  min-height: 44px;
  padding: 10px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  touch-action: manipulation;
}
.calc-equip-btn:hover {
  background: var(--gold-50);
  border-color: var(--gold-400);
  color: var(--gold-700);
}
.calc-equip-btn.active {
  background: var(--gold-50);
  border-color: var(--gold-600);
  color: var(--gold-800);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

/* Calculator Results & Dynamic Animated Graphs */
.calc-results-panel {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.primary-output-box {
  margin-bottom: 20px;
}
.primary-output-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  font-weight: 600;
}
.primary-output-value {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.3rem, 3.8vw, 3rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}
.primary-output-value .val-gold {
  color: var(--gold-600);
}
.primary-output-sub {
  font-size: 0.875rem;
  color: var(--emerald-600);
  font-weight: 600;
  margin-top: 6px;
}

/* Dynamic Animated Graph Bars */
.calc-graph-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.calc-graph-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.bar-row {
  margin-bottom: 12px;
}
.bar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  margin-bottom: 4px;
}
.bar-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-fill-gross {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-600));
}
.bar-fill-net {
  background: linear-gradient(90deg, var(--emerald-500), var(--emerald-600));
}
.bar-fill-fee {
  background: linear-gradient(90deg, #38bdf8, var(--cyan-500));
}

.calc-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.breakdown-item {
  background: #ffffff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold-600);
}
.breakdown-label {
  font-size: 0.725rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.breakdown-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 3px;
}

/* --- Equipment Types Section (Interactive Tabs) --- */
.equipment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  justify-content: center;
  margin-bottom: var(--space-32);
}

.equip-tab-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  box-shadow: var(--shadow-sm);
  touch-action: manipulation;
}
.equip-tab-btn:hover {
  background: var(--gold-50);
  border-color: var(--gold-500);
  color: var(--gold-800);
}
.equip-tab-btn.active {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff;
  border-color: var(--gold-600);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.equip-content-card {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.4s ease;
}
.equip-content-card.active {
  display: grid;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.equip-info h3 {
  font-size: 1.85rem;
  margin-bottom: 8px;
}
.equip-info .equip-subtitle {
  color: var(--gold-700);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.equip-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.equip-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.spec-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}
.spec-box .spec-title {
  font-size: 0.725rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.spec-box .spec-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gold-700);
  margin-top: 3px;
}

.equip-visual {
  background: #0f172a; /* High contrast truck display */
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.truck-graphic-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* --- About Us Section (Light Mode) --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-quote-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--shadow-lg);
}

.about-quote-card::before {
  content: '“';
  position: absolute;
  top: 6px;
  left: 24px;
  font-size: 6.5rem;
  color: rgba(245, 158, 11, 0.18);
  font-family: Georgia, serif;
  line-height: 1;
}

.about-quote-card blockquote {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.quote-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}
.author-avatar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-50);
  border: 2px solid var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-700);
}
.author-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}
.author-title {
  font-size: 0.75rem;
  color: var(--gold-700);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.pillar-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.pillar-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-700);
  margin-bottom: 10px;
}
.pillar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.pillar-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Services & Back-Office Hub (Light Mode) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

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

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-700);
  margin-bottom: 20px;
  transition: transform var(--transition-fast);
}
.service-card:hover .service-icon-box {
  transform: scale(1.06);
}
.service-icon-box svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.service-feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}
.service-feature-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-feature-bullets li svg {
  width: 14px;
  height: 14px;
  color: var(--emerald-600);
  flex-shrink: 0;
}

/* --- 4-Step Onboarding Workflow (Light Mode) --- */
.workflow-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.workflow-step-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.workflow-step-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-num-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-400);
  margin-bottom: 12px;
  line-height: 1;
}
.workflow-step-card:hover .step-num-badge {
  color: var(--gold-600);
}

.workflow-step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.workflow-step-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Testimonials / Driver Proof (Light Mode) --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.testimonial-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stars-row {
  display: flex;
  gap: 3px;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.stars-row svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-driver-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}
.driver-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9375rem;
}
.driver-truck {
  font-size: 0.75rem;
  color: var(--gold-700);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}
.weekly-haul-badge {
  background: var(--emerald-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-600);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* --- FAQ Accordion (Light Mode) --- */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.faq-item.active {
  border-color: var(--border-gold);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.1);
}

.faq-question-btn {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.0625rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}
.faq-question-btn svg {
  width: 18px;
  height: 18px;
  color: var(--gold-600);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}
.faq-item.active .faq-question-btn svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

/* --- Contact & Driver Onboarding Hub (Light Mode) --- */
.contact-section {
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
}

.contact-info-col h3 {
  font-size: 1.65rem;
  margin-bottom: 12px;
}

.contact-info-col p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.dept-emails-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.dept-email-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.dept-email-card:hover {
  border-color: var(--gold-500);
  background: var(--gold-50);
  transform: translateX(3px);
}
.dept-role {
  font-size: 0.775rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.dept-address {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--gold-700);
  font-weight: 700;
}
.dept-icon {
  color: var(--gold-600);
  width: 18px;
  height: 18px;
}

.hq-address-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.hq-address-card svg {
  width: 22px;
  height: 22px;
  color: var(--gold-600);
  flex-shrink: 0;
  margin-top: 3px;
}
.hq-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 3px;
}
.hq-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Contact & Onboarding Form (Light Mode) */
.onboarding-form-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.form-toggle-tabs {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: var(--space-24);
}
.form-tab-btn {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  touch-action: manipulation;
}
.form-tab-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-16);
}
.form-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  min-height: 44px;
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}
.form-field select option {
  background: #ffffff;
  color: #0f172a;
}

/* Submit Modal or Alert */
.form-success-banner {
  display: none;
  background: var(--emerald-bg);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald-600);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: 0.9375rem;
}

/* --- Footer (Executive Deep Slate Finish for Grounding) --- */
.site-footer {
  background: #090e1a;
  color: #94a3b8;
  padding: 70px 0 28px;
  border-top: 1px solid var(--border-gold);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: #94a3b8;
  margin-top: 14px;
  margin-bottom: 18px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  font-size: 0.875rem;
}
.footer-links a {
  color: #94a3b8;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover {
  color: var(--gold-400);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #64748b;
}
.footer-bottom-bar a {
  color: #94a3b8;
}
.footer-bottom-bar a:hover {
  color: var(--gold-400);
}

.footer-legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--gold-400);
  font-size: 0.8rem;
}

/* --- Mobile Floating Quick Action Bar --- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border-gold);
  backdrop-filter: blur(14px);
  padding: 10px 16px;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}
.mobile-bar-flex {
  display: flex;
  gap: 10px;
}
.mobile-bar-flex a {
  flex: 1;
}

/* ==========================================================================
   MULTI-DEVICE RESPONSIVE SYSTEM (Mobile-First Architecture)
   Verified Breakpoints: 360px (Phones), 768px (Tablets), 1280px (Desktops)
   Guarantees: 0px horizontal overflow, strict 44px tap targets, mobile-first spacing
   ========================================================================== */

/* Zero-Horizontal-Overflow Protection for Grid and Flex Items */
.hero-grid > *,
.credentials-card > *,
.stats-grid > *,
.calc-layout > *,
.calc-equip-grid > *,
.calc-breakdown-grid > *,
.equip-content-card > *,
.equip-specs-list > *,
.about-grid > *,
.about-pillars > *,
.services-grid > *,
.workflow-grid > *,
.testimonials-grid > *,
.contact-grid > *,
.form-row-2 > *,
.footer-top-grid > *,
.sitemap-grid > * {
  min-width: 0;
}

/* 1. Mobile Phone & Portrait Mode (<= 768px down to 360px) */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
    --page-padding: var(--space-16);    /* 16px side padding on mobile */
    --section-spacing: var(--space-48); /* 48px section spacing on mobile */
  }

  /* User requirement: Hide top notice bar completely on mobile */
  .top-notice-bar {
    display: none !important;
  }

  .site-header {
    height: var(--header-height);
  }

  .site-header nav {
    display: none !important;
  }

  .nav-menu {
    display: none !important;
  }

  .hamburger-btn {
    display: flex !important;
  }

  .phone-quick-link {
    display: none !important;
  }

  .nav-actions .btn,
  .desktop-cta-btn {
    display: none !important;
  }

  .nav-container {
    justify-content: space-between !important;
    gap: var(--space-8) !important;
  }

  .brand-logo img {
    height: 30px !important;
    max-width: 130px !important;
    width: auto !important;
  }

  .section {
    padding-top: var(--space-48);
    padding-bottom: var(--space-48);
  }

  /* Hero Section on Mobile */
  .hero-section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-48);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .compliance-badge {
    font-size: 0.6875rem;
    padding: 4px 10px;
    white-space: normal;
    text-align: center;
  }

  .hero-h1 {
    font-size: clamp(1.55rem, 6.5vw, 2.15rem);
    line-height: 1.15;
    word-break: normal;
    overflow-wrap: break-word;
    margin-bottom: var(--space-16);
  }

  .hero-lead-text {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: var(--space-24);
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-8);
    margin-bottom: var(--space-24);
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-perks-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
  }

  .hero-visual-card {
    padding: var(--space-16);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 100%;
  }

  .radar-header {
    flex-wrap: wrap;
    gap: var(--space-8);
  }

  /* Georgia LLC Credentials Card on Mobile */
  .credentials-banner {
    margin-top: calc(-1 * var(--space-16));
    margin-bottom: var(--space-32);
  }

  .credentials-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-16);
    gap: var(--space-16);
  }

  .seal-col {
    width: 64px;
    height: 64px;
    margin: 0 auto;
  }

  .credentials-content h3 {
    justify-content: center;
    font-size: 1.1rem;
    flex-wrap: wrap;
    gap: var(--space-8);
  }

  .credentials-meta {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-8);
  }

  .credentials-actions {
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .credentials-actions .btn {
    width: 100%;
  }

  /* Stats Metric Bar on Mobile */
  .stats-banner {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-16);
  }

  .stat-item {
    padding: var(--space-8);
  }

  .stat-item::after {
    display: none !important;
  }

  .stat-number {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Revenue Calculator on Mobile */
  .calc-layout {
    grid-template-columns: 1fr;
    padding: var(--space-16);
    gap: var(--space-24);
  }

  .calc-equip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8);
  }

  .calc-results-panel {
    padding: var(--space-16);
  }

  .primary-output-value {
    font-size: clamp(2rem, 7.5vw, 2.5rem);
  }

  .calc-breakdown-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Equipment Showcase on Mobile */
  .equipment-tabs {
    gap: var(--space-8);
    margin-bottom: var(--space-24);
  }

  .equip-content-card {
    grid-template-columns: 1fr;
    padding: var(--space-24) var(--space-16);
    gap: var(--space-24);
  }

  .equip-specs-list {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-16);
  }

  .equip-visual {
    min-height: 180px;
    padding: var(--space-16);
  }

  /* About Us on Mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .about-quote-card {
    padding: var(--space-24) var(--space-16);
  }

  .about-pillars {
    grid-template-columns: 1fr;
    gap: var(--space-16);
    margin-top: var(--space-16);
  }

  /* Services Grid on Mobile (Single Column) */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .service-card {
    padding: var(--space-24) var(--space-16);
  }

  /* Workflow Steps on Mobile (Single Column) */
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .workflow-step-card {
    padding: var(--space-24) var(--space-16);
  }

  /* Testimonials on Mobile */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .testimonial-card {
    padding: var(--space-24) var(--space-16);
  }

  /* FAQ on Mobile */
  .faq-container {
    gap: var(--space-8);
  }

  .faq-question-btn {
    padding: var(--space-16);
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 var(--space-16);
  }

  .faq-item.active .faq-answer {
    padding-bottom: var(--space-16);
  }

  /* Contact & Form on Mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .onboarding-form-card {
    padding: var(--space-24) var(--space-16);
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .dept-email-card {
    padding: var(--space-16);
    flex-wrap: wrap;
    gap: var(--space-8);
  }

  .dept-address {
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .hq-address-card {
    padding: var(--space-16);
  }

  /* Footer on Mobile */
  .site-footer {
    padding: var(--space-48) 0 var(--space-24);
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
    margin-bottom: var(--space-32);
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: var(--space-16);
    text-align: center;
  }

  /* Sticky Action Bar at Bottom of Mobile Screens */
  .mobile-sticky-bar {
    display: block !important;
    padding: var(--space-8) var(--page-padding) !important;
    padding-bottom: max(var(--space-8), env(safe-area-inset-bottom, 12px)) !important;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 12px)) !important; /* Clearance for sticky bottom bar */
  }
}

/* Extra Compact Phones (<= 480px down to 360px) */
@media (max-width: 480px) {
  .nav-actions .btn,
  .desktop-cta-btn {
    display: none !important; /* Hides desktop header button to prevent header clutter on phones */
  }

  .brand-logo img {
    height: 30px !important;
    max-width: 130px !important;
    width: auto !important;
  }

  .section-title {
    font-size: clamp(1.75rem, 6.5vw, 2.15rem);
  }

  .section-header-center {
    margin-bottom: var(--space-32);
  }

  .calc-equip-btn {
    font-size: 0.75rem;
    padding: 8px 4px;
  }

  .hero-perks-row {
    font-size: 0.8125rem;
  }
}

/* 2. Tablet Mode (Portrait & Landscape: 768px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --page-padding: var(--space-32);    /* 32px on tablet */
    --header-height: 74px;
    --section-spacing: 64px;
  }

  /* User requirement: hide top bar in tablet and mobile version */
  .top-notice-bar {
    display: none !important;
  }

  .site-header {
    height: var(--header-height);
  }

  .nav-menu {
    display: none !important;
  }

  .hamburger-btn {
    display: flex !important;
  }

  .phone-quick-link {
    display: inline-flex;
    font-size: 0.8125rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-48);
  }

  .hero-visual-card {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

  .credentials-card {
    grid-template-columns: auto 1fr;
    gap: var(--space-24);
    padding: var(--space-24);
  }

  .credentials-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-16);
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-16);
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-16);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .calc-layout {
    grid-template-columns: 1fr;
    gap: var(--space-32);
    padding: var(--space-32);
  }

  .calc-breakdown-grid {
    grid-template-columns: 1fr 1fr;
  }

  .equip-content-card {
    grid-template-columns: 1fr;
    gap: var(--space-24);
    padding: var(--space-32);
  }

  .equip-specs-list {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .about-pillars {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-24);
  }

  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-16);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

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

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-32);
  }

  .footer-bottom-bar {
    flex-direction: row;
  }

  .mobile-sticky-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* 3. Desktop Mode (min-width: 1025px) */
@media (min-width: 1025px) {
  :root {
    --page-padding: var(--space-32);    /* 32px on desktop */
    --section-spacing: var(--space-80); /* 80px on desktop */
    --header-height: 78px;
  }

  /* User requirement: top bar only shows in desktop version */
  .top-notice-bar {
    display: block !important;
  }

  .site-header {
    height: var(--header-height);
  }

  .nav-menu {
    display: flex !important;
  }

  .hamburger-btn {
    display: none !important;
  }

  .phone-quick-link {
    display: inline-flex !important;
  }

  .mobile-sticky-bar {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }
}

/* 4. Large Laptops & Standard Desktops (1025px to 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .top-notice-bar {
    font-size: 0.75rem;
  }
  .top-bar-container,
  .top-notice-bar .container {
    gap: var(--space-8) !important;
  }
  .top-bar-left,
  .top-bar-right {
    gap: var(--space-8) !important;
  }
  .top-bar-hq,
  .top-bar-email,
  .top-notice-bar .corporate-reg {
    font-size: 0.75rem;
  }
  .notice-pill {
    font-size: 0.65rem;
    padding: 2px 7px;
  }
  .nav-menu {
    gap: 10px;
  }
  .nav-link {
    font-size: 0.775rem;
    padding: 6px 1px;
    letter-spacing: 0.02em;
  }
  .phone-quick-link {
    font-size: 0.775rem;
    padding: 5px 9px;
  }
  .nav-actions .btn {
    padding: 7px 14px;
    font-size: 0.775rem;
  }
}

/* ==========================================================================
   ULTRA-LIGHTWEIGHT WEBSITE PRELOADER (LOGISTICS & FREIGHT THEMED)
   Pure CSS GPU-Accelerated, Zero Speed Impact, Auto-dismisses & Detaches
   ========================================================================== */
.site-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100%;
  overflow: hidden;
  z-index: 999999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  will-change: opacity;
}

.site-preloader.preloader-fade {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: min(320px, 90vw);
  width: 100%;
  overflow: hidden;
}

.preloader-logo-wrap {
  margin-bottom: 24px;
}

.preloader-logo-img {
  height: 42px;
  width: auto;
  max-width: 100%;
  display: block;
}

.preloader-freight-lane {
  position: relative;
  width: min(220px, 75vw);
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 20px;
  overflow: hidden;
  contain: paint;
}

.preloader-truck {
  position: relative;
  z-index: 2;
  animation: truckBounce 0.5s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes truckBounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-2px);
  }
}

.truck-svg {
  display: block;
  max-width: 100%;
  filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.08));
}

.preloader-highway {
  position: relative;
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
  contain: paint;
}

.preloader-highway-dashes {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #d97706 0px,
    #d97706 14px,
    transparent 14px,
    transparent 28px
  );
  animation: highwayFlow 0.65s linear infinite;
  will-change: transform;
}

@keyframes highwayFlow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-28px);
  }
}

.preloader-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.preloader-status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: radarPulse 1.2s ease-in-out infinite;
}

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

.preloader-status-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #64748b;
  text-transform: uppercase;
}

.preloader-bar {
  width: 160px;
  height: 3px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.preloader-progress {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  border-radius: 3px;
  transform-origin: left center;
  animation: preloaderFill 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  will-change: transform;
}

@keyframes preloaderFill {
  0% {
    transform: scaleX(0);
  }
  60% {
    transform: scaleX(0.75);
  }
  100% {
    transform: scaleX(1);
  }
}

/* ==========================================================================
   SUBPAGE & UTILITY STYLES (Sitemap, Legal Policies, 404 Error Page)
   ========================================================================== */
.subpage-hero {
  padding: 60px 0 45px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-card);
  text-align: center;
}

.subpage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  color: var(--gold-700);
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.subpage-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.subpage-desc {
  max-width: 680px;
  margin: 0 auto 20px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--gold-600);
  font-weight: 600;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.legal-layout {
  padding: 60px 0 90px;
  background: var(--bg-primary);
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-card);
}

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

.legal-card p, .legal-card li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-card ul {
  padding-left: 24px;
  margin-bottom: 18px;
}

.legal-card li {
  margin-bottom: 8px;
}

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

/* Sitemap Grid */
.sitemap-layout {
  padding: 60px 0 90px;
  background: var(--bg-primary);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.sitemap-category-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.sitemap-category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.sitemap-category-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
  border-bottom: 2px solid var(--gold-100);
  padding-bottom: 10px;
}

.sitemap-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-links-list li {
  margin-bottom: 12px;
}

.sitemap-links-list a {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all var(--transition-fast);
}

.sitemap-links-list a:hover {
  background: var(--gold-50);
  border-color: var(--gold-200);
}

.sitemap-link-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.sitemap-link-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 404 Error Page */
.error-hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: center;
}

.error-card {
  max-width: 600px;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  box-shadow: var(--shadow-lg);
}

.error-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold-600);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

@media (max-width: 768px) {
  .subpage-hero {
    padding: var(--space-32) 0 var(--space-24);
  }
  .subpage-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }
  .legal-layout, .sitemap-layout {
    padding: var(--space-32) 0 var(--space-48);
  }
  .legal-card {
    padding: var(--space-24) var(--space-16);
  }
  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
  .sitemap-category-card {
    padding: var(--space-16);
  }
  .error-hero {
    padding: var(--space-48) var(--space-16);
    min-height: auto;
  }
  .error-card {
    padding: var(--space-32) var(--space-16);
  }
  .error-badge {
    font-size: 3.5rem;
  }
}

/* ==========================================================================
   FLOATING BACK TO TOP BUTTON (Min 44px Touch Target)
   ========================================================================== */
.back-to-top-btn {
  position: fixed !important;
  bottom: 86px !important; /* Clearance above the mobile sticky quick-action bar */
  right: 18px !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: var(--gold-600) !important;
  border: 1.5px solid var(--border-gold) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(217, 119, 6, 0.22) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 1002 !important; /* Always sits on top of mobile sticky bar (999) */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(16px) !important;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
  will-change: transform, opacity;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 0 !important;
  outline: none !important;
}

.back-to-top-btn.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.back-to-top-btn:hover {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600)) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.35) !important;
}

.back-to-top-btn:active {
  transform: translateY(-1px) !important;
}

.back-to-top-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  pointer-events: none;
}

@media (min-width: 769px) {
  .back-to-top-btn {
    bottom: 28px !important;
    right: 28px !important;
    width: 48px !important;
    height: 48px !important;
  }
}




