/* Tomball Roofing & Siding - stylesheet
   One static file. No web fonts, no build step, no script dependency.

   Palette: leaf-green chrome with a small peach highlight.
     --sleeper        #27521e  chrome: header, hero base, closing band, call bar
     --ballast        #6fa85f  mid tone: card top rules only (never text)
     --spikehead      #3a7a2c  accent: buttons, labels, body links
     --spikehead-deep #2b5a20  accent hover; footer ground
     --switchlamp     #ffb38a  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 --sleeper ................ 9.08
     white on --spikehead (buttons) .... 5.25
     white on --spikehead-deep ......... 8.12
     nav link #d4e6cf on --sleeper ..... 6.93
     hero lead #dcebd7 on --sleeper .... 7.31
     subnote / band #bdd6b5 on --sleeper 5.82
     brand span --switchlamp on chrome . 5.22
     footer text #b8d1b1 on deep ....... 4.95
     footer links #d6e6d1 on deep ...... 6.23
     --sleeper (h2, h3) on --fable-surface ........ 8.56
     --spikehead (labels, links) on --fable-surface 4.95
     --spikehead (links) on white ...... 5.25
     --ready-recessive on --fable-surface / white ........... 5.65 / 6.00
     --thimble-script-c on --switchlamp ............. 9.59
     success --sleeper on #e3efdf ...... 7.65
     error #b3261e on #fdecea .......... 5.72
     step and month chip --sleeper on #e3efdf 7.65
   White measures 2.82 on --ballast, so the hero gradient ends on
   --spikehead and --ballast is never behind text. */

:root {
  --sleeper: #27521e;
  --ballast: #6fa85f;
  --spikehead: #3a7a2c;
  --spikehead-deep: #2b5a20;
  --switchlamp: #ffb38a;
  --fable-surface: #f6f9f6;
  --jewel-white: #ffffff;
  --thimble-script-c: #152112;
  --ready-recessive: #53694f;
  --lagoon-outline-c: #d3e1cf;
  --knot-easing-c: 5px;
  --stencil-maxw: 1120px;
  /* RGB channels of --sleeper, for the photo scrim. */
  --primrose-haze: 39, 82, 30;
  /* Height of the fixed call bar: 10px padding top and bottom, one
     0.95rem line, 12px link padding each side, 2px slack. */
  --hub-sticky-h: 70px;
}
@media (min-width: 721px) { :root { --hub-sticky-h: 71px; } }

* { 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(--thimble-script-c);
  background: var(--fable-surface);
  line-height: 1.6;
  padding-bottom: var(--hub-sticky-h);
}
img { max-width: 100%; display: block; }
a { color: var(--spikehead); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.gentle-holder { max-width: var(--stencil-maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header.sprig-headpiece { background: var(--sleeper); color: var(--jewel-white); position: sticky; top: 0; z-index: 50; }
header.sprig-headpiece .knoll-sill {
  max-width: var(--stencil-maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px;
}
header.sprig-headpiece .arrow-house-name { display: inline-flex; align-items: center; gap: 10px; color: var(--jewel-white); font-weight: 800; font-size: 1.12rem; text-decoration: none; letter-spacing: -0.01em; }
header.sprig-headpiece .arrow-house-name span { color: var(--switchlamp); }
.saddle-mark { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: block; }
header.sprig-headpiece nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
header.sprig-headpiece nav a { color: #d4e6cf; font-size: 0.93rem; text-decoration: none; }
header.sprig-headpiece nav a:hover { color: var(--jewel-white); text-decoration: underline; }
header.sprig-headpiece .scroll-speak {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--spikehead); color: var(--jewel-white); padding: 9px 15px; border-radius: var(--knot-easing-c);
  font-weight: 700; text-decoration: none; border: 1px solid rgba(255,255,255,0.18);
}
header.sprig-headpiece .scroll-speak:hover { background: var(--spikehead-deep); }
@media (min-width: 821px) and (max-width: 1080px) {
  header.sprig-headpiece nav { order: 3; flex: 1 0 100%; justify-content: center; }
}
@media (max-width: 820px) {
  header.sprig-headpiece .knoll-sill { justify-content: center; text-align: center; }
}

/* ---------- Hero ---------- */
.south-banner {
  background: linear-gradient(160deg, var(--sleeper) 0%, var(--sleeper) 40%, var(--spikehead) 100%);
  color: var(--jewel-white); padding: 54px 20px 46px;
}
.south-banner .gentle-holder { display: flex; flex-direction: column; gap: 16px; }
.south-banner .harbor-overline {
  display: inline-block; width: fit-content; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--thimble-script-c); background: var(--switchlamp); padding: 4px 11px; border-radius: 3px;
}
.south-banner h1 { margin: 0; font-size: 2.25rem; line-height: 1.18; max-width: 780px; letter-spacing: -0.015em; }
.south-banner .notch-lede-copy { margin: 0; font-size: 1.1rem; color: #dcebd7; max-width: 640px; }
.south-banner .oak-subnote { margin: 0; font-size: 0.9rem; color: #bdd6b5; max-width: 640px; }
.south-banner.sage-photo-bg {
  background-image:
    linear-gradient(95deg, rgba(var(--primrose-haze), 0.93) 0%, rgba(var(--primrose-haze), 0.8) 42%, rgba(var(--primrose-haze), 0.36) 72%, rgba(var(--primrose-haze), 0.1) 100%),
    url('/images/hero-roofing-photo.jpg');
  background-size: cover; background-position: center 40%; min-height: 540px; display: flex; align-items: center;
}
@media (max-width: 820px) {
  .south-banner.sage-photo-bg {
    background-image:
      linear-gradient(180deg, rgba(var(--primrose-haze), 0.9) 0%, rgba(var(--primrose-haze), 0.82) 60%, rgba(var(--primrose-haze), 0.68) 100%),
      url('/images/hero-roofing-photo-mobile.jpg');
    min-height: 470px;
  }
  .south-banner h1 { font-size: 1.72rem; }
}
.plain-decision-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.firm-pressel { display: inline-block; padding: 13px 22px; border-radius: var(--knot-easing-c); font-weight: 700; font-size: 1rem; text-decoration: none; }
.firm-pressel.keen-lead-btn { background: var(--spikehead); color: var(--jewel-white); border: 1px solid rgba(255,255,255,0.2); }
.firm-pressel.keen-lead-btn:hover { background: var(--spikehead-deep); }
.firm-pressel.summit-plain-btn { background: transparent; color: var(--jewel-white); border: 1px solid rgba(255,255,255,0.45); }
.firm-pressel.summit-plain-btn:hover { background: rgba(255,255,255,0.1); }

/* ---------- Sections ---------- */
section { padding: 50px 20px; }
section.broad-panel-alt { background: var(--jewel-white); border-top: 1px solid var(--lagoon-outline-c); border-bottom: 1px solid var(--lagoon-outline-c); }
.vital-strapline-sm { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--spikehead); margin-bottom: 6px; }
h2 { font-size: 1.62rem; line-height: 1.25; margin: 0 0 18px; color: var(--sleeper); }
h3 { font-size: 1.12rem; margin: 0 0 8px; color: var(--sleeper); }
.text-col { max-width: 760px; }
.text-col p { margin: 0 0 14px; }
.text-col ul, .text-col ol { margin: 0 0 14px; padding-left: 22px; }
.text-col li { margin-bottom: 6px; }

.cyan-quilt { display: grid; gap: 18px; }
.cyan-quilt.quiver-split-3 { grid-template-columns: repeat(3, 1fr); }
.cyan-quilt.lilac-bisect { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .cyan-quilt.quiver-split-3, .cyan-quilt.lilac-bisect { grid-template-columns: 1fr; } }
.atoll-plate { background: var(--jewel-white); border: 1px solid var(--lagoon-outline-c); border-top: 3px solid var(--ballast); border-radius: var(--knot-easing-c); padding: 18px 20px; }
.atoll-plate p { margin: 6px 0 0; color: var(--ready-recessive); font-size: 0.95rem; }
.atoll-plate a.go-link { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 0.93rem; }

/* ---------- Sourced fact box ---------- */
.source-box { border-left: 4px solid var(--switchlamp); background: var(--jewel-white); border-radius: var(--knot-easing-c); padding: 16px 20px; margin: 0 0 16px; max-width: 760px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.source-box p { margin: 0 0 8px; }
.source-box p:last-child { margin-bottom: 0; }
.source-box .cite-line { font-size: 0.85rem; color: var(--ready-recessive); }

/* ---------- Old core / newer ring split ---------- */
.ring-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--lagoon-outline-c); border-radius: var(--knot-easing-c); overflow: hidden; background: var(--jewel-white); }
.ring-split > div { padding: 22px 24px; }
.ring-split > div + div { border-left: 1px solid var(--lagoon-outline-c); background: #f9fbf8; }
.ring-split h3 { font-size: 1.2rem; }
.ring-split ul { margin: 10px 0 0; padding-left: 20px; }
.ring-split li { margin-bottom: 6px; }
.ring-split .ring-tag { display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--thimble-script-c); background: var(--switchlamp); border-radius: 3px; padding: 2px 8px; margin-bottom: 8px; }
@media (max-width: 760px) {
  .ring-split { grid-template-columns: 1fr; }
  .ring-split > div + div { border-left: 0; border-top: 1px solid var(--lagoon-outline-c); }
}

/* ---------- Hail-season calendar ---------- */
.hail-cal { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.hail-cal li { background: var(--jewel-white); border: 1px solid var(--lagoon-outline-c); border-radius: var(--knot-easing-c); padding: 10px 6px; text-align: center; font-size: 0.82rem; color: var(--ready-recessive); }
.hail-cal li b { display: block; font-size: 0.9rem; color: var(--sleeper); }
.hail-cal li.hail-mo { background: #e3efdf; border-color: var(--ballast); color: var(--thimble-script-c); }
.hail-cal li.wind { background: #fff4ec; border-color: var(--switchlamp); color: var(--thimble-script-c); }
@media (max-width: 900px) { .hail-cal { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 420px) { .hail-cal { grid-template-columns: repeat(4, 1fr); } }
.cal-key { font-size: 0.88rem; color: var(--ready-recessive); margin: 0 0 14px; }
.cal-key span { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin: 0 5px 0 12px; border: 1px solid var(--ballast); background: #e3efdf; }
.cal-key span.w { border-color: var(--switchlamp); background: #fff4ec; }
.cal-key span:first-child { margin-left: 0; }

/* ---------- One-card callout ---------- */
.barn-callout { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--jewel-white); border: 1px solid var(--lagoon-outline-c); border-left: 5px solid var(--sleeper); border-radius: var(--knot-easing-c); padding: 18px 22px; margin-top: 18px; }
.barn-callout h3 { margin-bottom: 4px; }
.barn-callout p { margin: 0; color: var(--ready-recessive); font-size: 0.95rem; }
@media (max-width: 640px) { .barn-callout { grid-template-columns: 1fr; } }

/* ---------- Definition-list FAQ ---------- */
dl.answer-list { margin: 0; max-width: 820px; }
dl.answer-list dt { font-weight: 700; color: var(--sleeper); font-size: 1.05rem; padding-top: 16px; border-top: 1px solid var(--lagoon-outline-c); }
dl.answer-list dt:first-child { border-top: 0; padding-top: 0; }
dl.answer-list dd { margin: 6px 0 16px; color: var(--ready-recessive); }

/* ---------- Plain table ---------- */
.fact-table { border-collapse: collapse; width: 100%; max-width: 760px; margin: 0 0 16px; background: var(--jewel-white); font-size: 0.95rem; }
.fact-table th, .fact-table td { border: 1px solid var(--lagoon-outline-c); padding: 9px 12px; text-align: left; vertical-align: top; }
.fact-table th { background: #e3efdf; color: var(--sleeper); }
.table-wrap { overflow-x: auto; max-width: 100%; }

/* ---------- Numbered call order ---------- */
.umber-procedure { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 800px; counter-reset: step; }
.domino-chapter-card { display: grid; grid-template-columns: 38px 1fr; gap: 14px; background: var(--jewel-white); border: 1px solid var(--lagoon-outline-c); border-radius: var(--knot-easing-c); padding: 16px 18px; }
.domino-chapter-card .rung-index { width: 34px; height: 34px; border-radius: 50%; background: #e3efdf; color: var(--sleeper); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.domino-chapter-card h3 { margin-bottom: 4px; }
.domino-chapter-card p { margin: 0; color: var(--ready-recessive); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.focal-topic-block { border-bottom: 1px solid var(--lagoon-outline-c); padding: 14px 0; max-width: 820px; }
.focal-topic-block summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--sleeper); font-size: 1.06rem; display: flex; justify-content: space-between; gap: 14px; }
.focal-topic-block summary::-webkit-details-marker { display: none; }
.focal-topic-block summary::after { content: "+"; color: var(--spikehead); font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.focal-topic-block[open] summary::after { content: "\2212"; }
.focal-topic-block p { margin: 10px 0 0; color: var(--ready-recessive); }

/* ---------- Photos ---------- */
.drift-worksite-shot { max-width: var(--stencil-maxw); margin: 0 auto; padding: 30px 20px; }
.drift-worksite-shot img { width: 100%; max-width: 820px; height: auto; margin: 0 auto; border-radius: var(--knot-easing-c); border: 1px solid var(--lagoon-outline-c); }
.sorrel-reel .firm-contacts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sorrel-reel img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--knot-easing-c); border: 1px solid var(--lagoon-outline-c); background: var(--jewel-white); }
@media (max-width: 900px) { .sorrel-reel .firm-contacts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .sorrel-reel .firm-contacts { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Area links, breadcrumb ---------- */
.copper-area-list { display: flex; flex-wrap: wrap; gap: 10px; }
.copper-area-list a { background: var(--jewel-white); border: 1px solid var(--lagoon-outline-c); border-radius: 4px; padding: 8px 14px; color: var(--sleeper); font-size: 0.93rem; text-decoration: none; }
.copper-area-list a:hover { border-color: var(--spikehead); }
.swift-crumb { max-width: var(--stencil-maxw); margin: 0 auto; padding: 14px 20px 0; font-size: 0.85rem; color: var(--ready-recessive); }
.swift-crumb a { color: var(--ready-recessive); }

/* ---------- Closing band ---------- */
.tall-sendoff { background: var(--sleeper); color: var(--jewel-white); text-align: center; padding: 46px 20px; }
.tall-sendoff h2 { color: var(--jewel-white); }
.tall-sendoff p { color: #bdd6b5; max-width: 640px; margin: 0 auto 18px; }
.tall-sendoff .firm-pressel { margin: 4px 6px; }

/* ---------- Form ---------- */
form.ridge-enrollment { display: grid; gap: 13px; max-width: 520px; }
form.ridge-enrollment label { display: block; margin-bottom: 4px; font-size: 0.88rem; font-weight: 700; color: var(--sleeper); }
form.ridge-enrollment input, form.ridge-enrollment select, form.ridge-enrollment textarea { width: 100%; padding: 11px 12px; font: inherit; font-size: 0.96rem; border: 1px solid #bccbb7; border-radius: var(--knot-easing-c); background: var(--jewel-white); color: var(--thimble-script-c); }
form.ridge-enrollment input:focus, form.ridge-enrollment select:focus, form.ridge-enrollment textarea:focus { outline: 2px solid var(--spikehead); outline-offset: 1px; }
form.ridge-enrollment button { cursor: pointer; border: 0; }
form.ridge-enrollment button[disabled] { opacity: 0.6; cursor: not-allowed; }
form.ridge-enrollment .orbit-stipulation { font-size: 0.8rem; color: var(--ready-recessive); margin: 0; }
form.ridge-enrollment .cobalt-extra-detail { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.omega-acknowledgement { display: none; padding: 11px 14px; border-radius: var(--knot-easing-c); font-size: 0.92rem; }
.omega-acknowledgement.visible { display: block; }
.omega-acknowledgement.success { background: #e3efdf; color: var(--sleeper); }
.omega-acknowledgement.error { background: #fdecea; color: #b3261e; }

/* ---------- Footer ---------- */
footer.sprig-headpiece { background: var(--spikehead-deep); color: #b8d1b1; padding: 40px 20px 22px; font-size: 0.9rem; }
footer.sprig-headpiece .gentle-holder { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer.sprig-headpiece h2 { color: var(--jewel-white); font-size: 0.95rem; margin: 0 0 10px; }
footer.sprig-headpiece p { margin: 0; }
footer.sprig-headpiece ul { list-style: none; margin: 0; padding: 0; }
footer.sprig-headpiece li { margin-bottom: 6px; }
footer.sprig-headpiece a { color: #d6e6d1; text-decoration: none; }
footer.sprig-headpiece a:hover { text-decoration: underline; }
footer.sprig-headpiece .loyal-footer-lower { max-width: var(--stencil-maxw); 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.sprig-headpiece .gentle-holder { grid-template-columns: 1fr 1fr; } }

/* ---------- Fixed call bar ---------- */
.scout-hoverbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: center; gap: 10px; background: var(--sleeper); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 12px rgba(0,0,0,0.18); }
.scout-hoverbar-inner { display: flex; gap: 10px; width: 100%; max-width: var(--stencil-maxw); margin: 0 auto; }
.scout-hoverbar a { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; padding: 12px 10px; border-radius: var(--knot-easing-c); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.scout-hoverbar .ash-ico-phone { flex: none; }
.scout-hoverbar-call { flex: 3; background: var(--spikehead); color: var(--jewel-white); }
.scout-hoverbar-call:hover { background: var(--spikehead-deep); }
.scout-hoverbar-quote { flex: 2; color: var(--jewel-white); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.35); }
.scout-hoverbar-quote:hover { background: rgba(255,255,255,0.16); }
.scout-hoverbar .valley-addendum-cta { display: none; }
@media (min-width: 590px) { .scout-hoverbar .valley-addendum-cta { display: inline; } }
@media (min-width: 721px) {
  .scout-hoverbar-inner { justify-content: center; }
  .scout-hoverbar a { flex: 0 0 auto; padding: 12px 24px; font-size: 1rem; }
}
