/* ==========================================================================
   Leak Detection Spanish Fork — Custom Visual Design System
   Theme: Wasatch Hydro-Acoustic & Thermal Precision
   ========================================================================== */

:root {
  --bg-midnight: #071322;
  --bg-navy: #0C1F35;
  --bg-navy-light: #132D4A;
  --bg-surface: #F3F7FB;
  --bg-surface-alt: #EBF2F9;
  --bg-white: #FFFFFF;

  --primary: #0277BD;
  --primary-dark: #01579B;
  --primary-light: #E1F5FE;
  --cyan: #00B4D8;
  --cyan-glow: rgba(0, 180, 216, 0.22);

  --thermal: #EA580C;
  --thermal-hover: #C2410C;
  --thermal-soft: #FFF7ED;

  --pi-green: #15803D;
  --pi-green-soft: #DCFCE7;

  --text-dark: #0F172A;
  --text-body: #263445;
  --text-muted: #526377;
  --text-light: #F8FAFC;
  --text-slate: #CBD5E1;

  --border-color: #D8E3EE;
  --border-strong: #B8C9DC;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(7, 19, 34, 0.05);
  --shadow-md: 0 10px 28px rgba(7, 19, 34, 0.08);
  --shadow-lg: 0 20px 44px rgba(7, 19, 34, 0.14);

  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --container-max: 1240px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-white);
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--thermal);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   1. Top Announcement Bar
   ========================================================================== */
.top-bar {
  background-color: var(--bg-midnight);
  color: var(--text-slate);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 180, 216, 0.14);
  color: #7DD3FC;
  border: 1px solid rgba(0, 180, 216, 0.3);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.top-pill-pi {
  background: rgba(21, 128, 61, 0.22);
  color: #86EFAC;
  border-color: rgba(134, 239, 172, 0.3);
}

.top-bar-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
}

.top-bar-phone:hover {
  color: #FDBA74;
}

/* ==========================================================================
   2. Main Header & Mega-Menu Navigation (No About/Contact in Header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 31, 53, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 180, 216, 0.24);
  box-shadow: 0 6px 24px rgba(7, 19, 34, 0.25);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 54px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  color: #F1F5F9;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link {
  background: rgba(255, 255, 255, 0.08);
  color: #38BDF8;
}

.nav-caret {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-caret {
  transform: rotate(180deg);
}

/* Mega Menu Dropdowns */
.mega-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 820px;
  max-width: 92vw;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--cyan);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1100;
}

.mega-menu-areas {
  width: 680px;
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mega-header-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--bg-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mega-hub-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.mega-hub-link:hover {
  color: var(--thermal);
}

.mega-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.mega-grid-2 {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
}

.mega-col-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--primary-light);
}

.mega-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mega-links a {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
}

.mega-links a:hover {
  background: var(--bg-surface);
  color: var(--thermal);
  padding-left: 0.7rem;
}

.mega-links a.mega-parent-link {
  font-weight: 700;
  color: var(--bg-navy);
}

.mega-towns-subgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 0.75rem;
  list-style: none;
}

.mega-towns-subgrid a {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 0.28rem 0.45rem;
  border-radius: 5px;
}

.mega-towns-subgrid a:hover {
  background: var(--bg-surface);
  color: var(--thermal);
}

/* Header Action CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--thermal) 0%, #D9460F 100%);
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.94rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.38);
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: linear-gradient(135deg, var(--thermal-hover) 0%, #9A3412 100%);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle & Drawer */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-drawer {
  display: none;
  background: var(--bg-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  max-height: 82vh;
  overflow-y: auto;
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-nav-group {
  margin-bottom: 1.25rem;
}

.mobile-nav-heading {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38BDF8;
  margin-bottom: 0.5rem;
}

.mobile-nav-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.mobile-nav-links a {
  display: block;
  color: #E2E8F0;
  font-size: 0.88rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 5px;
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background:
    radial-gradient(circle at 82% 22%, rgba(0, 180, 216, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 18% 85%, rgba(234, 88, 12, 0.12) 0%, transparent 40%),
    linear-gradient(160deg, var(--bg-midnight) 0%, var(--bg-navy) 65%, #112A46 100%);
  color: var(--text-light);
  padding: 3.25rem 0 4rem;
  border-bottom: 4px solid var(--cyan);
  overflow: hidden;
}

.breadcrumb-nav {
  margin-bottom: 1.25rem;
  font-size: 0.86rem;
  color: #94A3B8;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb-list a {
  color: #38BDF8;
  font-weight: 600;
}

.breadcrumb-list a:hover {
  color: #FDBA74;
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #64748B;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7DD3FC;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--thermal);
  box-shadow: 0 0 8px var(--thermal);
}

.hero-h1 {
  font-size: clamp(2.05rem, 3.6vw, 3.05rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.18rem;
  color: #E2E8F0;
  font-weight: 500;
  margin-bottom: 1.25rem;
  max-width: 640px;
}

.hero-trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: #F8FAFC;
}

.hero-trust-icon {
  color: #38BDF8;
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.9rem 1.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--thermal) 0%, #D9460F 100%);
  color: #FFFFFF !important;
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--thermal-hover) 0%, #9A3412 100%);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF !important;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
}

.hero-call-note {
  font-size: 0.9rem;
  color: #94A3B8;
  font-weight: 500;
}

/* Hero Right Media Card */
.hero-media-card {
  position: relative;
  background: var(--bg-navy-light);
  border: 2px solid rgba(0, 180, 216, 0.38);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
}

.hero-media-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  background: rgba(7, 19, 34, 0.92);
  border-top: 1px solid rgba(0, 180, 216, 0.25);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #7DD3FC;
}

.telemetry-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.telemetry-status {
  color: #86EFAC;
  font-weight: 700;
}

/* ==========================================================================
   4. Content Sections, Typography & Answer-First Box
   ========================================================================== */
.content-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}

.content-section.bg-alt {
  background-color: var(--bg-surface);
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.55rem;
}

.section-h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 800;
  color: var(--bg-navy);
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
}

.prose p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 1.1rem;
  max-width: 85ch;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(2, 119, 189, 0.35);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--thermal);
  text-decoration-color: var(--thermal);
}

/* Answer-First Voice Search Box */
.answer-first-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 100%);
  border: 1px solid #BAE6FD;
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.65rem 1.85rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.answer-first-box .hero-intro {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--bg-navy);
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

/* Bold-Led Diagnostic List Cards */
.diagnostic-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.15rem;
  margin: 1.35rem 0;
}

.diagnostic-list li {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.98rem;
  line-height: 1.6;
}

.content-section.bg-alt .diagnostic-list li {
  background: var(--bg-white);
}

.diagnostic-list li strong:first-child {
  display: block;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--bg-navy);
  margin-bottom: 0.35rem;
}

/* Standard Check/Bullet List */
.standard-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 1.15rem 0;
}

.standard-list li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.97rem;
}

.content-section.bg-alt .standard-list li {
  background: var(--bg-white);
}

.standard-list li::before {
  content: "✓";
  position: absolute;
  left: 0.85rem;
  top: 0.75rem;
  color: var(--primary);
  font-weight: 900;
}

/* Subtopic H3 Blocks inside Content Sections */
.subtopic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.35rem;
  margin-top: 1.35rem;
}

.subtopic-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.45rem;
  box-shadow: var(--shadow-sm);
}

.subtopic-h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--bg-navy);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subtopic-h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--thermal);
  flex-shrink: 0;
}

/* ==========================================================================
   5. Semantic Data Tables
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  text-align: left;
  font-size: 0.96rem;
}

.data-table thead {
  background: var(--bg-navy);
  color: #FFFFFF;
}

.data-table th {
  padding: 1rem 1.2rem;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--cyan);
}

.data-table td {
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-body);
  vertical-align: top;
}

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

.data-table tbody tr:hover {
  background-color: #E0F2FE;
}

.data-table td:first-child {
  font-weight: 700;
  color: var(--bg-navy);
}

/* ==========================================================================
   6. Card Systems (.svc-card, .loc-card, .job-showcase-card)
   ========================================================================== */

/* 6.1 Service Directory Cards (.svc-card) */
.svc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

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

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan);
}

.svc-card-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-navy);
  aspect-ratio: 16 / 9;
}

.svc-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.svc-card-num {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--bg-midnight);
  color: #38BDF8;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.svc-card-cat {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(12, 31, 53, 0.88);
  color: #F8FAFC;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.svc-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.svc-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.svc-card-title a {
  color: var(--bg-navy);
  text-decoration: none;
}

.svc-card-title a:hover {
  color: var(--thermal);
}

.svc-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.15rem;
  flex-grow: 1;
}

.svc-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none !important;
}

.svc-card-link::after {
  content: "→";
  font-weight: 900;
  transition: transform 0.2s ease;
}

.svc-card:hover .svc-card-link {
  color: var(--thermal);
}

.svc-card:hover .svc-card-link::after {
  transform: translateX(4px);
}

/* 6.2 Location / Service Area Cards (.loc-card) — Visually Distinct */
.loc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

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

.loc-card:hover {
  transform: translateY(-4px);
  border-color: var(--pi-green);
  box-shadow: var(--shadow-md);
}

.loc-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-midnight);
}

.loc-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loc-region-badge {
  position: absolute;
  bottom: 0.7rem;
  left: 0.7rem;
  background: var(--pi-green);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.24rem 0.65rem;
  border-radius: 4px;
}

.loc-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.loc-card-title {
  font-size: 1.16rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.loc-pin-icon {
  color: var(--thermal);
  flex-shrink: 0;
}

.loc-card-title a {
  color: var(--bg-navy);
  text-decoration: none;
}

.loc-card-title a:hover {
  color: var(--pi-green);
}

.loc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.loc-tag {
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--bg-surface-alt);
  color: var(--primary-dark);
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
}

.loc-card-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.58;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}

.loc-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--bg-navy);
  text-decoration: none !important;
}

.loc-card:hover .loc-card-link {
  background: var(--pi-green);
  color: #FFFFFF;
}

/* 6.3 Before & After Job Showcase Cards (.job-showcase-card) */
.job-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.job-showcase-card {
  background: var(--bg-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.job-ba-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--bg-midnight);
}

.job-ba-slot {
  position: relative;
}

.job-ba-slot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ba-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  color: #FFFFFF;
}

.ba-badge-before {
  background: #DC2626;
}

.ba-badge-after {
  background: var(--pi-green);
}

.job-showcase-body {
  padding: 1.35rem;
}

/* ==========================================================================
   7. Interactive FAQ Accordion (.faq-accordion)
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

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

.faq-q {
  margin: 0;
  font-size: 1.08rem;
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--bg-navy);
  cursor: pointer;
}

.faq-btn:hover {
  background: var(--bg-surface);
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--thermal);
  color: #FFFFFF;
}

.faq-a {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-body);
  font-size: 0.99rem;
  line-height: 1.65;
  border-top: 1px solid var(--bg-surface-alt);
}

.faq-item:not(.is-open) .faq-a {
  display: none;
}

/* ==========================================================================
   8. Final CTA Block & E-E-A-T Author/Specialist Card
   ========================================================================== */
.final-cta-section {
  padding: 4rem 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 180, 216, 0.2) 0%, transparent 45%),
    linear-gradient(145deg, var(--bg-midnight) 0%, var(--bg-navy) 100%);
  color: #FFFFFF;
}

.final-cta-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 1.75rem;
}

.final-cta-box .section-h2 {
  color: #FFFFFF;
}

.final-cta-box p {
  color: #E2E8F0;
  font-size: 1.08rem;
  margin-bottom: 1rem;
}

.final-cta-box a:not(.btn) {
  color: #7DD3FC;
  font-weight: 700;
  text-decoration: underline;
}

.final-cta-box ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.final-cta-box li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: #F8FAFC;
}

/* E-E-A-T Reviewer Card */
.eeat-card {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  background: rgba(7, 19, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  color: #CBD5E1;
  font-size: 0.92rem;
}

.eeat-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 180, 216, 0.18);
  color: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eeat-card p {
  margin-bottom: 0.35rem;
}

.eeat-card p:last-child {
  margin-bottom: 0;
  color: #94A3B8;
  font-size: 0.86rem;
}

.eeat-card a {
  color: #38BDF8;
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   9. Local Google Map Embed Section (.map-section)
   ========================================================================== */
.map-section {
  padding: 3.5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.map-frame-wrapper {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  background: #E2E8F0;
}

.map-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   10. Contact Form & Visual <canvas> CAPTCHA (/contact/ only)
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.25rem;
  align-items: start;
  margin-top: 1.5rem;
}

.contact-form-card,
.nap-consistency-card {
  background: var(--bg-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bg-navy);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.78rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--text-dark);
  background: var(--bg-white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 119, 189, 0.15);
}

/* Visual Canvas CAPTCHA Widget */
.captcha-box {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.captcha-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.captcha-label {
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--bg-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.captcha-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#captchaCanvas {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #0F2537;
}

.captcha-refresh-btn {
  background: var(--bg-white);
  border: 1px solid var(--border-strong);
  color: var(--bg-navy);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.captcha-refresh-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  display: none;
}

.form-status.is-error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.form-status.is-success {
  display: block;
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

/* NAP Consistency List */
.nap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.nap-list li {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.nap-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.nap-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-navy);
}

/* ==========================================================================
   11. Global Footer & Sticky Mobile Action Bar
   ========================================================================== */
.site-footer {
  background: var(--bg-midnight);
  color: var(--text-slate);
  padding: 4rem 0 2.5rem;
  border-top: 4px solid var(--thermal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 0.9fr;
  gap: 2.25rem;
  margin-bottom: 2.75rem;
}

.footer-brand-desc {
  font-size: 0.92rem;
  color: #94A3B8;
  margin: 1rem 0 1.25rem;
  line-height: 1.6;
}

.footer-nap-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  font-size: 0.88rem;
}

.footer-nap-card p {
  margin-bottom: 0.4rem;
}

.footer-nap-card a {
  color: #38BDF8;
  font-weight: 800;
}

.footer-col-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  margin-bottom: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid rgba(0, 180, 216, 0.35);
}

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

.footer-links a {
  color: #CBD5E1;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #38BDF8;
  padding-left: 4px;
}

.footer-disclosure-bar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #94A3B8;
}

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

/* Sticky Mobile Action Bar (<= 820px) */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: var(--bg-midnight);
  border-top: 2px solid var(--cyan);
  padding: 0.55rem 0.75rem;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.4);
}

.sticky-mobile-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
}

.sticky-btn-call {
  background: var(--thermal);
  color: #FFFFFF !important;
}

.sticky-btn-quote {
  background: var(--primary);
  color: #FFFFFF !important;
}

/* ==========================================================================
   12. AEO Sticky "ON THIS PAGE" Sidebar, Skip Link & Site Search Modal
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--thermal);
  color: #FFFFFF !important;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
}

.page-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
}

.page-aside {
  position: sticky;
  top: 96px;
}

.aside-inner {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.aside-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.45rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-color);
}

.aside-inner a:not(.btn) {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 0.38rem 0.55rem;
  border-radius: 6px;
  line-height: 1.35;
  transition: var(--transition);
}

.aside-inner a:not(.btn):hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 0.8rem;
}

.aside-inner .btn {
  margin-top: 0.65rem;
  width: 100%;
  font-size: 0.88rem;
  padding: 0.68rem 0.85rem;
}

.page-article {
  min-width: 0;
}

.page-article .content-section,
.page-article .final-cta-section,
.page-article .map-section {
  padding: 2.75rem 0;
}

.page-article .content-section > .container,
.page-article .final-cta-section > .container,
.page-article .map-section > .container {
  padding: 0;
}

.page-article .content-section.bg-alt {
  background: var(--bg-surface);
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius-md);
  margin: 0.5rem 0;
  border: 1px solid var(--border-color);
}

.footer-search-btn {
  margin-top: 0.65rem;
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.48rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-search-btn:hover {
  background: rgba(56, 189, 248, 0.24);
  color: #FFFFFF;
}

.back-to-top {
  color: #38BDF8;
  font-weight: 700;
}

.back-to-top:hover {
  color: #FFFFFF;
}

/* Interactive Site Search Modal (<dialog id="search-dialog">) */
#search-dialog {
  width: min(620px, 92vw);
  max-height: 82vh;
  margin: auto;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-top: 5px solid var(--primary);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
}

#search-dialog::backdrop {
  background: rgba(7, 19, 34, 0.72);
  backdrop-filter: blur(4px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dialog-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bg-navy);
}

.dialog-close {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dialog-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.search-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

#site-search {
  width: 100%;
  padding: 0.78rem 1rem;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 1rem;
}

#site-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 119, 189, 0.16);
}

#search-results {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 0.25rem;
}

#search-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  color: var(--bg-navy);
  font-weight: 700;
  font-size: 0.94rem;
  transition: var(--transition);
}

#search-results a:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

#search-results a small {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #FFFFFF;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.sticky-btn-search {
  background: var(--primary);
  color: #FFFFFF !important;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
}

/* ==========================================================================
   13. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .contact-layout,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-aside {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 74px;
  }

  .top-bar-badges {
    display: none;
  }

  .top-bar-inner {
    justify-content: center;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .sticky-mobile-bar {
    display: block;
  }

  .map-frame-wrapper {
    height: 320px;
  }

  .form-grid-2,
  .footer-grid,
  .mobile-nav-links {
    grid-template-columns: 1fr;
  }

  .final-cta-box,
  .page-article .content-section.bg-alt {
    padding: 1.5rem;
  }
}

