/* West Virginia Septic Contractors */
:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #efece3;
  --border: #e0dbcd;
  --text: #1c2420;
  --muted: #5a655f;
  --brand: #24563a;
  --brand-strong: #183d29;
  --brand-soft: #e3eee6;
  --accent: #b9771f;
  --focus: #2f7dd1;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28, 36, 32, .06), 0 2px 8px rgba(28, 36, 32, .05);
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121714;
    --surface: #1a211d;
    --surface-2: #222b26;
    --border: #2e3832;
    --text: #e6ebe7;
    --muted: #a1aca5;
    --brand: #7cc49a;
    --brand-strong: #a6dcbb;
    --brand-soft: #1f3328;
    --accent: #e3a750;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 3.4vw, 1.6rem); margin-top: 2.2em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; line-height: 1.15; }
.logo svg { flex: none; }
.logo small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; letter-spacing: .02em; }
.nav { display: flex; gap: 18px; font-size: .95rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 550; white-space: nowrap; }
@media (max-width: 480px) { .nav { gap: 14px; font-size: .9rem; } .site-header .wrap { padding-bottom: 8px; } }
.nav a:hover { color: var(--brand); }
.site-footer { margin-top: 64px; padding: 32px 0 40px; background: var(--surface); border-top: 1px solid var(--border); font-size: .92rem; color: var(--muted); }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer a { color: var(--muted); }

/* Hero */
.hero { padding: 48px 0 32px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.finder { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 8px; max-width: 560px; }
.finder select {
  flex: 1 1 260px; min-height: 48px; padding: 0 14px; font: inherit;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text);
}
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; color: var(--muted); font-size: .95rem; }
.stats strong { color: var(--text); font-size: 1.15rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #0f1a14; } }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: .92rem; }

/* County grid */
.county-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.county-grid a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 600;
}
.county-grid a:hover { border-color: var(--brand); }
.county-grid span { color: var(--muted); font-weight: 450; font-size: .85rem; white-space: nowrap; }

/* Info cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }

/* Listings */
.listings { display: grid; gap: 14px; }
.listing { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.listing-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.listing h3 { margin: 0 0 2px; font-size: 1.15rem; }
.listing h3 a { color: var(--text); text-decoration: none; }
.listing h3 a:hover { color: var(--brand); text-decoration: underline; }
.where { color: var(--muted); font-size: .95rem; }
.rating { white-space: nowrap; font-size: .92rem; color: var(--muted); }
.rating b { color: var(--text); }
.stars { color: var(--accent); letter-spacing: 1px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.tags li { background: var(--brand-soft); color: var(--brand-strong); border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.note { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* Installer table */
.installers { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.installers th, .installers td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.installers th { background: var(--surface-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.installers tr:last-child td { border-bottom: 0; }
.installers td a { white-space: nowrap; }
@media (max-width: 560px) {
  .installers thead { display: none; }
  .installers tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .installers td { display: inline; padding: 0; border: 0; }
  .installers td:first-child { display: block; font-weight: 650; }
  .installers td + td::before { content: ""; }
  .installers td:nth-child(2):not(:empty)::after { content: " · "; color: var(--muted); }
}

/* Nearby list */
.nearby { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.nearby li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.nearby a { font-weight: 650; }
.nearby .why { color: var(--muted); font-size: .9rem; }

/* Misc */
.crumbs { font-size: .9rem; color: var(--muted); margin: 20px 0 12px; }
.crumbs a { color: var(--muted); }
.page-head { padding: 8px 0 8px; }
.page-head .lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.empty { background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius); padding: 18px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .92rem; }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.detail { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .detail { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 4px 0; border-bottom: 1px solid var(--border); }
.hours td:last-child { text-align: right; color: var(--muted); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 8px; }
.faq summary { font-weight: 650; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.prose { max-width: 720px; }
