/* Katy Drainage Pros - stylesheet
   One static file. No web fonts, no build step, no script dependency.

   Palette: deep petrol-cyan chrome with a small hot-pink highlight.
     --culvert    #0b4c5e  chrome: header, hero base, closing band, call bar
     --runoff     #3f9bb0  mid tone: card top rules and tile markers only (never text)
     --weep       #0e6f86  accent: buttons, labels, body links
     --weep-deep  #0a4c5c  accent hover; footer ground
     --sluice     #ff6fae  highlight, small areas only, dark ink on it

   Contrast, computed (WCAG 2.x; small text needs 4.5:1, the brand span 3:1):
     white on --culvert ................ 9.50
     white on --weep (buttons) ......... 5.77
     white on --weep-deep .............. 9.54
     nav link #cfe6ec on --culvert ..... 7.32
     hero lead #d7ecf1 on --culvert .... 7.76
     subnote / band #b9dbe4 on --culvert 6.48
     brand span --sluice on --culvert .. 3.68 (large bold text, 3:1 floor)
     footer text #a9d0da on --weep-deep  5.78
     footer links #cfe6ec on --weep-deep 7.35
     --culvert (h2, h3) on --east-ground ........ 8.92
     --weep (labels, links) on --east-ground .... 5.42
     --weep (links) on white ........... 5.77
     --russet-hushed on --east-ground / white ........... 5.94 / 6.32
     --sigma-ink on --sluice ................. 6.60
     success --culvert on #e2f0f3 ...... 8.14
     error #b3261e on #fdecea .......... 5.72
     step chip --culvert on #e2f0f3 .... 8.14
   White measures 3.22 on --runoff, so the hero gradient ends on --weep and
   --runoff is never behind text. */

:root {
  --culvert: #0b4c5e;
  --runoff: #3f9bb0;
  --weep: #0e6f86;
  --weep-deep: #0a4c5c;
  --sluice: #ff6fae;
  --east-ground: #f6f8f9;
  --limewash: #ffffff;
  --sigma-ink: #121e21;
  --russet-hushed: #4f6369;
  --sonnet-margin-c: #d2e2e7;
  --easel-softening: 6px;
  --smooth-bound-c: 1140px;
  /* RGB channels of --culvert, for the photo scrim. */
  --neat-shade-l: 11, 76, 94;
  /* Height of the fixed call bar: 10px padding top and bottom, one
     0.95rem line, 12px link padding each side, 2px slack. */
  --fiber-pin-h: 70px;
}
@media (min-width: 721px) { :root { --fiber-pin-h: 72px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--sigma-ink);
  background: var(--east-ground);
  line-height: 1.6;
  padding-bottom: var(--fiber-pin-h);
}
img { max-width: 100%; display: block; }
a { color: var(--weep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.jade-wrap { max-width: var(--smooth-bound-c); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header.spruce-chrome { background: var(--culvert); color: var(--limewash); position: sticky; top: 0; z-index: 50; }
header.spruce-chrome .gauge-course {
  max-width: var(--smooth-bound-c); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px;
}
header.spruce-chrome .quartz-house-name { display: inline-flex; align-items: center; gap: 10px; color: var(--limewash); font-weight: 800; font-size: 1.12rem; text-decoration: none; letter-spacing: -0.01em; }
header.spruce-chrome .quartz-house-name span { color: var(--sluice); }
.ferry-glyph-logo { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: block; }
header.spruce-chrome nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
header.spruce-chrome nav a { color: #cfe6ec; font-size: 0.93rem; text-decoration: none; }
header.spruce-chrome nav a:hover { color: var(--limewash); text-decoration: underline; }
header.spruce-chrome .orchard-hail {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--weep); color: var(--limewash); padding: 9px 15px; border-radius: var(--easel-softening);
  font-weight: 700; text-decoration: none; border: 1px solid rgba(255,255,255,0.18);
}
header.spruce-chrome .orchard-hail:hover { background: var(--weep-deep); }
@media (min-width: 821px) and (max-width: 1080px) {
  header.spruce-chrome nav { order: 3; flex: 1 0 100%; justify-content: center; }
}
@media (max-width: 820px) {
  header.spruce-chrome .gauge-course { justify-content: center; text-align: center; }
}

/* ---------- Hero ---------- */
.nettle-standard {
  background: linear-gradient(160deg, var(--culvert) 0%, var(--culvert) 40%, var(--weep) 100%);
  color: var(--limewash); padding: 54px 20px 46px;
}
.nettle-standard .jade-wrap { display: flex; flex-direction: column; gap: 16px; }
.nettle-standard .graphite-upline {
  display: inline-block; width: fit-content; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--sigma-ink); background: var(--sluice); padding: 4px 11px; border-radius: 3px;
}
.nettle-standard h1 { margin: 0; font-size: 2.25rem; line-height: 1.18; max-width: 780px; letter-spacing: -0.015em; }
.nettle-standard .crux-opening-line { margin: 0; font-size: 1.1rem; color: #d7ecf1; max-width: 640px; }
.nettle-standard .sharp-aside-note { margin: 0; font-size: 0.9rem; color: #b9dbe4; max-width: 640px; }
.nettle-standard.beam-photo-set {
  background-image:
    linear-gradient(95deg, rgba(var(--neat-shade-l), 0.93) 0%, rgba(var(--neat-shade-l), 0.8) 42%, rgba(var(--neat-shade-l), 0.36) 72%, rgba(var(--neat-shade-l), 0.1) 100%),
    url('/images/hero-drainage-photo.jpg');
  background-size: cover; background-position: center 40%; min-height: 540px; display: flex; align-items: center;
}
@media (max-width: 820px) {
  .nettle-standard.beam-photo-set {
    background-image:
      linear-gradient(180deg, rgba(var(--neat-shade-l), 0.9) 0%, rgba(var(--neat-shade-l), 0.82) 60%, rgba(var(--neat-shade-l), 0.68) 100%),
      url('/images/hero-drainage-photo-mobile.jpg');
    min-height: 470px;
  }
  .nettle-standard h1 { font-size: 1.72rem; }
}
.moss-prompt-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.canyon-control { display: inline-block; padding: 13px 22px; border-radius: var(--easel-softening); font-weight: 700; font-size: 1rem; text-decoration: none; }
.canyon-control.reed-dominant { background: var(--weep); color: var(--limewash); border: 1px solid rgba(255,255,255,0.2); }
.canyon-control.reed-dominant:hover { background: var(--weep-deep); }
.canyon-control.poplar-lined-btn { background: transparent; color: var(--limewash); border: 1px solid rgba(255,255,255,0.45); }
.canyon-control.poplar-lined-btn:hover { background: rgba(255,255,255,0.1); }

/* ---------- Sections ---------- */
section { padding: 50px 20px; }
section.fable-panel-alt { background: var(--limewash); border-top: 1px solid var(--sonnet-margin-c); border-bottom: 1px solid var(--sonnet-margin-c); }
.glint-section-label { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--weep); margin-bottom: 6px; }
h2 { font-size: 1.62rem; line-height: 1.25; margin: 0 0 18px; color: var(--culvert); }
h3 { font-size: 1.12rem; margin: 0 0 8px; color: var(--culvert); }
.plain-run { max-width: 760px; }
.plain-run p { margin: 0 0 14px; }
.plain-run ul, .plain-run ol { margin: 0 0 14px; padding-left: 22px; }
.plain-run li { margin-bottom: 6px; }

.cable-grid { display: grid; gap: 18px; }
.cable-grid.harp-trine { grid-template-columns: repeat(3, 1fr); }
.cable-grid.reed-dyad { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .cable-grid.harp-trine, .cable-grid.reed-dyad { grid-template-columns: 1fr; } }
.haven-block { background: var(--limewash); border: 1px solid var(--sonnet-margin-c); border-top: 3px solid var(--runoff); border-radius: var(--easel-softening); padding: 18px 20px; }
.haven-block p { margin: 6px 0 0; color: var(--russet-hushed); font-size: 0.95rem; }
.haven-block a.go-on { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 0.93rem; }

/* ---------- Sourced fact box ---------- */
.sourced-fact { border-left: 4px solid var(--sluice); background: var(--limewash); border-radius: var(--easel-softening); padding: 16px 20px; margin: 0 0 16px; max-width: 760px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.sourced-fact p { margin: 0 0 8px; }
.sourced-fact p:last-child { margin-bottom: 0; }
.sourced-fact .sourced-from { font-size: 0.85rem; color: var(--russet-hushed); }

/* ---------- Plain table ---------- */
.side-by-side { border-collapse: collapse; width: 100%; max-width: 760px; margin: 0 0 16px; background: var(--limewash); font-size: 0.95rem; }
.side-by-side th, .side-by-side td { border: 1px solid var(--sonnet-margin-c); padding: 9px 12px; text-align: left; vertical-align: top; }
.side-by-side th { background: #e2f0f3; color: var(--culvert); }
.side-scroll { overflow-x: auto; max-width: 100%; }

/* ---------- Numbered call order ---------- */
.lilac-runbook { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 800px; counter-reset: step; }
.chalk-step-card { display: grid; grid-template-columns: 38px 1fr; gap: 14px; background: var(--limewash); border: 1px solid var(--sonnet-margin-c); border-radius: var(--easel-softening); padding: 16px 18px; }
.chalk-step-card .garnet-step-num { width: 34px; height: 34px; border-radius: 50%; background: #e2f0f3; color: var(--culvert); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.chalk-step-card h3 { margin-bottom: 4px; }
.chalk-step-card p { margin: 0; color: var(--russet-hushed); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.still-qa { border-bottom: 1px solid var(--sonnet-margin-c); padding: 14px 0; max-width: 820px; }
.still-qa summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--culvert); font-size: 1.06rem; display: flex; justify-content: space-between; gap: 14px; }
.still-qa summary::-webkit-details-marker { display: none; }
.still-qa summary::after { content: "+"; color: var(--weep); font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.still-qa[open] summary::after { content: "\2212"; }
.still-qa p { margin: 10px 0 0; color: var(--russet-hushed); }

/* ---------- Photos ---------- */
.domino-in-situ { max-width: var(--smooth-bound-c); margin: 0 auto; padding: 30px 20px; }
.domino-in-situ img { width: 100%; max-width: 820px; height: auto; margin: 0 auto; border-radius: var(--easel-softening); border: 1px solid var(--sonnet-margin-c); }
.orbit-filmstrip .hazel-snippets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 900px; }
.orbit-filmstrip img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--easel-softening); border: 1px solid var(--sonnet-margin-c); background: var(--limewash); }
@media (max-width: 520px) { .orbit-filmstrip .hazel-snippets { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Area links, breadcrumb ---------- */
.alder-zones-list { display: flex; flex-wrap: wrap; gap: 10px; }
.alder-zones-list a { background: var(--limewash); border: 1px solid var(--sonnet-margin-c); border-radius: 4px; padding: 8px 14px; color: var(--culvert); font-size: 0.93rem; text-decoration: none; }
.alder-zones-list a:hover { border-color: var(--weep); }
.lumen-signpost { max-width: var(--smooth-bound-c); margin: 0 auto; padding: 14px 20px 0; font-size: 0.85rem; color: var(--russet-hushed); }
.lumen-signpost a { color: var(--russet-hushed); }

/* ---------- Closing band ---------- */
.glint-cta-band { background: var(--culvert); color: var(--limewash); text-align: center; padding: 46px 20px; }
.glint-cta-band h2 { color: var(--limewash); }
.glint-cta-band p { color: #b9dbe4; max-width: 640px; margin: 0 auto 18px; }
.glint-cta-band .canyon-control { margin: 4px 6px; }

/* ---------- Form ---------- */
form.rosemary-request-form { display: grid; gap: 13px; max-width: 520px; }
form.rosemary-request-form label { display: block; margin-bottom: 4px; font-size: 0.88rem; font-weight: 700; color: var(--culvert); }
form.rosemary-request-form input, form.rosemary-request-form select, form.rosemary-request-form textarea { width: 100%; padding: 11px 12px; font: inherit; font-size: 0.96rem; border: 1px solid #b3c6cc; border-radius: var(--easel-softening); background: var(--limewash); color: var(--sigma-ink); }
form.rosemary-request-form input:focus, form.rosemary-request-form select:focus, form.rosemary-request-form textarea:focus { outline: 2px solid var(--weep); outline-offset: 1px; }
form.rosemary-request-form button { cursor: pointer; border: 0; }
form.rosemary-request-form button[disabled] { opacity: 0.6; cursor: not-allowed; }
form.rosemary-request-form .tundra-notice-line { font-size: 0.8rem; color: var(--russet-hushed); margin: 0; }
form.rosemary-request-form .spruce-extra-detail { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.medal-answer-line { display: none; padding: 11px 14px; border-radius: var(--easel-softening); font-size: 0.92rem; }
.medal-answer-line.visible { display: block; }
.medal-answer-line.success { background: #e2f0f3; color: var(--culvert); }
.medal-answer-line.error { background: #fdecea; color: #b3261e; }

/* ---------- Footer ---------- */
footer.spruce-chrome { background: var(--weep-deep); color: #a9d0da; padding: 40px 20px 22px; font-size: 0.9rem; }
footer.spruce-chrome .jade-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer.spruce-chrome h2 { color: var(--limewash); font-size: 0.95rem; margin: 0 0 10px; }
footer.spruce-chrome p { margin: 0; }
footer.spruce-chrome ul { list-style: none; margin: 0; padding: 0; }
footer.spruce-chrome li { margin-bottom: 6px; }
footer.spruce-chrome a { color: #cfe6ec; text-decoration: none; }
footer.spruce-chrome a:hover { text-decoration: underline; }
footer.spruce-chrome .tiller-undercarriage { max-width: var(--smooth-bound-c); margin: 24px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; }
@media (max-width: 720px) { footer.spruce-chrome .jade-wrap { grid-template-columns: 1fr 1fr; } }

/* ---------- Fixed call bar ---------- */
.fennel-fixedbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: center; gap: 10px; background: var(--culvert); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 12px rgba(0,0,0,0.18); }
.fennel-fixedbar-inner { display: flex; gap: 10px; width: 100%; max-width: var(--smooth-bound-c); margin: 0 auto; }
.fennel-fixedbar a { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; padding: 12px 10px; border-radius: var(--easel-softening); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.fennel-fixedbar .quiver-handset { flex: none; }
.fennel-fixedbar-call { flex: 3; background: var(--weep); color: var(--limewash); }
.fennel-fixedbar-call:hover { background: var(--weep-deep); }
.fennel-fixedbar-quote { flex: 2; color: var(--limewash); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.35); }
.fennel-fixedbar-quote:hover { background: rgba(255,255,255,0.16); }
.fennel-fixedbar .grove-bar-note { display: none; }
@media (min-width: 590px) { .fennel-fixedbar .grove-bar-note { display: inline; } }
@media (min-width: 721px) {
  .fennel-fixedbar-inner { justify-content: center; }
  .fennel-fixedbar a { flex: 0 0 auto; padding: 12px 24px; font-size: 1rem; }
}

/* ---------- Symptom picker (homepage) ---------- */
.sign-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sign-tiles a { display: block; background: var(--limewash); border: 1px solid var(--sonnet-margin-c); border-left: 4px solid var(--runoff); border-radius: var(--easel-softening); padding: 16px 18px; color: var(--sigma-ink); text-decoration: none; }
.sign-tiles a:hover { border-left-color: var(--sluice); box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.sign-tiles strong { display: block; color: var(--culvert); font-size: 1.04rem; margin-bottom: 4px; }
.sign-tiles span { display: block; color: var(--russet-hushed); font-size: 0.93rem; }
.sign-tiles em { display: inline-block; margin-top: 8px; font-style: normal; font-weight: 700; font-size: 0.88rem; color: var(--weep); }
@media (max-width: 900px) { .sign-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sign-tiles { grid-template-columns: 1fr; } }

/* ---------- Where the water goes (ordered chain) ---------- */
.water-path { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: hop; }
.water-path li { position: relative; background: var(--limewash); border: 1px solid var(--sonnet-margin-c); padding: 18px 18px 16px; counter-increment: hop; }
.water-path li + li { border-left: 0; }
.water-path li:first-child { border-radius: var(--easel-softening) 0 0 var(--easel-softening); }
.water-path li:last-child { border-radius: 0 var(--easel-softening) var(--easel-softening) 0; }
.water-path li::before { content: counter(hop); display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; background: var(--sluice); color: var(--sigma-ink); font-weight: 800; font-size: 0.85rem; margin-bottom: 8px; }
.water-path h3 { font-size: 1.02rem; margin-bottom: 4px; }
.water-path p { margin: 0; color: var(--russet-hushed); font-size: 0.93rem; }
@media (max-width: 860px) {
  .water-path { grid-template-columns: 1fr; }
  .water-path li + li { border-left: 1px solid var(--sonnet-margin-c); border-top: 0; }
  .water-path li:first-child { border-radius: var(--easel-softening) var(--easel-softening) 0 0; }
  .water-path li:last-child { border-radius: 0 0 var(--easel-softening) var(--easel-softening); }
}

/* ---------- Scope boundary box ---------- */
.not-this-trade { background: var(--limewash); border: 1px solid var(--sonnet-margin-c); border-top: 3px solid var(--culvert); border-radius: var(--easel-softening); padding: 16px 20px; max-width: 760px; margin: 0 0 16px; }
.not-this-trade h3 { margin-bottom: 6px; }
.not-this-trade p { margin: 0 0 8px; color: var(--russet-hushed); }
.not-this-trade p:last-child { margin-bottom: 0; }
