/* BAYONNE, NJ LEAK DETECTION CSS SYSTEM */
:root {
  /* Color Palette - Water / Investigation / Precision */
  --nav-bg: #0A192F;
  --primary: #112240;
  --secondary: #233554;
  --bg-color: #F8FAFC;
  --surface-color: #FFFFFF;
  --text-dark: #1E293B;
  --text-light: #475569;
  --water-accent: #38BDF8;
  --call-accent: #F59E0B; /* High-visibility conversion orange */
  --call-accent-hover: #D97706;
  --border-color: #E2E8F0;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-light {
  background-color: var(--surface-color);
}

.section-dark {
  background-color: var(--primary);
  color: #F8FAFC;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--nav-bg);
  margin-bottom: 20px;
}

.section-dark h2, .section-dark h3 {
  color: #FFFFFF;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 16px; color: var(--text-light); }
.section-dark p { color: #CBD5E1; }
ul { margin-left: 20px; margin-bottom: 20px; color: var(--text-light); }
li { margin-bottom: 8px; }

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--call-accent);
  color: #111827;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  min-height: 44px;
  min-width: 44px;
}

.btn:hover, .btn:focus {
  background-color: var(--call-accent-hover);
  color: #111827;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--water-accent);
  color: var(--water-accent);
}

.btn-secondary:hover {
  background-color: var(--water-accent);
  color: var(--nav-bg);
}

/* Header & Navigation */
header {
  background-color: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--water-accent);
}

.desktop-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.desktop-nav a {
  color: #E2E8F0;
  font-weight: 500;
  font-size: 0.95rem;
}

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

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

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--surface-color);
  min-width: 280px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

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

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background-color: var(--bg-color);
  color: var(--water-accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.75rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

/* Hero Section */
.hero {
  background-color: var(--nav-bg);
  background-image: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.95));
  padding: 100px 0;
  text-align: center;
  color: #FFFFFF;
}

.hero h1 {
  color: #FFFFFF;
  max-width: 900px;
  margin: 0 auto 24px auto;
}

.hero p {
  font-size: 1.125rem;
  color: #CBD5E1;
  max-width: 700px;
  margin: 0 auto 32px auto;
}

/* Content Grid & Sidebar */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.main-content img {
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sidebar {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  font-size: 1.25rem;
  border-bottom: 2px solid var(--water-accent);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.sidebar ul {
  list-style: none;
  margin-left: 0;
}

.sidebar li {
  margin-bottom: 12px;
}

.sidebar a {
  display: block;
  font-weight: 500;
}

.sidebar a:hover {
  color: var(--water-accent);
}

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

.breadcrumbs a {
  color: var(--nav-bg);
  font-weight: 500;
}

.breadcrumbs span {
  color: var(--text-light);
}

/* FAQ Section */
.faq-section {
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.faq-item {
  margin-bottom: 24px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 24px;
}

.faq-item h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

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

/* Call Prompt Blocks */
.call-prompt {
  background-color: var(--bg-color);
  border-left: 4px solid var(--water-accent);
  padding: 30px;
  margin: 40px 0;
  border-radius: 0 8px 8px 0;
}

.call-prompt h3 {
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: var(--nav-bg);
  color: #94A3B8;
  padding: 60px 0 20px 0;
}

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

.footer-col h3 {
  color: #FFFFFF;
  font-size: 1.125rem;
  margin-bottom: 20px;
}

.footer-col a {
  color: #94A3B8;
  display: block;
  margin-bottom: 12px;
}

.footer-col a:hover {
  color: var(--water-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin-bottom: 10px;
}

/* Sticky Mobile Call Bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--nav-bg);
  padding: 12px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-call-bar a {
  display: block;
  background-color: var(--call-accent);
  color: #111827;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 14px;
  border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  .desktop-nav.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background-color: rgba(255, 255, 255, 0.05);
    min-width: 100%;
    display: block;
  }

  .dropdown-menu a {
    color: #E2E8F0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-btn {
    display: block;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .mobile-call-bar {
    display: block;
  }

  body {
    padding-bottom: 76px; /* Offset for sticky mobile bar */
  }
}
