/* NJ Leak Detection - Winslow, NJ (Camden County)
   Design System: Water-blue & crisp white with singular amber call accent
   Mobile-First, High Performance, Accessible (Contrast >= 4.5:1, Tap targets >= 44px)
*/

:root {
  --blue-950: #081e36;
  --blue-900: #0e2f56;
  --blue-800: #15457a;
  --blue-700: #1d5fa0;
  --blue-600: #2579c7;
  --blue-100: #e1effa;
  --blue-50: #f2f8fc;
  
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  
  /* Bright Accent Color Reserved Exclusively for Phone Call CTAs */
  --accent-cta: #d97706;
  --accent-cta-hover: #b45309;
  --accent-cta-active: #92400e;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --font-editorial: "Georgia", Cambria, "Times New Roman", Times, serif;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --max-width: 1200px;
  --read-width: 72ch;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a:hover {
  color: var(--blue-900);
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-cta);
  outline-offset: 2px;
}

/* Typography Scale */
h1, h2, h3, h4 {
  color: var(--blue-950);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  letter-spacing: -0.015em;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--slate-700);
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--slate-700);
}

li {
  margin-bottom: 0.5rem;
}

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

.content-article {
  max-width: var(--read-width);
  margin-left: auto;
  margin-right: auto;
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

/* Call to Action Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-cta);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.25);
  transition: background-color 0.15s ease, transform 0.1s ease;
  min-height: 48px;
  min-width: 48px;
  border: none;
  cursor: pointer;
}

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

.btn-cta:active {
  background-color: var(--accent-cta-active);
  transform: translateY(0);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: var(--blue-950) !important;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-950);
}

.brand-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-item {
  position: relative;
  margin: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-700);
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  display: inline-block;
  min-height: 44px;
  line-height: 28px;
}

.nav-link:hover, .nav-link.active {
  color: var(--blue-700);
}

/* Dropdown */
.nav-dropdown-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
}

.nav-dropdown-btn:hover {
  color: var(--blue-700);
}

.nav-dropdown-btn span {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

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

.nav-dropdown-menu.show {
  display: block;
}

.dropdown-item {
  margin: 0;
}

.dropdown-item a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--slate-700);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
  min-height: 44px;
  line-height: 24px;
}

.dropdown-item a:hover {
  background-color: var(--blue-50);
  color: var(--blue-700);
}

.header-cta {
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 0.45rem;
  cursor: pointer;
  color: var(--slate-800);
  min-height: 44px;
  min-width: 44px;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Breadcrumbs */
.breadcrumbs-bar {
  background-color: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.65rem 0;
  font-size: 0.85rem;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.breadcrumbs-list li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-600);
}

.breadcrumbs-list a {
  color: var(--blue-700);
  text-decoration: none;
}

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

.breadcrumbs-list .sep {
  color: var(--slate-400);
}

/* Hero Editorial */
.hero-editorial {
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%);
  border-bottom: 1px solid var(--slate-200);
  padding: 3rem 0;
}

.hero-editorial-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.lead-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--slate-700);
  margin-bottom: 1.5rem;
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: block;
  border: 1px solid var(--slate-200);
}

/* Gas Safety Notice */
.gas-safety-box {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.gas-safety-box strong {
  display: block;
  color: #991b1b;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.gas-safety-box p {
  color: #7f1d1d;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Editorial Two-Column Section */
.section-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: center;
  margin: 2.75rem 0;
}

.two-col-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  display: block;
}

/* Call Box */
.call-box {
  background-color: var(--blue-900);
  color: var(--white);
  padding: 2rem 2.25rem;
  border-radius: var(--radius-md);
  margin: 2.75rem 0;
  box-shadow: var(--shadow-md);
  text-align: center;
}

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

.call-box p {
  color: var(--blue-100);
  max-width: 55ch;
  margin: 0 auto 1.5rem auto;
  font-size: 1rem;
}

/* Checklist Box */
.checklist-box {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.checklist-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--blue-950);
}

.checklist-box ul {
  margin-bottom: 0;
  list-style-type: none;
  padding-left: 0;
}

.checklist-box li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
}

.checklist-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-700);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.3;
}

/* Process Timeline / Step-by-Step */
.process-list {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
  counter-reset: step-counter;
}

.process-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.75rem;
  counter-increment: step-counter;
}

.process-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  background-color: var(--blue-100);
  color: var(--blue-900);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid var(--blue-300);
}

.process-item h4 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
  color: var(--blue-950);
}

/* Technical Details Comparison Box */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.comparison-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.comparison-card h4 {
  color: var(--blue-950);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* Services Grid for Homepage */
.services-editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-summary-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.service-summary-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.service-summary-card p {
  margin-bottom: 0.75rem;
}

/* Neighborhood Profile on Service Areas */
.neighborhood-block {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.neighborhood-block h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--blue-950);
}

/* FAQ Accordion / Listing */
.faq-section {
  margin: 2.75rem 0;
}

.faq-group {
  margin-top: 1.5rem;
}

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

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
  color: var(--blue-950);
}

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

/* Related Services Box */
.related-services-box {
  background-color: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.related-services-box h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  color: var(--blue-950);
}

.related-services-box ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

/* Site Footer */
.site-footer {
  background-color: var(--blue-950);
  color: var(--slate-300);
  padding-top: 3.5rem;
  padding-bottom: 5.5rem; /* space for mobile sticky bar */
  margin-top: auto;
  border-top: 1px solid var(--blue-900);
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.footer-col p {
  color: var(--slate-300);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.footer-col a {
  color: var(--slate-200);
  text-decoration: none;
}

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

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

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--slate-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--slate-400);
  gap: 1rem;
}

.footer-bottom p {
  margin-bottom: 0;
  color: var(--slate-400);
}

.privacy-notice {
  font-size: 0.8rem;
  color: var(--slate-400);
  max-width: 65ch;
  line-height: 1.5;
}

/* Sticky Mobile Call Bar */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--accent-cta);
  color: var(--white);
  text-align: center;
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  z-index: 1020;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.15);
  min-height: 52px;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-editorial-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 1.5rem;
    align-items: stretch;
    gap: 1.25rem;
  }
  
  .nav-wrap.open {
    display: flex;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--blue-200);
    padding-left: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: var(--slate-50);
  }
  
  .section-two-col {
    grid-template-columns: 1fr;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sticky-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
