/* ==========================================================================
   RIALTO PRECISION LEAK DETECTION — HIGH PERFORMANCE MODERN STYLESHEET
   Mobile-First, Core Web Vitals Optimized, Rich Animations & Micro-Interactions
   ========================================================================== */

:root {
  --primary-navy: #0a192f;
  --secondary-navy: #112240;
  --tertiary-navy: #233554;
  --accent-cyan: #00d2ff;
  --accent-cyan-glow: rgba(0, 210, 255, 0.4);
  --accent-blue: #0070f3;
  --emergency-orange: #ff5722;
  --emergency-orange-hover: #e64a19;
  --warning-amber: #ffb300;
  --success-green: #00e676;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --bg-body: #ffffff;
  --bg-slate: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 25px -5px rgba(10, 25, 47, 0.08), 0 8px 10px -6px rgba(10, 25, 47, 0.04);
  --shadow-hover: 0 20px 35px -5px rgba(0, 112, 243, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* Space for mobile sticky CTA */
}

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

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. TOP EMERGENCY STATUS TICKER
   ========================================================================== */
.top-status-bar {
  background-color: var(--primary-navy);
  color: var(--text-light);
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-status-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-dot-pulse {
  width: 9px;
  height: 9px;
  background-color: var(--success-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0, 230, 118, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
  }
}

.status-badge {
  background-color: var(--emergency-orange);
  color: white;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.status-text {
  color: #94a3b8;
}

.status-text strong {
  color: white;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.spanish-toggle {
  color: var(--warning-amber);
  font-weight: 600;
  font-size: 12px;
}

.top-phone-link {
  color: var(--accent-cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-phone-link:hover {
  color: white;
}

/* ==========================================================================
   2. SITE HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 112, 243, 0.3);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.2;
}

.brand-name span {
  color: var(--accent-blue);
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
  }
}

.nav-item {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-item:hover {
  color: var(--accent-blue);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: width 0.25s ease;
}

.nav-item:hover::after {
  width: 100%;
}

.nav-cta-mobile {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-call-urgent {
  position: relative;
  background-color: var(--emergency-orange);
  color: white;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
  transition: var(--transition-fast);
}

.btn-call-urgent:hover {
  background-color: var(--emergency-orange-hover);
  transform: translateY(-1px);
}

.btn-primary {
  display: none;
  background-color: var(--primary-navy);
  color: white;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--tertiary-navy);
  transition: var(--transition-fast);
}

@media (min-width: 768px) {
  .btn-primary {
    display: inline-block;
  }
}

.btn-primary:hover {
  background-color: var(--secondary-navy);
  border-color: var(--accent-blue);
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

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

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--primary-navy);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile Nav Menu Drawer */
@media (max-width: 991px) {
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 2px solid var(--accent-blue);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  .nav-cta-mobile {
    display: block;
    background-color: var(--primary-navy);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
  }
}

/* ==========================================================================
   3. HERO SECTION WITH DYNAMIC COUNTER & ACOUSTIC SCANNER
   ========================================================================= */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #1e3a5f 0%, var(--primary-navy) 70%);
  color: white;
  padding: 60px 0 70px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2300d2ff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 50px;
  }
}

.hero-kicker-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.license-tag {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

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

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

.hero-title em {
  font-style: normal;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.hero-title-sub {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 8px;
  line-height: 1.3;
}

.hero-desc {
  font-size: 16.5px;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 35px;
}

@media (min-width: 576px) {
  .hero-cta-group {
    flex-direction: row;
    align-items: center;
  }
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--emergency-orange), #ff7849);
  color: white;
  padding: 15px 28px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(255, 87, 34, 0.35);
  transition: var(--transition-normal);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 87, 34, 0.5);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 15px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.hero-trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

@media (min-width: 576px) {
  .hero-trust-badges {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 600;
}

.trust-icon {
  width: 22px;
  height: 22px;
  background-color: rgba(0, 230, 118, 0.15);
  color: var(--success-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

/* ==========================================================================
   INTERACTIVE ACOUSTIC RADAR & LIVE COUNTER WIDGET
   ========================================================================= */
.hero-interactive-card {
  background: rgba(17, 34, 64, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 210, 255, 0.1);
  position: relative;
}

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

.radar-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radar-beacon {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
}

.radar-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
}

.freq-readout {
  font-size: 11.5px;
  font-family: monospace;
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

/* Radar Graphic */
.radar-viewport {
  position: relative;
  width: 100%;
  height: 200px;
  background: #050e1c;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 210, 255, 0.2);
  overflow: hidden;
  margin-bottom: 20px;
}

.radar-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(0, 210, 255, 0.25);
}

.circle-1 { width: 60px; height: 60px; }
.circle-2 { width: 120px; height: 120px; }
.circle-3 { width: 180px; height: 180px; }

.radar-crosshair-x {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 210, 255, 0.15);
}

.radar-crosshair-y {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 210, 255, 0.15);
}

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform-origin: top left;
  background: conic-gradient(from 0deg, rgba(0, 210, 255, 0.4) 0deg, rgba(0, 210, 255, 0) 60deg);
  border-radius: 0 0 100% 0;
  animation: radarRotate 3.5s linear infinite;
}

@keyframes radarRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.radar-leak-ping {
  position: absolute;
  top: 36%;
  left: 64%;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pingFlicker 2s infinite ease-in-out;
}

.ping-circle {
  width: 12px;
  height: 12px;
  background-color: var(--emergency-orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--emergency-orange);
}

.ping-label {
  background: rgba(255, 87, 34, 0.9);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

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

/* Big Animated Counter Display */
.hero-counter-container {
  background: rgba(10, 25, 47, 0.7);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.counter-display {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.counter-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.counter-number-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.hero-big-number {
  font-family: var(--font-heading);
  font-size: 58px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.counter-symbol {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.counter-sub {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}

.counter-secondary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
}

.counter-sec-item {
  display: flex;
  flex-direction: column;
}

.sec-number {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.sec-label {
  font-size: 11px;
  color: #94a3b8;
}

.counter-divider {
  width: 1px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.1);
}

.radar-card-footer {
  margin-top: 14px;
}

.pulse-slider-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #94a3b8;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success-green);
}

/* ==========================================================================
   4. CRITICAL TRIAGE STRIP
   ========================================================================= */
.critical-triage-strip {
  background-color: #f1f5f9;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
}

.triage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.triage-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.triage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.triage-emergency::before { background-color: var(--emergency-orange); }
.triage-gas::before { background-color: var(--warning-amber); }
.triage-water::before { background-color: var(--accent-blue); }

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

.triage-icon-wrap {
  font-size: 28px;
  margin-bottom: 12px;
}

.triage-head {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.triage-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.triage-btn {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.triage-btn:hover {
  color: var(--emergency-orange);
}

/* ==========================================================================
   5. COMPREHENSIVE SERVICES GRID
   ========================================================================= */
.services-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.section-header {
  max-width: 780px;
  margin: 0 auto 50px;
}

.text-center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-blue);
  text-transform: uppercase;
  background-color: #e0f2fe;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.section-tag-light {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  background-color: rgba(0, 210, 255, 0.15);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

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

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

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

.service-card {
  background-color: var(--bg-slate);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-normal);
}

.service-card:hover {
  background-color: #ffffff;
  border-color: var(--accent-blue);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.service-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background-color: #e2e8f0;
  color: var(--primary-navy);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  background: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 20px;
}

.service-card:hover .service-icon-box {
  background: var(--accent-blue);
  color: white;
}

.service-name {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.service-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  border-top: 1px dashed var(--border-medium);
  padding-top: 16px;
  margin-bottom: 22px;
}

.service-features li {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 7px;
  position: relative;
  padding-left: 18px;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 800;
  font-size: 12px;
}

.service-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.service-link:hover {
  color: var(--emergency-orange);
  gap: 12px;
}

/* ==========================================================================
   6. INTERACTIVE LEAK DIAGNOSTIC CALCULATOR
   ========================================================================= */
.diagnostic-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #152c4e 100%);
  color: white;
}

.diagnostic-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  background: rgba(17, 34, 64, 0.7);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 35px 25px;
  backdrop-filter: blur(10px);
}

@media (min-width: 992px) {
  .diagnostic-wrapper {
    grid-template-columns: 0.95fr 1.05fr;
    padding: 50px 40px;
    align-items: center;
  }
}

.diagnostic-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.diagnostic-desc {
  font-size: 15.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 28px;
}

.calc-status-box {
  background: rgba(10, 25, 47, 0.85);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.risk-meter-bar {
  height: 12px;
  background: #1e293b;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.risk-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success-green), var(--warning-amber), var(--emergency-orange));
  border-radius: 6px;
  transition: width 0.5s ease;
}

.risk-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 12px;
}

.risk-result {
  font-size: 14.5px;
  color: #f1f5f9;
}

.risk-result strong {
  color: var(--accent-cyan);
}

.checker-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #ffffff;
}

.symptom-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.symptom-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.symptom-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
}

.symptom-check {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--emergency-orange);
  cursor: pointer;
}

.symptom-text {
  font-size: 14px;
  color: #e2e8f0;
}

.symptom-text strong {
  color: #ffffff;
}

.diagnostic-action-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 576px) {
  .diagnostic-action-wrap {
    flex-direction: row;
    align-items: center;
  }
}

.btn-calculate {
  background-color: var(--accent-blue);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-calculate:hover {
  background-color: #0056b3;
}

.btn-urgent-call-diag {
  background-color: var(--emergency-orange);
  color: white;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   7. LOCAL AUTHORITY & RIALTO GEOLOGY
   ========================================================================= */
.local-authority-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.authority-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .authority-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.authority-para {
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 30px;
}

.authority-factors {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.factor-card {
  display: flex;
  gap: 18px;
  background-color: var(--bg-slate);
  padding: 22px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-blue);
}

.factor-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--accent-blue);
  line-height: 1;
}

.factor-text h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.factor-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.authority-sidebar .sidebar-box {
  background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
  color: white;
  padding: 35px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.sidebar-box h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.sidebar-box p {
  font-size: 14.5px;
  color: #94a3b8;
  margin-bottom: 24px;
  line-height: 1.6;
}

.tech-comparison {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.compare-row {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 12px;
  border-radius: var(--radius-sm);
}

.compare-row.bad {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.compare-row.good {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.compare-x {
  color: #ef4444;
  font-weight: 900;
  font-size: 16px;
}

.compare-check {
  color: #10b981;
  font-weight: 900;
  font-size: 16px;
}

.guarantee-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #f1f5f9;
}

.badge-star {
  color: var(--warning-amber);
  font-size: 16px;
}

.btn-sidebar-call {
  display: block;
  text-align: center;
  background-color: var(--emergency-orange);
  color: white;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 14.5px;
  transition: var(--transition-fast);
}

.btn-sidebar-call:hover {
  background-color: var(--emergency-orange-hover);
}

/* ==========================================================================
   8. 4-STEP PROCESS TIMELINE
   ========================================================================= */
.process-section {
  padding: 80px 0;
  background-color: var(--bg-slate);
}

.process-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

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

.process-step {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px 22px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  position: relative;
  transition: var(--transition-normal);
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-card);
}

.step-circle {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-navy), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 18px;
  box-shadow: 0 4px 10px rgba(0, 112, 243, 0.25);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   9. LOCATIONS & NEIGHBORHOODS
   ========================================================================= */
.locations-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

.location-card {
  background: var(--bg-slate);
  border-radius: var(--radius-lg);
  padding: 35px 28px;
  border: 1px solid var(--border-light);
}

.location-card.featured {
  background: linear-gradient(135deg, #ffffff, #f0f7ff);
  border: 2px solid var(--accent-blue);
  box-shadow: var(--shadow-card);
}

.loc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-blue);
  margin-bottom: 14px;
}

.loc-head h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-navy);
}

.loc-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.6;
}

.neighborhood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.ntag {
  background: white;
  border: 1px solid var(--border-medium);
  color: var(--primary-navy);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  box-shadow: var(--shadow-subtle);
}

.loc-dispatch-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #065f46;
  background-color: #d1fae5;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
}

.pulse-green {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
}

.city-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.city-item {
  font-size: 13.5px;
  color: var(--text-secondary);
  background: white;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.city-item strong {
  color: var(--primary-navy);
}

/* ==========================================================================
   10. REVIEWS & TESTIMONIALS
   ========================================================================= */
.reviews-section {
  padding: 80px 0;
  background-color: var(--bg-slate);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.review-card {
  background: white;
  padding: 30px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

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

.review-stars {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
  font-style: italic;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.reviewer-name {
  display: block;
  font-size: 14px;
  color: var(--primary-navy);
}

.reviewer-loc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   11. FAQ ACCORDION
   ========================================================================= */
.faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.faq-container {
  max-width: 900px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-slate);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--accent-blue);
  background-color: #ffffff;
  box-shadow: var(--shadow-subtle);
}

.faq-question {
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}

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

.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--accent-blue);
  transition: transform 0.2s ease;
}

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

.faq-answer {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   12. CONTACT & FREE ESTIMATE BOOKING FORM
   ========================================================================= */
.contact-section {
  padding: 80px 0;
  background-color: #0b1a30;
  color: white;
}

.contact-card-wrapper {
  background: #112240;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 210, 255, 0.2);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 992px) {
  .contact-card-wrapper {
    grid-template-columns: 1fr 1.15fr;
  }
}

.contact-left {
  padding: 40px 30px;
  background: radial-gradient(circle at 10% 20%, #1e3a5f 0%, #112240 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .contact-left {
    padding: 50px 40px;
  }
}

.contact-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 15.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 30px;
}

.direct-contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-icon {
  font-size: 22px;
}

.info-label {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-val {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

a.info-val {
  color: var(--accent-cyan);
}

.guarantee-box {
  background: rgba(0, 210, 255, 0.08);
  border: 1px dashed rgba(0, 210, 255, 0.3);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: #cbd5e1;
}

.contact-right {
  padding: 40px 30px;
  background-color: #ffffff;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .contact-right {
    padding: 50px 40px;
  }
}

.form-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 24px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-primary);
  background-color: #ffffff;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.15);
}

.btn-submit-form {
  background: linear-gradient(135deg, var(--accent-blue), #0056b3);
  color: white;
  border: none;
  padding: 15px 24px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 112, 243, 0.3);
  transition: var(--transition-normal);
  margin-top: 6px;
}

.btn-submit-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 112, 243, 0.4);
}

.form-feedback {
  display: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
}

.form-feedback.success {
  background-color: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================= */
.site-footer {
  background-color: var(--primary-navy);
  color: #94a3b8;
  font-size: 14px;
  padding-top: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-brand svg {
  color: var(--accent-cyan);
}

.footer-about {
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-license {
  font-size: 12px;
  color: #64748b;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

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

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

.footer-contact-line {
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-contact-line strong {
  color: #ffffff;
}

.footer-contact-line a {
  color: var(--accent-cyan);
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

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

.footer-legal-links {
  display: flex;
  gap: 18px;
}

.footer-legal-links a:hover {
  color: white;
}

/* ==========================================================================
   14. MOBILE STICKY FLOATING CTA BAR
   ========================================================================= */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #ffffff;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  z-index: 999;
  border-top: 1px solid var(--border-light);
}

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

.mobile-sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
}

.mobile-sticky-btn.call {
  background-color: var(--emergency-orange);
  color: white;
}

.mobile-sticky-btn.book {
  background-color: var(--primary-navy);
  color: white;
}
