/* Copper State Septic — oxidized copper on patina stone */
/* Fonts: Barlow and Barlow Semi Condensed, self-hosted (SIL OFL, see fonts/OFL-LICENSE.txt) */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-semi-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-semi-condensed-latin-700-normal.woff2) format("woff2"); }

:root {
  --stone: #EDF0EA;      /* page background: pale patina */
  --paper: #F8F9F5;      /* raised surfaces */
  --ink: #1E2B29;        /* body text */
  --ink-soft: #4A5A56;   /* secondary text */
  --patina: #2E6B62;     /* links, headings accents */
  --patina-deep: #1D4842;/* hero, footer */
  --verdigris: #7FB5A6;  /* light green on dark */
  --copper: #A85B2E;     /* calls to action, diagram lines */
  --copper-dark: #8A4823;
  --rule: #C9D2CC;
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --wrap: 72rem;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--patina); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--copper-dark); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* type scale (1.25) */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; color: var(--patina-deep); letter-spacing: -0.005em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: .4rem 0 1rem; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 2.8rem 0 .8rem; }
h3 { font-size: 1.35rem; font-weight: 600; margin: 1.8rem 0 .4rem; }
p, ul, ol { margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: var(--measure); }

/* top bar + header */
.topbar { background: var(--patina-deep); color: var(--stone); font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .35rem; padding-bottom: .35rem; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.tel { white-space: nowrap; }
.site-head { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; padding-top: .8rem; padding-bottom: .8rem; flex-wrap: wrap; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: .95; font-family: var(--display); }
.brand .b1 { font-size: 1.45rem; font-weight: 700; color: var(--copper); letter-spacing: .01em; }
.brand .b2 { font-size: 1.05rem; font-weight: 600; color: var(--patina-deep); letter-spacing: .32em; }
.main-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--copper); color: var(--ink); }
.head-call { margin-left: auto; }
@media (max-width: 47.99rem) {
  .topbar span { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .site-head .wrap { gap: .2rem; padding-top: .6rem; padding-bottom: 0; }
  .main-nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: .95rem; font-size: .95rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; white-space: nowrap; }
  .site-head .head-call { display: none; }
}

/* buttons */
.btn { display: inline-block; font: 600 1.05rem/1 var(--body); padding: .85rem 1.2rem; border-radius: 4px; text-decoration: none; border: 2px solid transparent; }
.btn-call { background: var(--copper); color: #fff; }
.btn-call:hover { background: var(--copper-dark); color: #fff; }
.btn-light { background: transparent; color: var(--stone); border-color: var(--verdigris); }
.btn-light:hover { color: #fff; border-color: #fff; }
.btn-quiet { background: transparent; color: var(--patina-deep); border-color: var(--patina); }
.btn-quiet:hover { color: var(--patina-deep); background: var(--paper); }
button.btn { cursor: pointer; }

/* hero */
.hero { background: var(--patina-deep); color: var(--stone); padding: 2.5rem 0 3rem; }
.hero h1 { color: #fff; max-width: 14em; }
.hero .lede { color: #D7E3DD; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 3rem; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.hero-points li { padding-left: 1.4rem; position: relative; color: #E4ECE8; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 2px; background: var(--verdigris); }

/* cross-section diagram */
.xsection { margin: 0; }
.xsection svg { display: block; width: 100%; }
.xsection .grade { stroke: var(--verdigris); stroke-width: 2; stroke-dasharray: 2 6; }
.xsection .house, .xsection .tank, .xsection .riser { fill: none; stroke: #D98A5B; stroke-width: 2.5; stroke-linejoin: round; }
.xsection .pipe { fill: none; stroke: #D98A5B; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.xsection .baffle { stroke: #D98A5B; stroke-width: 2; }
.xsection .sludge { fill: #5C4636; }
.xsection .scum { fill: #8C7A5E; opacity: .8; }
.xsection .trench rect { fill: #24574F; stroke: var(--verdigris); stroke-width: 1.5; }
.xsection .dots circle { fill: var(--verdigris); }
.xsection .lbl { fill: #fff; font: 600 15px var(--body); }
.xsection .lbl.small { fill: #C9DAD3; font-size: 12px; font-weight: 500; }
.xsection figcaption { font-size: .92rem; color: #C9DAD3; margin-top: .6rem; max-width: 36rem; }
.content .xsection { background: var(--patina-deep); padding: 1.2rem; border-radius: 6px; margin: 1.5rem 0; }

/* content column */
.content { padding-top: 1.5rem; padding-bottom: 3rem; }
.content > :not(.rows):not(.tbl):not(.xsection) { max-width: var(--measure); }
.content ul:not(.rows):not(.town-list), .content ol { padding-left: 1.3rem; }
.content li { margin-bottom: .35rem; }
.page-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.2rem 0 1.8rem; }

/* breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--rule); }

/* ruled rows for services and guides */
.rows { list-style: none; padding: 0; margin: 1rem 0 1.5rem; border-top: 1px solid var(--rule); max-width: 52rem; }
.rows li { border-bottom: 1px solid var(--rule); margin: 0; }
.rows a { display: grid; gap: .15rem; padding: .9rem .25rem; text-decoration: none; color: var(--ink); }
@media (min-width: 48rem) { .rows a { grid-template-columns: 15rem 1fr; gap: 1.5rem; align-items: baseline; } }
.rows .row-t { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--patina-deep); }
.rows .row-d { color: var(--ink-soft); }
.rows a:hover .row-t { color: var(--copper); }

.town-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }

/* note, table */
.note { border-left: 4px solid var(--copper); background: var(--paper); padding: .9rem 1rem; margin: 1.5rem 0; }
.tbl { overflow-x: auto; margin: 1.2rem 0 1.5rem; max-width: 48rem; }
table { border-collapse: collapse; width: 100%; background: var(--paper); font-size: .98rem; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-family: var(--display); font-size: 1.05rem; color: var(--patina-deep); border-bottom: 2px solid var(--patina); }
.tbl-cap { font-size: .88rem; color: var(--ink-soft); margin-top: .4rem; }
ol.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
ol.steps li { counter-increment: step; position: relative; padding-left: 2.3rem; margin-bottom: .8rem; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: .05em; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--patina); color: #fff; font: 600 .9rem/1.6rem var(--body); text-align: center; }

/* faq */
.faq details { border-bottom: 1px solid var(--rule); padding: .2rem 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: .75rem 1.5rem .75rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .6rem; font-size: 1.3rem; color: var(--copper); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 .6rem; }

.sources ul { font-size: .92rem; color: var(--ink-soft); }
.byline { font-size: .9rem; color: var(--ink-soft); margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }

/* request form */
.request { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 2.5rem 0; }
.request-inner { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
.request h2 { margin-top: 0; }
.fields { display: grid; gap: 1rem; margin: 1.2rem 0; }
@media (min-width: 40rem) { .fields { grid-template-columns: 1fr 1fr; } .fields .wide { grid-column: 1 / -1; } }
.fields label { display: grid; gap: .3rem; font-weight: 500; font-size: .95rem; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #9FB0A9; border-radius: 4px; padding: .6rem .7rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--copper); outline-offset: 0; border-color: var(--copper); }
.hp { position: absolute; left: -9999px; }
.fine { font-size: .88rem; color: var(--ink-soft); margin-top: .8rem; }

/* closing + footer */
.closing { background: var(--stone); padding: 2.5rem 0; }
.closing .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.closing-t { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--patina-deep); margin: 0; }
.site-foot { background: var(--patina-deep); color: #D7E3DD; padding: 2.5rem 0 5rem; font-size: .95rem; }
.site-foot a { color: #fff; }
.site-foot .brand .b1 { color: #E0915F; }
.site-foot .brand .b2 { color: #fff; }
.site-foot h2 { color: #fff; font-size: 1.15rem; margin: 0 0 .6rem; }
.site-foot ul { list-style: none; padding: 0; }
.site-foot li { margin-bottom: .3rem; }
.foot-brand { max-width: 34rem; margin-bottom: 2rem; }
.foot-cols { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .foot-cols { grid-template-columns: repeat(3, 1fr); } .site-foot { padding-bottom: 2.5rem; } }
.foot-legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #3A6C64; }
.foot-legal a { margin-left: .8rem; }

/* sticky mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--copper); color: #fff; text-align: center; font-weight: 600; padding: .9rem 1rem; text-decoration: none; font-size: 1.05rem; box-shadow: 0 -2px 10px rgba(29,72,66,.25); }
.callbar:hover { color: #fff; background: var(--copper-dark); }
@media (min-width: 48rem) { .callbar { display: none; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .topbar, .callbar, .request, .closing, .main-nav { display: none; } }
