/* ============================================================
   SUBTERRA SEWER CO. — Specialty Sewer / Trenchless template
   Clay-ochre + slate + safety-orange + dark-soil geological palette
   Recoleta (Fraunces fallback) + IBM Plex Sans + IBM Plex Mono
   ============================================================ */

:root {
  /* Clay-ochre */
  --clay: #a85a2e;
  --clay-dark: #7a3f1f;
  --clay-soft: #c89372;
  /* Page surfaces */
  --bg: #f0e8da;
  --card: #faf4e8;
  /* Ink */
  --ink: #1f1a14;
  --ink-soft: #4a4035;
  /* Slate (engineering anchor) */
  --slate: #4f5b6c;
  --slate-soft: #8c97a5;
  --rule: #c8b89c;
  --rule-strong: #a89878;
  /* Safety orange (engineering convention) */
  --orange: #e85d18;
  --orange-bg: #fff0e8;
  --shadow: rgba(31, 26, 20, 0.10);

  --display: 'Recoleta', 'Fraunces', Georgia, serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s, color 0.2s;
}
a:hover { text-decoration-color: var(--clay); color: var(--clay-dark); }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.5rem; line-height: 1.25; }
p { margin-bottom: 1em; }
em { font-family: var(--display); font-style: italic; }
strong { font-weight: 600; }

.mono { font-family: var(--mono); }

.smallcaps {
  font-family: var(--body);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--slate);
}
.smallcaps--clay { color: var(--clay); }
.smallcaps--orange { color: var(--orange); }

.wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap--narrow { max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap--medium { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--ink); color: var(--bg);
  padding: 0.5rem 1rem; font-size: 0.85rem; z-index: 200; text-decoration: none;
}
.skip-link:focus { top: 0; }

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

.rule { height: 1px; background: var(--rule); border: 0; margin: 4rem 0; }
.rule--clay { background: var(--clay); width: 3rem; height: 2px; margin: 0 0 1.5rem; }

/* ============================================================
   HEADER — Two-row sticky
   ============================================================ */
.emergency-strip {
  background: var(--orange);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0;
  text-align: center;
}
.emergency-strip a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  font-family: var(--mono);
  font-weight: 600;
}
.emergency-strip a:hover { color: #fff; text-decoration-color: #fff; }
.emergency-strip .es-icon { display: inline-block; margin-right: 0.4rem; }
.emergency-strip .es-sep { margin: 0 0.6rem; opacity: 0.7; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--rule), 0 4px 12px var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  gap: 1.5rem;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.wordmark-main {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.wordmark-sub {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--slate);
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
}

.site-nav { display: flex; gap: 1.4rem; align-items: center; }
.site-nav a {
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--clay); }
.site-nav a.is-current { color: var(--ink); border-bottom: 2px solid var(--clay); padding-bottom: 0.2rem; }
.site-nav a.is-trenchless { color: var(--clay); font-weight: 600; }

.header-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
.header-meta .smallcaps { font-size: 0.6875rem; letter-spacing: 0.14em; }
.header-phone {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; font-size: 1.4rem; color: var(--ink); }
@media (max-width: 980px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .header-meta { display: none; }
}

/* ============================================================
   HERO — Pattern #5 (stats-band)
   Image strip top + headline below + 4-stat row beneath
   ============================================================ */
.hero {
  padding-top: 2rem;
  padding-bottom: 0;
  background: var(--bg);
}
.hero-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.5rem;
  height: clamp(280px, 38vh, 420px);
  margin-bottom: 3rem;
}
.hero-strip > div {
  background-size: cover;
  background-position: center;
  background-color: var(--slate-soft);
}
.hero-strip > div:first-child {
  grid-row: span 1;
}
.hero-strip-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
}
.hero-strip-stack > div {
  background-size: cover;
  background-position: center;
  background-color: var(--slate-soft);
}

.hero-headline {
  padding: 0 0 3rem;
}
.hero-eyebrow {
  font-family: var(--body);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 1.25rem;
  display: block;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.hero-sub {
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 48rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

/* 4-stat row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.hero-stats > div {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--rule);
}
.hero-stats > div:last-child { border-right: 0; }
.hero-stat-num {
  font-family: var(--mono);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--clay);
  line-height: 1;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 0.5rem;
}
.hero-stat-label {
  font-family: var(--body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate);
  font-weight: 600;
  line-height: 1.35;
}
@media (max-width: 880px) {
  .hero-strip { grid-template-columns: 1fr 1fr; height: 260px; }
  .hero-strip > div:first-child { grid-column: span 2; height: 220px; }
  .hero-strip-stack { display: contents; }
  .hero-strip-stack > div { height: 120px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div { border-bottom: 1px solid var(--rule); }
  .hero-stats > div:nth-child(2) { border-right: 0; }
  .hero-stats > div:nth-child(3), .hero-stats > div:nth-child(4) { border-bottom: 0; }
}

/* ============================================================
   PAGE HERO (interior pages — short)
   ============================================================ */
.page-hero {
  padding: 4.5rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.page-hero .smallcaps { display: block; margin-bottom: 1rem; }
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 28ch;
}
.page-hero--image {
  position: relative;
  min-height: 340px;
  padding: 6rem 0 3rem;
  color: #fff;
  overflow: hidden;
}
.page-hero--image::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-image: var(--hero-img);
  z-index: 0;
}
.page-hero--image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,26,20,0.4) 0%, rgba(31,26,20,0.75) 100%);
  z-index: 1;
}
.page-hero--image > .wrap { position: relative; z-index: 2; }
.page-hero--image h1 { color: #fff; }
.page-hero--image .smallcaps { color: var(--clay-soft); }
.page-hero--image .breadcrumb { color: rgba(255,255,255,0.7); }
.page-hero--image .breadcrumb a { color: rgba(255,255,255,0.85); }

.breadcrumb {
  font-family: var(--body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--clay); }
.breadcrumb .sep { margin: 0 0.6rem; color: var(--slate-soft); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.95rem 1.6rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--clay);
  background: transparent;
  color: var(--clay);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--clay); color: #fff; text-decoration: none; }
.btn--primary { background: var(--clay); color: #fff; }
.btn--primary:hover { background: var(--clay-dark); border-color: var(--clay-dark); color: #fff; }
.btn--orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--orange:hover { background: #c84a0d; border-color: #c84a0d; color: #fff; }
.btn--ghost { color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 4.5rem 0; }
section.tight { padding: 2.5rem 0; }

/* ============================================================
   SEWER-EMERGENCY BAND (full-width, orange — NOT red)
   ============================================================ */
.sewer-emergency-band {
  background: var(--orange);
  color: #fff;
  padding: 3rem 0;
}
.sewer-emergency-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 3rem;
  align-items: center;
}
.sewer-emergency-band h2 {
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.sewer-emergency-band p { color: rgba(255,255,255,0.92); font-size: 1rem; margin: 0; }
.sewer-emergency-phone {
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 2.875rem);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: block;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.sewer-emergency-band .smallcaps { color: rgba(255,255,255,0.85); font-size: 0.7rem; letter-spacing: 0.16em; }
@media (max-width: 800px) { .sewer-emergency-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ============================================================
   CREDENTIAL STRIP
   ============================================================ */
.cred-strip {
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.cred-item {
  padding: 0.5rem 1.25rem;
  border-right: 1px solid var(--rule);
  text-align: center;
}
.cred-item:last-child { border-right: 0; }
.cred-item .smallcaps {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
}
.cred-item p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 880px) {
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .cred-item { border-right: 0; border-bottom: 1px solid var(--rule); padding: 1rem; }
  .cred-item:nth-child(2n) { border-right: 0; }
  .cred-item:last-child { grid-column: span 2; }
}

/* ============================================================
   SERVICES GRID (homepage)
   ============================================================ */
.services-grid-section { padding: 5rem 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.section-header h2 { max-width: 24ch; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.svc-card {
  background: var(--card);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.svc-card:hover { box-shadow: 0 8px 24px var(--shadow); transform: translateY(-2px); }
.svc-card-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--slate-soft);
}
.svc-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.svc-card-num {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.svc-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.svc-card p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; flex: 1; margin-bottom: 1rem; }
.svc-card-spec {
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--bg);
  border-left: 2px solid var(--slate);
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
  color: var(--slate);
  line-height: 1.45;
}
.svc-card-link {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  text-decoration: none;
  font-weight: 600;
}
.svc-card-link:hover { color: var(--clay-dark); }
@media (max-width: 880px) { .svc-grid { grid-template-columns: 1fr; } }
@media (min-width: 881px) and (max-width: 1100px) { .svc-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   "WHY A SPECIALIST" — 2-column editorial block
   ============================================================ */
.specialist-block {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
  border-top: 1px solid var(--rule);
}
.specialist-img {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  background-color: var(--slate-soft);
}
.specialist-block h2 {
  font-family: var(--display);
  font-weight: 500;
  margin-bottom: 1.5rem;
  max-width: 22ch;
}
.specialist-block p { color: var(--ink-soft); line-height: 1.7; font-size: 1.0625rem; margin-bottom: 1rem; }
@media (max-width: 880px) { .specialist-block { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; } }

/* ============================================================
   FEATURED PROJECTS (3-card row)
   ============================================================ */
.featured-projects { padding: 5rem 0; border-top: 1px solid var(--rule); }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.proj-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s;
}
.proj-card:hover { transform: translateY(-3px); }
.proj-card-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--slate-soft);
  margin-bottom: 1.25rem;
}
.proj-card-eyebrow {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.proj-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1rem;
}
.proj-card-spec {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--slate);
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.proj-card-cta {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
}
@media (max-width: 880px) { .proj-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SERVICE AREA + MAP
   ============================================================ */
.service-area-section { padding: 5rem 0; border-top: 1px solid var(--rule); }
.service-area-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 3rem;
  align-items: stretch;
}
.area-map-wrap {
  aspect-ratio: 4/3;
  background: var(--slate-soft);
}
.area-map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.area-info h2 { margin-bottom: 1rem; }
.area-info p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.area-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
  font-size: 0.95rem;
  margin-top: 1rem;
}
.area-list a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--rule);
  display: block;
}
.area-list a:hover { color: var(--clay); }
@media (max-width: 880px) { .service-area-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  text-align: center;
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.final-cta h2 {
  font-family: var(--display);
  font-weight: 500;
  max-width: 24ch;
  margin: 0 auto 1.5rem;
}
.final-cta .big-phone {
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--clay);
  text-decoration: none;
  display: block;
  margin: 1rem 0;
}

/* ============================================================
   ARTICLE PROSE (about, services-detail)
   ============================================================ */
.article-prose {
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 42rem;
  margin: 0 auto;
}
.article-prose p { margin-bottom: 1.25rem; }
.article-prose h2 {
  margin: 3rem 0 1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.625rem, 2.8vw, 2rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.article-prose h3 { margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.article-prose blockquote {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--clay);
  border-left: 3px solid var(--clay);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
}
.article-prose blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}
.article-prose ul, .article-prose ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-prose li { margin-bottom: 0.4rem; }
.article-prose dl { margin: 1.5rem 0; padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.article-prose dt { font-weight: 600; margin-top: 0.75rem; }
.article-prose dt:first-child { margin-top: 0; }
.article-prose dd { color: var(--ink-soft); margin-bottom: 0.4rem; padding-left: 0; }
.article-prose img { margin: 2rem 0; }

/* Spec-callout box (Plex Mono) */
.spec-callout {
  font-family: var(--mono);
  background: var(--card);
  border: 1px solid var(--slate-soft);
  border-left: 3px solid var(--slate);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate);
  white-space: pre-wrap;
  overflow-x: auto;
}
.spec-callout strong { color: var(--ink); }

/* Pricing table — Plex Mono */
.pricing-mono {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.25rem;
  margin: 2rem 0;
  overflow-x: auto;
}
.pricing-mono table { width: 100%; border-collapse: collapse; }
.pricing-mono th, .pricing-mono td {
  padding: 0.45rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.pricing-mono th { color: var(--slate); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pricing-mono tr:last-child td { border-bottom: 0; }

/* ============================================================
   SERVICES INDEX (alternating L/R)
   ============================================================ */
.svc-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}
.svc-block.reverse > :first-child { order: 2; }
.svc-block-img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--slate-soft);
}
.svc-block .svc-block-num {
  display: block;
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.svc-block h2 {
  font-family: var(--display);
  font-weight: 500;
  margin-bottom: 1rem;
}
.svc-block p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 1rem; }
.svc-block-cta {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 880px) {
  .svc-block { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
  .svc-block.reverse > :first-child { order: 0; }
}

/* ============================================================
   DETAIL PAGE LAYOUT (services/trenchless etc — sidebar)
   ============================================================ */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 18rem;
  gap: 4rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  align-items: start;
}
.detail-sidebar {
  position: sticky;
  top: 7rem;
  padding: 1.75rem;
  border: 1px solid var(--rule);
  background: var(--card);
}
.detail-sidebar h3 {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
  font-weight: 600;
}
.detail-sidebar ul { list-style: none; padding: 0; margin: 0; }
.detail-sidebar li {
  font-size: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  line-height: 1.45;
}
.detail-sidebar li:last-child { border-bottom: 0; }
.detail-sidebar .sidebar-cta {
  display: block;
  background: var(--clay);
  color: #fff;
  padding: 0.85rem 1rem;
  text-align: center;
  margin-top: 1.25rem;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.detail-sidebar .sidebar-cta:hover { background: var(--clay-dark); color: #fff; }
@media (max-width: 980px) {
  .detail-layout { grid-template-columns: 1fr; gap: 2rem; }
  .detail-sidebar { position: static; }
}

/* Inline sticky CTA strip (above trenchless body) */
.inline-cta-strip {
  background: var(--clay);
  color: #fff;
  padding: 0.85rem 0;
  text-align: center;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  position: sticky;
  top: 4.3rem;
  z-index: 50;
}
.inline-cta-strip a {
  color: #fff;
  font-family: var(--mono);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
}
.inline-cta-strip a:hover { text-decoration-color: #fff; color: #fff; }

/* ============================================================
   FAQ block
   ============================================================ */
.faq-block { padding: 4rem 0; border-top: 1px solid var(--rule); }
.faq-block h2 { margin-bottom: 2rem; }
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}
.faq-item summary {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--clay);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item-body { padding: 1rem 0 0; color: var(--ink-soft); line-height: 1.65; }

/* ============================================================
   PROJECT CASE STUDY
   ============================================================ */
.case-hero {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  padding: 3rem 0 4rem;
  align-items: start;
}
.case-hero-img {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  background-color: var(--slate-soft);
}
.case-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 2rem;
}
@media (max-width: 880px) { .case-hero { grid-template-columns: 1fr; gap: 1.5rem; } }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}
.gallery-grid > div {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--slate-soft);
}
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   SERVICE AREA PAGE — area blocks
   ============================================================ */
.area-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}
.area-block {
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--rule);
}
.area-block h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0.5rem 0 0.75rem;
}
.area-block p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: 1rem; }
.area-block-spec {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--slate);
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
@media (max-width: 880px) { .area-blocks { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.emergency-callout {
  background: var(--orange-bg);
  border-left: 4px solid var(--orange);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
}
.emergency-callout h2 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.emergency-callout .big-phone {
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  display: block;
  margin: 0.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.emergency-callout p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
}
.contact-grid--divider { position: relative; }
.contact-grid--divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--rule-strong);
  transform: translateX(-50%);
}
.contact-grid--divider::after {
  content: 'OR — IF SEWAGE IS ACTIVE';
  position: absolute;
  left: 50%;
  top: 1.5rem;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0.5rem 0.85rem;
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid--divider::before, .contact-grid--divider::after { display: none; }
}

.contact-form { background: var(--card); padding: 2rem; border: 1px solid var(--rule); }
.contact-form h2 {
  font-family: var(--display);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.contact-form--emergency { border-color: var(--orange); border-left: 3px solid var(--orange); }
.contact-form--emergency h2 { color: var(--orange); }
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid var(--rule);
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--clay); }
.form-submit {
  background: var(--clay);
  color: #fff;
  border: 0;
  padding: 0.95rem 1.5rem;
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--clay-dark); }
.form-submit--orange { background: var(--orange); }
.form-submit--orange:hover { background: #c84a0d; }
.form-note { font-family: var(--body); font-style: italic; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.75rem; }

.nap-card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 2rem;
  margin: 2rem 0;
}
.nap-card h3 { font-family: var(--display); font-weight: 500; margin-bottom: 1rem; }
.nap-card p { font-size: 0.95rem; margin-bottom: 0.5rem; }
.nap-card .nap-phone { font-family: var(--mono); font-weight: 600; color: var(--clay); text-decoration: none; }
.nap-card pre.hours {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--bg);
  padding: 1rem;
  margin: 1rem 0;
  white-space: pre;
  overflow-x: auto;
  line-height: 1.6;
  border-left: 2px solid var(--slate);
}
.nap-card .licenses {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--slate);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
  line-height: 1.6;
}

.contact-map-wide {
  width: 100%;
  aspect-ratio: 21/9;
  border: 0;
  display: block;
  background: var(--slate-soft);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 4rem 0;
}
.info-grid h3 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; margin-bottom: 0.5rem; }
.info-grid p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 800px) { .info-grid { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--clay-dark);
  color: #fff;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 5fr 4fr 4fr 4fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer h3 {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-soft);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.footer .wordmark-main { color: var(--bg); }
.footer .wordmark-sub { color: rgba(250,232,218,0.6); }
.footer-mission {
  color: rgba(250,232,218,0.78);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}
.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(250,232,218,0.7);
  letter-spacing: 0.02em;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a {
  color: rgba(250,232,218,0.78);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-nav a:hover { color: #fff; }
.footer-nap p { color: rgba(250,232,218,0.85); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.4rem; }
.footer-nap a { color: #fff; text-decoration: none; }
.footer-nap .mono-phone { font-family: var(--mono); font-weight: 600; }
.footer-nap pre {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(250,232,218,0.75);
  margin-top: 0.75rem;
  white-space: pre;
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid rgba(250,232,218,0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--body);
  font-size: 0.78rem;
  color: rgba(250,232,218,0.55);
}
.footer-bottom em { font-style: italic; color: rgba(250,232,218,0.7); }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.cross-link {
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
}
.cross-link .smallcaps { margin-bottom: 1.5rem; display: block; }
.cross-link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cross-link-card {
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.25rem;
}
.cross-link-card h4 { font-family: var(--display); font-weight: 500; font-size: 1.1rem; margin-bottom: 0.5rem; }
.cross-link-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 800px) { .cross-link-cards { grid-template-columns: 1fr; } }
