/* Okanagan Septic Co. — premium visual system. Mobile-first, no frameworks. */
:root {
  --pine: #1b3a2b;
  --pine-deep: #0f241a;
  --pine-ink: #0b1d14;
  --char: #262b27;
  --cream: #faf8f1;
  --sand: #f1e9d7;
  --gold: #d9a648;
  --gold-deep: #86631f; /* darkened for 4.5:1 text contrast on cream */
  --gold-soft: #f6e8c8;
  --ink: #233128;
  --muted: #5d6b60;
  --line: #e4ddcb;
  --white: #ffffff;
  --radius: 14px;
  --maxw: 1140px;
  --shadow: 0 10px 30px rgba(15, 36, 26, .10);
  --shadow-lg: 0 18px 50px rgba(15, 36, 26, .16);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--pine-deep); margin: 0 0 .55em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3.8vw, 2.35rem); margin-top: 2.2em; }
h2:first-child { margin-top: 0; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--pine); text-underline-offset: 3px; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 .7rem;
}
.lede { font-size: 1.12rem; }

ul.tick { list-style: none; padding: 0; }
ul.tick li { padding-left: 2em; position: relative; margin-bottom: .7em; }
ul.tick li::before {
  content: "✓"; position: absolute; left: 0; top: .05em;
  width: 1.45em; height: 1.45em; border-radius: 50%;
  background: var(--pine); color: var(--cream);
  font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.7em; border-radius: 12px;
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-call { background: linear-gradient(180deg, #e4b45c, var(--gold)); color: var(--pine-ink); box-shadow: 0 8px 22px rgba(217, 166, 72, .35); }
.btn-call:hover { box-shadow: 0 12px 28px rgba(217, 166, 72, .45); }
.btn-primary { background: var(--pine); color: var(--cream); box-shadow: 0 8px 20px rgba(27, 58, 43, .3); }
.btn-primary:hover { background: var(--pine-deep); }
.btn-outline { border-color: rgba(250, 248, 241, .85); color: var(--cream); background: rgba(250,248,241,.06); }
.btn-outline:hover { background: rgba(250, 248, 241, .16); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(11, 29, 20, .98);
  color: var(--cream);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(217, 166, 72, .22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--cream); }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.01em; }
.brand-text strong { color: var(--gold); font-weight: 600; }
.nav-toggle {
  background: rgba(217,166,72,.1); border: 1.5px solid var(--gold); color: var(--gold);
  border-radius: 10px; font-size: 1.35rem; line-height: 1; padding: .35rem .65rem; cursor: pointer;
}
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--pine-ink); padding: .5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(217, 166, 72, .25);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { border-bottom: 1px solid rgba(250, 248, 241, .1); }
.site-nav a { display: block; padding: .75em .2em; color: var(--cream); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--gold); }
.site-nav .sub { padding-left: 1rem; }
.nav-call { margin-top: .9rem; width: 100%; }

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--cream);
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  background: var(--pine-ink) url("../assets/img/hero.jpg") center 65% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(11, 29, 20, .94) 15%, rgba(11, 29, 20, .62) 55%, rgba(11, 29, 20, .28) 100%),
    linear-gradient(0deg, rgba(11, 29, 20, .55), transparent 45%);
}
/* Cinematic video layer: desktop only, still-image poster + fallback otherwise */
.hero-video { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero .container { position: relative; max-width: 46rem; margin-inline: 0; padding-inline: max(1.25rem, calc((100% - var(--maxw)) / 2)); }
.hero h1 { color: var(--cream); max-width: 14em; text-wrap: balance; }
.hero .eyebrow { color: var(--gold); }
.hero p.lede { color: #e6e2d4; max-width: 38rem; font-size: 1.18rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.hero-badges li {
  background: rgba(250, 248, 241, .1); border: 1px solid rgba(250, 248, 241, .28);
  backdrop-filter: blur(4px); border-radius: 999px; padding: .42em 1.1em; font-size: .88rem; font-weight: 600;
}
.hero .btn-row { margin-top: 1.8rem; }

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; color: var(--cream);
  padding: clamp(2.8rem, 7vw, 4.5rem) 0;
  background:
    radial-gradient(60rem 30rem at 85% -20%, rgba(217, 166, 72, .14), transparent 60%),
    linear-gradient(135deg, var(--pine) 0%, var(--pine-deep) 65%, var(--pine-ink) 100%);
}
.page-hero h1 { color: var(--cream); text-wrap: balance; }
.page-hero p { color: #dfe0d2; max-width: 44rem; margin-bottom: 0; }
.breadcrumbs { font-size: .88rem; color: #b9c0ad; padding: 0; margin: 0 0 1rem; font-weight: 500; }
.breadcrumbs a { font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section > .container > h2:first-child, .section > .container > .eyebrow:first-child { margin-top: 0; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; gap: 1.4rem; margin-top: 1.75rem; }
.card {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 36, 26, .05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  opacity: 0; transition: opacity .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d5cba9; }
.card:hover::after { opacity: 1; }
.section-alt .card { background: var(--cream); }
.card h3 { margin-top: 0; font-size: 1.28rem; }
.card h3 a { color: var(--pine-deep); text-decoration: none; }
.card h3 a:hover { color: var(--gold-deep); }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: .8em; }
.card p:last-child { margin-bottom: 0; }
.card .card-link { font-weight: 700; color: var(--pine); font-size: .95rem; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.3rem; height: 3.3rem; border-radius: 1rem; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--pine), var(--pine-deep));
  color: var(--gold); box-shadow: 0 6px 16px rgba(27, 58, 43, .28);
}
.card-icon svg { width: 1.65rem; height: 1.65rem; }
.card-price {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--gold-deep); background: var(--gold-soft);
  border-radius: 999px; padding: .3em 1em; margin: .4rem 0 .8rem;
}

/* ---------- Trust strip ---------- */
.trust-strip { display: grid; gap: 1.2rem; margin-top: 1.75rem; }
.trust-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; box-shadow: 0 2px 8px rgba(15, 36, 26, .05);
}
.trust-item .icon {
  flex: none; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.trust-item .icon svg { width: 1.5rem; height: 1.5rem; }
.trust-item strong { display: block; color: var(--pine-deep); font-family: var(--font-display); font-size: 1.08rem; margin-bottom: .25rem; }
.trust-item div { color: var(--muted); font-size: .96rem; }

/* ---------- Process steps ---------- */
.section-process { background: var(--pine-deep); color: var(--cream); }
.section-process h2 { color: var(--cream); }
.section-process .eyebrow { color: var(--gold); }
ol.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.8rem; counter-reset: step; }
ol.steps li {
  position: relative; display: flex; gap: 1.4rem; align-items: flex-start;
  background: rgba(250, 248, 241, .05); border: 1px solid rgba(250, 248, 241, .14);
  border-radius: var(--radius); padding: 1.6rem 1.6rem;
}
ol.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  color: var(--gold); line-height: 1; flex: none; min-width: 2.2ch;
}
ol.steps h3 { color: var(--cream); margin: 0 0 .35rem; font-size: 1.25rem; }
ol.steps p { color: #cfd3bd; margin: 0; font-size: .98rem; }

/* Numbered install steps on service pages */
.section ol:not(.steps) { counter-reset: num; list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.section ol:not(.steps) li {
  counter-increment: num; position: relative; padding: 1.2rem 1.3rem 1.2rem 4.4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.section ol:not(.steps) li::before {
  content: counter(num); position: absolute; left: 1.1rem; top: 1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--pine); color: var(--cream);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.section ol:not(.steps) strong { color: var(--pine-deep); }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; gap: 1.4rem; margin-top: 1.75rem; }
.testimonial {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.7rem 1.5rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.testimonial::before {
  content: "★★★★★"; color: var(--gold); letter-spacing: .28em; font-size: 1rem; margin-bottom: .9rem;
}
.testimonial p { margin: 0 0 1.1em; font-size: 1.02rem; color: var(--ink); flex: 1; }
.testimonial p::before { content: "\201C"; font-family: var(--font-display); color: var(--gold); font-size: 1.6em; line-height: 0; margin-right: .1em; vertical-align: -.35em; }
.testimonial cite {
  font-style: normal; font-weight: 700; color: var(--pine-deep); font-size: .95rem;
  border-top: 1px solid var(--line); padding-top: .9rem; display: block;
}

/* ---------- Location cards (homepage) ---------- */
.area-cards { grid-template-columns: 1fr; }
.area-card { padding: 0; }
.area-card-media {
  height: 9rem; border-radius: var(--radius) var(--radius) 0 0;
  background: url("../assets/img/okanagan.jpg") center / cover no-repeat, var(--pine);
  position: relative;
}
.area-card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 29, 20, .55));
}
.area-card:nth-child(1) .area-card-media { background-position: 15% 25%; }
.area-card:nth-child(2) .area-card-media { background-position: 60% 45%; }
.area-card:nth-child(3) .area-card-media { background-position: 85% 60%; }
.area-card:nth-child(4) .area-card-media { background-position: 35% 75%; }
.area-card-body { padding: 1.3rem 1.5rem 1.5rem; }
.area-card h3 { margin: 0 0 .3rem; }
/* ---------- Service-area map ---------- */
.map-wrap { margin-top: 2rem; }
.valley-map { width: 100%; max-width: 560px; height: auto; display: block; margin-inline: auto; }
.map-cap { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 1rem; }
/* Related reading (blog cross-links on service pages) */
.related-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .8rem; }
.related-list li { border: 1px solid var(--line); border-radius: .9rem; background: var(--cream); }
.related-list a { display: block; padding: 1rem 1.3rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.related-list a:hover { color: var(--pine); text-decoration: underline; }
.map-pin { cursor: pointer; }
.map-pin circle:first-child { transition: transform .25s ease; transform-box: fill-box; transform-origin: center; }
.map-pin:hover circle:first-child, .map-pin:focus-visible circle:first-child { transform: scale(1.35); }
.map-pin:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .map-pin circle:first-child { transition: none; } }
.area-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.area-list { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
.area-list li { margin-bottom: .45rem; break-inside: avoid; }

/* ---------- Callout ---------- */
.callout {
  background: linear-gradient(180deg, #fdf6e3, var(--gold-soft));
  border: 1px solid #e3c87f; border-left: 6px solid var(--gold);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 2rem 0;
  box-shadow: 0 4px 14px rgba(217, 166, 72, .15);
}
.callout strong { color: var(--pine-deep); font-family: var(--font-display); font-size: 1.1rem; display: block; margin-bottom: .3rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: .9rem; padding: 0; overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
details.faq[open] { box-shadow: var(--shadow); border-color: #d5cba9; }
details.faq summary {
  cursor: pointer; font-weight: 700; color: var(--pine-deep); font-size: 1.04rem;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem; position: relative; list-style: none;
  font-family: var(--font-display);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep);
  font-size: 1.3rem; font-weight: 400; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s ease, background .25s ease;
}
details.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--gold); color: var(--pine-ink); }
details.faq .faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
details.faq[open] .faq-body { grid-template-rows: 1fr; }
details.faq .faq-body > div { overflow: hidden; }
details.faq .faq-body p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--ink); }

/* ---------- Forms ---------- */
.lead-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; max-width: 36rem; box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; color: var(--pine-deep); font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8em 1em; font-size: 1rem; border: 2px solid var(--line);
  border-radius: 10px; font-family: inherit; background: var(--cream); color: var(--ink);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pine); background: var(--white);
  box-shadow: 0 0 0 3px rgba(27, 58, 43, .12);
}
.form-note { font-size: .88rem; color: var(--muted); margin-top: .9rem; }
.form-success {
  display: none; background: #eaf4ec; border: 2px solid var(--pine);
  border-radius: var(--radius); padding: 1.8rem; max-width: 36rem;
}
.form-success.show { display: block; }
.form-success h3 { color: var(--pine); margin-top: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; color: var(--cream);
  padding: clamp(3rem, 7vw, 4.5rem) 0; text-align: center; overflow: hidden;
  background:
    radial-gradient(50rem 26rem at 50% 120%, rgba(217, 166, 72, .16), transparent 60%),
    linear-gradient(135deg, var(--pine) 0%, var(--pine-deep) 70%);
}
.cta-band h2 { color: var(--cream); margin-top: 0; text-wrap: balance; }
.cta-band p { color: #dfe0d2; max-width: 40rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- About photo ---------- */
.two-col { display: grid; gap: 1.75rem; }
.about-photo { margin: 0; }
.about-photo img {
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}
.about-photo figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-ink); color: #c3cbbd; padding: 3rem 0 0; font-size: .94rem;
  border-top: 3px solid var(--gold);
}
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { color: var(--cream); font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 .5rem; }
.footer-brand strong { color: var(--gold); font-weight: 600; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer nav li { margin-bottom: .45rem; }
.site-footer nav a { color: #c3cbbd; text-decoration: none; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer .btn-call { margin-top: .8rem; }
.site-footer strong { color: var(--cream); }
.footer-base {
  border-top: 1px solid rgba(250, 248, 241, .12); margin-top: 2.5rem;
  padding: 1.2rem 0 1.4rem; font-size: .84rem; color: #8f978a;
}

/* ---------- Sticky mobile call bar ---------- */
.call-bar { display: none; }
@media (max-width: 719px) {
  body { padding-bottom: 78px; }
  .call-bar {
    display: flex; gap: .6rem; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: rgba(11, 29, 20, .97); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(217, 166, 72, .35);
    padding: .65rem .8rem calc(.65rem + env(safe-area-inset-bottom));
  }
  .call-bar a {
    display: inline-flex; align-items: center; justify-content: center; gap: .45em;
    border-radius: 10px; font-weight: 700; text-decoration: none; font-size: .98rem;
    padding: .75em .5em; min-height: 3rem;
  }
  .cb-call { flex: 1.5; background: linear-gradient(180deg, #e4b45c, var(--gold)); color: var(--pine-ink); }
  .cb-quote { flex: 1; border: 2px solid var(--gold); color: var(--cream); }
}

/* ---------- Mobile button slimming (compact CTAs on small screens) ---------- */
@media (max-width: 719px) {
  .btn { padding: .68em 1.25em; font-size: .94rem; border-radius: 10px; }
  .hero .btn-row { gap: .65rem; margin-top: 1.4rem; }
  body { padding-bottom: 66px; }
  .call-bar { padding: .5rem .7rem calc(.5rem + env(safe-area-inset-bottom)); gap: .5rem; }
  .call-bar a { font-size: .87rem; padding: .55em .5em; min-height: 2.6rem; border-radius: 9px; }
}

/* ---------- Reveal animation (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .area-cards { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; align-items: start; }
  .area-list { columns: 3; }
  ol.steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; align-items: center; gap: 1.4rem; position: static; background: none; padding: 0; }
  .site-nav ul { display: flex; gap: 1.25rem; }
  .site-nav li { border: none; position: relative; }
  .site-nav .sub {
    display: none; position: absolute; top: 100%; left: 0; min-width: 15rem;
    background: var(--pine-ink); border: 1px solid rgba(217, 166, 72, .3);
    border-radius: 0 0 var(--radius) var(--radius); padding: .4rem 0; z-index: 60;
    box-shadow: var(--shadow-lg);
  }
  .site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: block; }
  .site-nav .sub a { padding: .6em 1.2em; white-space: nowrap; }
  .nav-call { margin-top: 0; width: auto; padding: .6em 1.25em; font-size: .95rem; }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .area-cards { grid-template-columns: repeat(4, 1fr); }
  ol.steps { grid-template-columns: repeat(4, 1fr); }
  .hero .container { max-width: 48rem; }
}

/* ---------- Stats row ---------- */
.stats { background: var(--pine-ink); border-block: 1px solid rgba(217, 166, 72, .28); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; padding: 2rem 0; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; color: var(--gold); line-height: 1.1; }
.stat-label { font-size: .86rem; color: #c3cbbd; font-weight: 500; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.75rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; margin: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.8rem .9rem .75rem; background: linear-gradient(180deg, transparent, rgba(11, 29, 20, .88));
  color: var(--cream); font-size: .85rem; font-weight: 600;
}

/* ---------- Reveal stagger ---------- */
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .js .card-grid .reveal:nth-child(2) { transition-delay: .07s; }
  .js .card-grid .reveal:nth-child(3) { transition-delay: .14s; }
  .js .card-grid .reveal:nth-child(4) { transition-delay: .21s; }
}

/* ---------- Branded text selection ---------- */
::selection { background: var(--gold); color: var(--pine-ink); }

/* ---------- Marquee trust bar ---------- */
.marquee {
  background: var(--gold); color: var(--pine-ink);
  overflow: hidden; white-space: nowrap;
  border-block: 2px solid var(--pine-ink);
  padding: .7rem 0;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 2.5rem;
  padding-right: 2.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .04em;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee-track .dot { color: var(--pine-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Count-up stats (markup carries data-target) ---------- */
.stat-num { font-variant-numeric: tabular-nums; min-height: 1.2em; }

/* ---------- Asymmetric overlap feature (breaks template rhythm) ---------- */
.feature-overlap { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--sand); overflow: clip; }
.feature-overlap .container { display: grid; gap: 0; }
.overlap-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.overlap-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.overlap-card {
  background: var(--pine-deep); color: var(--cream);
  border-radius: var(--radius); padding: 2rem 1.8rem;
  margin: -3.5rem 1.1rem 0 1.1rem; position: relative; z-index: 2;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(217, 166, 72, .35);
}
.overlap-card h2 { color: var(--cream); margin-top: 0; }
.overlap-card p { color: #d8dcc9; }
.overlap-card .eyebrow { color: var(--gold); }
@media (min-width: 900px) {
  .feature-overlap .container { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .overlap-media img { aspect-ratio: 4 / 4.4; }
  .overlap-card { margin: 0 0 0 -5.5rem; padding: 2.6rem 2.4rem; transform: rotate(-1.1deg); }
}

/* ---------- Bespoke diagram: septic cross-section ---------- */
.diagram {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem; margin-top: 1.75rem; overflow: hidden;
}
.diagram svg { width: 100%; height: auto; display: block; }
.diagram .diagram-cap { font-size: .88rem; color: var(--muted); margin: .8rem 0 0; text-align: center; font-style: italic; }
/* Scrollytelling: diagram stays pinned while each stage's caption scrolls past */
.scrolly [data-zone] { transition: opacity .45s ease; }
.scrolly.has-active [data-zone]:not(.zone-on) { opacity: .15; }
.scrolly-steps { margin-top: 1.5rem; display: grid; gap: 1rem; }
.scrolly-step {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem;
  background: var(--cream); opacity: .45; transition: opacity .45s ease, border-color .45s ease, box-shadow .45s ease;
}
.scrolly-step.active { opacity: 1; border-color: var(--gold); box-shadow: var(--shadow); }
.step-kicker { color: #8a6a25; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .4rem; }
.scrolly-step h3 { margin: 0 0 .5rem; }
.scrolly-step p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .scrolly { display: grid; grid-template-columns: 1.35fr .65fr; gap: 2.5rem; align-items: start; }
  .scrolly-media { position: sticky; top: 96px; }
  .scrolly-steps { margin-top: 0; }
  .scrolly-step { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; }
  .scrolly .diagram-cap { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .scrolly [data-zone], .scrolly-step { transition: none; }
  .scrolly-step { opacity: 1; }
  .scrolly.has-active [data-zone]:not(.zone-on) { opacity: 1; }
}
.flow-anim { stroke-dasharray: 8 7; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -30; } }
@media (prefers-reduced-motion: reduce) { .flow-anim { animation: none; } }

/* ---------- Install process illustration (service page) ---------- */
.process-illo { display: grid; gap: 1rem; margin-top: 1.75rem; }
.process-illo figure {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
}
.process-illo svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.process-illo figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.process-illo figcaption strong { color: var(--pine-deep); display: block; font-family: var(--font-display); font-size: 1rem; }
@media (min-width: 720px) { .process-illo { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-illo { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Estimate funnel ---------- */
.est-wrap {
  max-width: 42rem; margin: 2rem auto 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.est-progress { height: 10px; background: var(--sand); }
.est-progress-bar {
  height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 0 5px 5px 0; transition: width .45s cubic-bezier(.22, .8, .32, 1);
}
.est-body { padding: 2rem 1.6rem 2.2rem; position: relative; min-height: 26rem; }
.est-step { display: none; }
.est-step.active { display: block; animation: estIn .4s ease both; }
@keyframes estIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.est-step h2 { margin-top: 0; font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.est-step .est-kicker { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 .5rem; }
.est-opts { display: grid; gap: .8rem; margin-top: 1.4rem; }
.est-opt {
  display: flex; align-items: center; gap: 1rem; text-align: left;
  background: var(--cream); border: 2px solid var(--line); border-radius: 14px;
  padding: 1rem 1.2rem; font-size: 1.05rem; font-weight: 600; color: var(--pine-deep);
  cursor: pointer; font-family: inherit; width: 100%;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.est-opt:hover { border-color: var(--gold); background: #fffdf6; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217, 166, 72, .18); }
.est-opt .opt-ico {
  flex: none; width: 2.8rem; height: 2.8rem; border-radius: 12px;
  background: linear-gradient(135deg, var(--pine), var(--pine-deep));
  display: inline-flex; align-items: center; justify-content: center; color: var(--gold);
}
.est-opt .opt-ico svg { width: 1.5rem; height: 1.5rem; }
.est-opt small { display: block; font-weight: 500; color: var(--muted); font-size: .88rem; }
.est-back {
  margin-top: 1.6rem; background: none; border: none; color: var(--muted);
  font-weight: 600; font-size: .95rem; cursor: pointer; padding: .4rem 0;
  font-family: inherit;
}
.est-back:hover { color: var(--pine-deep); text-decoration: underline; }
.est-result { text-align: center; }
.est-range {
  display: flex; align-items: baseline; justify-content: center; gap: .6rem;
  font-family: var(--font-display); color: var(--pine-deep); margin: 1.2rem 0 .4rem;
}
.est-range .lo, .est-range .hi { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.est-range .dash { font-size: 2rem; color: var(--gold-deep); }
.est-note { color: var(--muted); font-size: .92rem; max-width: 30rem; margin: 0 auto 1.6rem; }
.est-note strong { color: var(--pine-deep); }
.est-result .btn-row { justify-content: center; margin-top: 1.8rem; }
.est-summary {
  display: inline-block; background: var(--sand); border: 1px solid var(--line);
  border-radius: 999px; padding: .45em 1.3em; font-size: .9rem; font-weight: 600; color: var(--pine-deep);
  margin-top: .6rem;
}
@media (prefers-reduced-motion: reduce) {
  .est-step.active { animation: none; }
  .est-progress-bar { transition: none; }
}

/* Service Planner result — plan steps + compact lead form */
.plan-list {
  text-align: left; max-width: 38rem; margin: 1.4rem auto 1.2rem;
  list-style: none; padding: 0; display: grid; gap: .7rem;
  counter-reset: plan;
}
.plan-list li {
  counter-increment: plan; position: relative;
  background: var(--sand); border: 1px solid var(--line); border-radius: 14px;
  padding: .9rem 1.1rem .9rem 3.2rem; font-size: .95rem; color: var(--pine-deep);
}
.plan-list li::before {
  content: counter(plan); position: absolute; left: 1rem; top: .85rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--pine), var(--pine-deep));
  color: var(--gold); font-weight: 800; font-size: .85rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.plan-form-wrap {
  max-width: 38rem; margin: 1.6rem auto 0; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1.4rem 1.4rem 1.2rem;
}
.plan-form-wrap h3 { margin: 0 0 .3rem; }
.plan-form-wrap .est-note { margin: 0 0 1rem; max-width: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.lead-form-compact .form-note { margin: .8rem 0 0; }
@media (prefers-reduced-motion: reduce) {
  .plan-list li::before { background: var(--pine); }
}

/* ============================================================
   Professional polish pass — accessibility, motion, micro-detail
   ============================================================ */

/* Visible keyboard focus everywhere (3:1+ against light & dark grounds) */
:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
.site-header :focus-visible, .hero :focus-visible, .cta-band :focus-visible,
.section-process :focus-visible, .stats :focus-visible, .site-footer :focus-visible {
  outline-color: var(--gold);
}

/* Balanced headings + anchor offset under the sticky header */
h2, h3 { text-wrap: balance; }
[id] { scroll-margin-top: 88px; }

/* Sticky header refinement: compress + deepen shadow once scrolled */
.site-header { transition: box-shadow .3s ease; }
.site-header .header-inner { transition: padding .3s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .38); }
.site-header.scrolled .header-inner { padding: .55rem 0; }

/* Buttons: tactile press state + stronger hover lift */
.btn:active { transform: translateY(0) scale(.985); }
.btn-call:active { box-shadow: 0 4px 12px rgba(217, 166, 72, .35); }
.btn-primary:active { box-shadow: 0 4px 12px rgba(27, 58, 43, .3); }

/* Cards: subtle focus affordance when a link inside is tabbed to */
.card:focus-within { border-color: var(--gold-deep); box-shadow: var(--shadow-lg); }

/* Reveal stagger for testimonial + trust rows (matches card-grid rhythm) */
@media (min-width: 720px) {
  .js .testimonials .reveal:nth-child(2), .js .trust-strip .reveal:nth-child(2) { transition-delay: .07s; }
  .js .testimonials .reveal:nth-child(3), .js .trust-strip .reveal:nth-child(3) { transition-delay: .14s; }
  .js .testimonials .reveal:nth-child(4), .js .trust-strip .reveal:nth-child(4) { transition-delay: .21s; }
}

/* Image load polish: fade in lazy images, no layout shift (width/height attrs stay) */
.js img[loading="lazy"] { opacity: 0; transition: opacity .6s ease; }
.js img[loading="lazy"].img-in { opacity: 1; }

/* FAQ: clearer hover affordance on the tap target */
details.faq summary { transition: background .2s ease; border-radius: var(--radius); }
details.faq summary:hover { background: rgba(217, 166, 72, .08); }

/* Footer: link transitions + roomier tap targets */
.site-footer nav a {
  display: inline-block; padding: .28em 0;
  transition: color .18s ease, transform .18s ease;
}
.site-footer nav a:hover { color: var(--gold); transform: translateX(3px); }
.footer-base p { margin: 0; }

/* Back-to-top: floating action, clears the mobile call bar */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.4rem; z-index: 80;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--pine-deep); color: var(--gold);
  border: 1.5px solid rgba(217, 166, 72, .55);
  box-shadow: var(--shadow-lg); cursor: pointer;
  font-size: 1.3rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--pine); }
@media (max-width: 719px) { .to-top { bottom: 92px; } }

/* Sticky mobile call bar: gentle entrance + soft attention pulse on Call */
@media (max-width: 719px) {
  .call-bar { animation: barIn .5s ease both; }
  .cb-call { animation: cbPulse 2.8s ease-in-out 1.2s infinite; }
}
@keyframes barIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cbPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 166, 72, 0); }
  50% { box-shadow: 0 0 0 6px rgba(217, 166, 72, .22); }
}

/* Estimator: progressbar semantics hook (JS sets aria-valuenow) */
.est-progress { border-radius: 6px; overflow: hidden; }

/* Reduced-motion: neutralize every polish animation */
@media (prefers-reduced-motion: reduce) {
  .js img[loading="lazy"] { opacity: 1; transition: none; }
  .to-top { transition: none; }
  .site-header, .site-header .header-inner { transition: none; }
  .btn:active { transform: none; }
  .site-footer nav a:hover { transform: none; }
  @keyframes barIn { to { transform: none; } }
  .call-bar, .cb-call { animation: none; }
}

/* ===== Premium upgrade: brand logo lockup ===== */
.brand-logo { height: 2.6rem; width: auto; display: block; }
.footer-logo { height: 3rem; width: auto; max-width: 100%; display: block; }
.site-header.scrolled .brand-logo { height: 2.25rem; transition: height .3s ease; }

/* ===== Premium upgrade: brand film section ===== */
.section-film { background: linear-gradient(180deg, var(--cream) 0%, #f3eddc 100%); }
.film-wrap { max-width: 900px; margin: 2rem auto 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(217, 166, 72, .4); }
.film-video { width: 100%; aspect-ratio: 16/9; display: block; background: #0b1d14; }

/* ===== Premium upgrade: reviews (honest empty state) ===== */
.reviews-empty { text-align: center; max-width: 600px; margin: 2rem auto 0; padding: 2.75rem 2rem; border: 2px dashed rgba(217, 166, 72, .55); border-radius: 18px; background: rgba(217, 166, 72, .07); }
.reviews-empty svg { width: 54px; height: 54px; margin: 0 auto 1rem; display: block; }
.reviews-empty-title { font-size: 1.3rem; font-weight: 700; font-family: var(--font-display); margin-bottom: .5rem; }
.reviews-empty .btn { margin-top: 1.25rem; }

/* ===== Premium upgrade: estimator progress feel ===== */
#est-bar { transition: width .5s cubic-bezier(.22, .8, .3, 1); }

/* ===== Premium upgrade: button micro-interactions ===== */
.btn { transition: transform .18s ease, box-shadow .25s ease, background-color .25s ease, filter .2s ease; }
.btn-call { position: relative; overflow: hidden; }
.btn-call::after { content: ""; position: absolute; top: 0; left: -90%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); transition: left .65s ease; pointer-events: none; }
.btn-call:hover::after { left: 140%; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline:hover { transform: translateY(-2px); }
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-item img { transition: transform .5s ease, filter .4s ease; }
.gallery-item:hover img { transform: scale(1.035); }

@media (prefers-reduced-motion: reduce) {
  .btn-call::after { display: none; }
  .card:hover, .gallery-item:hover img { transform: none; }
}

/* ===== Premium upgrade: page header imagery ===== */
.page-shot { margin: 0 0 2.5rem; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.page-shot img { width: 100%; height: clamp(220px, 34vw, 380px); object-fit: cover; display: block; }
.page-shot figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; font-style: italic; padding: 0 .25rem .5rem; }
