/* Septic Services MN: practical, directory first (ideas/design-directions.md, "Septic"). Thomas 11-03: white page with
   light beige sections, mostly green (close to Waste Management's, not the same), Archivo headings. Amber only for urgent notes. */
:root {
  --ink: #17241c;
  --muted: #5a5f57;
  --line: #e3e3d8;
  --cream: #f8f8f2;      /* light beige sections */
  --cream-2: #eeeee4;    /* the slightly darker beige */
  --white: #ffffff;
  --deep: #0d4a33;       /* headings, footer, dark bands */
  --deep-2: #083624;
  --green: #2a7f12;      /* buttons and links, white text */
  --green-2: #236c0f;    /* hover */
  --green-tint: #e8f1e2;
  --amber: #e0a21b;      /* urgent notes only, like "Sewage backing up?" */
  --amber-tint: #fbf0d3;
  --radius: 10px;
  --head: "Archivo", system-ui, -apple-system, sans-serif;
  --sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--head); font-weight: 700; letter-spacing: -0.015em; color: var(--deep); }
h1 { font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: 28px; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 12px; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sec { padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.sec-lede { color: var(--muted); max-width: 42em; margin-top: -6px; margin-bottom: 22px; }
.prose h2[id], .prose h2 { scroll-margin-top: 90px; }
.small { font-size: 15px; }
.link { color: var(--green); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--green-2); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { display: block; height: 28px; width: auto; }
.top-links { display: flex; align-items: center; gap: 2px; }
.top-links a { text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 12px; border-radius: 8px; color: var(--deep); }
.top-links a:hover { background: var(--cream-2); }
.top-links a.top-cta { background: var(--green); color: #fff; margin-left: 6px; font-weight: 700; white-space: nowrap; }
.top-links a.top-cta:hover { background: var(--green-2); }
.top-links .nav-extra { display: none; }

/* Hero */
.hero { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 40px; align-items: start; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.kicker { font-size: 14px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.hero h1, .page-h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.04; color: var(--deep); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 14px 0 20px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 17px; font-weight: 600; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks svg { width: 22px; height: 22px; flex: none; }
.meta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--deep); background: var(--green-tint); border-radius: 999px; padding: 6px 12px; margin: 0 0 18px; }
.meta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* Home hero: finder on the left, cutaway on the right */
.hero-home { background: var(--cream); }
.hero-home .hero { padding-bottom: 36px; }
.cutaway { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 8px; }
.cutaway svg { display: block; width: 100%; height: auto; }
.cutaway figcaption { font-size: 15px; color: var(--muted); padding: 10px 4px 4px; }
.cutaway ol { margin: 6px 0 0; padding-left: 20px; }
.cutaway li { margin-bottom: 2px; }

/* Finder: what do you need + where */
.finder { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 4px 14px rgba(47, 93, 58, .10); max-width: 560px; margin-top: 4px; }
.finder-row { display: grid; gap: 10px; }
.finder .f { display: block; border: 1px solid #b9b2a2; border-radius: 8px; padding: 10px 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--white); }
.finder .f:focus-within { outline: 2px solid var(--green); outline-offset: -1px; }
.finder select, .finder input { display: block; width: 100%; border: 0; padding: 3px 0 0; background: transparent; font: 600 17px/1.4 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; outline: none; }
.finder .btn { margin-top: 10px; }
.finder-note { font-size: 15px; color: var(--muted); margin: 12px 2px 0; }
.finder-note a { color: var(--green); font-weight: 700; }

/* Urgent box: sewage backing up */
.alert { background: var(--amber-tint); border: 1px solid #ecd28c; border-left: 6px solid var(--amber); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0 4px; max-width: 560px; }
.alert h3 { font: 700 20px/1.2 var(--head); margin-bottom: 4px; }
.alert p { margin: 0 0 10px; font-size: 16px; }
.alert a { font-weight: 700; color: var(--ink); }
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.boxes { display: grid; gap: 14px; }
.boxes .alert { margin: 0; max-width: none; }
.box { border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: var(--radius); padding: 16px 18px; background: var(--white); }
.box h3 { font: 700 20px/1.2 var(--head); margin-bottom: 6px; }
.box ul { margin: 0 0 10px; padding-left: 20px; font-size: 16px; }
.box a { font-weight: 700; color: var(--green); }

/* Quote card */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--white); box-shadow: 0 6px 18px rgba(31, 42, 34, .12); }
.card h2 { font-size: 26px; margin-bottom: 4px; color: var(--deep); }
.card .sub { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.fields { border: 1px solid #b9b2a2; border-radius: 8px; overflow: hidden; }
.fields .f { display: block; padding: 10px 12px; border-top: 1px solid #b9b2a2; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fields .f:first-child { border-top: 0; }
.fields .pair { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #b9b2a2; }
.fields .pair:first-child { border-top: 0; }
.fields .pair .f { border-top: 0; }
.fields .pair .f + .f { border-left: 1px solid #b9b2a2; }
.fields input, .fields select, .fields textarea {
  display: block; width: 100%; border: 0; padding: 3px 0 0; background: transparent;
  font: 600 16px/1.4 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0;
}
.fields textarea { resize: vertical; min-height: 44px; }
.fields .f:focus-within { outline: 2px solid var(--green); outline-offset: -2px; border-radius: 8px; }
.fields input:focus, .fields select:focus, .fields textarea:focus { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: block; width: 100%; border: 0; cursor: pointer; text-align: center; text-decoration: none;
  background: var(--green); color: #fff;
  font: 700 17px/1 var(--sans); padding: 16px 20px; border-radius: 8px; margin-top: 16px;
}
.btn:hover { background: var(--green-2); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-green { background: var(--green); color: #fff; } /* same as .btn since 11-03 */
.btn-green:hover { background: var(--green-2); }
.btn-inline { display: inline-block; width: auto; padding: 14px 24px; }
.fine { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.fine a { color: var(--muted); }
.err { color: #b3261e; font-size: 15px; font-weight: 600; margin: 12px 0 0; }
.done { text-align: center; padding: 18px 4px 6px; }
.done svg { width: 48px; height: 48px; margin-bottom: 10px; }
.done h2 { margin-bottom: 8px; }
.done p { color: var(--muted); }

/* Steps */
.steps { display: grid; gap: 22px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font: 700 16px/1 var(--head); margin-bottom: 10px; }
.step h3 { margin-bottom: 4px; font: 700 20px/1.2 var(--head); }
.step p { color: var(--muted); font-size: 16px; margin: 0; }

/* Tiles and tables */
.tiles { display: grid; gap: 14px; }
.tile { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; background: var(--white); }
a.tile:hover { border-color: var(--green); box-shadow: 0 3px 10px rgba(47, 93, 58, .10); }
.tile h3 { margin-bottom: 6px; font: 700 21px/1.2 var(--head); color: var(--deep); }
.tile p { color: var(--muted); font-size: 16px; margin: 0; font-weight: 500; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 480px; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl thead th { border-top: 0; background: var(--cream-2); font-size: 14px; font-weight: 700; }
.tbl td:nth-child(2) { white-space: nowrap; font-weight: 700; }
.tbl a { color: var(--green); }
.note { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; font-size: 16px; }
.note p:last-child { margin: 0; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 34px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.sources { font-size: 14px; color: var(--muted); }
.sources a { color: var(--muted); }

/* County links */
.cities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.cities a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-size: 16px; font-weight: 600; background: var(--white); }
.cities a:hover { border-color: var(--green); color: var(--deep); }
.cities .muted { font-weight: 600; color: var(--green); }

/* Listings */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 1px solid #b9b2a2; background: var(--white); border-radius: 999px; padding: 9px 15px; font: 700 15px/1 var(--sans); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--green); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.bizs { display: grid; gap: 12px; }
.biz { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--white); font-weight: 500; }
.biz h3 { font-size: 18px; margin-bottom: 2px; }
.biz-where { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tag { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: var(--cream-2); color: var(--ink); }
.tag-maintainer { background: var(--green-tint); color: #1f5c10; }
.tag-installer { background: #e2ede7; color: var(--deep); }
.tag-inspector { background: var(--cream-2); color: #3b4a3f; }
.tag-designer { background: #e5ecee; color: #2f4b55; }
.biz-phone { display: inline-block; font-weight: 700; color: var(--green); text-decoration: none; font-size: 18px; }
.biz-phone:hover { text-decoration: underline; }
.biz-lic { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.sec-meta { font-size: 14px; color: var(--muted); margin: -10px 0 18px; }

/* County page: listings beside a sticky quote card */
.county-main .sec-h { margin-top: 30px; }
.county-main h2 { scroll-margin-top: 80px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 10px 0 0; max-width: 46em; }
.faq a { color: var(--green); }

/* Footer */
.foot { background: var(--deep); color: #e9efe6; padding: 40px 0 110px; font-size: 15px; margin-top: 20px; }
.foot-grid { display: grid; gap: 28px; }
.foot h4 { margin: 0 0 10px; font: 700 17px/1.2 var(--head); color: #fff; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: #e9efe6; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .brand { margin-bottom: 10px; color: #fff; }
.foot p { color: #c9d6c6; margin: 0 0 8px; max-width: 28em; }
.legal { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 28px; padding-top: 18px; color: #c9d6c6; }

/* Mobile bottom bar */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.mbar b { display: block; font-size: 16px; }
.mbar span { font-size: 14px; color: var(--muted); }
.mbar a { flex: none; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 18px; border-radius: 8px; }

@media (min-width: 640px) {
  .finder-row { grid-template-columns: 1fr 1fr; }
  .boxes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .bizs { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot { padding-bottom: 40px; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) 410px; gap: 56px; padding-top: 48px; padding-bottom: 56px; }
  .hero .card { position: sticky; top: 90px; }
  .hero-home .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; }
  .top-links .nav-extra, .top-links a.top-cta { display: inline-block; }
  .mbar { display: none; }
}
@media (min-width: 1100px) {
  .hero:not(.hero-county) .bizs { grid-template-columns: repeat(3, 1fr); }
  .sec .bizs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 959px) {
  .top-links a.top-cta { display: inline-block; }
}
@media (max-width: 420px) {
  .brand img { height: 21px; }
  .top-links a.top-cta { padding: 9px 12px; }
}
@media (max-width: 399px) {
  .top-links a.top-cta { display: none; }
}
@media (max-width: 600px) {
  table.tbl { min-width: 0; font-size: 15px; }
  .tbl th, .tbl td { padding: 10px 12px; }
  .tbl td:nth-child(2) { white-space: normal; }
}

/* Home: quote form beside the steps */
.quote-grid { display: grid; gap: 28px; }
.steps-stack { grid-template-columns: 1fr !important; gap: 20px; }
@media (min-width: 960px) {
  .quote-grid { grid-template-columns: minmax(0, 1fr) 410px; gap: 56px; align-items: start; }
}
.anchor { display: block; height: 0; scroll-margin-top: 80px; }

/* Quote first step (hero) and the what-happens-next list */
.qstart { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: var(--radius); padding: 14px 16px 16px; max-width: 560px; margin: 0 0 18px; box-shadow: 0 4px 14px rgba(31, 42, 34, .08); }
.qstart-h { font: 700 20px/1.2 var(--head); color: var(--deep); margin: 0 0 10px; }
.qstart-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; }
.qstart .f { display: block; border: 1px solid #b9b2a2; border-radius: 8px; padding: 9px 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.qstart .f:focus-within { outline: 2px solid var(--green); outline-offset: -1px; }
.qstart select, .qstart input { display: block; width: 100%; border: 0; padding: 3px 0 0; background: transparent; font: 600 16px/1.4 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; outline: none; }
.qstart .btn { margin-top: 10px; }
.qstart-note { font-size: 14px; color: var(--muted); margin: 10px 2px 0; }
.hero-home .finder { margin-bottom: 14px; }
.next { margin: 0 0 16px; padding: 12px 14px 12px 32px; background: var(--green-tint); border-radius: 8px; font-size: 15px; color: var(--deep); }
.next li { margin-bottom: 4px; }
.next li:last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .qstart-mobile { display: none; }
}
@media (max-width: 639px) {
  .finder-row { grid-template-columns: 1fr 1fr; }
  .finder .f, .qstart .f { padding: 8px 10px; }
  .finder select, .finder input { font-size: 16px; }
}
#quote { scroll-margin-top: 80px; }
@media (max-width: 639px) {
  .hero-home .lede { font-size: 18px; margin: 10px 0 14px; }
  .hero-home .meta { margin-bottom: 12px; }
  .finder, .qstart { padding: 12px; }
}

/* Claim and correction links on each listing */
.biz-act { font-size: 13px; margin: 6px 0 0; color: var(--muted); }
.biz-act a { color: var(--muted); }
.biz-act a:hover { color: var(--green); }
.foot .brand img { height: 24px; }
