/* ═══════════════════════════════════════════════════════════
   VA PLUMBING CO. - CUSTOM CORPORATE TRUST DESIGN SYSTEM
   Vanilla CSS - High-Performance, Professional Light Theme
   Colors: Royal Blue & Scarlet Red (Hot & Cold Classic)
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Root Variable Definitions & Theme Setup ── */
:root {
  /* Color Palette (Royal Navy Blue & Scarlet Red) */
  --primary-dark: #0F172A;      /* Slate Black */
  --primary: #1E3A8A;           /* Royal Blue (Clean Water & Trust) */
  --primary-light: #2563EB;     /* Electric Blue */
  
  --accent: #DC2626;            /* Scarlet Red-Orange (Hot Water & 24/7 Urgency) */
  --accent-hover: #B91C1C;      /* Darker Red */
  --accent-light: #FEF2F2;      /* Soft Scarlet Tint */
  --secondary: #0D9488;         /* Teal (Flow & Drainage) */
  --secondary-light: #F0FDFA;
  
  --bg-light: #F8FAFC;          /* Clean Blue-Gray Light */
  --bg-cream: #FAF9F6;          /* Reassuring Alabaster Cream */
  --bg-white: #FFFFFF;
  
  --text-dark: #0F172A;         /* Charcoal Slate */
  --text-muted: #475569;        /* Medium Slate (Body copy) */
  --text-light: #64748B;        /* Light Slate */
  --border-color: #E2E8F0;      /* Clean solid gray borders */

  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
  --shadow-accent: 0 10px 24px rgba(220, 38, 38, 0.2);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

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

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

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

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

/* ── 3. Layout Grid & Container Utilities ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

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

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

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* Display & Spacing */
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mt-4 { margin-top: 16px; }
.hidden { display: none; }

@media (min-width: 768px) {
  .md-flex { display: flex; }
  .md-grid { display: grid; }
  .md-hidden { display: none; }
}

@media (min-width: 1024px) {
  .lg-flex { display: flex; }
  .lg-grid { display: grid; }
  .lg-block { display: block; }
  .lg-hidden { display: none; }
}

/* ── 4. Main Component Styles ── */

/* Sticky Header */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.top-strip {
  background-color: var(--primary);
  color: var(--bg-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-strip a {
  color: var(--white);
}

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

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
  text-transform: uppercase;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-light);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-light);
}

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

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 220px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
  color: var(--text-dark);
}

.nav-dropdown-menu a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* Mobile Nav Trigger */
.mobile-nav-toggle {
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-dark);
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Navigation Overlay Menu */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background-color: var(--bg-white);
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.mobile-drawer-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-drawer-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 32px 24px;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-drawer-links a {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.mobile-drawer-links .submenu {
  padding-left: 16px;
  margin-top: 12px;
  border-left: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer-links .submenu a {
  font-size: 14px;
  text-transform: none;
  font-weight: 600;
  color: var(--text-light);
}

.mobile-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-light);
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--bg-white);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.45);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Pulsing effect for Scarlet Red CTA */
@keyframes pulse-scarlet {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(220, 38, 38, 0);
  }
}

.pulsate-scarlet {
  animation: pulse-scarlet 2s infinite;
}

/* ── 5. Page Sections & Layout components ── */

/* Centered Redesigned Hero Section with Background Overlay */
.hero {
  position: relative;
  background-color: var(--primary-dark);
  background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--bg-light);
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.hero-content {
  display: block;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 750;
  color: #F87171; /* Faded light red */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.5; }
}

.hero-title {
  font-size: 38px;
  font-weight: 850;
  color: var(--bg-white);
  line-height: 1.15;
  margin-bottom: 24px;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 52px;
  }
}

.hero-title span {
  color: #F87171; /* Faded red-pink highlight */
}

.hero-desc {
  color: #E2E8F0;
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Call Trigger Card in Hero - Centered */
.hero-cta-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  max-width: 600px;
  margin: 0 auto 32px auto;
}

@media (min-width: 640px) {
  .hero-cta-card {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

.hero-cta-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.hero-cta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-cta-icon {
  width: 54px;
  height: 54px;
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.hero-cta-info {
  display: flex;
  flex-direction: column;
}

.hero-cta-tagline {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.hero-cta-phone {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  color: var(--primary-dark);
}

.hero-cta-badge {
  background-color: var(--accent);
  color: var(--bg-white);
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 11px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-accent);
}

/* Centered Trust checklist */
.hero-checklist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-checklist-item i {
  color: #F87171;
  font-size: 15px;
}

/* Certification & Trust Bar */
.cert-bar {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.cert-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cert-badge {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 750;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-badge i {
  color: var(--accent);
}

.cert-brands {
  display: flex;
  gap: 32px;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--text-light);
  letter-spacing: 0.12em;
}

/* Service Card Grid (12 Cards with Placeholders) */
.service-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 58, 138, 0.2);
}

.image-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #E2E8F0 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  gap: 12px;
  position: relative;
}

.image-placeholder i {
  font-size: 48px;
  color: var(--primary);
}

.image-placeholder span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.service-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.service-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.service-bullet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.service-bullet i {
  color: var(--primary);
  font-size: 14px;
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.service-meta {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
}

.service-link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-link:hover {
  color: var(--accent-hover);
}

/* Geological Hazard Matrix */
.hazard-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

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

.hazard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.hazard-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.hazard-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.hazard-badge.high {
  background-color: #FEF3C7; /* Soft Amber */
  color: #D97706;
  border: 1px solid #F59E0B;
}

.hazard-badge.extreme {
  background-color: #FEE2E2; /* Soft Red */
  color: #EF4444;
  border: 1px solid #F87171;
}

.hazard-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.hazard-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hazard-solution {
  background-color: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  border-left: 3px solid var(--accent);
}

.hazard-sol-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.hazard-sol-desc {
  font-size: 11.5px;
  color: var(--text-dark);
  line-height: 1.5;
}

/* Light Estimator Box */
.estimator-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 840px;
  margin: 0 auto;
}

.estimator-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .estimator-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition-fast);
}

.form-select:focus {
  border-color: var(--accent);
  background-color: var(--bg-white);
}

.estimator-output {
  background-color: var(--primary-dark);
  border-radius: var(--radius-md);
  padding: 32px;
  color: var(--bg-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.estimator-price-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.estimator-price-range {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--bg-white);
  margin-bottom: 6px;
}

.estimator-price-desc {
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.review-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

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

.stars {
  color: #F59E0B; /* Amber star */
  font-size: 16px;
  margin-bottom: 12px;
}

.review-quote {
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 20px;
}

.review-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-author {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.review-loc {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--primary-dark);
  cursor: pointer;
}

.faq-icon {
  font-size: 18px;
  color: var(--accent);
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer-inner {
  padding: 0 24px 18px 24px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Redesigned Emergency CTA Banner with Background Overlay */
.emergency-banner {
  background-color: var(--primary-dark);
  background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('/assets/images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--bg-light);
  padding: 90px 0;
  text-align: center;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer Section */
.footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 80px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin-bottom: 60px;
}

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

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--bg-white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-light);
}

.footer-lic {
  font-size: 11px;
  color: #475569;
  line-height: 1.5;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--bg-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-form {
  display: flex;
  gap: 8px;
}

.footer-input {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--bg-white);
  font-size: 12px;
  flex-grow: 1;
}

.footer-input:focus {
  border-color: var(--accent);
}

.footer-btn {
  background-color: var(--accent);
  color: var(--bg-white);
  font-weight: 800;
  font-size: 11px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  cursor: pointer;
}

.footer-btn:hover {
  background-color: var(--accent-hover);
}

.footer-nap {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.footer-nap strong {
  color: var(--bg-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
  color: #475569;
}

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

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

/* Floating Action Button (FAB) */
.fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.fab-label {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  font-size: 11px;
  font-weight: 750;
  font-family: var(--font-display);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
}

.fab-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: var(--accent);
  color: var(--bg-white);
  box-shadow: var(--shadow-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.fab-btn:hover {
  transform: scale(1.05);
  background-color: var(--accent-hover);
}

.fab-ping {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background-color: var(--accent);
  opacity: 0.4;
  animation: ping-outer 2s infinite;
  pointer-events: none;
}

@keyframes ping-outer {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.max-w-xl { max-width: 600px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.uppercase { text-transform: uppercase; }
.w-full { width: 100%; }
.italic { font-style: italic; }
.bg-white { background-color: var(--bg-white); }
.bg-cream { background-color: var(--bg-cream); }
.bg-primary { background-color: var(--primary); }
.bg-slate { background-color: #F8FAFC; }
.text-white { color: var(--bg-white); }
.text-accent { color: var(--accent); }
.font-black { font-weight: 900; }
.font-bold { font-weight: 700; }
.border-t { border-top: 1px solid var(--border-color); }
.border-y { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

/* ── 6. Mobile Responsiveness & Overflow Adjustments ── */
@media (max-width: 768px) {
  /* Reduce outer page section spacing */
  .py-20 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  .py-24 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  .py-16 {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  /* Prevent side cutoffs on small mobile screens */
  .container {
    padding: 0 16px !important;
  }

  /* Make sure wide tables scroll on mobile instead of clipping */
  table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Reduce inline paddings on cards to fit smaller mobile widths */
  div[style*="padding: 32px"], 
  div[style*="padding: 32px;"],
  .estimator-box,
  .estimator-output {
    padding: 20px !important;
  }

  /* Reduce bento cards padding and layout issues */
  div[style*="padding: 32px"][style*="display: flex"] {
    padding: 20px !important;
    gap: 16px !important;
  }

  /* Form spacing adjustments */
  .grid {
    gap: 16px !important;
  }

  /* Hero title scale down for small viewports to prevent wrapping issues */
  .hero-title {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }

  .city-hero h1 {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }

  /* Header mobile adjustments */
  .top-strip {
    font-size: 9px !important;
  }
  .top-strip .container {
    flex-direction: column !important;
    gap: 4px !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  /* Extra support for tiny screens (e.g. iPhone SE) */
  .hero-cta-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 16px !important;
    gap: 12px !important;
  }
  .hero-cta-left {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }
  .hero-cta-phone {
    font-size: 22px !important;
  }
  
  .font-display {
    word-break: break-word !important;
  }
  
  /* City hero adjustments */
  .phone-card {
    padding: 16px 20px !important;
  }
  .phone-card a {
    font-size: 24px !important;
  }
}

