/* ==========================================================================
   NJ LEAK DETECTION - VOORHEES, NJ
   Production Stylesheet - Responsive, High Performance, Accessibility Ready
   ========================================================================== */

:root {
  --color-primary: #0A192F;       /* Deep Navy */
  --color-primary-light: #172A45; /* Rich Slate Blue */
  --color-secondary: #0077B6;     /* Clear Water Blue */
  --color-secondary-hover: #005F94;
  --color-accent: #D90429;        /* High-visibility Urgent Red/Coral for primary phone CTA */
  --color-accent-hover: #B70322;
  --color-blue-light: #E0F2FE;    /* Soft Sky Tint */
  --color-white: #FFFFFF;
  --color-off-white: #F8FAFC;
  --color-gray-light: #E2E8F0;
  --color-gray: #64748B;
  --color-gray-dark: #1E293B;

  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition: all 0.25s ease-in-out;
}

/* RESET & BASE */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  color: var(--color-gray-dark);
  line-height: 1.65;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  letter-spacing: -0.025em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: #334155;
}

a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

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

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

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

li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: #334155;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

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

.bg-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary p {
  color: var(--color-white);
}

.bg-blue-tint {
  background-color: #F0F9FF;
  border-top: 1px solid #BAE6FD;
  border-bottom: 1px solid #BAE6FD;
}

.text-center {
  text-align: center;
}

/* BUTTONS & CTAS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.2;
  min-height: 48px;
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white) !important;
  box-shadow: 0 4px 12px rgba(217, 4, 41, 0.35);
}

.btn-accent:hover, .btn-accent:focus {
  background-color: var(--color-accent-hover);
  color: var(--color-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 4, 41, 0.45);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white) !important;
}

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

.btn-outline {
  background-color: transparent;
  color: var(--color-white) !important;
  border-color: var(--color-white);
}

.btn-outline:hover, .btn-outline:focus {
  background-color: var(--color-white);
  color: var(--color-primary) !important;
}

/* HEADER & NAVIGATION */
.header {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.header-top a {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: none;
}

.header-top a:hover {
  text-decoration: underline;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-secondary);
}

.logo-badge {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 0.35rem;
}

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

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

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

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

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

.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  width: 290px;
  padding: 0.65rem 0;
  border: 1px solid var(--color-gray-light);
  z-index: 1001;
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--color-gray-dark);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: #F1F5F9;
  color: var(--color-secondary);
}

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

.nav-cta {
  display: flex;
  align-items: center;
}

/* BREADCRUMBS */
.breadcrumbs {
  background-color: #F1F5F9;
  padding: 0.75rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--color-gray-light);
}

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

.breadcrumbs li {
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  color: var(--color-gray);
  font-size: 0.88rem;
}

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

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

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

/* HERO SECTION */
.hero {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, #0A192F 0%, #102A43 100%);
  color: var(--color-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.hero-content p.lead {
  font-size: 1.2rem;
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-bullets {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.hero-bullets li {
  color: #F1F5F9;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.hero-bullets li::before {
  content: "✔";
  color: #38BDF8;
  font-weight: bold;
}

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

.hero-image-wrap {
  position: relative;
}

.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 4px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* SECTION GRIDS & LAYOUTS */
.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: 1.75rem;
}

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

/* FEATURE BOXES & PANELS */
.panel {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.panel-accent {
  border-top: 4px solid var(--color-secondary);
}

.panel h3 {
  margin-bottom: 0.75rem;
}

/* COMPARISON TABLES */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.custom-table th, .custom-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-gray-light);
}

.custom-table th {
  background-color: #F1F5F9;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:nth-child(even) td {
  background-color: #FAFAFA;
}

/* PROCESS TIMELINE / STEPS */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.step-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* CALL BOX CTA (MID-PAGE) */
.call-box {
  background: linear-gradient(135deg, #0A192F 0%, #1B365D 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem;
  margin: 3.5rem 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.call-box p {
  color: #E2E8F0;
  max-width: 650px;
  margin: 0 auto 1.75rem auto;
  font-size: 1.1rem;
}

.call-box .phone-number-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #38BDF8;
  display: block;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.call-box .phone-number-lg:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* FAQ ACCORDION / STYLING */
.faq-section {
  padding: 4.5rem 0;
}

.faq-list {
  max-width: 860px;
  margin: 2rem auto 0 auto;
}

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

.faq-item h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.faq-item h3::before {
  content: "Q:";
  color: var(--color-secondary);
  font-weight: 800;
}

.faq-item p {
  margin-bottom: 0;
  color: #475569;
}

/* SERVICE OVERVIEW TILES (HOME) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #94A3B8;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-card .read-more {
  font-weight: 700;
  color: var(--color-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-card .read-more:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* NEIGHBORHOOD / SERVICE AREAS LIST */
.area-block {
  background: var(--color-white);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.area-block h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.area-block p {
  margin-bottom: 0.5rem;
}

/* CALLOUT NOTE */
.callout-box {
  background-color: #F8FAFC;
  border-left: 4px solid #0284C7;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.75rem 0;
}

.callout-box p {
  margin-bottom: 0;
  font-size: 0.98rem;
  color: #334155;
}

/* FOOTER */
.footer {
  background-color: var(--color-primary);
  color: #94A3B8;
  padding: 4.5rem 0 2rem 0;
  border-top: 3px solid var(--color-secondary);
  font-size: 0.95rem;
}

.footer h3, .footer h4 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

.footer p {
  color: #CBD5E1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

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

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

.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #38BDF8;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748B;
}

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

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

.footer-parent-link {
  color: #38BDF8 !important;
  font-weight: 600;
}

/* STICKY MOBILE CALL BAR */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  padding: 0.75rem 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.25);
  text-align: center;
  border-top: 2px solid var(--color-accent);
}

.sticky-mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-accent);
  color: #FFFFFF !important;
  text-decoration: none;
  padding: 0.85rem 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  min-height: 48px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-gray-light);
    gap: 0.25rem;
    align-items: flex-start;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item-dropdown {
    width: 100%;
  }

  .nav-item-dropdown > a {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    width: 100%;
    background-color: #F8FAFC;
    border-radius: var(--radius-sm);
    margin-top: 0.25rem;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .grid-3, .grid-4, .footer-grid {
    grid-template-columns: 1fr;
  }

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

  body {
    padding-bottom: 74px; /* clearance for sticky mobile bar */
  }

  .call-box {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .header-top {
    font-size: 0.8rem;
    text-align: center;
  }
  
  .header-top-inner {
    justify-content: center;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
