/* Hardus Plumbing - Production Design System & Stylesheet */
/* Mobile-First, WCAG 2.2 AA Compliant, High-Performance Emergency UX */

:root {
  /* Colors */
  --emergency-red: #dc2626;
  --emergency-red-hover: #b91c1c;
  --emergency-surface: #fef2f2;
  --emergency-border: #fca5a5;

  --brand-navy: #0f172a;
  --brand-slate: #1e293b;
  --brand-accent: #0284c7;
  --brand-accent-hover: #0369a1;
  --brand-accent-light: #e0f2fe;

  --bg-body: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-inverse: #ffffff;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1.0625rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.875rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 2.75rem;

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

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-sticky: 0 -4px 16px rgba(0, 0, 0, 0.15);

  --container-max: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  padding-bottom: 70px; /* Space for sticky mobile action bar */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--brand-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease-in-out;
}

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

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

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

/* Header & Navigation */
.site-header {
  background: var(--brand-navy);
  color: var(--text-inverse);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  min-height: 48px;
  position: relative;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.logo-icon-box {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.logo-icon-box svg {
  width: 18px;
  height: 18px;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 20px;
  align-items: center;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #38bdf8;
}

/* Service Areas States Mega Dropdown */
.nav-links li.has-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  color: #94a3b8;
  flex-shrink: 0;
}

.has-dropdown:hover .nav-dropdown-trigger,
.has-dropdown:hover .dropdown-chevron,
.has-dropdown.open .nav-dropdown-trigger,
.has-dropdown.open .dropdown-chevron {
  color: #38bdf8;
}

.has-dropdown:hover .dropdown-chevron,
.has-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.states-mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 760px;
  max-width: 92vw;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.08);
  padding: 22px 24px 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1200;
}

/* Invisible hover bridge */
.states-mega-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.has-dropdown:hover .states-mega-dropdown,
.has-dropdown:focus-within .states-mega-dropdown,
.has-dropdown.open .states-mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.states-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 8px;
}

.state-drop-link {
  color: #1e293b !important;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none !important;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.12s ease;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.state-drop-link:hover {
  background-color: #f1f5f9;
  color: #ef4444 !important;
  transform: translateX(2px);
}

.states-dropdown-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.states-dropdown-footer-info {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.states-dropdown-all-link {
  color: #0284c7 !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.states-dropdown-all-link:hover {
  color: #0369a1 !important;
  text-decoration: underline !important;
}

@media (min-width: 900px) and (max-width: 1120px) {
  .states-mega-dropdown {
    width: 680px;
    left: -140px;
    transform: translateY(8px);
  }
  .has-dropdown:hover .states-mega-dropdown,
  .has-dropdown:focus-within .states-mega-dropdown,
  .has-dropdown.open .states-mega-dropdown {
    transform: translateY(0);
  }
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
}

@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0f172a;
  border-bottom: 2px solid var(--emergency-red);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  padding: 12px 20px 18px;
}

.mobile-nav-drawer.active {
  display: block;
}

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

.mobile-nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-links a {
  display: block;
  padding: 10px 4px;
  color: #f1f5f9;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.mobile-nav-links a:hover {
  color: #38bdf8;
}

/* Mobile States Accordion */
.mobile-has-sub {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-sub-trigger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-sub-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #38bdf8;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.mobile-sub-toggle-btn svg {
  transition: transform 0.2s ease;
}

.mobile-sub-toggle-btn.active svg {
  transform: rotate(180deg);
}

.mobile-sub-drawer {
  display: none;
  max-height: 280px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  margin: 6px 0 10px;
}

.mobile-sub-drawer.active {
  display: block;
}

.mobile-states-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 8px;
}

.mobile-state-link {
  color: #cbd5e1 !important;
  font-size: 0.8125rem !important;
  padding: 5px 6px !important;
  text-decoration: none !important;
  border-radius: 4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-state-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8 !important;
}

/* Breadcrumbs */
.breadcrumb-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-2) 0;
  font-size: var(--font-size-xs);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: var(--space-2);
  align-items: center;
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--text-muted);
}

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

.breadcrumb-list a:hover {
  color: var(--brand-accent);
}

.breadcrumb-list li[aria-current="page"] {
  color: var(--brand-navy);
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-slate) 100%);
  color: var(--text-inverse);
  padding: var(--space-8) 0 var(--space-10) 0;
}

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

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* Hero 2-Pill Badges (FurnaceRepairPros Reference Model) */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 10px;
  width: fit-content;
}

.pulse-indicator {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.pulse-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #ef4444;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

.pulse-core {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #e2e8f0;
  margin-bottom: 14px;
  width: fit-content;
}

.hero-title .highlight {
  color: #ef4444;
}

.hero-tag {
  display: inline-block;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid var(--emergency-red);
  color: #fca5a5;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  letter-spacing: -0.5px;
}

@media (min-width: 600px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: var(--space-6);
}

.hero-cta-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  align-items: center;
}

.btn-emergency-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--emergency-red);
  color: var(--text-inverse) !important;
  text-decoration: none !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
  min-height: 42px;
  width: fit-content;
}

.btn-emergency-call:hover {
  background: var(--emergency-red-hover);
  transform: translateY(-2px);
}

.hero-shutoff-link {
  display: inline-block;
  font-size: var(--font-size-sm);
  color: #38bdf8;
  font-weight: 600;
}

/* Hero Media Frame & Badge (FurnaceRepairPros Reference Model) */
.hero-media {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-card-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 540px;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 65px -15px rgba(0, 0, 0, 0.65), 0 0 40px rgba(220, 38, 38, 0.2);
  background: #071526;
}

.hero-main-img {
  width: 100%;
  height: 380px;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card-frame:hover .hero-main-img {
  transform: scale(1.03);
}

.hero-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 38, 0.05), rgba(7, 21, 38, 0.3) 60%, rgba(7, 21, 38, 0.85));
  pointer-events: none;
}

.hero-same-day-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(7, 21, 38, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.hero-same-day-badge .badge-icon {
  color: #ef4444;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .hero-main-img {
    height: 250px;
  }
  .hero-same-day-badge {
    bottom: 0.85rem;
    left: 0.85rem;
    font-size: 0.78rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Dispatch Hero Form */
.dispatch-card {
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--emergency-red);
}

.dispatch-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--brand-navy);
}

.dispatch-card p.form-desc {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-3);
}

.form-group label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--brand-navy);
}

.form-control {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.btn-submit-dispatch {
  width: 100%;
  background: var(--brand-navy);
  color: var(--text-inverse);
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 48px;
  transition: background 0.15s ease;
}

.btn-submit-dispatch:hover {
  background: #0284c7;
}

.tcpa-consent {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: var(--space-2);
}

/* First 10 Minutes Emergency Strip */
.first-10-minutes-strip {
  background: #1e1b4b; /* Deep Indigo Navy */
  color: var(--text-inverse);
  padding: var(--space-6) 0;
  border-bottom: 1px solid #312e81;
}

.strip-header {
  text-align: center;
  margin-bottom: var(--space-4);
}

.strip-header h2 {
  font-size: 1.25rem;
  color: #fbbf24; /* Alert Amber */
  font-weight: 800;
}

.strip-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

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

@media (min-width: 960px) {
  .strip-steps-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.strip-step-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: var(--font-size-xs);
  line-height: 1.4;
}

.strip-step-box .step-badge {
  display: inline-block;
  background: #fbbf24;
  color: #1e1b4b;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

/* 4-Step Process Section */
.process-section {
  padding: var(--space-10) 0;
  background: var(--bg-surface);
}

.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8) auto;
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: var(--space-2);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: var(--font-size-base);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

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

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

.process-card {
  background: var(--bg-card);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.process-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.process-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--brand-navy);
}

.process-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Service Cards Grid */
.services-section {
  padding: var(--space-10) 0;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

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

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.service-card-img-wrap {
  width: 100%;
  height: 185px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.service-card:hover .service-card-img {
  transform: scale(1.04);
}

.service-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-icon {
  width: 36px;
  height: 36px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  margin-bottom: 14px;
}

.service-card-icon svg {
  width: 18px;
  height: 18px;
}

.service-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.service-card h3 a:hover {
  color: var(--emergency-red);
}

.service-card p {
  font-size: 0.8875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.service-card-meta,
.service-card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  margin-top: auto;
  font-size: var(--font-size-xs);
  color: var(--brand-navy);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-card-link {
  font-size: 0.8875rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease, gap 0.15s ease;
}

.service-card-link:hover {
  color: var(--emergency-red);
  gap: 7px;
}

/* State Coverage Directory Grid */
.coverage-section {
  padding: var(--space-10) 0;
  background: var(--bg-surface);
}

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

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

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

@media (min-width: 1024px) {
  .state-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.state-link-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--brand-navy);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.state-link-pill:hover {
  background: var(--brand-accent-light);
  border-color: var(--brand-accent);
  color: var(--brand-accent-hover);
}

.state-abbr {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 2px 4px;
  border-radius: 2px;
}

/* Tables (Cost & Comparisons) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: var(--space-4) 0 var(--space-6) 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

table.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  text-align: left;
}

table.cost-table th {
  background: var(--brand-navy);
  color: var(--text-inverse);
  padding: 12px 16px;
  font-weight: 700;
}

table.cost-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}

table.cost-table tr:nth-child(even) {
  background: var(--bg-surface);
}

/* FAQ Section */
.faq-section {
  padding: var(--space-10) 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  background: var(--bg-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: var(--bg-surface);
}

.faq-answer {
  padding: 0 16px 16px 16px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Article / Long-form Content Layout */
.article-layout {
  padding: var(--space-8) 0 var(--space-12) 0;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.article-content p {
  margin-bottom: var(--space-4);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.article-content ul, .article-content ol {
  margin-left: var(--space-6);
  margin-bottom: var(--space-6);
}

.article-content li {
  margin-bottom: var(--space-2);
}

.callout-box {
  background: var(--emergency-surface);
  border-left: 4px solid var(--emergency-red);
  padding: var(--space-4);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-6) 0;
}

.callout-box p {
  margin-bottom: 0;
  font-size: var(--font-size-sm);
  color: #991b1b;
  font-weight: 500;
}

/* Global Footer */
.site-footer {
  background: var(--brand-navy);
  color: #94a3b8;
  padding: var(--space-10) 0 var(--space-8) 0;
  border-top: 1px solid #1e293b;
  font-size: var(--font-size-xs);
}

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

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

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

.footer-col h4 {
  color: var(--text-inverse);
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-links a:hover {
  color: #38bdf8;
}

.referral-disclaimer-box {
  background: #1e293b;
  border: 1px solid #334155;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-top: var(--space-6);
  font-size: 0.75rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: var(--space-4);
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 600px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Mobile Sticky Action Bar */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--brand-navy);
  border-top: 2px solid var(--emergency-red);
  padding: 8px var(--space-4);
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-sticky);
  display: flex;
  gap: var(--space-2);
}

@media (min-width: 769px) {
  .sticky-bottom-bar {
    display: none;
  }
}

.btn-sticky-call {
  flex: 1;
  background: var(--emergency-red);
  color: var(--text-inverse) !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 12px;
  border-radius: var(--radius-sm);
  min-height: 48px;
}

/* 15 Educational Blogs & Diagnostic Resource Guides */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

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

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

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-accent);
}

.blog-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.blog-card h3, .blog-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--space-2);
  color: var(--brand-navy);
}

.blog-card h3 a, .blog-card h4 a {
  color: var(--brand-navy);
  text-decoration: none;
}

.blog-card h3 a:hover, .blog-card h4 a:hover {
  color: var(--emergency-red);
}

.blog-card p {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-4);
}

.blog-card-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.blog-card-link:hover {
  color: var(--emergency-red);
}

/* Local Unique Infrastructure & Technical Analysis Cards */
.tech-analysis-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.tech-analysis-card h3 {
  color: var(--brand-navy);
  margin-bottom: var(--space-3);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.risk-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.risk-critical { background: #fee2e2; color: #991b1b; }
.risk-high { background: #ffedd5; color: #9a3412; }
.risk-elevated { background: #fef3c7; color: #92400e; }
.risk-moderate { background: #e0f2fe; color: #075985; }

.diagnostic-box {
  background: #f8fafc;
  border-left: 4px solid var(--brand-accent);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Pricing Disclaimer Box */
.pricing-disclaimer-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
  font-size: var(--font-size-xs);
  line-height: 1.6;
  color: #1e3a8a;
}

.pricing-disclaimer-box p {
  margin: 0;
}

.pricing-disclaimer-box strong {
  color: #1e40af;
}

.pricing-disclaimer-box a {
  color: var(--emergency-red);
  font-weight: 700;
  text-decoration: underline;
}


