/* ==========================================================================
   SLABLEAKREPAIR.WORK - MASTER PRODUCTION DESIGN SYSTEM
   Theme: Midnight Navy (#101F35), Deep Teal (#147D89), Warm Orange (#E8A66C),
   Dark Slate (#0A1524), Warm Ivory (#F8F9FA).
   Typography: Plus Jakarta Sans / Inter
   ========================================================================== */

:root {
  --navy: #101F35;
  --navy-dark: #0A1524;
  --navy-light: #1A3152;
  --teal: #147D89;
  --teal-dark: #0E5C66;
  --teal-light: #EBF5F6;
  --teal-tint: #D4EDEF;
  --orange: #E8A66C;
  --orange-hover: #D79255;
  --ivory: #F8F9FA;
  --mist-blue: #DCE7E8;
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-w: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 36px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 25px rgba(20, 125, 137, 0.4);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #FFFFFF;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER & TOPBAR
   ========================================================================== */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #EEF2F6;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo-brand img {
  height: 44px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
}

.nav-item a {
  color: #334155;
  transition: color 0.15s ease;
}

.nav-item:hover > a, .nav-item.active > a {
  color: var(--teal);
}

.dropdown-icon {
  width: 14px;
  height: 14px;
  color: #64748B;
  transition: transform 0.2s ease;
}

.nav-item:hover .dropdown-icon {
  transform: rotate(180deg);
  color: var(--teal);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

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

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155 !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-link:hover {
  background-color: var(--teal-light);
  color: var(--teal) !important;
}

.dropdown-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #E2E8F0;
  color: #475569;
}

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

.btn-header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--navy) !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(232, 166, 108, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.btn-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--navy);
}

/* ==========================================================================
   MOBILE NAV DRAWER
   ========================================================================== */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16, 31, 53, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 2100;
  box-shadow: 5px 0 25px rgba(0,0,0,0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-nav-backdrop.is-open .mobile-drawer {
  transform: translateX(320px);
}

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

.mobile-drawer-header img {
  height: 36px;
}

.mobile-drawer-close {
  font-size: 28px;
  line-height: 1;
  padding: 4px;
  color: var(--navy);
}

.mobile-drawer-body {
  padding: 16px 0;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-link {
  display: block;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid #F1F5F9;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--teal);
  background: var(--teal-light);
}

/* ==========================================================================
   HERO SECTION - HIGH-RES BACKGROUND & 3D PLUMBING NETWORK MAP
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(13, 26, 45, 0.95) 0%, rgba(16, 31, 53, 0.9) 55%, rgba(21, 42, 71, 0.95) 100%);
  color: #FFFFFF;
  overflow: hidden;
  padding: 64px 0 76px 0;
}

/* Ultra high-res hero background image (1376x768 crisp photography) */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/hero-house-hq.jpg');
  background-size: cover;
  background-position: center left;
  opacity: 0.28;
  pointer-events: none;
  filter: contrast(1.2) brightness(0.95);
  mix-blend-mode: luminosity;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-title span {
  color: var(--orange);
}

.hero-desc {
  font-size: 1.12rem;
  line-height: 1.6;
  color: #CBD5E1;
  max-width: 530px;
  margin-bottom: 32px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  font-size: 0.85rem;
  color: #CBD5E1;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-badge-item svg {
  color: #38BDF8;
  width: 16px;
  height: 16px;
}

/* Search Form */
.hero-search-wrapper {
  position: relative;
  max-width: 530px;
}

.hero-search-form {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.4);
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.hero-search-form:focus-within {
  border-color: var(--teal);
  box-shadow: 0 14px 40px rgba(20, 125, 137, 0.45);
}

.hero-search-icon {
  width: 20px;
  height: 20px;
  color: var(--teal);
  margin-right: 12px;
  flex-shrink: 0;
}

.hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--navy);
  outline: none;
  min-width: 0;
}

.hero-search-input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.hero-search-btn {
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.hero-search-btn:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

/* Search Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1500;
  display: none;
  border: 1px solid var(--border);
}

.search-results-dropdown.is-active {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--navy);
  transition: background-color 0.15s ease;
}

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

.search-item:hover, .search-item.highlighted {
  background-color: var(--teal-light);
  color: var(--teal);
}

.search-item-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.search-item-state {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  background: #E2E8F0;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.search-no-results {
  padding: 18px;
  text-align: center;
  color: #64748B;
  font-size: 0.9rem;
}

/* ==========================================================================
   3D PLUMBING USA MAP CARD
   ========================================================================== */
.hero-map-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-3d-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: #0B1626;
}

.map-3d-image {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

.map-3d-card:hover .map-3d-image {
  transform: scale(1.04);
}

.map-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 25;
  transition: transform 0.2s ease;
}

.map-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

.hotspot-pin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #38BDF8 20%, #147D89 70%);
  box-shadow: 0 0 16px #38BDF8, inset 0 0 8px #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-pin 2s infinite ease-in-out;
  border: 2px solid #FFFFFF;
}

.hotspot-pin svg {
  width: 16px;
  height: 16px;
  color: #FFFFFF;
}

.hotspot-label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  border: 1px solid var(--teal);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.map-hotspot:hover .hotspot-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

@keyframes pulse-pin {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.map-3d-stat-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(16, 31, 53, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 30;
}

.map-3d-stat-badge .num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #38BDF8;
  line-height: 1;
}

.map-3d-stat-badge .lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  display: block;
}

.map-3d-stat-badge .sub {
  font-size: 0.68rem;
  color: #94A3B8;
  display: block;
}

.map-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 14px;
  width: 100%;
  padding-right: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #CBD5E1;
  font-weight: 500;
}

.legend-dot.active {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--teal);
  box-shadow: 0 0 10px #38BDF8;
}

.legend-dot.future {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #CBD5E1;
}

/* ==========================================================================
   VALUE PROPOSITION STRIP
   ========================================================================== */
.value-strip {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.value-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.value-item:not(:last-child) {
  border-right: 1px solid var(--border);
  padding-right: 16px;
}

.value-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-icon-box svg {
  width: 22px;
  height: 22px;
}

.value-text h3 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.value-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   WHAT IS A SLAB LEAK SECTION
   ========================================================================== */
.section-slab-leak-intro {
  padding: 72px 0;
  background-color: #FFFFFF;
}

.slab-leak-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.intro-image-container {
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-left: -24px;
}

.intro-image-container img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.intro-text-col {
  padding: 0 8px;
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.intro-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}

.intro-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 24px;
}

.btn-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.btn-learn-more:hover {
  background: var(--teal);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.signs-box-card {
  background: var(--teal-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--mist-blue);
}

.signs-box-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}

.signs-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signs-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 500;
}

.signs-checklist li svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   PRIMARY SECTION: SPECIALIZED SERVICES
   (Replaces Browse States with high-converting diagnostic services)
   ========================================================================== */
.section-services {
  padding: 80px 0;
  background-color: #F8FAFC;
  border-top: 1px solid var(--border);
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.services-header h2 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 6px;
  margin-bottom: 8px;
}

.services-header p {
  color: #64748B;
  font-size: 1.05rem;
  max-width: 600px;
}

.services-grid-row,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.service-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  margin-bottom: 8px;
}

.service-card-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 0.92rem;
  color: #64748B;
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.service-card-link {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s ease;
}

.service-card:hover .service-card-link {
  color: var(--teal-dark);
  gap: 10px;
}

/* ==========================================================================
   FOUNDATION RISK SECTION
   ========================================================================== */
.section-foundation-risk {
  padding: 80px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
}

.risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.risk-visual-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.risk-visual-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.risk-floating-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(16, 31, 53, 0.92);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 340px;
}

.risk-floating-badge strong {
  color: var(--orange);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 4px;
}

.risk-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
}

.risk-step-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #F8FAFC;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.risk-step-card:hover {
  transform: translateX(4px);
  border-color: var(--teal);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.5;
}

/* ==========================================================================
   ADVANCED DIAGNOSTICS SECTION
   ========================================================================== */
.section-diagnostics {
  padding: 80px 0;
  background: #F8FAFC;
  border-top: 1px solid var(--border);
}

.diagnostics-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px auto;
}

.diagnostics-header h2 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 8px;
  margin-bottom: 12px;
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.diag-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.diag-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.diag-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.diag-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.diag-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  margin-bottom: 8px;
}

.diag-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.diag-body p {
  font-size: 0.92rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ==========================================================================
   COMPARISON MATRIX
   ========================================================================== */
.section-comparison {
  padding: 80px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
}

.comparison-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

.comparison-header h2 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 8px;
  margin-bottom: 12px;
}

.comparison-table-wrapper {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--navy);
  color: #FFFFFF;
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  color: #334155;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background-color: #F8FAFC;
}

.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-tag.recommended {
  background: #DCFCE7;
  color: #15803D;
}

.badge-tag.moderate {
  background: #FEF3C7;
  color: #B45309;
}

.badge-tag.invasive {
  background: #FEE2E2;
  color: #B91C1C;
}

/* ==========================================================================
   EDUCATIONAL GUIDES SECTION
   ========================================================================== */
.section-guides {
  padding: 76px 0;
  background-color: #F8FAFC;
  border-top: 1px solid var(--border);
}

.guides-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px auto;
}

.guides-header h2 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 8px;
  margin-bottom: 12px;
}

.guides-header p {
  color: #64748B;
  font-size: 1.05rem;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.guide-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.guide-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.guide-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--teal);
  margin-bottom: 8px;
}

.guide-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
}

.guide-card-desc {
  font-size: 0.92rem;
  color: #64748B;
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.section-faq {
  padding: 76px 0;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border);
}

.faq-container {
  max-width: 880px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 44px;
}

.faq-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 8px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.is-open {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

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

.faq-question:hover {
  color: var(--teal);
}

.faq-toggle-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: var(--teal);
  flex-shrink: 0;
}

.faq-item.is-open .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px 24px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ==========================================================================
   FINAL CTA BANNER
   ========================================================================== */
.section-cta-banner {
  position: relative;
  background-color: var(--navy);
  color: #FFFFFF;
  padding: 56px 0;
  overflow: hidden;
}

.section-cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-image: url('../images/footer-house-banner.jpg');
  background-size: cover;
  background-position: center right;
  opacity: 0.22;
  pointer-events: none;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  gap: 32px;
}

.cta-banner-content h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  margin-top: 4px;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.cta-banner-content p {
  color: #CBD5E1;
  font-size: 1.05rem;
}

.cta-banner-btn {
  background: var(--orange);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(232, 166, 108, 0.3);
}

.cta-banner-btn:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 166, 108, 0.4);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--navy-dark);
  color: #94A3B8;
  padding: 64px 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-col p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94A3B8;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: #94A3B8;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748B;
}

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

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   INNER DIRECTORY PAGES
   ========================================================================== */
.page-header {
  background-color: var(--navy);
  color: #FFFFFF;
  padding: 56px 0 48px 0;
  position: relative;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94A3B8;
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: #CBD5E1;
}

.breadcrumbs a:hover {
  color: #FFFFFF;
}

.breadcrumbs span.current {
  color: var(--orange);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1.15rem;
  color: #CBD5E1;
  max-width: 720px;
  line-height: 1.6;
}

.state-cities-section {
  padding: 60px 0 80px 0;
  background-color: #F8FAFC;
}

.state-cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.city-dir-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.city-dir-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.city-dir-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.city-dir-card .sub-tag {
  font-size: 0.78rem;
  color: #64748B;
  font-family: monospace;
  margin-bottom: 16px;
  word-break: break-all;
}

.btn-visit-subdomain {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-light);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.city-dir-card:hover .btn-visit-subdomain {
  background: var(--teal);
  color: #FFFFFF;
}

/* Article Prose */
.article-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 64px 24px;
}

.article-prose {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #334155;
}

.article-prose p {
  margin-bottom: 24px;
}

.article-prose h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy);
  margin: 40px 0 16px 0;
}

.article-prose h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px 0;
}

.article-prose ul, .article-prose ol {
  margin: 0 0 24px 24px;
}

.article-prose li {
  margin-bottom: 8px;
}

.article-prose blockquote {
  border-left: 4px solid var(--teal);
  padding: 16px 20px;
  background: var(--teal-light);
  margin: 28px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--navy);
}

.article-img-box {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-img-box img {
  width: 100%;
  height: auto;
}

.article-img-caption {
  font-size: 0.85rem;
  color: #64748B;
  text-align: center;
  padding: 8px;
  background: #F1F5F9;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .risk-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .services-grid-row,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .diag-grid {
    grid-template-columns: 1fr;
  }
  .value-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .value-item:nth-child(2) {
    border-right: none;
  }
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .slab-leak-intro-grid {
    grid-template-columns: 1fr 1fr;
  }
  .signs-box-card {
    grid-column: span 2;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .btn-header-call {
    display: inline-flex;
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .btn-mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .services-grid-row,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .value-strip-grid {
    grid-template-columns: 1fr;
  }
  .value-item {
    border-right: none !important;
  }
  .slab-leak-intro-grid {
    grid-template-columns: 1fr;
  }
  .signs-box-card {
    grid-column: span 1;
  }
  .intro-image-container {
    margin-left: 0;
    border-radius: var(--radius-lg);
  }
  .guides-grid {
    grid-template-columns: 1fr;
  }
  .state-cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .services-grid-row,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .state-cities-grid {
    grid-template-columns: 1fr;
  }
  .hero-search-form {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 12px;
    gap: 12px;
  }
  .hero-search-btn {
    width: 100%;
    justify-content: center;
  }
}
/* ==========================================================================
   EDITORIAL & SERVICE GUIDE LAYOUT (2-COLUMN EDITORIAL + SIDEBAR)
   ========================================================================== */
.guide-editorial-wrapper {
  padding: 64px 0 88px 0;
  background: #FFFFFF;
}

.guide-layout-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 56px;
  align-items: flex-start;
}

.article-main-content {
  min-width: 0;
}

.article-meta-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 20px;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 32px;
  font-size: 0.88rem;
  color: #64748B;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.article-prose {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #334155;
}

.article-prose p {
  margin-bottom: 24px;
}

.article-prose h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy);
  margin: 48px 0 18px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--teal-light);
  line-height: 1.25;
}

.article-prose h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 14px 0;
}

.article-prose ul, .article-prose ol {
  margin: 0 0 28px 24px;
}

.article-prose li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.article-prose blockquote {
  border-left: 4px solid var(--teal);
  padding: 20px 24px;
  background: var(--teal-light);
  margin: 36px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.7;
}

.article-feature-callout {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px;
  margin: 36px 0;
}

.article-feature-callout h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.article-feature-callout p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #475569;
}

.article-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-spec-table th {
  background: var(--navy);
  color: #FFFFFF;
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
}

.article-spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: #334155;
}

.article-spec-table tr:last-child td {
  border-bottom: none;
}

.article-spec-table tr:hover td {
  background: #F8FAFC;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.guide-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-light);
}

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

.sidebar-links li a {
  font-size: 0.92rem;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s ease, transform 0.15s ease;
  font-weight: 500;
}

.sidebar-links li a:hover {
  color: var(--teal);
  transform: translateX(3px);
}

.sidebar-cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #173256 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.1);
}

.sidebar-cta-box h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.sidebar-cta-box p {
  color: #CBD5E1;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.sidebar-cta-btn {
  background: var(--orange);
  color: var(--navy) !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  display: block;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(232, 166, 108, 0.35);
}

.sidebar-cta-btn:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

@media (max-width: 992px) {
  .guide-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .guide-sidebar {
    position: static;
  }
}
