/* Leak Detection North Huntingdon PA — Production Styles
   Mobile-first, editorial, service-specific */

:root {
  /* Color language — water + precision */
  --bg: #f6f7f9;
  --bg-elevated: #ffffff;
  --bg-dark: #0f1419;
  --bg-dark-elevated: #1a222c;
  --text: #151a1f;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-on-dark: #e8edf2;
  --text-on-dark-muted: #a0aec0;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-soft: rgba(13, 148, 136, 0.12);
  --accent-border: rgba(13, 148, 136, 0.28);
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --focus: #0d9488;
  --success: #059669;
  --warning: #d97706;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Type */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 20, 25, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 20, 25, 0.08);

  --header-h: 64px;
  --sticky-cta-h: 64px;
  --max-w: 1120px;
  --max-w-narrow: 720px;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: var(--leading-tight); letter-spacing: -0.02em; }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

/* Layout utilities */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-6); }
}
.container-narrow {
  max-width: var(--max-w-narrow);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-2);
}
@media (min-width: 480px) {
  .header-inner { gap: var(--space-4); }
}
.logo {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  flex-shrink: 1;
  min-width: 0;
}
.logo span {
  display: block;
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  min-height: 44px;
  min-width: 44px;
  flex-shrink: 0;
  white-space: nowrap;
}
.phone-link:hover { background: var(--accent-soft); color: var(--accent-hover); }
.phone-link svg { width: 18px; height: 18px; flex-shrink: 0; }
/* Hide phone number text on small screens — icon only */
.phone-link .phone-text { display: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle[aria-expanded="true"] { background: var(--bg-dark); color: var(--text-on-dark); border-color: var(--bg-dark); }

/* Desktop nav */
.desktop-nav {
  display: none;
}
@media (min-width: 480px) {
  .phone-link {
    padding: var(--space-2) var(--space-3);
  }
  .phone-link .phone-text { display: inline; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }
  .desktop-nav a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .desktop-nav a:hover,
  .desktop-nav a[aria-current="page"] {
    color: var(--text);
    background: var(--accent-soft);
  }
}

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg-elevated);
  z-index: 99;
  padding: var(--space-6) var(--space-4);
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.mobile-nav a {
  display: block;
  font-size: var(--text-lg);
  font-weight: 550;
  color: var(--text);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  min-height: 52px;
}
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.mobile-nav .mobile-phone {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.mobile-nav .mobile-phone a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-lg);
}
.mobile-nav .mobile-phone a:hover {
  background: var(--accent-hover);
  color: white;
}

/* Buttons / CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.2;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-lg);
  border: none;
  min-height: 48px;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}
.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}
.btn-lg {
  padding: 1rem 1.75rem;
  font-size: var(--text-lg);
  min-height: 56px;
}
.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: var(--space-8) 0 var(--space-10);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: var(--space-16) 0 var(--space-20); }
}
.hero-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--space-12);
  }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(1.75rem, 7vw, 3.25rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  max-width: 16ch;
  line-height: 1.15;
}
.hero-lead {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  max-width: 40ch;
}
@media (min-width: 480px) {
  .hero-lead { font-size: var(--text-lg); }
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
.hero-actions .btn {
  width: 100%;
}
@media (min-width: 480px) {
  .hero-actions .btn { width: auto; }
}
.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-dark);
  aspect-ratio: 16 / 10;
  min-height: 180px;
}
@media (min-width: 480px) {
  .hero-visual {
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15,20,25,0.3) 0%, rgba(13,148,136,0.15) 100%);
  pointer-events: none;
}
.hero-meta {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.meta-chip {
  background: rgba(15, 20, 25, 0.75);
  backdrop-filter: blur(8px);
  color: var(--text-on-dark);
  font-size: var(--text-xs);
  font-weight: 550;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.12);
}

/* Sections */
.section {
  padding: var(--space-10) 0;
}
@media (min-width: 768px) {
  .section { padding: var(--space-16) 0; }
}
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section-dark .text-secondary { color: var(--text-on-dark-muted); }
.section-label {
  font-size: var(--text-xs);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: var(--space-4);
  max-width: 20ch;
}
.section-lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 42ch;
  margin-bottom: var(--space-8);
}
.section-dark .section-lead { color: var(--text-on-dark-muted); }

/* Problem / signs grid */
.signs-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 600px) {
  .signs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .signs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.sign-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.sign-card .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sign-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
}
.sign-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* Methods / service cards */
.methods-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 700px) {
  .methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.method-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.method-card .method-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.method-card h3 {
  font-size: var(--text-xl);
}
.method-card p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin: 0;
}

/* Process steps */
.process-steps {
  display: grid;
  gap: var(--space-6);
  counter-reset: step;
}
@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}
.process-step {
  position: relative;
  padding-left: var(--space-10);
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.process-step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.process-step p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin: 0;
}

/* CTA band */
.cta-band {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-12) 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-4);
}
.cta-band p {
  color: var(--text-on-dark-muted);
  max-width: 36ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.cta-band .btn-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}
@media (min-width: 480px) {
  .cta-band .btn-group {
    flex-direction: row;
    justify-content: center;
  }
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: var(--max-w-narrow);
}
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  min-height: 56px;
}
.faq-question:hover { background: var(--bg); }
.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}
.faq-item[data-open="true"] .faq-question svg {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
.faq-item[data-open="true"] .faq-answer {
  display: block;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}
.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.contact-card h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
}
.contact-row:last-child { margin-bottom: 0; }
.contact-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.contact-value {
  font-size: var(--text-lg);
  font-weight: 550;
  color: var(--text);
}
.contact-value a { color: var(--text); }
.contact-value a:hover { color: var(--accent); }
.map-embed {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--border);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: var(--space-12) 0 var(--space-8);
  font-size: var(--text-sm);
}
.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer-brand {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-on-dark);
  margin-bottom: var(--space-3);
}
.footer-brand span {
  display: block;
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  margin-top: var(--space-1);
}
.footer-nav h3,
.footer-contact h3 {
  font-size: var(--text-xs);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-dark);
  margin-bottom: var(--space-4);
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-nav a {
  color: var(--text-on-dark-muted);
}
.footer-nav a:hover { color: var(--text-on-dark); }
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-xs);
}
@media (min-width: 600px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 20, 25, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 899px) {
  .sticky-cta { display: block; }
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}
.sticky-cta .btn {
  width: 100%;
  background: var(--accent);
  color: white;
  min-height: 48px;
}
.sticky-cta .btn:hover { background: var(--accent-hover); color: white; }

/* Content page specifics */
.page-hero {
  padding: var(--space-10) 0 var(--space-8);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: var(--space-4);
  max-width: 18ch;
}
.page-hero .lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 42ch;
}
.content-block {
  max-width: var(--max-w-narrow);
}
.content-block h2 {
  font-size: var(--text-2xl);
  margin: var(--space-10) 0 var(--space-4);
}
.content-block h2:first-child { margin-top: 0; }
.content-block h3 {
  font-size: var(--text-lg);
  margin: var(--space-6) 0 var(--space-3);
}
.content-block p,
.content-block ul {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}
.content-block ul {
  list-style: disc;
  padding-left: var(--space-5);
}
.content-block li { margin-bottom: var(--space-2); }

/* Visual callout */
.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5);
  margin: var(--space-8) 0;
}
.callout p {
  margin: 0;
  color: var(--text);
  font-size: var(--text-base);
}

/* Breadcrumb */
.breadcrumb {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 var(--space-2); }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Image treatments */
.img-rounded {
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Two-col content */
.split {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-12);
  }
  .split-reverse { direction: rtl; }
  .split-reverse > * { direction: ltr; }
}