/* styles.css - NJ Leak Detection (Monroe Township / Gloucester County) */
:root {
  --primary: #0f2c4d;        /* Deep navy water tone */
  --primary-light: #1b497d;
  --secondary: #1976d2;      /* Clear clean water blue */
  --accent: #d9531e;         /* Bright attention orange reserved strictly for calls */
  --accent-hover: #b84314;
  --text-main: #212529;
  --text-muted: #495057;
  --bg-main: #ffffff;
  --bg-alt: #f4f7f9;
  --bg-subtle: #edf3f8;
  --border-color: #dde5ed;
  --white: #ffffff;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 2px 6px rgba(15, 44, 77, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 44, 77, 0.09);
  --shadow-lg: 0 12px 30px rgba(15, 44, 77, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* space for sticky mobile call bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

a:hover, a:focus {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

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

.reading-width {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--primary);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-subtle);
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.75rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
  font-size: 1.05rem;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

li {
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
}

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

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

.logo-block {
  display: flex;
  flex-direction: column;
}

.logo-link {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav Desktop */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
}

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

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
  color: var(--secondary);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  z-index: 1010;
  list-style: none;
}

.dropdown-menu li {
  margin-bottom: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--bg-alt);
  color: var(--secondary);
}

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

/* Phone CTA Buttons */
.call-btn {
  background-color: var(--accent);
  color: var(--white) !important;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 4px rgba(217, 83, 30, 0.2);
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
  font-size: 0.95rem;
  min-height: 44px;
}

.call-btn:hover,
.call-btn:focus {
  background-color: var(--accent-hover);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.call-btn-large {
  font-size: 1.15rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(217, 83, 30, 0.25);
}

/* Hamburger button */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--primary);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  height: calc(100vh - 76px);
  background: var(--white);
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 999;
  border-top: 1px solid var(--border-color);
}

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

.mobile-nav-list {
  list-style: none;
  padding: 0;
}

.mobile-nav-list > li {
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.mobile-nav-list a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
  min-height: 44px;
  display: flex;
  align-items: center;
}

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

.mobile-submenu {
  display: none;
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

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

.mobile-submenu li {
  margin-bottom: 0.4rem;
}

.mobile-submenu a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.mobile-call-container {
  margin-top: 1.5rem;
}

.mobile-call-container .call-btn {
  width: 100%;
}

/* Breadcrumbs */
.breadcrumbs-bar {
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  font-size: 0.88rem;
}

.breadcrumbs-bar ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs-bar li+li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--text-muted);
}

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

.breadcrumbs-bar a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-hero {
  background: linear-gradient(135deg, #f0f5fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text .badge {
  display: inline-block;
  background: var(--bg-subtle);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.hero-text p.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

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

/* Sections */
section.content-section {
  padding: 3.5rem 0;
}

section.content-section:nth-of-type(even) {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.editorial-callout {
  background: var(--bg-subtle);
  border-left: 4px solid var(--secondary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.editorial-callout h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

/* Tables */
.editorial-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

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

.editorial-table th {
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem;
  font-family: var(--font-serif);
  font-weight: 600;
}

.editorial-table td {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background: var(--white);
}

.editorial-table tr:nth-child(even) td {
  background: var(--bg-alt);
}

/* Checklist / Grid Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}

.feature-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.feature-box h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--primary);
}

/* FAQ Accordion / Item */
.faq-block {
  margin-top: 2rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  padding: 1.5rem;
}

.faq-item h3 {
  margin-top: 0;
  font-size: 1.18rem;
  color: var(--primary);
}

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

/* Final Banner CTA */
.final-cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.final-cta-banner h2 {
  color: var(--white);
  border-bottom: none;
  font-size: 2.1rem;
  margin-top: 0;
}

.final-cta-banner p {
  color: #dbe4ee;
  max-width: 650px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
}

/* Footer */
footer.site-footer {
  background-color: #091c33;
  color: #c4d3e5;
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}

footer.site-footer a {
  color: #d0e1f9;
  text-decoration: none;
}

footer.site-footer a:hover {
  text-decoration: underline;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

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

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col p {
  color: #c4d3e5;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #8da4be;
}

.footer-bottom p {
  color: inherit;
  font-size: inherit;
  margin-bottom: 0.5rem;
}

/* Sticky Mobile Call Bar */
.sticky-mobile-cta {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--accent);
  color: var(--white);
  z-index: 990;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1.1rem;
  height: 60px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  gap: 0.5rem;
}

.sticky-mobile-cta:hover,
.sticky-mobile-cta:focus {
  background: var(--accent-hover);
  color: var(--white) !important;
}

@media (min-width: 992px) {
  .sticky-mobile-cta {
    display: none;
  }
}

/* Responsive Queries */
@media (min-width: 768px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  .grid-2col {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
}
