/* TruckShield.online - Main Stylesheet */
/* Design System: Government-Official Theme */

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

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Primary - Navy */
  --color-primary: #1a365d;
  --color-primary-light: #2a4a7f;
  --color-primary-dark: #0f2440;

  /* Accent - Safety Orange */
  --color-accent: #dd6b20;
  --color-accent-light: #ed8936;
  --color-accent-dark: #c05621;

  /* Alert Red */
  --color-danger: #c53030;
  --color-danger-light: #fc8181;

  /* Success Green */
  --color-success: #276749;
  --color-success-light: #48bb78;

  /* Warning Yellow */
  --color-warning: #b7791f;
  --color-warning-light: #f6e05e;

  /* Neutrals */
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-bg-dark: #1a202c;
  --color-text: #1a202c;
  --color-text-secondary: #4a5568;
  --color-text-muted: #718096;
  --color-border: #e2e8f0;
  --color-border-dark: #cbd5e0;

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --max-width: 1200px;
  --container-padding: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);

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

  /* Transitions */
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-light);
  text-decoration: underline;
}

a:hover {
  color: var(--color-accent);
}

ul, ol {
  padding-left: 1.5rem;
}

/* ============================================================
   Skip Link
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--space-sm) var(--space-md);
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   Top Stripe
   ============================================================ */
.top-stripe {
  height: 4px;
  background: linear-gradient(to right, var(--color-primary) 50%, var(--color-accent) 50%);
  position: relative;
  z-index: 200;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.nav-logo .logo-text {
  color: white;
}

.nav-logo .logo-accent {
  color: var(--color-accent-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: white;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0;
  font-family: var(--font-body);
  transition: color var(--transition);
}

.nav-dropdown-trigger:hover {
  color: white;
}

.nav-dropdown-trigger::after {
  content: '';
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 2px;
  transition: transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background var(--transition);
}

.nav-dropdown-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.nav-dropdown-menu a:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.nav-dropdown-menu a:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.nav-cta {
  background: var(--color-accent) !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-md);
  font-weight: 600 !important;
  transition: background var(--transition) !important;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--color-accent-dark) !important;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: white;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl);
    gap: var(--space-md);
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    min-width: 100%;
  }

  .nav-dropdown-menu a {
    color: rgba(255, 255, 255, 0.9);
  }

  .nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }
}

/* ============================================================
   Alert Banner
   ============================================================ */
.alert-banner {
  background: var(--color-accent);
  color: white;
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.alert-banner a {
  color: white;
  font-weight: 700;
  text-decoration: underline;
}

.alert-banner-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  margin-left: auto;
  opacity: 0.8;
}

.alert-banner-close:hover {
  opacity: 1;
}

/* ============================================================
   Container / Layout
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (min-width: 640px) {
  :root {
    --container-padding: 2rem;
  }
}

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

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

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

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

.flex {
  display: flex;
  gap: var(--space-md);
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
}

h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: var(--space-lg); }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: var(--space-md); }
h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--space-sm); }

p {
  max-width: 70ch;
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.5rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ============================================================
   Breadcrumbs
   ============================================================ */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 var(--space-sm);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: none;
  margin-bottom: 0;
}

/* ============================================================
   Stat Callout Box
   ============================================================ */
.stat-callout {
  border-left: 4px solid var(--color-danger);
  background: #fff5f5;
  padding: var(--space-lg);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.stat-callout-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-danger);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-callout-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  max-width: none;
  margin: 0;
}

.stat-callout-accent {
  border-left-color: var(--color-accent);
  background: #fffaf0;
}

.stat-callout-accent .stat-callout-number {
  color: var(--color-accent-dark);
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pass {
  background: var(--color-success);
  color: white;
}

.badge-fail {
  background: var(--color-danger);
  color: white;
}

.badge-warn {
  background: var(--color-warning-light);
  color: var(--color-warning);
  border: 1px solid var(--color-warning);
}

.badge-info {
  background: #ebf8ff;
  color: #2b6cb0;
  border: 1px solid #bee3f8;
}

.badge-primary {
  background: var(--color-primary);
  color: white;
}

.badge-accent {
  background: var(--color-accent);
  color: white;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

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

.btn-accent {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: white;
}

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

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

.btn-danger {
  background: var(--color-danger);
  color: white;
  border-color: var(--color-danger);
}

.btn-danger:hover {
  background: #9b2c2c;
  border-color: #9b2c2c;
  color: white;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   Tables
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-xl);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table th {
  background: var(--color-primary);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.table th:first-child {
  border-radius: 0;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.table tr:nth-child(even) td {
  background: var(--color-bg-alt);
}

.table tr:hover td {
  background: #edf2f7;
}

.table .danger { color: var(--color-danger); font-weight: 700; }
.table .success { color: var(--color-success); font-weight: 700; }

/* ============================================================
   Forms
   ============================================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  font-size: 0.9375rem;
}

.form-label-required::after {
  content: ' *';
  color: var(--color-danger);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.15);
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: var(--color-danger);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
}

.form-hint {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
}

/* ============================================================
   Alert / Notice Boxes
   ============================================================ */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
}

.alert-danger {
  background: #fff5f5;
  border-color: var(--color-danger-light);
  color: #742a2a;
}

.alert-success {
  background: #f0fff4;
  border-color: var(--color-success-light);
  color: #1c4532;
}

.alert-warning {
  background: #fffbeb;
  border-color: var(--color-warning-light);
  color: #744210;
}

.alert-info {
  background: #ebf8ff;
  border-color: #bee3f8;
  color: #2a4365;
}

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: var(--space-lg);
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary-light);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--color-border);
}

.faq-answer {
  padding: var(--space-lg);
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  background: var(--color-bg-alt);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  background: var(--color-primary);
  color: white;
  padding: var(--space-3xl) 0;
}

.hero-label {
  display: inline-block;
  background: rgba(221, 107, 32, 0.2);
  color: var(--color-accent-light);
  border: 1px solid rgba(221, 107, 32, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.hero h1 {
  color: white;
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  max-width: 18ch;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  background: var(--color-primary);
  color: white;
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto var(--space-xl);
  font-size: 1.125rem;
}

/* ============================================================
   Price Display
   ============================================================ */
.price-display {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.price-original {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.price-current {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-success);
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

/* ============================================================
   State Grid (Homepage)
   ============================================================ */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-sm);
}

.state-btn {
  display: block;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  text-decoration: none;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
}

.state-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: none;
}

/* ============================================================
   Progress Bar
   ============================================================ */
.progress-bar {
  height: 8px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progress-fill-success { background: var(--color-success); }
.progress-fill-danger { background: var(--color-danger); }
.progress-fill-accent { background: var(--color-accent); }

/* ============================================================
   Checklist Items
   ============================================================ */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-check {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 1px;
}

.checklist-check.checked {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

.checklist-text {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: all var(--transition);
}

.checklist-text.checked {
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* ============================================================
   Compliance Status Indicators
   ============================================================ */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 600;
}

.status-pass { color: var(--color-success); }
.status-fail { color: var(--color-danger); }
.status-warn { color: var(--color-warning); }

/* ============================================================
   Section Headers
   ============================================================ */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.section-label {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

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

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.footer-brand h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: none;
}

.footer-brand .disclaimer {
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.footer-states h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer-state-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-xs);
}

@media (max-width: 1024px) {
  .footer-state-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-state-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-state-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.8125rem;
  padding: 2px 0;
  transition: color var(--transition);
}

.footer-state-links a:hover {
  color: var(--color-accent-light);
}

.footer-links h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   Social Proof / Testimonials
   ============================================================ */
.testimonial {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-lg);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.testimonial-role {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

/* ============================================================
   Topic Page Specific
   ============================================================ */
.toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.toc h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.toc ol {
  padding-left: 1.5rem;
}

.toc li {
  margin-bottom: var(--space-sm);
}

.toc a {
  color: var(--color-primary-light);
  text-decoration: none;
  font-size: 0.9375rem;
}

.toc a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.content-section {
  margin-bottom: var(--space-3xl);
}

.content-section h2 {
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: var(--space-sm);
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  background: var(--color-bg-alt);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* ============================================================
   Two-column page layout
   ============================================================ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-3xl);
  align-items: start;
}

.page-sidebar {
  position: sticky;
  top: 80px;
}

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    position: static;
  }
}

/* ============================================================
   Map / SVG specific
   ============================================================ */
.us-map-container {
  position: relative;
}

.us-map-container svg {
  width: 100%;
  height: auto;
}

.state-path {
  cursor: pointer;
  stroke: white;
  stroke-width: 1;
  transition: opacity var(--transition);
}

.state-path:hover {
  opacity: 0.8;
}

.state-path.enforcement-high { fill: var(--color-danger); }
.state-path.enforcement-medium { fill: var(--color-warning); }
.state-path.enforcement-low { fill: var(--color-success); }

/* ============================================================
   Tool UI elements
   ============================================================ */
.quiz-question {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xl);
}

.quiz-options {
  display: grid;
  gap: var(--space-sm);
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-bg);
  font-size: 1rem;
  text-align: left;
  font-family: var(--font-body);
  color: var(--color-text);
}

.quiz-option:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-alt);
}

.quiz-option.selected {
  border-color: var(--color-primary);
  background: #ebf4ff;
  font-weight: 600;
}

.risk-result {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.risk-score-badge {
  display: inline-block;
  font-size: 3rem;
  font-weight: 800;
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
  line-height: 1;
}

.risk-low { background: #f0fff4; color: var(--color-success); border: 2px solid var(--color-success-light); }
.risk-medium { background: #fffbeb; color: var(--color-warning); border: 2px solid var(--color-warning-light); }
.risk-high { background: #fff5f5; color: var(--color-danger); border: 2px solid var(--color-danger-light); }

/* ============================================================
   Utilities
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.hidden { display: none !important; }

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
  .site-nav,
  .site-footer,
  .alert-banner,
  .cta-section,
  .no-print,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  h1, h2, h3 {
    color: #000;
    page-break-after: avoid;
  }

  .table {
    page-break-inside: avoid;
  }

  a::after {
    content: ' (' attr(href) ')';
    font-size: 0.75em;
    color: #666;
  }

  .checklist-item {
    page-break-inside: avoid;
  }
}
