/* NJ Leak Detection - Marlboro, NJ
   CSS Design System: Editorial, High-Performance, Mobile-First
   Palette: Water-Blue/White foundation + Single Amber Accent for Click-to-Call CTAs
*/

:root {
  --blue-900: #0c2340;
  --blue-800: #133a68;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #e0f2fe;
  --blue-50: #f0f9ff;
  --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.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --max-width: 1200px;
  --read-width: 72ch;
}

/* Reset & Box Sizing */
*, *::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;
}

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

/* Typography Scale */
h1, h2, h3, h4 {
  color: var(--blue-900);
  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.5rem, 2.8vw, 2rem);
  letter-spacing: -0.015em;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  max-width: var(--read-width);
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  max-width: var(--read-width);
}

li {
  margin-bottom: 0.5rem;
}

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

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

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

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

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

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

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

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

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

.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: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

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

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

.dropdown-item a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--slate-800);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

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

/* Call Button (Exclusive Accent Styling) */
.btn-cta {
  background-color: var(--accent-cta);
  color: var(--white) !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  min-height: 44px;
}

.btn-cta:hover {
  background-color: var(--accent-cta-hover);
}

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

.header-cta {
  display: inline-flex;
}

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

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

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

.breadcrumbs-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.breadcrumbs-inner li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

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

.breadcrumbs-inner a {
  color: var(--slate-600);
  text-decoration: none;
}

.breadcrumbs-inner a:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.breadcrumbs-inner [aria-current="page"] {
  color: var(--slate-900);
  font-weight: 600;
}

/* Main Container */
main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.content-article {
  max-width: 860px;
  margin: 0 auto;
}

/* Hero Section */
.hero-editorial {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--slate-200);
  padding: 3.5rem 1.25rem;
}

.hero-editorial-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy .lead-text {
  font-size: 1.15rem;
  color: var(--slate-700);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
  border: 1px solid var(--slate-200);
}

.hero-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* Visual Layouts & Alternating Rhythm */
.section-full {
  padding: 3rem 1.25rem;
  border-bottom: 1px solid var(--slate-200);
}

.section-full.bg-light {
  background: var(--white);
}

.section-full.bg-muted {
  background: var(--slate-100);
}

.section-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 2.5rem 0;
}

.section-two-col.reverse {
  direction: rtl;
}

.section-two-col.reverse > * {
  direction: ltr;
}

.image-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
}

.image-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Technical Timeline / Step Process */
.process-timeline {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 2px;
  background: var(--blue-100);
}

.process-step {
  position: relative;
  padding-left: 55px;
  margin-bottom: 2rem;
}

.process-num {
  position: absolute;
  left: 7px;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--blue-700);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.process-step h3 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--blue-900);
}

/* Technical Specification / Comparison Box */
.technical-callout {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-700);
  padding: 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
}

.technical-callout h3 {
  margin-top: 0;
  color: var(--blue-900);
  font-size: 1.1rem;
}

.technical-callout p:last-child {
  margin-bottom: 0;
}

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

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

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

/* Conversion Call Box */
.call-box {
  background: var(--blue-900);
  color: var(--white);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.call-box h2, .call-box h3 {
  color: var(--white);
  margin: 0;
}

.call-box p {
  color: var(--slate-300);
  margin-bottom: 0.5rem;
}

/* Services Grid for Homepage & Service Areas */
.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

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

.service-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--slate-600);
  margin-bottom: 1rem;
}

.service-card a.read-more {
  font-weight: 600;
  color: var(--blue-700);
  text-decoration: none;
}

.service-card a.read-more:hover {
  text-decoration: underline;
}

/* FAQ Accordion Section */
.faq-block {
  margin: 2.5rem 0;
}

.faq-item {
  border-bottom: 1px solid var(--slate-200);
  padding: 1.25rem 0;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--slate-200);
}

.faq-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: var(--slate-700);
}

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

/* Related Links Block */
.related-services-block {
  background: var(--slate-100);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}

.related-services-block h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.related-services-block ul {
  margin-bottom: 0;
}

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

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

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-300);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  margin-top: auto;
  border-top: 4px solid var(--blue-700);
  font-size: 0.95rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.footer-col h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--slate-700);
  padding-bottom: 0.5rem;
  display: inline-block;
}

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

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

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

.footer-col a {
  color: var(--slate-300);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-cta-phone {
  color: #fbbf24 !important;
  font-weight: 700;
  font-size: 1.1rem !important;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
}

.footer-nearby-line {
  font-size: 0.88rem;
  color: var(--slate-400);
  line-height: 1.5;
  margin-top: 0.75rem;
}

.footer-legal-block {
  border-top: 1px solid var(--slate-800);
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--slate-400);
  line-height: 1.6;
}

.footer-legal-block h4 {
  color: var(--slate-300);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-legal-block p {
  max-width: 100%;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.footer-bottom a {
  color: var(--slate-400);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 56px; /* Offset for sticky mobile call bar */
  }

  .sticky-mobile-cta {
    display: flex;
  }

  .header-cta {
    display: none;
  }

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

  .nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--blue-700);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-wrap.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--slate-200);
  }

  .nav-link, .nav-dropdown-btn {
    width: 100%;
    padding: 0.85rem 0;
    justify-content: space-between;
    font-size: 1rem;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0.5rem 1rem;
    background: var(--slate-50);
  }

  .hero-editorial-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .section-two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
