/* Sewer Line Repair Warminster PA — Design System
   Premium, editorial, mobile-first, infrastructure-inspired
   Dark/light contrast, restrained geometry, confident type
*/

:root {
  /* Color language — earth, pipe, controlled flow */
  --bg: #f4f2ee;
  --bg-elevated: #ffffff;
  --bg-dark: #12151a;
  --bg-dark-elevated: #1c2129;
  --text: #16181c;
  --text-muted: #5c636c;
  --text-on-dark: #eef0f2;
  --text-muted-on-dark: #9aa3ad;
  --accent: #2a6b63;          /* deep teal — water/flow/reliability */
  --accent-hover: #1f524c;
  --accent-soft: #e6f0ee;
  --warm: #a67c52;            /* copper/earth */
  --border: #e0dcd4;
  --border-dark: #2a303a;
  --focus: #2a6b63;
  --success: #2a6b63;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Instrument Sans", "Inter", system-ui, sans-serif;

  /* Spacing rhythm */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --max-width: 72rem;
  --max-narrow: 40rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --header-h: 4rem;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Motion */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration: 0.01ms;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.85rem, 5.5vw, 3.25rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3.8vw, 2.25rem);
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
}

p {
  max-width: 38rem;
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-muted);
}

.meta {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== Layout utilities ========== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section--tight {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--text-on-dark);
}

.section--dark .lead,
.section--dark .meta,
.section--dark p {
  color: var(--text-muted-on-dark);
}

.section--accent {
  background: var(--accent-soft);
}

/* ========== Header / Nav ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 242, 238, 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: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
  max-width: 11rem;
}

.logo span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  transition: background var(--duration) var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--text-muted);
  background: var(--bg-elevated);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
}

.btn--on-dark {
  background: var(--accent);
  color: #fff;
}

.btn--on-dark-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid var(--border-dark);
}

.btn--on-dark-outline:hover {
  background: var(--bg-dark-elevated);
  color: var(--text-on-dark);
}

.btn--lg {
  min-height: 3.15rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn--call {
  background: var(--accent);
  color: #fff;
}

/* Mobile menu button */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
}

.menu-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}

/* Mobile nav drawer */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  visibility: hidden;
}

.nav-mobile[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
}

.nav-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile-links a {
  display: block;
  padding: 1rem 0.75rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  min-height: 3rem;
}

.nav-mobile-links a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-mobile-cta {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ========== Hero ========== */
.hero {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(3rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-label .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin-bottom: 1rem;
  max-width: 16ch;
}

.hero .lead {
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-dark);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(transparent, rgba(18, 21, 26, 0.85));
  color: var(--text-on-dark);
  font-size: 0.8125rem;
}

/* ========== Cards / Modules ========== */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--duration) var(--ease);
}

.card:hover {
  border-color: #c8c2b8;
}

.card--dark {
  background: var(--bg-dark-elevated);
  border-color: var(--border-dark);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* Process steps */
.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step-num {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.step h3 {
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 40rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 550;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  min-height: 3.25rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.faq-item .faq-body p + p {
  margin-top: 0.75rem;
}

/* CTA band */
.cta-band {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: clamp(2.75rem, 7vw, 4rem);
  text-align: center;
}

.cta-band h2 {
  color: var(--text-on-dark);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--text-muted-on-dark);
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.cta-band .btn {
  margin-inline: 0.35rem;
}

/* Contact block */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.contact-card h3 {
  margin-bottom: 0.35rem;
}

.contact-card p,
.contact-card a {
  font-size: 1.05rem;
}

.phone-link {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
}

.phone-link:hover {
  color: var(--accent-hover);
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: var(--border);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-muted-on-dark);
  padding-block: 3rem 2rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  color: var(--text-on-dark);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: var(--text-muted-on-dark);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text-on-dark);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

/* Sticky mobile call bar */
.sticky-call {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.65rem 1rem calc(0.65rem + var(--safe-bottom));
  background: rgba(18, 21, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}

.sticky-call.visible {
  transform: translateY(0);
}

.sticky-call .btn {
  width: 100%;
  max-width: 22rem;
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.split {
  display: grid;
  gap: 2rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* Signs / symptom list */
.sign-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.sign-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sign-list .marker {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--warm);
  flex-shrink: 0;
}

/* Method comparison */
.method-grid {
  display: grid;
  gap: 1.25rem;
}

.method-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.method-card h3 {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.method-card .tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 0.25rem;
}

/* ========== Responsive ========== */
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
  }
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .steps {
    gap: 2rem;
  }
  .sticky-call {
    display: none;
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .method-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .logo {
    max-width: none;
    font-size: 1.05rem;
  }
  .logo span {
    display: inline;
    margin-left: 0.35rem;
  }
}

/* Body padding for sticky call on mobile */
@media (max-width: 767px) {
  body.has-sticky-call {
    padding-bottom: calc(4.25rem + var(--safe-bottom));
  }
}