/* Septic template styles. Brand colors and fonts come from site.config.json
   (injected as CSS variables in each page's <head>), so nothing here is client-specific. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  --line: color-mix(in srgb, var(--primary) 20%, var(--bg));
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-dark);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--primary-dark); border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--primary-dark); padding: .75rem 1rem; z-index: 100; font-weight: 600; }
.skip:focus { left: .5rem; top: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.container { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons: every tap target is at least 52px tall */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .75rem 1.35rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.15;
  text-decoration: none; border: 2px solid transparent; border-radius: 6px; cursor: pointer;
}
.btn-call { background: var(--accent); color: var(--primary-dark); }
.btn-call:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); color: var(--primary-dark); }
.btn-solid { background: var(--primary); color: #fff; }
.btn-solid:hover { background: var(--primary-dark); color: #fff; }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Demo notice and emergency banner */
.demo-note { background: #fff3c4; color: #3d3200; font-size: .9rem; text-align: center; padding: .4rem 1rem; }
.demo-note p { margin: 0 auto; }
.emergency { background: var(--emergency); color: #fff; }
.emergency .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding-block: .7rem; }
.emergency p { margin: 0; line-height: 1.35; }
.emergency strong { font-family: var(--font-head); font-size: 1.15rem; display: block; }
.emergency .detail { display: none; }
.emergency .btn { width: 100%; }
.emergency .btn { background: #fff; color: var(--emergency); min-height: 48px; font-size: 1.1rem; }
.emergency .btn:hover { background: var(--sand); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 3px solid var(--accent); }
.site-header .container { display: flex; align-items: center; gap: .75rem; min-height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--primary-dark); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.05; margin-right: auto; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand { font-size: 1.1rem; min-width: 0; }
.header-call, .nav-toggle { flex: none; }
.header-call { min-height: 48px; padding: .5rem .9rem; font-size: 1.1rem; }
.header-call .num { display: none; }
.nav-toggle { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; min-width: 48px; padding: .5rem .7rem; background: #fff; border: 2px solid var(--primary); border-radius: 6px; color: var(--primary-dark); font: 600 1rem var(--font-body); cursor: pointer; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a { display: flex; align-items: center; min-height: 52px; padding: .5rem 1.25rem; color: var(--primary-dark); text-decoration: none; font-weight: 600; border-top: 1px solid var(--line); }
.site-nav a[aria-current="page"] { box-shadow: inset 5px 0 0 var(--accent); }
.js .site-nav { display: none; position: absolute; left: -1.25rem; right: -1.25rem; top: 100%; background: #fff; border-bottom: 3px solid var(--accent); }
.js .site-nav.is-open { display: block; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-header .container { flex-wrap: wrap; }
html:not(.js) .site-nav { width: 100%; }

/* Hero: the cross-section diagram is the one signature element */
.hero { background: var(--primary-dark); color: #fff; padding: 2.75rem 0 0; overflow: hidden; }
.hero h1 { color: #fff; }
.hero-text p { font-size: 1.15rem; color: #e9efe9; }
.hero .btn-row { margin-top: 1.5rem; }
.hero-art { margin-top: 2rem; color: var(--accent); }
.hero-art svg { display: block; width: 100%; max-width: 600px; margin-inline: auto; }
.hero-art text { font-family: var(--font-head); font-weight: 600; font-size: 17px; fill: #fff; stroke: none; }
.trust { background: var(--accent); color: var(--primary-dark); }
.trust ul { display: grid; gap: .9rem; padding-block: 1.1rem; }
.trust li { display: flex; align-items: center; gap: .7rem; line-height: 1.25; }
.trust .icon { width: 2rem; height: 2rem; }
.trust strong { font-family: var(--font-head); font-size: 1.2rem; display: block; }

/* Inner page header */
.page-head { background: var(--primary-dark); color: #fff; padding: 1.5rem 0 2.25rem; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 6vw, 3rem); margin-bottom: .3em; }
.page-head p { color: #e9efe9; font-size: 1.15rem; margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .95rem; margin-bottom: 1rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.crumbs a { color: #fff; }

/* Sections */
.section { padding: 3.25rem 0; }
.section-sand { background: var(--sand); }
.section-head { margin-bottom: 1.75rem; }
.section-head p { font-size: 1.1rem; }

/* Service cards */
.svc-grid { display: grid; gap: 1rem; }
.svc { position: relative; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--primary); border-radius: 6px; padding: 1.25rem 1.25rem 1.1rem; display: flex; flex-direction: column; }
.svc:hover, .svc:focus-within { border-left-color: var(--accent-dark); }
.svc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; margin-bottom: .9rem; }
.svc-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; background: var(--sand); color: var(--primary); border-radius: 6px; margin-bottom: .8rem; }
.svc-icon .icon { width: 30px; height: 30px; }
.svc h3 { margin-bottom: .3em; }
.svc h3 a { color: var(--primary-dark); text-decoration: none; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; }
.svc p { margin-bottom: .7em; }
.svc .more { margin-top: auto; font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Process steps (a real sequence, so they are numbered) */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 1rem; }
.steps li::before { content: counter(step); grid-row: span 2; width: 3.25rem; height: 3.25rem; display: grid; place-items: center; background: var(--primary); color: #fff; font: 700 1.6rem var(--font-head); border-radius: 50%; }
.steps h3 { margin: .15em 0 .2em; }
.steps p { margin: 0; }

/* Reviews */
.review-grid { display: grid; gap: 1rem; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem; }
.review .stars { color: var(--accent-dark); font-size: 1.3rem; letter-spacing: .1em; margin: 0 0 .4rem; }
.review blockquote { margin: 0 0 .8rem; }
.review .who { margin: 0; font-weight: 600; }
.review .tag { display: inline-block; margin-top: .5rem; font-size: .8rem; background: #fff3c4; color: #3d3200; padding: .1rem .5rem; border-radius: 3px; }
.sample-note { background: #fff3c4; color: #3d3200; padding: .6rem .9rem; border-radius: 4px; font-size: .95rem; max-width: none; }

/* Recent work placeholders */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.work-grid figure { margin: 0; }
.work-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.ph { aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: .75rem; border: 2px dashed var(--accent-dark); border-radius: 4px; color: var(--accent-dark); font-weight: 600; line-height: 1.3;
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--accent) 22%, transparent) 14px 16px); }
.ph small { display: block; font-weight: 400; }
.work-grid figcaption { font-size: .95rem; margin-top: .35rem; }

/* Towns */
.town-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.town-list a { display: flex; align-items: center; gap: .5rem; min-height: 56px; padding: .6rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--primary-dark); text-decoration: none; }
.town-list a:hover { border-color: var(--primary); }
.town-list small { font: 400 .9rem var(--font-body); display: block; color: var(--ink); }
.town-cards { display: grid; gap: 1rem; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-bottom: .6rem; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .7rem 1.1rem; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--primary-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.1rem 1.1rem; margin: 0; }

/* Lists inside content pages */
.checks li, .dots li { position: relative; padding-left: 2rem; margin-bottom: .6rem; max-width: 62ch; }
.checks .icon { position: absolute; left: 0; top: .2em; color: var(--primary); }
.dots li::before { content: ""; position: absolute; left: .5rem; top: .62em; width: .55rem; height: .55rem; background: var(--accent-dark); border-radius: 50%; }
.split { display: grid; gap: 2rem; }
.panel { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: 6px; padding: 1.4rem; }
.panel h2 { font-size: 1.6rem; }
.panel .btn { width: 100%; margin-top: .6rem; }
.panel-emergency { border-top-color: var(--emergency); }
.info-list li { display: flex; gap: .7rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.info-list li:first-child { border-top: 0; }
.info-list .icon { color: var(--primary); margin-top: .2em; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .2rem 0; font-weight: 400; vertical-align: top; }
.hours td { text-align: right; }
.values { display: grid; gap: 1rem; }
.values li { border-left: 6px solid var(--accent); padding: .2rem 0 .2rem 1rem; }
.values p { margin: 0; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; }

/* Quote form area */
.ghl-form { min-height: 120px; }
.form-fallback { border: 2px dashed var(--accent-dark); border-radius: 6px; padding: 1.25rem; background: #fff; }

/* Financing and closing call to action */
.finance { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 6px; padding: 1.4rem; }
.finance p { margin-bottom: 0; }
.cta-band { background: var(--primary); color: #fff; padding: 3rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e9efe9; font-size: 1.1rem; }

/* Footer */
.site-footer { background: var(--primary-dark); color: #dfe7df; padding: 2.75rem 0 1.5rem; font-size: 1rem; }
.site-footer h2 { color: #fff; font-size: 1.25rem; margin-bottom: .6em; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { font: 700 1.5rem var(--font-head); color: #fff; margin-bottom: .3rem; }
.site-footer li { margin-bottom: .1rem; }
.site-footer .link-list a { min-height: 40px; }
.site-footer .hours td { text-align: left; padding-left: 1rem; }
.footer-base { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .2); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; }
.footer-base p { margin: 0; }

/* Click-to-call bar that stays visible on phones */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom)); background: var(--primary-dark); border-top: 3px solid var(--accent); }
.call-bar .btn { min-height: 52px; padding-inline: .5rem; }
body { padding-bottom: 82px; }

@media (min-width: 560px) {
  .brand { font-size: 1.25rem; }
  .emergency .detail { display: inline; }
  .emergency .btn { width: auto; }
  .header-call .num { display: inline; }
  .header-call .word { display: none; }
  .svc-grid, .review-grid, .town-cards, .values { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .town-list { grid-template-columns: repeat(3, 1fr); }
  .trust ul { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .section { padding: 4.5rem 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .js .site-nav, .site-nav { display: block; position: static; border: 0; width: auto; }
  .site-nav ul { flex-direction: row; gap: .25rem; }
  .site-nav a { border: 0; padding: .5rem .7rem; min-height: 48px; border-radius: 4px; }
  .site-nav a:hover { background: var(--sand); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--accent); }
  .header-call { order: 3; }
  .hero { padding-top: 4rem; }
  .hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: end; }
  .hero-text { padding-bottom: 4rem; }
  .hero-art { margin-top: 0; }
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .review-grid, .values { grid-template-columns: repeat(3, 1fr); }
  .town-cards { grid-template-columns: repeat(3, 1fr); }
  .town-list { grid-template-columns: repeat(5, 1fr); }
  .split { grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }
  .split .panel-stick { position: sticky; top: 100px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
