/* Layout: sticky header, hero with copy + quote form side by side, full-width bands with a centered wrap. */
:root {
  --ink: #15211e;        /* text */
  --muted: #55625e;
  --ground: #ffffff;     /* page */
  --ground-alt: #eef3f1; /* alternate bands */
  --line: #d5dfdb;
  --pine: #0e4b43;       /* brand */
  --pine-deep: #0a3630;
  --amber: #f0a414;      /* call button: truck-light amber */
  --amber-deep: #c98400;
  --soil: #b89a72;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
}
img, svg { max-width: 100%; }
a { color: var(--pine); }
a:hover { color: var(--pine-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; text-wrap: balance; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ground); padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.15em; border-radius: 999px;
  font: 700 1rem/1.1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-lg { min-height: 54px; font-size: 1.08rem; padding: .7em 1.4em; }
.btn-call { background: var(--amber); color: #1d1500; }
.btn-call:hover { background: var(--amber-deep); color: #1d1500; }
.btn-primary { background: var(--pine); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--pine-deep); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--pine-deep); color: #fff; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--pine-deep); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.35rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.logo:hover { color: #fff; }
.logo-mark { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 50% 62%, var(--amber) 0 34%, transparent 35%), var(--pine); border: 3px solid var(--amber); }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: #d8e7e3; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: #fff; }
.top-call { margin-left: 8px; }
@media (max-width: 980px) { .nav { display: none; } .top-call { margin-left: auto; } }
@media (max-width: 520px) { .top-call span { display: none; } .top-call { width: 46px; padding: 0; } .logo { font-size: 1.15rem; } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%); color: #fff; padding-block: 48px 56px; }
.hero a:not(.btn) { color: #ffd88a; }
.hero-urgent { background: linear-gradient(180deg, #5b1d14 0%, #3b120c 100%); }
.hero-slim { padding-block: 40px 40px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: start; }
@media (max-width: 880px) { .hero-in { grid-template-columns: 1fr; gap: 32px; } }
.eyebrow { font: 700 .82rem/1 var(--body); text-transform: uppercase; letter-spacing: .12em; color: #ffd88a; margin-bottom: 14px; }
.lede { font-size: 1.14rem; color: #e4efec; max-width: 60ch; }
.hero-slim .lede { margin-bottom: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.trust li { display: flex; gap: 8px; align-items: center; color: #e4efec; font-weight: 600; font-size: .96rem; }
.trust svg { color: var(--amber); flex: none; }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* Quote form */
.quote { background: var(--ground); color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); display: grid; gap: 6px; }
.quote-title { font-size: 1.8rem; margin: 0; }
.quote-sub { color: var(--muted); font-size: .95rem; margin: 0 0 8px; }
.quote label { font-weight: 600; font-size: .92rem; margin-top: 6px; }
.quote .opt { font-weight: 400; color: var(--muted); }
.quote input, .quote select, .quote textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.quote input:focus, .quote select:focus, .quote textarea:focus { border-color: var(--pine); outline: none; box-shadow: 0 0 0 3px rgba(14, 75, 67, .2); }
.quote .btn { margin-top: 12px; }
.hp { position: absolute; left: -9999px; }
.form-note { margin: 4px 0 0; font-size: .92rem; color: var(--pine); }

/* Bands */
.band { padding-block: 56px; }
.band-alt { background: var(--ground-alt); }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.card { display: flex; flex-direction: column; padding: 22px; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--ground); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--pine); color: var(--ink); transform: translateY(-2px); }
.card h3 { color: var(--pine); }
.card p { color: var(--muted); font-size: .97rem; }
.card .more { margin-top: auto; font-weight: 700; color: var(--pine); font-size: .95rem; }

.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--ground-alt); border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; color: var(--pine); }
.chips a:hover { border-color: var(--pine); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { color: var(--pine); flex: none; margin-top: 4px; }

.steps { padding-left: 1.3em; display: grid; gap: 14px; margin-bottom: 1.5em; }

.side { display: grid; gap: 20px; min-width: 0; }
.side-box { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.side-box ul { margin: 0; padding-left: 1.1em; }
.side-box .chips { margin-top: 0; }
.side-h { font-weight: 700; margin-bottom: 8px; }

.sources { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* Septic tank diagram */
.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.diagram .soil { fill: #d9c6a5; }
.diagram .grass { fill: #6f9a52; }
.diagram .tank { fill: #9aa6a2; stroke: #4d5a56; stroke-width: 4; }
.diagram .lid { fill: #6c7874; }
.diagram .scum { fill: #c9b27c; }
.diagram .liquid { fill: #7fa7a0; }
.diagram .sludge { fill: #5d4a35; }
.diagram .pipe { fill: none; stroke: #3e4a47; stroke-width: 8; stroke-linecap: round; }
.diagram .baffle { stroke: #3e4a47; stroke-width: 5; }
.diagram .field circle { fill: #3e4a47; }
.diagram text { font: 600 15px var(--body); fill: #2a2a2a; }
.diagram text.in { fill: #fff; text-anchor: middle; }
.diagram text.sm { font-size: 13px; }
.diagram figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* FAQ */
.faq-band { background: var(--ground-alt); }
details { border-bottom: 1.5px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--pine); }
details[open] summary::after { content: "–"; }
summary::-webkit-details-marker { display: none; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: 1.2em; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { background: var(--pine); color: #fff; font-size: .92rem; }

/* CTA band */
.cta-band { background: var(--amber); padding-block: 36px; }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta-text { font: 700 clamp(1.4rem, 3vw, 1.9rem)/1.15 var(--display); margin: 0; color: #1d1500; max-width: 34ch; }
.cta-band .btn-call { background: var(--pine-deep); color: #fff; }
.cta-band .btn-call:hover { background: #000; color: #fff; }

/* Footer */
.foot { background: var(--pine-deep); color: #c9dbd6; padding-block: 48px 110px; font-size: .95rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-brand { font: 700 1.4rem/1 var(--display); text-transform: uppercase; color: #fff; }
.foot-phone { font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.foot-h { font-weight: 700; color: #fff; margin-bottom: 10px; }
.disclosure { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .86rem; max-width: 90ch; }
.copy { font-size: .85rem; margin: 0; }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: var(--pine-deep); box-shadow: 0 -6px 18px rgba(0, 0, 0, .2);
  }
  .callbar .btn { flex: 1; }
  .callbar .btn-ghost { color: #fff; flex: 0 0 auto; }
  .band { padding-block: 40px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
