/* ==========================================================================
   NJ LEAK DETECTION - ORANGE, NJ
   Editorial UI Design System & Responsive Stylesheet
   ========================================================================== */

:root {
  --primary-navy: #092e4e;
  --primary-blue: #0e4d7d;
  --primary-light: #16659c;
  --accent-cyan: #e8f4fd;
  --call-orange: #d9480f;
  --call-orange-hover: #b03405;
  --text-main: #212529;
  --text-muted: #495057;
  --text-subtle: #6c757d;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-warm: #f1f5f9;
  --border-color: #e2e8f0;
  --border-dark: #cbd5e1;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(9, 46, 78, 0.05);
  --shadow-md: 0 4px 12px rgba(9, 46, 78, 0.08);
  --shadow-lg: 0 12px 24px rgba(9, 46, 78, 0.12);
}

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

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

body {
  font-family: var(--font-stack);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-navy);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.15rem, 4.2vw, 3.15rem); line-height: 1.18; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); margin-top: 1.5rem; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
h4 { font-size: 1.15rem; }

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

p.lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-light {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-accent {
  background-color: var(--accent-cyan);
  border-top: 1px solid #bfdbfe;
  border-bottom: 1px solid #bfdbfe;
}

/* Grids & Flex */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

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

.logo {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.logo span {
  color: var(--primary-light);
  font-weight: 600;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-main);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link:focus, .nav-link.active {
  color: var(--primary-light);
}

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

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

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

.dropdown-item {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.94rem;
  color: var(--text-main);
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
  background: var(--bg-light);
  color: var(--primary-navy);
}

/* Call Buttons (Accent Only) */
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--call-orange);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.82rem 1.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(217, 72, 15, 0.3);
  transition: background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

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

.btn-call-hero {
  font-size: 1.15rem;
  padding: 1rem 2rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--primary-navy);
  border: 1.5px solid var(--primary-navy);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--primary-navy);
  min-width: 44px;
  min-height: 44px;
}

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

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

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

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

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--text-subtle);
}

.breadcrumbs a {
  color: var(--primary-light);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-muted);
  font-weight: 500;
}

/* Cards & Lists */
.card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.checklist {
  margin: 1.5rem 0;
}

.checklist li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

/* Process Timeline / Steps */
.process-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.process-step {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
}

.step-num {
  display: inline-block;
  background: var(--primary-navy);
  color: #ffffff;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

/* Call Boxes (Editorial CTA) */
.call-box {
  background: linear-gradient(135deg, #092e4e 0%, #0e4d7d 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.75rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 3.5rem 0;
  box-shadow: var(--shadow-md);
}

.call-box h3, .call-box h2 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.call-box p {
  color: #e0f2fe;
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* FAQs */
.faq-accordion {
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.4rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-light);
  line-height: 1;
}

.faq-answer {
  display: none;
  padding-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Footer */
footer {
  background: #092e4e;
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  border-top: 3px solid var(--primary-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.08rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.footer-col a {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-bottom a:hover {
  color: #ffffff;
}

.legal-notice {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 1rem;
  line-height: 1.6;
}

/* Sticky Mobile Call Bar */
.sticky-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--call-orange);
  color: #ffffff;
  text-align: center;
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

.sticky-call-bar a {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 58px; /* space for sticky bar */
  }
  .mobile-toggle {
    display: inline-block;
  }
  .nav-desktop {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
  }
  .nav-desktop.active {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 1rem;
  }
  .nav-item {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: none;
  }
  .dropdown.active .dropdown-menu {
    display: block;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .call-box {
    flex-direction: column;
    text-align: center;
  }
  .sticky-call-bar {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
