/* Flathead Valley Septic — shared styles. Keep this file small: speed matters for SEO. */
:root {
  --green: #1f5f3f;
  --green-dark: #154330;
  --accent: #e8a317;
  --ink: #1d2327;
  --muted: #55606a;
  --line: #dfe4e8;
  --bg: #ffffff;
  --bg-soft: #f4f7f5;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.25; color: var(--green-dark); }
h1 { font-size: 2rem; margin: 0 0 .5rem; }
h2 { font-size: 1.45rem; margin: 2rem 0 .6rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 .4rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--green-dark); text-decoration: none; }
.brand span { color: var(--accent); }
.header-call { background: var(--green); color: #fff; text-decoration: none; font-weight: 700; padding: 9px 14px; border-radius: 6px; white-space: nowrap; }
.header-call:hover { background: var(--green-dark); }
.nav { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .95rem; }
.nav .wrap { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 8px; padding-bottom: 8px; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--green); text-decoration: underline; }

/* Hero */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 28px 0 32px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); margin: .4rem 0 1rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.checks li { padding-left: 1.6em; position: relative; margin: .3rem 0; }
.checks li::before { content: "\2714"; color: var(--green); position: absolute; left: 0; font-weight: 700; }
.btn-call { display: inline-block; background: var(--accent); color: #1d2327; font-weight: 800; font-size: 1.15rem; text-decoration: none; padding: 13px 22px; border-radius: 8px; }
.btn-call:hover { filter: brightness(.95); }
.small { font-size: .9rem; color: var(--muted); }

/* Form card */
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.card h2 { margin-top: 0; font-size: 1.25rem; }
form label { display: block; font-weight: 600; font-size: .95rem; margin: .7rem 0 .25rem; }
form input, form select, form textarea { width: 100%; font: inherit; padding: 10px; border: 1px solid #b9c2ca; border-radius: 6px; background: #fff; }
form textarea { min-height: 90px; }
form .consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--muted); }
form .consent input { width: auto; margin-top: 4px; }
form button { margin-top: 1rem; width: 100%; background: var(--green); color: #fff; font: inherit; font-weight: 700; border: 0; border-radius: 6px; padding: 12px; cursor: pointer; }
form button:hover { background: var(--green-dark); }
.hp { position: absolute; left: -9999px; }

/* Content */
main .wrap { padding-top: 8px; padding-bottom: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1rem 0; }
.grid-3 .card h3 { margin-top: 0; }
.grid-3 .card a { font-weight: 600; }
.towns { columns: 2; padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--bg-soft); }
.callout { background: #fff8e6; border-left: 4px solid var(--accent); padding: 12px 16px; margin: 1.2rem 0; border-radius: 4px; }
.cta-band { background: var(--green); color: #fff; padding: 22px 0; margin-top: 24px; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0 0 .8rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 14px 0 6px; }
.breadcrumb a { color: var(--muted); }
details { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: .6rem 0; }
details summary { cursor: pointer; font-weight: 600; }

/* Footer */
.site-footer { background: #1d2327; color: #cfd6dc; font-size: .9rem; padding: 28px 0 90px; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .25rem 0; }
.disclosure { border-top: 1px solid #3a444c; margin-top: 20px; padding-top: 14px; }

/* Sticky call bar (mobile) */
.sticky-call { display: none; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .hero .wrap, .grid-3, .site-footer .cols { grid-template-columns: 1fr; }
  .towns { columns: 1; }
  .header-call { display: none; }
  .sticky-call { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--accent); color: #1d2327; text-align: center; font-weight: 800; font-size: 1.1rem; padding: 14px; text-decoration: none; box-shadow: 0 -2px 8px rgba(0,0,0,.15); }
}
