﻿/* styles.css - NJ Leak Detection (Montclair, NJ) */
:root {
  --primary: #0b1f3a;         /* Deep Navy - Authority & Trust */
  --primary-light: #16325c;   /* Slate Navy */
  --water-teal: #0891b2;      /* Technical Cyan/Teal - Precision Water Diagnostics */
  --water-teal-soft: #e0f2fe; /* Light Ice Blue Background */
  --call-accent: #d97706;     /* Conversion Amber / Warm Gold */
  --call-accent-hover: #b45309;
  --call-accent-text: #ffffff;
  --bg-main: #f8fafc;         /* Editorial Off-White */
  --surface-card: #ffffff;    /* Clean White */
  --text-main: #1e293b;       /* Charcoal Text */
  --text-muted: #475569;      /* Readable Gray */
  --border-subtle: #e2e8f0;   /* Clean Divider */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--water-teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover, a:focus {
  color: var(--primary-light);
  text-decoration-thickness: 2px;
}

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

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

/* Header & Navigation */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--water-teal);
}

.logo-sub {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
}

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

.nav-desktop > li {
  position: relative;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}

.nav-desktop a:hover,
.nav-desktop a:focus {
  color: var(--water-teal);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  list-style: none;
  min-width: 290px;
  padding: 8px 0;
  z-index: 200;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown-menu.active {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background-color: var(--water-teal-soft);
  color: var(--water-teal);
}

/* Header Action Call Button */
.header-call-btn {
  background-color: var(--call-accent);
  color: var(--call-accent-text) !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.header-call-btn:hover,
.header-call-btn:focus {
  background-color: var(--call-accent-hover);
  color: #ffffff !important;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--primary);
  min-width: 44px;
  min-height: 44px;
}

/* Mobile Nav Drawer */
.mobile-nav-menu {
  display: none;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0b1f3a 0%, #16325c 100%);
  color: #ffffff;
  padding: 64px 0 72px 0;
  position: relative;
}

.hero-section .container {
  max-width: 960px;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(8, 145, 178, 0.25);
  border: 1px solid var(--water-teal);
  color: #a5f3fc;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero-section h1 {
  font-size: 2.65rem;
  line-height: 1.18;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 32px;
  font-family: var(--font-serif);
}

.hero-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero-call-btn {
  background-color: var(--call-accent);
  color: #ffffff !important;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 15px 32px;
  border-radius: 6px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  transition: background-color 0.2s ease;
}

.hero-call-btn:hover,
.hero-call-btn:focus {
  background-color: var(--call-accent-hover);
}

.hero-promise {
  font-size: 0.88rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Breadcrumbs */
.breadcrumbs-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  font-size: 0.88rem;
}

.breadcrumbs-bar ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.breadcrumbs-bar li {
  color: var(--text-muted);
}

.breadcrumbs-bar li + li::before {
  content: "â€º";
  margin-right: 8px;
  color: #94a3b8;
}

.breadcrumbs-bar a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
}

.breadcrumbs-bar a:hover {
  color: var(--water-teal);
  text-decoration: underline;
}

/* Page Layout & Editorial Grid */
.page-layout {
  padding: 64px 0 80px 0;
}

.editorial-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.main-column {
  min-width: 0;
}

.editorial-lead {
  font-size: 1.18rem;
  line-height: 1.7;
  color: #1e293b;
  margin-bottom: 28px;
  font-family: var(--font-serif);
}

.featured-visual {
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
}

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

.visual-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 10px 16px;
  background-color: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  font-style: italic;
}

/* Typography Inside Content */
.main-column h2 {
  font-size: 1.85rem;
  line-height: 1.25;
  color: var(--primary);
  margin-top: 48px;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.main-column h3 {
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--primary-light);
  margin-top: 36px;
  margin-bottom: 14px;
}

.main-column p {
  font-size: 1.02rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.main-column ul, .main-column ol {
  margin: 16px 0 24px 28px;
}

.main-column li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Callout Box / In-Content Action Box */
.call-box {
  background-color: var(--water-teal-soft);
  border-left: 5px solid var(--water-teal);
  border-radius: 0 8px 8px 0;
  padding: 28px 32px;
  margin: 40px 0;
}

.call-box h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.call-box p {
  color: var(--text-main);
  margin-bottom: 18px;
  font-size: 0.98rem;
}

.btn-inline-call {
  background-color: var(--call-accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  transition: background-color 0.2s ease;
}

.btn-inline-call:hover,
.btn-inline-call:focus {
  background-color: var(--call-accent-hover);
}

/* Diagnostic / Process Steps */
.process-list {
  list-style: none;
  counter-reset: step-counter;
  margin: 32px 0 40px 0 !important;
  padding: 0;
}

.process-item {
  counter-increment: step-counter;
  position: relative;
  padding-left: 58px;
  margin-bottom: 28px;
}

.process-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.process-item h4 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.process-item p {
  margin-bottom: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* Comparison & Technical Tables */
.tech-table-wrap {
  margin: 32px 0;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background-color: #ffffff;
}

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

.tech-table th {
  background-color: #f1f5f9;
  color: var(--primary);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-subtle);
}

.tech-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

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

/* FAQ Accordion / Blocks */
.faq-wrap {
  margin: 48px 0 32px 0;
}

.faq-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.faq-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.faq-card p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Sidebar Styles */
.sidebar-column {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
}

.sidebar-widget h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--water-teal-soft);
}

.sidebar-call-card {
  background: linear-gradient(135deg, #0b1f3a 0%, #16325c 100%);
  color: #ffffff;
  border: none;
  text-align: center;
}

.sidebar-call-card h3 {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.sidebar-call-card p {
  color: #cbd5e1;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.sidebar-call-card .header-call-btn {
  width: 100%;
  justify-content: center;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.sidebar-links li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 500;
  display: block;
}

.sidebar-links a:hover {
  color: var(--water-teal);
  padding-left: 4px;
}

/* Full Width Final CTA */
.final-cta-section {
  background-color: var(--primary);
  color: #ffffff;
  padding: 64px 0;
  text-align: center;
}

.final-cta-section h2 {
  color: #ffffff;
  font-size: 2.1rem;
  margin-bottom: 16px;
}

.final-cta-section p {
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 32px auto;
  font-size: 1.05rem;
}

/* Footer */
footer {
  background-color: #071526;
  color: #94a3b8;
  padding: 64px 0 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
  color: #94a3b8;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-phone-highlight {
  color: #f59e0b !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  display: inline-block;
  margin-top: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
  line-height: 1.6;
}

.footer-bottom a {
  color: #94a3b8;
}

/* Sticky Mobile Call Bar */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 10px 16px;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.sticky-mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--call-accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none !important;
  min-height: 48px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .editorial-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sidebar-column {
    position: static;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px; /* space for sticky bar */
  }

  .nav-desktop {
    display: none;
  }

  .header-call-btn.desktop-only {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile Drawer Menu */
  .mobile-nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 2px solid var(--water-teal);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 24px;
    z-index: 150;
  }

  .mobile-nav-menu.open {
    display: block;
  }

  .mobile-nav-menu ul {
    list-style: none;
  }

  .mobile-nav-menu > ul > li {
    border-bottom: 1px solid #f1f5f9;
  }

  .mobile-nav-menu a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    min-height: 44px;
  }

  .mobile-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    min-height: 44px;
  }

  .mobile-submenu {
    display: none;
    list-style: none;
    padding-left: 16px;
    background-color: var(--bg-main);
    border-radius: 6px;
    margin-bottom: 8px;
  }

  .mobile-submenu.open {
    display: block;
  }

  .mobile-submenu a {
    font-size: 0.92rem;
    padding: 10px 8px;
    color: var(--text-muted);
  }

  .mobile-call-cta-drawer {
    margin-top: 16px;
    display: block;
    text-align: center;
    background-color: var(--call-accent);
    color: #ffffff !important;
    font-weight: 700;
    padding: 12px;
    border-radius: 6px;
  }

  .hero-section h1 {
    font-size: 1.95rem;
  }

  .hero-subtitle {
    font-size: 1.02rem;
  }

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

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

@media (max-width: 480px) {
  .hero-section {
    padding: 48px 0 54px 0;
  }
  .hero-section h1 {
    font-size: 1.7rem;
  }
  .call-box {
    padding: 20px 18px;
  }
  .main-column h2 {
    font-size: 1.5rem;
  }
}

