/* ==========================================================================
   Leak Detection Berwyn — Bespoke Design System
   Theme: Hydro-Acoustic Precision & 1920s Berwyn Bungalow Craft
   Zero External Font Blocking | High-Contrast Accessible Palette
   ========================================================================== */

:root {
  --bg-obsidian: #071a24;
  --bg-slate-dark: #0d2938;
  --bg-slate-card: #123344;
  --bg-parchment: #f8f7f4;
  --bg-sand: #efeae2;
  --surface-white: #ffffff;

  --copper: #c85a17;
  --copper-hover: #a7460c;
  --copper-bright: #e87a38;
  --copper-soft: #fdf0e7;

  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-bright: #2dd4bf;
  --teal-soft: #e6faf7;

  --text-primary: #091e28;
  --text-secondary: #374e5c;
  --text-muted: #536a78;
  --text-light: #f8f7f4;
  --text-light-muted: #bdd0db;

  --border-light: #dce2e6;
  --border-dark: #1d4458;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(7, 26, 36, 0.06);
  --shadow-md: 0 10px 28px rgba(7, 26, 36, 0.09);
  --shadow-lg: 0 20px 50px rgba(7, 26, 36, 0.16);

  --container: 1220px;
  --font-sans: "Segoe UI", "Inter", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-primary);
  background-color: var(--bg-parchment);
  overflow-x: hidden;
}

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

a {
  color: var(--copper);
  text-underline-offset: 3px;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

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

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 2px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Top Dispatch Utility Bar
   ========================================================================== */
.top-bar {
  background: var(--bg-obsidian);
  color: var(--text-light);
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border-dark);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 6px 0;
  flex-wrap: wrap;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-light-muted);
}

.top-bar-item svg {
  flex-shrink: 0;
  color: var(--teal-bright);
}

.top-bar-phone {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(232, 122, 56, 0.18);
  border: 1px solid rgba(232, 122, 56, 0.45);
}

.top-bar-phone:hover {
  background: var(--copper);
  color: #ffffff;
}

/* ==========================================================================
   Sticky Frosted Navbar (Brand SVG Only + Services & Areas Mega Menus)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 247, 244, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(7, 26, 36, 0.04);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

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

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

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

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
}

.nav-link:hover, .nav-item:hover > .nav-link, .nav-item.open > .nav-link {
  background: var(--bg-sand);
  color: var(--copper);
}

.nav-chevron {
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-chevron, .nav-item.open .nav-chevron {
  transform: rotate(180deg);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--copper);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(200, 90, 23, 0.28);
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--copper-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Mega Menu Dropdowns */
.mega-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 760px;
  max-width: calc(100vw - 40px);
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px 26px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1050;
}

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

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

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mega-group-title {
  margin: 0 0 10px 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.mega-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.mega-links a {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.mega-links a:hover {
  background: var(--copper-soft);
  color: var(--copper);
}

.mega-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mega-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--copper);
  text-decoration: none;
}

.mega-all-link:hover {
  text-decoration: underline;
}

/* Mobile Toggle & Drawer */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  background: var(--surface-white);
  border-top: 1px solid var(--border-light);
  padding: 18px 24px 28px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

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

.mob-nav-group {
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}

.mob-nav-link {
  display: block;
  padding: 10px 0;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.mob-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 10px 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}

.mob-sublinks {
  display: none;
  list-style: none;
  margin: 4px 0 8px;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--copper);
}

.mob-sublinks.is-open {
  display: grid;
  gap: 6px;
}

.mob-sublinks a {
  display: block;
  padding: 4px 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumb-bar {
  background: var(--bg-obsidian);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 11px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-light-muted);
}

.breadcrumb a {
  color: var(--teal-bright);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  opacity: 0.5;
}

/* ==========================================================================
   Asymmetric Split Hero
   ========================================================================== */
.hero {
  background: radial-gradient(circle at 82% 20%, rgba(13, 148, 136, 0.19), transparent 46%),
              radial-gradient(circle at 12% 85%, rgba(200, 90, 23, 0.16), transparent 44%),
              linear-gradient(155deg, #05131b 0%, var(--bg-obsidian) 52%, #0c2c3d 100%);
  color: var(--text-light);
  padding: 58px 0 68px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--teal-bright);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.25);
}

.hero-h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.1vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #ffffff;
}

.hero-intro {
  margin: 0 0 22px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: #dbe7ee;
  max-width: 62ch;
}

.hero-intro p {
  margin: 0 0 12px;
}

.hero-bullets {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--teal-bright);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  font-size: 0.94rem;
  line-height: 1.5;
  color: #edf4f7;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-bullets li:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(45, 212, 191, 0.42);
  border-left-color: var(--teal-bright);
  transform: translateY(-1px);
}

.hero-bullets svg {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  color: var(--teal-bright);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--copper);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(200, 90, 23, 0.36);
}

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

.btn-secondary-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary-light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: #ffffff;
}

.btn-secondary-dark {
  background: var(--surface-white);
  color: var(--bg-obsidian);
  border-color: var(--border-light);
}

.btn-secondary-dark:hover {
  border-color: var(--copper);
  color: var(--copper);
}

/* Framed Hero Visual Card */
.hero-media-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--bg-slate-dark);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
}

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

.hero-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(7, 26, 36, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  color: var(--text-light-muted);
}

.hero-caption-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-bright);
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   Kinetic Marquee & Local Berwyn Proof Strip
   ========================================================================== */
.marquee-band {
  background: #0a222f;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  overflow: hidden;
  padding: 12px 0;
}

.marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d9e6ed;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper-bright);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}

.metrics-strip {
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-light);
  padding: 28px 0;
}

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

.metric-box {
  padding: 14px 18px;
  border-left: 3px solid var(--copper);
  background: var(--bg-parchment);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.metric-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--bg-obsidian);
  line-height: 1.15;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Content Sections, Typography & Semantic Rhythm
   ========================================================================== */
.section {
  padding: 64px 0;
}

.section-parchment {
  background: var(--bg-parchment);
}

.section-sand {
  background: var(--bg-sand);
}

.section-white {
  background: var(--surface-white);
}

.section-dark {
  background: linear-gradient(160deg, var(--bg-obsidian) 0%, var(--bg-slate-dark) 100%);
  color: var(--text-light);
}

.section-h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--bg-obsidian);
}

.section-dark .section-h2 {
  color: #ffffff;
}

.content-flow h3 {
  margin: 26px 0 10px;
  font-size: 1.25rem;
  line-height: 1.32;
  font-weight: 700;
  color: var(--bg-slate-dark);
}

.section-dark .content-flow h3 {
  color: var(--teal-bright);
}

.content-flow p {
  margin: 0 0 16px;
  max-width: 78ch;
  color: var(--text-secondary);
}

.section-dark .content-flow p {
  color: #dbe7ee;
}

.content-list {
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: stretch;
}

.content-list li {
  position: relative;
  padding: 16px 20px 16px 54px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf9 100%);
  border: 1px solid rgba(9, 30, 40, 0.1);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.58;
  box-shadow: 0 4px 14px rgba(7, 24, 33, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.content-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(7, 24, 33, 0.09);
  border-color: rgba(217, 107, 39, 0.38);
  border-left-color: var(--copper);
}

.content-list li strong {
  color: var(--bg-obsidian);
  font-weight: 700;
}

.section-white .content-list li {
  background: linear-gradient(180deg, #faf8f4 0%, #f4efe6 100%);
}

.section-dark .content-list li,
.cta-banner .content-list li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--teal-bright);
  color: #e2edf3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.section-dark .content-list li:hover,
.cta-banner .content-list li:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(45, 212, 191, 0.42);
  border-left-color: var(--teal-bright);
}

.section-dark .content-list li strong,
.cta-banner .content-list li strong {
  color: #ffffff;
}

.content-list li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background-color: rgba(217, 107, 39, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d96b27' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  border: 1px solid rgba(217, 107, 39, 0.24);
}

.section-dark .content-list li::before,
.cta-banner .content-list li::before {
  background-color: rgba(45, 212, 191, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232dd4bf' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  border-color: rgba(45, 212, 191, 0.3);
}

.subtopic-card:has(.content-list) {
  grid-column: 1 / -1;
}

/* Sub-section Grid (Paired H3 + text + optional contextual link pill) */
.subtopic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.subtopic-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 3px solid var(--teal);
}

.section-dark .subtopic-card {
  background: var(--bg-slate-card);
  border-color: var(--border-dark);
  border-top-color: var(--copper-bright);
}

.subtopic-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  color: var(--bg-obsidian);
}

.section-dark .subtopic-card h3 {
  color: #ffffff;
}

.subtopic-card p {
  margin: 0 0 14px;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

.section-dark .subtopic-card p {
  color: #d6e4eb;
}

.subtopic-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--copper);
  text-decoration: none;
  margin-top: auto;
}

.section-dark .subtopic-link {
  color: var(--copper-bright);
}

.subtopic-link:hover {
  text-decoration: underline;
}

/* Step Process Timeline Cards */
.step-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 22px 0;
  counter-reset: stepCounter;
}

.step-card {
  counter-increment: stepCounter;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-card::before {
  content: "0" counter(stepCounter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-obsidian);
  color: var(--teal-bright);
  margin-bottom: 12px;
}

.step-card p, .step-card div {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Semantic Data Tables */
.data-table-wrap {
  margin: 22px 0 26px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  box-shadow: var(--shadow-sm);
}

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

.data-table th {
  background: var(--bg-obsidian);
  color: #ffffff;
  font-weight: 700;
  padding: 15px 18px;
  border-bottom: 2px solid var(--copper);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
}

.data-table tbody tr:nth-child(even) td {
  background: #faf9f6;
}

.data-table tbody tr:hover td {
  background: var(--copper-soft);
}

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

/* Interactive Cost Estimator Widget */
.est-widget {
  margin-top: 24px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.est-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.est-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-parchment);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.est-tab.is-active {
  background: var(--bg-obsidian);
  color: #ffffff;
  border-color: var(--bg-obsidian);
}

.est-panel {
  display: none;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-parchment);
  border-left: 4px solid var(--copper);
}

.est-panel.is-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.est-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--copper);
}

/* ==========================================================================
   Job Showcase Cards & About Field Photo Cards
   ========================================================================== */
.job-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  margin: 22px 0;
}

.job-showcase-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.job-showcase-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-obsidian);
}

.job-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 26, 36, 0.88);
  color: var(--teal-bright);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.job-badge-before {
  left: 12px;
  background: rgba(127, 29, 29, 0.9);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
}

.job-badge-after {
  left: auto;
  right: 12px;
  background: rgba(6, 78, 59, 0.92);
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.45);
}

.job-showcase-body {
  padding: 18px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.job-showcase-body strong {
  display: block;
  color: var(--bg-obsidian);
  margin-bottom: 6px;
}

/* ==========================================================================
   Directory Service Cards (.svc-card) & Location Cards (.loc-card)
   ========================================================================== */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-pill.is-active, .filter-pill:hover {
  background: var(--bg-obsidian);
  color: #ffffff;
  border-color: var(--bg-obsidian);
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.content-flow .cards-grid-3,
.content-flow .cards-grid-2,
.content-flow .svc-card-featured {
  margin-top: 22px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.svc-card-featured {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  align-items: stretch;
}

.svc-card-featured .svc-card-thumb {
  height: 100%;
  min-height: 220px;
}

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

.section-dark .svc-card,
.section-dark .loc-card {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.section-dark .svc-card h3,
.section-dark .svc-card h3 a,
.section-dark .loc-card h3,
.section-dark .loc-card h3 a {
  color: var(--bg-obsidian);
}

.section-dark .svc-card h3 a:hover,
.section-dark .loc-card h3 a:hover {
  color: var(--copper);
}

.section-dark .svc-card p,
.section-dark .loc-card p {
  color: var(--text-secondary);
}

.svc-card-desc p {
  margin: 0 0 10px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

.svc-card-desc p:last-child {
  margin-bottom: 0;
}

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

.svc-card.is-hidden {
  display: none;
}

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

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

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

.svc-num-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 26, 36, 0.88);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.svc-cat-badge, .loc-region-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 10px;
}

.loc-region-badge {
  color: var(--copper-hover);
  background: var(--copper-soft);
}

.svc-card-body, .loc-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-card-body h3, .loc-card-body h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.3;
}

.svc-card-body h3 a, .loc-card-body h3 a {
  color: var(--bg-obsidian);
  text-decoration: none;
}

.svc-card-body h3 a:hover, .loc-card-body h3 a:hover {
  color: var(--copper);
}

.svc-card-desc, .loc-card-desc {
  margin: 0 0 16px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.58;
  flex: 1;
}

.loc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.loc-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-parchment);
  border: 1px solid var(--border-light);
  padding: 2px 9px;
  border-radius: 6px;
}

.svc-card-link, .loc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(9, 30, 40, 0.08);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--copper);
  text-decoration: none;
}

.svc-card-link:hover, .loc-card-link:hover {
  color: var(--copper-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Testimonials / Verified Field Scenarios & E-E-A-T Specialist Card
   ========================================================================== */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.scenario-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.scenario-tag {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.eeat-box {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--bg-obsidian);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

.eeat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-obsidian);
  color: var(--teal-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eeat-meta {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.eeat-title {
  font-weight: 800;
  color: var(--bg-obsidian);
  margin-bottom: 4px;
}

/* ==========================================================================
   Contextual Cluster Link Bar
   ========================================================================== */
.contextual-links-box {
  margin-top: 26px;
  padding: 20px 22px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.contextual-links-label {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg-obsidian);
  margin: 0 0 12px;
}

.contextual-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.contextual-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-parchment);
  border: 1px solid var(--border-light);
  color: var(--bg-obsidian);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.contextual-pill:hover {
  background: var(--copper-soft);
  border-color: var(--copper);
  color: var(--copper);
}

/* ==========================================================================
   FAQ Split Accordion
   ========================================================================== */
.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: 38px;
  align-items: start;
}

.faq-sticky {
  position: sticky;
  top: 96px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

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

.faq-item[open] {
  border-color: var(--copper);
}

.faq-summary {
  list-style: none;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-summary h3 {
  margin: 0;
  font-size: 1.07rem;
  font-weight: 700;
  color: var(--bg-obsidian);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-sand);
  color: var(--bg-obsidian);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] .faq-icon {
  background: var(--copper);
  color: #ffffff;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  border-top: 1px solid #f0ece5;
}

.faq-answer p {
  margin: 14px 0 0;
}

/* ==========================================================================
   Google Map Embed & Bottom Conversion Banner
   ========================================================================== */
.map-section {
  background: var(--surface-white);
  padding: 58px 0;
  border-top: 1px solid var(--border-light);
}

.map-frame-wrapper {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  margin-top: 20px;
}

.map-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cta-banner {
  background: linear-gradient(135deg, #071a24 0%, #103547 100%);
  color: #ffffff;
  padding: 64px 0;
  border-top: 4px solid var(--copper);
}

.cta-banner-box {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 32px;
  align-items: center;
}

.cta-banner h2 {
  color: #ffffff;
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
}

.cta-banner p {
  color: #dce8ee;
  margin: 0;
}

.cta-banner a:not(.btn) {
  color: var(--teal-bright);
  font-weight: 700;
}

.cta-action-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

/* ==========================================================================
   Contact Page Form & NAP Card (Strictly Only on /contact/)
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 34px;
  align-items: start;
}

.quote-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--bg-obsidian);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #c9d2d8;
  background: var(--bg-parchment);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}

.captcha-box {
  background: var(--bg-sand);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}

#captchaCanvas {
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  display: block;
}

.captcha-refresh {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.form-error {
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 6px;
  display: none;
}

.form-success {
  display: none;
  padding: 24px;
  border-radius: var(--radius-md);
  background: #ecfdf5;
  border: 2px solid #10b981;
  color: #065f46;
}

.form-success.is-visible {
  display: block;
}

.nap-card {
  background: var(--bg-obsidian);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.nap-card h2, .nap-card h3 {
  color: #ffffff;
  margin: 0 0 14px;
}

.nap-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.nap-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #dce7ee;
  font-size: 0.96rem;
}

.nap-list strong {
  color: #ffffff;
  display: block;
}

/* ==========================================================================
   Global Dark Footer
   ========================================================================== */
.site-footer {
  background: #05131b;
  color: var(--text-light-muted);
  padding: 60px 0 28px;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.95fr;
  gap: 34px;
  margin-bottom: 42px;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.92rem;
}

.footer-links a {
  color: var(--text-light-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal-bright);
  text-decoration: underline;
}

.footer-nap {
  margin-top: 16px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-nap a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Sticky Mobile Action Bar (<= 820px)
   ========================================================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(7, 26, 36, 0.97);
  border-top: 2px solid var(--copper);
  padding: 10px 14px;
  gap: 10px;
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.25);
}

.mob-bar-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  text-align: center;
}

.mob-bar-call {
  background: var(--copper);
  color: #ffffff;
}

.mob-bar-quote {
  background: var(--teal);
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq-split, .contact-layout, .cta-banner-box, .hero-grid {
    grid-template-columns: 1fr;
  }
  .faq-sticky {
    position: static;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 78px;
  }
  .top-bar {
    display: none;
  }
  .nav-desktop, .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .mobile-sticky-bar {
    display: flex;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards-grid-3, .cards-grid-2, .svc-card-featured {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .map-frame-wrapper {
    height: 320px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .brand-logo-img {
    height: 46px;
  }
}

@media (max-width: 720px) {
  .content-list,
  .hero-bullets {
    grid-template-columns: 1fr;
  }
}
