/* Union Septic Help: static site styles.
   Identity: utility-locate paint green on a cool mineral base, soil-strata cross-section as the one big visual. */

:root {
  --ink: #14222b;
  --ink-soft: #3f505a;
  --bg: #eef2f4;
  --panel: #fbfcfc;
  --line: #b8c4cb;
  --line-soft: #d3dce1;
  --mark: #0b6b3a;
  --mark-bright: #38d27a;
  --soil-1: #4a3d2a;
  --soil-2: #6b5638;
  --soil-3: #8a5236;
  --water: #24566f;
  --head: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1160px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Headings */
h1, h2, h3 {
  font-family: var(--head);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 1.2rem + 5.2vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 1.2rem + 1.9vw, 2.6rem); margin-top: 2.2em; }
h3 { font-size: 1.35rem; line-height: 1.15; margin-top: 1.6em; }
p { margin: 0 0 1.1em; }

/* Header */
.site-header { border-bottom: 2px solid var(--ink); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--head); font-stretch: 75%; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.brand::before {
  content: ""; width: 30px; height: 7px; background: var(--mark-bright);
  border-bottom: 3px solid var(--mark); transform: skewX(-24deg); flex: none;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-family: var(--head); font-stretch: 85%; font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav a.btn { color: #fff; }

/* Buttons */
.btn {
  display: inline-block; background: var(--mark); color: #fff; text-decoration: none;
  font-family: var(--head); font-stretch: 85%; font-weight: 800; font-size: 1.08rem;
  padding: .8rem 1.35rem; border: 2px solid var(--mark); border-radius: 3px; cursor: pointer; line-height: 1.1;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: 56px 0 44px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: start; }
.hero h1 { max-width: 11ch; margin-bottom: .35em; }
.hero .lead { font-size: 1.28rem; max-width: 34em; color: var(--ink-soft); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4rem; }

/* Strata cross-section */
.strata { background: var(--ink); color: #fff; padding: 0; }
.strata svg { width: 100%; height: auto; display: block; }
.strata .lbl text {
  font-family: var(--head); font-stretch: 75%; font-weight: 800; font-size: 24px; fill: #f6f8f9;
}
.strata .lbl.sky text { fill: var(--ink); font-size: 25px; }
.strata .lbl:hover text { text-decoration: underline; }
.strata .leader { stroke: #f6f8f9; stroke-opacity: .6; stroke-width: 1.5; }
.paint { stroke: var(--mark-bright); stroke-width: 5; fill: none; stroke-dasharray: 16 12; }
.reveal { transform-box: fill-box; transform-origin: left center; animation: draw 1.8s .3s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.strata-intro { background: var(--ink); color: #dbe5ea; padding: 40px 0 8px; }
.strata-intro h2 { color: #fff; margin-top: 0; }
.strata-intro p { max-width: 38em; color: #cfdbe1; }

.service-list { background: var(--ink); }
.service-list .svc-ul { display: contents; list-style: none; margin: 0; padding: 0; }
.service-list .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; padding-bottom: 36px; padding-top: 16px; }
.service-list a {
  display: block; padding: 14px 0; border-top: 1px solid #3a4b55; color: #fff; text-decoration: none;
}
.service-list a strong { display: block; font-family: var(--head); font-stretch: 75%; font-weight: 800; font-size: 1.35rem; }
.service-list a span { color: #b7c6ce; font-size: .98rem; line-height: 1.4; display: block; margin-top: 2px; }
.service-list a:hover strong { text-decoration: underline; text-decoration-color: var(--mark-bright); text-decoration-thickness: 3px; }
.service-list li { margin: 0; }

/* Sections */
section.block { padding: 48px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
section.block h2 { margin-top: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.measure { max-width: 40em; }

/* Marked lists: paint dashes, not bullets */
ul.marks { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.marks li { position: relative; padding-left: 26px; margin: .5em 0; }
ul.marks li::before {
  content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 4px; background: var(--mark); transform: skewX(-24deg);
}

/* Steps: a real sequence, so numbered */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.2em; }
ol.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 64px; border-top: 1px solid var(--line); }
ol.steps li:last-child { border-bottom: 1px solid var(--line); }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 6px;
  font-family: var(--head); font-stretch: 75%; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--mark);
}

/* Cost table */
.cost { width: 100%; border-collapse: collapse; margin: 1.2em 0 .6em; font-size: 1.02rem; }
.cost th, .cost td { text-align: left; padding: 12px 14px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.cost tr:last-child th, .cost tr:last-child td { border-bottom: 1px solid var(--line); }
.cost th { font-family: var(--head); font-stretch: 85%; font-weight: 700; font-size: 1.05rem; width: 30%; }
.cost td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.note { font-size: .92rem; color: var(--ink-soft); }

/* Towns */
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.towns li { margin: 0; }

/* FAQ */
details.faq { border-top: 1px solid var(--line); padding: 14px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary {
  cursor: pointer; font-family: var(--head); font-stretch: 85%; font-weight: 700; font-size: 1.2rem; list-style: none; padding-right: 28px; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.6rem; color: var(--mark); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin: .7em 0 0; max-width: 40em; }

/* Lead form */
.lead-form { background: var(--panel); border: 2px solid var(--ink); padding: 24px; border-radius: 3px; }
.lead-form h2, .lead-form h3 { font-size: 1.9rem; margin: 0 0 .25em; }
.lead-form .sub { font-size: .98rem; color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.5; }
.lead-form label { display: block; font-family: var(--head); font-stretch: 85%; font-weight: 700; font-size: .98rem; margin: 0 0 12px; }
.lead-form input, .lead-form select, .lead-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: .65rem .7rem; font: inherit; font-family: var(--body); font-size: 1rem; font-weight: 400;
  color: var(--ink); background: #fff; border: 1.5px solid var(--ink-soft); border-radius: 3px;
}
.lead-form textarea { resize: vertical; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form .hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.lead-form .btn { width: 100%; text-align: center; margin-top: 4px; }
.lead-form .fine { font-size: .85rem; color: var(--ink-soft); margin: .9rem 0 0; line-height: 1.45; }

/* Content pages */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; padding: 40px 20px 72px; align-items: start; }
.page article h1 { font-size: clamp(2.3rem, 1.2rem + 4vw, 3.8rem); margin-top: .1em; }
.page article > .lead { font-size: 1.25rem; color: var(--ink-soft); }
.page article h2 { margin-top: 1.9em; }
.prose p, .prose li { max-width: 40em; }
.side { position: sticky; top: 20px; display: grid; gap: 28px; }
.side .related h3 { margin-top: 0; font-size: 1.2rem; }
.side .related ul { list-style: none; padding: 0; margin: 0; }
.side .related li { border-top: 1px solid var(--line); }
.side .related a { display: block; padding: 10px 0; font-family: var(--head); font-stretch: 85%; font-weight: 700; color: var(--ink); text-decoration: none; }
.side .related a:hover { color: var(--mark); text-decoration: underline; }

.crumbs { font-family: var(--head); font-stretch: 85%; font-weight: 600; font-size: .95rem; color: var(--ink-soft); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-soft); }
.crumbs a + a::before, .crumbs a + span::before { content: "/"; margin: 0 8px; color: var(--line); display: inline-block; text-decoration: none; }

.callout { border-left: 6px solid var(--mark); background: var(--panel); padding: 16px 20px; margin: 1.6em 0; max-width: 40em; }
.callout p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #cfdbe1; padding: 48px 0 96px; margin-top: 0; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--mark-bright); }
.site-footer :focus-visible { outline-color: var(--mark-bright); }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: 1.15rem; margin: 0 0 .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35em 0; }
.site-footer .disclosure { font-size: .93rem; line-height: 1.55; max-width: 34em; }
.site-footer .legal { border-top: 1px solid #3a4b55; margin-top: 32px; padding-top: 18px; font-size: .88rem; color: #9fb1ba; }

/* Mobile action bar */
.mbar { display: none; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { max-width: none; }
  .cols { grid-template-columns: 1fr; gap: 32px; }
  .page { grid-template-columns: 1fr; gap: 40px; }
  .side { position: static; }
  .service-list .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 1.06rem; }
  .nav .x { display: none; }
  .brand { font-size: 1.3rem; }
  .strata .lbl { display: none; }
  .service-list .wrap { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr; }
  .cost th { width: auto; }
  .cost td:nth-child(2) { white-space: normal; }
  .cost thead { display: none; }
  .cost tr { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
  .cost th, .cost td { display: block; border: 0 !important; padding: 0; width: auto; }
  .lead-form .row { grid-template-columns: 1fr; gap: 0; }
  .mbar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--ink); padding: 10px 14px; border-top: 2px solid var(--mark-bright);
  }
  .mbar .btn { flex: 1; text-align: center; padding: .75rem .5rem; }
  .mbar .btn.alt { color: #fff; border-color: #fff; }
}

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