/* styles.css - NJ Leak Detection (Atlantic City, NJ) */
:root {
  --primary-deep: #0B3C5D;    /* Deep water blue */
  --primary-mid: #1B6CA8;     /* Mid blue */
  --accent-aqua: #3FA9C9;     /* Aqua tone */
  --bg-cool: #F7FAFC;         /* Cool off-white */
  --text-ink: #0F1720;        /* Ink typography */
  --text-muted: #3E4C59;      /* Readable secondary charcoal */
  --call-accent: #FF6B35;     /* Bright accent RESERVED ONLY FOR CALL BUTTONS */
  --call-hover: #E8551E;
  --white: #FFFFFF;
  --border-light: #E2E8F0;
  --border-subtle: #CBD5E1;
  --shadow-sm: 0 1px 3px rgba(15, 23, 32, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 32, 0.08);
  --font-heading: Georgia, "Times New Roman", Cambria, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-reading-width: 70ch;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-ink);
  background-color: var(--bg-cool);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--primary-deep);
  color: var(--white);
  padding: 12px 18px;
  z-index: 9999;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--call-accent);
}

a {
  color: var(--primary-mid);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover, a:focus-visible {
  color: var(--primary-deep);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--primary-mid);
  outline-offset: 2px;
}

/* Base Layout Containers */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.reading-width {
  max-width: var(--max-reading-width);
}

/* Header & Navigation */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.brand-loc {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-ink);
  text-decoration: none;
  padding: 8px 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--primary-mid);
}

/* Dropdown */
.dropdown {
  position: relative;
}
.dropdown-toggle {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-ink);
  cursor: pointer;
  padding: 8px 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
  color: var(--primary-mid);
}
.dropdown-toggle .arrow-icon {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  list-style: none;
  min-width: 280px;
  padding: 8px 0;
  box-shadow: var(--shadow-md);
  z-index: 1001;
}
.dropdown:hover .dropdown-menu,
.dropdown.is-open .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}
.dropdown.is-open .arrow-icon {
  transform: rotate(180deg);
}

.dropdown-menu li {
  width: 100%;
}
.dropdown-menu li a {
  display: block;
  padding: 9px 18px;
  color: var(--text-ink);
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 40px;
}
.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible {
  background-color: var(--bg-cool);
  color: var(--primary-deep);
}

/* Header Call Button */
.btn-call-header {
  background-color: var(--call-accent);
  color: var(--white) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  min-height: 44px;
  transition: background-color 0.15s ease;
}
.btn-call-header:hover,
.btn-call-header:focus-visible {
  background-color: var(--call-hover);
}

/* Mobile Hamburger Toggle */
.btn-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-deep);
}

/* Mobile Drawer */
.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  transition: right 0.25s ease;
}
.mobile-nav-panel.is-active {
  right: 0;
}
.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, 0.45);
  z-index: 1999;
}
.mobile-backdrop.is-active {
  display: block;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.btn-close-mobile {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-ink);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav-list a {
  text-decoration: none;
  color: var(--text-ink);
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
  padding: 10px 0;
  min-height: 44px;
}
.mobile-submenu-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  min-height: 44px;
}
.mobile-sub-list {
  display: none;
  list-style: none;
  padding-left: 14px;
  border-left: 2px solid var(--accent-aqua);
  margin-top: 4px;
  margin-bottom: 10px;
}
.mobile-sub-list.is-open {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-sub-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
}
.mobile-cta-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

/* Sticky Mobile Call Bar */
.sticky-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 10px 16px;
  z-index: 990;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}
.sticky-call-btn {
  background-color: var(--call-accent);
  color: var(--white) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 6px;
  width: 100%;
  min-height: 48px;
}

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  background-color: var(--white);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb-list a {
  color: var(--primary-mid);
  text-decoration: none;
}
.breadcrumb-list a:hover {
  text-decoration: underline;
}
.breadcrumb-sep {
  color: var(--border-subtle);
}

/* Headings & Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary-deep);
  line-height: 1.25;
  font-weight: 700;
}
h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
p {
  margin-bottom: 1.2rem;
  color: var(--text-ink);
}

/* Hero Section */
.hero-section {
  background: var(--white);
  padding: 56px 0;
  border-bottom: 1px solid var(--border-light);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero-text .lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.btn-primary-call {
  background-color: var(--call-accent);
  color: var(--white) !important;
  text-decoration: none !important;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  box-shadow: 0 2px 4px rgba(255, 107, 53, 0.25);
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn-primary-call:hover,
.btn-primary-call:focus-visible {
  background-color: var(--call-hover);
  transform: translateY(-1px);
}
.hero-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.hero-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.hero-media img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* Editorial Sections */
section {
  padding: 56px 0;
}
.section-white {
  background-color: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.content-media {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.content-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Call Banner (Every 2-3 sections) */
.call-banner {
  background: var(--primary-deep);
  color: var(--white);
  border-radius: 8px;
  padding: 36px 32px;
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-left: 6px solid var(--accent-aqua);
}
.call-banner h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.4rem;
}
.call-banner p {
  color: #E2E8F0;
  margin: 0;
  max-width: 65ch;
}
.call-banner-btn {
  background-color: var(--call-accent);
  color: var(--white) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 8px;
  transition: background-color 0.15s ease;
}
.call-banner-btn:hover,
.call-banner-btn:focus-visible {
  background-color: var(--call-hover);
}

/* Checklists & Warning Signs */
.checklist {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 32px;
  font-size: 1rem;
  color: var(--text-ink);
}
.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-mid);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Step-by-Step Detection Process */
.process-list {
  list-style: none;
  counter-reset: process-counter;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.process-item {
  counter-increment: process-counter;
  position: relative;
  padding-left: 56px;
}
.process-item::before {
  content: counter(process-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 38px;
  height: 38px;
  background-color: var(--primary-deep);
  color: var(--white);
  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;
  margin-bottom: 6px;
  color: var(--primary-deep);
}

/* Comparison / Reference Tables */
.table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--white);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}
th {
  background-color: var(--bg-cool);
  font-weight: 700;
  color: var(--primary-deep);
  font-family: var(--font-heading);
}
tr:last-child td {
  border-bottom: none;
}
tr:nth-child(even) td {
  background-color: #FAFCFE;
}

/* FAQ Accordion / Blocks */
.faq-wrap {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 22px 24px;
}
.faq-item h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--primary-deep);
}
.faq-item p {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Service Overview Grid (Homepage) */
.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.service-summary-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-summary-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.25rem;
}
.service-summary-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}
.service-summary-card .card-link {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Neighborhood List & Cards */
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.neighborhood-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.neighborhood-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--primary-deep);
}
.neighborhood-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Safety & Call-to-action Banners */
.alert-box {
  background-color: #FEF3C7;
  border-left: 4px solid #D97706;
  padding: 16px 20px;
  border-radius: 4px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: #78350F;
}
.alert-box strong {
  color: #92400E;
}

/* Related Services Links */
.related-services-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 24px;
  margin: 36px 0;
}
.related-services-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
}
.related-services-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.related-services-list li a {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Footer */
footer {
  background-color: var(--primary-deep);
  color: #E2E8F0;
  padding: 60px 0 30px;
  border-top: 3px solid var(--primary-mid);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}
.footer-col p {
  color: #CBD5E1;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-col a {
  color: #BAE6FD;
  text-decoration: underline;
}
.footer-col a:hover {
  color: var(--white);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 0.92rem;
  color: #CBD5E1;
  text-decoration: none;
  display: inline-block;
  padding: 2px 0;
}
.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer-service-area {
  padding-top: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.15);
  font-size: 0.9rem;
  color: #CBD5E1;
  margin-bottom: 24px;
}
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(226, 232, 240, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94A3B8;
}
.footer-bottom a {
  color: #CBD5E1;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .content-two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px; /* Room for sticky call bar */
  }
  .nav-desktop {
    display: none;
  }
  .btn-menu-toggle {
    display: flex;
  }
  .sticky-call-bar {
    display: block;
  }
  .mobile-nav-panel {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  h1 {
    font-size: 1.85rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  .hero-section {
    padding: 36px 0;
  }
  section {
    padding: 36px 0;
  }
  .call-banner {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 68px;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .brand-loc {
    font-size: 0.68rem;
  }
  .btn-primary-call {
    width: 100%;
    justify-content: center;
  }
}
