/* ==========================================================================
   Houston Water Damage - Design System
   Modern, professional, conversion-optimized
   ========================================================================== */

/* ---------- 1. Custom Properties ---------- */
:root {
  /* Brand Colors */
  --primary: #0F2942;
  --primary-light: #1A3A5C;
  --primary-dark: #0A1F33;
  --accent: #E11D2A;
  --accent-light: #FF3B47;
  --accent-dark: #B81620;
  --secondary: #2563EB;
  --secondary-light: #3B82F6;
  --success: #059669;
  --warning: #D97706;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --black: #000000;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-display: 'Inter', sans-serif;

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

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

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

  /* Shadow */
  --shadow-sm: 0 1px 2px 0 rgba(15, 41, 66, 0.05);
  --shadow: 0 1px 3px 0 rgba(15, 41, 66, 0.08), 0 1px 2px 0 rgba(15, 41, 66, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 41, 66, 0.08), 0 2px 4px -1px rgba(15, 41, 66, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 41, 66, 0.1), 0 4px 6px -2px rgba(15, 41, 66, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 41, 66, 0.1), 0 10px 10px -5px rgba(15, 41, 66, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(15, 41, 66, 0.25);

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 1080px;
  --header-height: 80px;
  --top-bar-height: 40px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary-light); }
button { background: none; border: none; cursor: pointer; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}
h1 { font-size: clamp(2rem, 5vw, var(--text-6xl)); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 4vw, var(--text-5xl)); }
h3 { font-size: clamp(1.5rem, 3vw, var(--text-3xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }
p { margin-bottom: var(--space-4); color: var(--gray-700); }
.lead { font-size: var(--text-lg); color: var(--gray-600); line-height: 1.7; }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-muted { color: var(--gray-500); }
.text-white { color: var(--white); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.section { padding: var(--space-24) 0; }
.section-sm { padding: var(--space-16) 0; }
.section-lg { padding: var(--space-32) 0; }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.85); }
.section-gray { background: var(--gray-50); }
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

/* ---------- 5. Top Emergency Bar ---------- */
.top-bar {
  background: var(--accent);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  height: var(--top-bar-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 60;
}
.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}
.top-bar-msg {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
}
.top-bar-msg svg { width: 18px; height: 18px; }
.pulse {
  width: 10px;
  height: 10px;
  background: var(--white);
  border-radius: 50%;
  position: relative;
  animation: pulse-ring 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  100% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}
@media (max-width: 640px) {
  .top-bar-msg { font-size: var(--text-xs); }
  .top-bar-msg span:last-child { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- 6. Header ---------- */
.header {
  background: var(--white);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--primary);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--primary); }
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.logo-icon svg { width: 24px; height: 24px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: var(--text-lg); }
.logo-text span { font-size: var(--text-xs); color: var(--gray-500); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav a {
  color: var(--gray-700);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  transition: all var(--transition);
}
.nav a:hover { background: var(--gray-100); color: var(--primary); }
.nav-has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a { display: block; padding: var(--space-3) var(--space-4); }

.header-cta { display: flex; align-items: center; gap: var(--space-3); }
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .mobile-toggle { display: flex; }
}

/* ---------- 7. Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: var(--white);
  z-index: 100;
  padding: var(--space-6);
  transition: right var(--transition);
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
}
.mobile-menu.active { right: 0; }
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 41, 66, 0.6);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-12); }
.mobile-menu nav a {
  padding: var(--space-4);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
}

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(225, 29, 42, 0.3);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(225, 29, 42, 0.4);
}
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--gray-200);
}
.btn-secondary:hover {
  background: var(--gray-50);
  color: var(--primary);
  border-color: var(--gray-300);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-ghost { color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); color: var(--primary); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); border-radius: var(--radius-md); }
.btn-xl { padding: var(--space-5) var(--space-10); font-size: var(--text-xl); border-radius: var(--radius-md); }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; }

.btn-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px 0 rgba(225, 29, 42, 0.3);
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 44px;
  text-decoration: none;
}
.btn-phone:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(225, 29, 42, 0.4);
}
.btn-phone:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px 0 rgba(225, 29, 42, 0.3);
}
.btn-phone svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.btn-phone-label {
  display: inline-block;
}
/* Pulsing ring around the phone button to draw attention */
.btn-phone::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: phone-ring 2.5s infinite;
  pointer-events: none;
}
.btn-phone {
  position: relative;
}
@keyframes phone-ring {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}
@media (max-width: 768px) {
  .btn-phone .btn-phone-label { display: none; }
  .btn-phone {
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    justify-content: center;
  }
  .btn-phone svg { width: 22px; height: 22px; }
}

/* ---------- 9. Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1E3A5F 100%);
  color: var(--white);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(225, 29, 42, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 40%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}
.hero-eyebrow .pulse { background: var(--accent); }
.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-6);
}
.hero h1 .accent-text {
  background: linear-gradient(120deg, var(--accent-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-8);
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-10);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
  font-weight: 600;
}
.trust-badge svg { width: 24px; height: 24px; color: var(--success); }

/* ---------- 10. Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}
.service-card-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--primary);
}
.service-card p {
  flex-grow: 1;
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
}
.service-card-link {
  margin-top: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent);
  font-weight: 600;
  font-size: var(--text-sm);
}
.service-card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.service-card:hover .service-card-link svg { transform: translateX(4px); }

/* ---------- 11. Section Headers ---------- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-16);
}
.section-header h2 { margin-bottom: var(--space-4); }
.section-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

/* ---------- 12. Urgency Section ---------- */
.urgency-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.urgency-card {
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.urgency-card h4 { color: var(--primary); margin-bottom: var(--space-2); font-size: var(--text-lg); }
.urgency-card-time {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.urgency-card p { font-size: var(--text-sm); color: var(--gray-600); margin: 0; }

/* ---------- 13. Process Timeline ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  counter-reset: step;
}
.process-step {
  background: var(--white);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  position: relative;
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -16px;
  left: var(--space-6);
  background: var(--accent);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.process-step h4 {
  color: var(--primary);
  font-size: var(--text-lg);
  margin: var(--space-3) 0 var(--space-3);
}
.process-step p { font-size: var(--text-sm); color: var(--gray-600); margin: 0; }

/* ---------- 14. Stats Section ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-6); }
.stat {
  text-align: center;
  padding: var(--space-6);
}
.stat-value {
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.04em;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--gray-300);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- 15. FAQ Accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { border-color: var(--gray-300); }
.faq-question {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  cursor: pointer;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 50%;
  color: var(--primary);
  transition: all var(--transition);
}
.faq-item.active .faq-icon {
  background: var(--accent);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.faq-item.active .faq-answer { max-height: 600px; }
.faq-answer-content {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--gray-600);
  line-height: 1.7;
}
.faq-answer-content p:last-child { margin-bottom: 0; }
.faq-answer-content a { color: var(--accent); font-weight: 500; }

/* ---------- 16. Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-6); }
.testimonial-card {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-stars {
  display: flex;
  gap: var(--space-1);
  color: var(--warning);
  margin-bottom: var(--space-4);
}
.testimonial-stars svg { width: 20px; height: 20px; fill: currentColor; }
.testimonial-quote {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  flex-grow: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-100);
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.testimonial-meta strong { display: block; color: var(--primary); font-size: var(--text-base); }
.testimonial-meta span { display: block; font-size: var(--text-sm); color: var(--gray-500); }

/* ---------- 17. Insurance Section ---------- */
.insurance-section {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.insurance-content { display: grid; grid-template-columns: 1fr; gap: var(--space-12); align-items: center; }
@media (min-width: 992px) {
  .insurance-content { grid-template-columns: 1.2fr 1fr; }
}
.insurance-features { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }
.insurance-feature { display: flex; gap: var(--space-3); align-items: flex-start; }
.insurance-feature-icon {
  width: 32px;
  height: 32px;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.insurance-feature-icon svg { width: 18px; height: 18px; }
.insurance-feature strong { display: block; color: var(--primary); margin-bottom: var(--space-1); }
.insurance-feature p { font-size: var(--text-sm); color: var(--gray-600); margin: 0; }
.carrier-logos {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.carrier-logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.carrier-logo {
  background: var(--gray-50);
  padding: var(--space-4);
  border-radius: var(--radius);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

/* ---------- 18. Areas We Serve ---------- */
.areas-section {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary) 100%);
  color: var(--white);
}
.areas-section h2, .areas-section h3 { color: var(--white); }
.areas-categories { display: grid; grid-template-columns: 1fr; gap: var(--space-8); margin-top: var(--space-12); }
@media (min-width: 768px) {
  .areas-categories { grid-template-columns: repeat(3, 1fr); }
}
.areas-category h3 {
  font-size: var(--text-lg);
  color: var(--accent-light);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.areas-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.areas-list a {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  display: block;
  transition: all var(--transition);
}
.areas-list a:hover { color: var(--accent-light); transform: translateX(4px); }

/* ---------- 19. Final CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(15, 41, 66, 0.2) 0%, transparent 50%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: var(--space-4); }
.cta-section p { color: rgba(255,255,255,0.9); font-size: var(--text-lg); max-width: 640px; margin: 0 auto var(--space-8); }
.cta-section .btn-secondary { background: var(--white); color: var(--accent); border-color: var(--white); }
.cta-section .btn-secondary:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.cta-section .btn-outline { color: var(--white); border-color: var(--white); }
.cta-section .btn-outline:hover { background: var(--white); color: var(--accent); }
.cta-phone-display {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.cta-phone-display a { color: var(--white); }

/* ---------- 20. Local Context Section ---------- */
.local-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); margin-top: var(--space-8); }
.event-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.event-year { font-size: var(--text-lg); font-weight: 800; color: var(--accent-light); margin-bottom: var(--space-2); }
.event-name { font-size: var(--text-base); font-weight: 600; color: var(--white); margin-bottom: var(--space-1); }
.event-stats { font-size: var(--text-sm); color: rgba(255,255,255,0.7); }

/* ---------- 21. Footer ---------- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-20) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer h4 { color: var(--white); font-size: var(--text-base); margin-bottom: var(--space-4); }
.footer-about p { font-size: var(--text-sm); color: var(--gray-400); margin-bottom: var(--space-5); }
.footer-contact-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}
.footer-contact-item svg { width: 18px; height: 18px; color: var(--accent-light); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: var(--gray-300); }
.footer-contact-item a:hover { color: var(--white); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a { color: var(--gray-400); font-size: var(--text-sm); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--gray-500);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}
.footer-cert {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.cert-badge {
  background: rgba(255,255,255,0.05);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-300);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ---------- 22. Breadcrumb ---------- */
.breadcrumb {
  background: var(--gray-50);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--gray-200);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  font-size: var(--text-sm);
}
.breadcrumb-list a { color: var(--gray-600); }
.breadcrumb-list a:hover { color: var(--accent); }
.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-2);
  color: var(--gray-400);
}
.breadcrumb-list li:last-child { color: var(--primary); font-weight: 600; }

/* ---------- 23. Page Hero (sub-pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(225, 29, 42, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.12) 0%, transparent 40%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.page-hero h1 { color: var(--white); margin-bottom: var(--space-5); }
.page-hero .lead { color: rgba(255,255,255,0.9); margin-bottom: var(--space-8); }

/* ---------- 24. Prose / Article Content ---------- */
.prose {
  max-width: 820px;
  margin: 0 auto;
}
.prose h2 { margin-top: var(--space-12); margin-bottom: var(--space-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-8); margin-bottom: var(--space-3); color: var(--primary); }
.prose p { font-size: var(--text-lg); line-height: 1.75; color: var(--gray-700); margin-bottom: var(--space-5); }
.prose ul, .prose ol { margin-bottom: var(--space-6); padding-left: var(--space-6); }
.prose li { font-size: var(--text-lg); line-height: 1.75; color: var(--gray-700); margin-bottom: var(--space-2); }
.prose a { color: var(--accent); font-weight: 500; border-bottom: 1px solid transparent; transition: border-color var(--transition); }
.prose a:hover { border-color: var(--accent); }
.prose strong { color: var(--primary); font-weight: 700; }

.prose-callout {
  background: var(--gray-50);
  border-left: 4px solid var(--secondary);
  padding: var(--space-6);
  border-radius: var(--radius);
  margin: var(--space-8) 0;
}
.prose-callout p:last-child { margin-bottom: 0; }

/* ---------- 25. Service Hub - Sub-services List ---------- */
.sub-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
.sub-service-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: all var(--transition);
}
.sub-service-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.sub-service-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sub-service-icon svg { width: 20px; height: 20px; }
.sub-service-item h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
  color: var(--primary);
}
.sub-service-item p { font-size: var(--text-sm); color: var(--gray-600); margin: 0; }

/* ---------- 26. ZIP Codes / Sub-areas Box ---------- */
.zip-box {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-8) 0;
}
.zip-box h4 { color: var(--primary); margin-bottom: var(--space-3); }
.zip-codes { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.zip-code {
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
}

/* ---------- 27. Form ---------- */
.form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label { font-size: var(--text-sm); font-weight: 600; color: var(--gray-700); }
.form-field input, .form-field textarea, .form-field select {
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: var(--text-base);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { min-height: 120px; resize: vertical; }

/* ---------- 28. Sticky Mobile CTA Bar ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: var(--space-3) var(--space-4);
  z-index: 40;
  box-shadow: 0 -4px 12px rgba(15, 41, 66, 0.1);
  gap: var(--space-2);
}
@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 80px; }
}

/* ---------- 29. Animations on Scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 30. Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.no-scroll { overflow: hidden; }

/* ---------- 31. Print ---------- */
@media print {
  .header, .footer, .mobile-cta-bar, .top-bar, .hero-cta, .btn { display: none; }
  body { color: black; background: white; }
}

/* ---------- 32. Service Page Rich Sections (Added in upgrade) ---------- */

/* Deliverables list (check-list with custom marker) */
.deliverables-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-3) var(--space-5);
}
.deliverables-list li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}
.deliverables-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: var(--space-2);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Testimonial block on dark navy background */
.bg-navy {
  background: linear-gradient(135deg, #0F2942 0%, #1E3A5F 100%);
  color: #fff;
}
.bg-navy h2, .bg-navy h3 {
  color: #fff;
}
.testimonial-block {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}
.quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  margin-bottom: var(--space-3);
}
.testimonial-block blockquote {
  font-size: 1.35rem;
  line-height: 1.7;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 var(--space-5);
  border: none;
  padding: 0;
}
.testimonial-block cite {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  font-style: normal;
}

/* Pricing band — high-contrast accent strip */
.pricing-band {
  background: linear-gradient(135deg, var(--accent) 0%, #C81825 100%);
  color: #fff;
  padding: var(--space-8) 0;
}
.pricing-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.pricing-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.pricing-text h2 {
  color: #fff;
  margin: 0 0 var(--space-2);
  font-size: 1.75rem;
}
.pricing-text p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.65;
}
@media (max-width: 768px) {
  .pricing-content { grid-template-columns: 1fr; text-align: center; }
  .pricing-icon { margin: 0 auto; }
}

/* Response time banner */
.response-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-6);
  background: #fff;
  border-radius: 12px;
  border-left: 6px solid var(--accent);
  box-shadow: 0 4px 16px rgba(15, 41, 66, 0.08);
}
.response-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.75rem;
  flex-shrink: 0;
}
.response-text h3 {
  margin: 0 0 var(--space-1);
  color: var(--primary);
  font-size: 1.25rem;
}
.response-text p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}
@media (max-width: 768px) {
  .response-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .response-icon { margin: 0 auto; }
}

/* Section header pattern */
.section-header {
  text-align: center;
  margin-bottom: var(--space-7);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.section-header .section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.section-header h2 {
  margin: 0;
}


/* ========================================================
   MOBILE HEADER ROBUSTNESS FIXES (Audit batch O5)
   - Prevent logo text overflow on narrow viewports
   - Reliable circular phone button on mobile
   - Top-bar message single-line ellipsis
   - Header padding/spacing
   ======================================================== */

/* Strong mobile rules for narrow viewports (down to 320px) */
@media (max-width: 768px) {
  .container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
  
  /* Header reorganization */
  .header-content {
    gap: var(--space-2);
    overflow: hidden;
  }
  
  /* Logo: prevent text from overflowing */
  .logo {
    flex: 1;
    min-width: 0; /* allow text-overflow ellipsis */
    gap: var(--space-2);
  }
  .logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .logo-icon svg { width: 20px; height: 20px; }
  .logo-text {
    min-width: 0;
    overflow: hidden;
  }
  .logo-text strong {
    font-size: var(--text-base);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .logo-text span {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  
  /* Header CTA shrink */
  .header-cta {
    gap: var(--space-2);
    flex-shrink: 0;
  }
  
  /* Phone button: circular icon-only, force 44px */
  .btn-phone {
    padding: 0 !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    justify-content: center !important;
    flex-shrink: 0;
  }
  .btn-phone .btn-phone-label { display: none !important; }
  .btn-phone svg { width: 22px; height: 22px; }
  
  /* Mobile toggle: fixed size */
  .mobile-toggle {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  
  /* Top bar: ellipsis on overflow */
  .top-bar {
    height: 36px;
    font-size: 12px;
  }
  .top-bar-msg {
    font-size: 12px;
    overflow: hidden;
    width: 100%;
    justify-content: center;
  }
  .top-bar-msg span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 30px);
  }
  .top-bar-msg svg { width: 14px; height: 14px; flex-shrink: 0; }
  
  /* Hide pulse on very narrow mobile to save space */
  .top-bar .pulse {
    width: 6px;
    height: 6px;
  }
}

/* Extra-narrow viewports (320-380px) */
@media (max-width: 380px) {
  .logo-text span { display: none; }  /* hide "IICRC Member · Since 2007" subtitle */
  .logo-text strong { font-size: var(--text-sm); }
  .logo-icon { width: 32px; height: 32px; }
  .logo-icon svg { width: 18px; height: 18px; }
  .top-bar-msg span:last-child { font-size: 11px; }
}

/* Prevent any leftover phone text from causing layout issues */
.top-bar a[href^="tel:"]:not(.btn-phone) {
  display: none !important;
}

/* Make sure parent-callout doesn't break on mobile */
@media (max-width: 640px) {
  #parent-callout .container {
    flex-direction: column;
    align-items: flex-start !important;
  }
  #parent-callout a {
    align-self: flex-end;
  }
}


/* ===================================================================
   PROFESSIONAL IMAGE SECTION (added for SEO + UX)
   =================================================================== */
.page-image-section {
  padding: var(--space-6) 0;
  background: var(--white);
}
.page-image-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 41, 66, 0.08);
  background: var(--gray-100);
}
.page-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.page-image-figure:hover .page-image {
  transform: scale(1.02);
}
.page-image-caption {
  padding: var(--space-3) var(--space-4);
  color: var(--gray-600);
  font-size: var(--text-sm);
  font-style: italic;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  text-align: center;
}
@media (max-width: 768px) {
  .page-image-section { padding: var(--space-4) 0; }
  .page-image { max-height: 300px; }
  .page-image-caption { font-size: var(--text-xs); padding: var(--space-2) var(--space-3); }
}
