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

   Palette: deep pine-emerald chrome with a small blush highlight.
     --pine   #0f3f33  chrome: header, hero base, closing band
     --bough  #3f8a74  mid tone: card rules, picker hover edge (never text)
     --needle #16604b  accent: buttons, labels, body links
     --needle-deep #0d3a2d  accent hover and footer ground
     --dapple #f4b6c7  highlight, small areas only, dark ink on it

   Contrast, computed (WCAG 2.x, small text needs 4.5:1):
     white on --pine ............................. 11.80
     white on --needle (buttons) ................. 7.48
     white on --needle-deep (hover) .............. 12.65
     nav link #cfe6dd on --pine .................. 9.00
     hero lead #d6ebe3 on --pine ................. 9.47
     brand span --dapple on --pine ............... 6.95
     subnote / band copy #b9d6cb on --pine ....... 7.61
     footer text #a9c7bc on --needle-deep ........ 6.98
     footer links #cfe2da on --needle-deep ....... 9.36
     --pine (h2) on --west-canvas-c ......................... 11.14
     --needle (labels, links) on --west-canvas-c ............ 7.06
     --needle (links) on white ................... 7.48
     --wheat-faint on --west-canvas-c / white ..................... 5.62 / 5.95
     --ebony-ink on --dapple ........................... 9.80
     success #16604b on #e2efe9 .................. 6.32
     error #b3261e on #fdecea .................... 5.72
     step number --pine on #e2efe9 ............... 9.98
   The hero gradient runs --pine to --needle rather than to --bough: white
   text measures 4.12 on --bough, under the small-text floor. */

:root {
  --pine: #0f3f33;
  --bough: #3f8a74;
  --needle: #16604b;
  --needle-deep: #0d3a2d;
  --dapple: #f4b6c7;
  --west-canvas-c: #f6f9f8;
  --vessel-light: #ffffff;
  --ebony-ink: #12211d;
  --wheat-faint: #4f6962;
  --inner-keyline: #d5e3dd;
  --khaki-round: 6px;
  --garnet-span: 1140px;
  /* RGB channels of --pine, for the photo scrim. */
  --proud-gauze: 15, 63, 51;
  /* Measured height of the fixed call bar: 10px padding top and bottom, a
     0.95rem line, 12px link padding each side, 2px slack. */
  --south-bar-h: 70px;
}
@media (min-width: 721px) { :root { --south-bar-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(--ebony-ink);
  background: var(--west-canvas-c);
  line-height: 1.6;
  padding-bottom: var(--south-bar-h);
}
img { max-width: 100%; display: block; }
a { color: var(--needle); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.lumen-canvas { max-width: var(--garnet-span); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header.tall-mast { background: var(--pine); color: var(--vessel-light); position: sticky; top: 0; z-index: 50; }
header.tall-mast .plain-strip {
  max-width: var(--garnet-span); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px;
}
header.tall-mast .lagoon-masthead-name { display: inline-flex; align-items: center; gap: 10px; color: var(--vessel-light); font-weight: 800; font-size: 1.12rem; text-decoration: none; letter-spacing: -0.01em; }
header.tall-mast .lagoon-masthead-name span { color: var(--dapple); }
.saddle-medallion { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: block; }
header.tall-mast nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
header.tall-mast nav a { color: #cfe6dd; font-size: 0.93rem; text-decoration: none; }
header.tall-mast nav a:hover { color: var(--vessel-light); text-decoration: underline; }
header.tall-mast .russet-phone-action {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--needle); color: var(--vessel-light); padding: 9px 15px; border-radius: var(--khaki-round);
  font-weight: 700; text-decoration: none; border: 1px solid rgba(255,255,255,0.18);
}
header.tall-mast .russet-phone-action:hover { background: var(--needle-deep); }
@media (min-width: 821px) and (max-width: 1080px) {
  header.tall-mast nav { order: 3; flex: 1 0 100%; justify-content: center; }
}
@media (max-width: 820px) {
  header.tall-mast .plain-strip { justify-content: center; text-align: center; }
}

/* ---------- Hero ---------- */
.simple-hero {
  background: linear-gradient(160deg, var(--pine) 0%, var(--pine) 40%, var(--needle) 100%);
  color: var(--vessel-light); padding: 54px 20px 46px;
}
.simple-hero .lumen-canvas { display: flex; flex-direction: column; gap: 16px; }
.simple-hero .cream-supertitle {
  display: inline-block; width: fit-content; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ebony-ink); background: var(--dapple); padding: 4px 11px; border-radius: 3px;
}
.simple-hero h1 { margin: 0; font-size: 2.25rem; line-height: 1.18; max-width: 780px; letter-spacing: -0.015em; }
.simple-hero .spiral-prologue-copy { margin: 0; font-size: 1.1rem; color: #d6ebe3; max-width: 640px; }
.simple-hero .dune-aside-note { margin: 0; font-size: 0.9rem; color: #b9d6cb; max-width: 640px; }
.simple-hero.cobalt-has-image {
  background-image:
    linear-gradient(95deg, rgba(var(--proud-gauze), 0.93) 0%, rgba(var(--proud-gauze), 0.8) 42%, rgba(var(--proud-gauze), 0.36) 72%, rgba(var(--proud-gauze), 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) {
  .simple-hero.cobalt-has-image {
    background-image:
      linear-gradient(180deg, rgba(var(--proud-gauze), 0.9) 0%, rgba(var(--proud-gauze), 0.82) 60%, rgba(var(--proud-gauze), 0.68) 100%),
      url('/images/hero-roofing-photo-mobile.jpg');
    min-height: 470px;
  }
  .simple-hero h1 { font-size: 1.72rem; }
}
.atoll-act-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.quartz-striker { display: inline-block; padding: 13px 22px; border-radius: var(--khaki-round); font-weight: 700; font-size: 1rem; text-decoration: none; }
.quartz-striker.cocoa-key { background: var(--needle); color: var(--vessel-light); border: 1px solid rgba(255,255,255,0.2); }
.quartz-striker.cocoa-key:hover { background: var(--needle-deep); }
.quartz-striker.lens-hairline-btn { background: transparent; color: var(--vessel-light); border: 1px solid rgba(255,255,255,0.45); }
.quartz-striker.lens-hairline-btn:hover { background: rgba(255,255,255,0.1); }

/* ---------- Picker: "what hit the roof" ---------- */
.fell-picker { padding: 0 20px; margin-top: -30px; position: relative; z-index: 2; }
.fell-picker .lumen-canvas { padding: 0; }
.fell-picker .fell-ask { font-weight: 800; color: var(--pine); font-size: 1.05rem; margin: 0 0 10px; background: var(--vessel-light); display: inline-block; padding: 6px 12px 0; border-radius: var(--khaki-round) var(--khaki-round) 0 0; }
.fell-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--vessel-light); border: 1px solid var(--inner-keyline); border-radius: 0 var(--khaki-round) var(--khaki-round) var(--khaki-round); box-shadow: 0 6px 22px rgba(15,63,51,0.12); }
.fell-options a { display: block; padding: 20px 22px; text-decoration: none; color: var(--ebony-ink); border-left: 1px solid var(--inner-keyline); border-top: 4px solid transparent; }
.fell-options a:first-child { border-left: 0; }
.fell-options a:hover { border-top-color: var(--bough); background: #f1f7f4; }
.fell-options strong { display: block; color: var(--pine); font-size: 1.08rem; margin-bottom: 4px; }
.fell-options span { color: var(--wheat-faint); font-size: 0.93rem; }
@media (max-width: 760px) {
  .fell-options { grid-template-columns: 1fr; }
  .fell-options a { border-left: 0; border-top: 1px solid var(--inner-keyline); }
  .fell-options a:first-child { border-top: 0; }
}

/* ---------- Sections ---------- */
section { padding: 50px 20px; }
section.radial-offset { background: var(--vessel-light); border-top: 1px solid var(--inner-keyline); border-bottom: 1px solid var(--inner-keyline); }
.oar-part-label { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--needle); margin-bottom: 6px; }
h2 { font-size: 1.62rem; line-height: 1.25; margin: 0 0 18px; color: var(--pine); }
h3 { font-size: 1.12rem; margin: 0 0 8px; color: var(--pine); }
.prose-col { max-width: 760px; }
.prose-col p { margin: 0 0 14px; }
.prose-col ul, .prose-col ol { margin: 0 0 14px; padding-left: 22px; }
.prose-col li { margin-bottom: 6px; }

.saffron-lattice { display: grid; gap: 18px; }
.saffron-lattice.crest-triad { grid-template-columns: repeat(3, 1fr); }
.saffron-lattice.ledger-twofold { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .saffron-lattice.crest-triad, .saffron-lattice.ledger-twofold { grid-template-columns: 1fr; } }
.thimble-panel { background: var(--vessel-light); border: 1px solid var(--inner-keyline); border-top: 3px solid var(--bough); border-radius: var(--khaki-round); padding: 18px 20px; }
.thimble-panel p { margin: 6px 0 0; color: var(--wheat-faint); font-size: 0.95rem; }
.thimble-panel a.more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 0.93rem; }

/* A boxed aside for a sourced fact, a rule or a caution. */
.flag-note { border-left: 4px solid var(--dapple); background: var(--vessel-light); border-radius: var(--khaki-round); padding: 16px 20px; margin: 0 0 16px; max-width: 760px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.flag-note p { margin: 0 0 8px; }
.flag-note p:last-child { margin-bottom: 0; }
.flag-note .src { font-size: 0.85rem; color: var(--wheat-faint); }

/* ---------- Month-by-month strip ---------- */
.season-plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.season-plan li { background: var(--vessel-light); border: 1px solid var(--inner-keyline); border-radius: var(--khaki-round); padding: 16px 18px; }
.season-plan .mo { display: inline-block; font-weight: 800; color: var(--pine); background: #e2efe9; border-radius: 3px; padding: 2px 9px; margin-bottom: 8px; font-size: 0.9rem; }
.season-plan p { margin: 0; font-size: 0.93rem; color: var(--wheat-faint); }
@media (max-width: 900px) { .season-plan { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .season-plan { grid-template-columns: 1fr; } }

/* ---------- Numbered call order ---------- */
.runbook { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 800px; counter-reset: step; }
.chapter-card { display: grid; grid-template-columns: 38px 1fr; gap: 14px; background: var(--vessel-light); border: 1px solid var(--inner-keyline); border-radius: var(--khaki-round); padding: 16px 18px; }
.chapter-card .tally-num { width: 34px; height: 34px; border-radius: 50%; background: #e2efe9; color: var(--pine); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.chapter-card h3 { margin-bottom: 4px; }
.chapter-card p { margin: 0; color: var(--wheat-faint); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.mint-question { border-bottom: 1px solid var(--inner-keyline); padding: 14px 0; max-width: 820px; }
.mint-question summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--pine); font-size: 1.06rem; display: flex; justify-content: space-between; gap: 14px; }
.mint-question summary::-webkit-details-marker { display: none; }
.mint-question summary::after { content: "+"; color: var(--needle); font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.mint-question[open] summary::after { content: "\2212"; }
.mint-question p { margin: 10px 0 0; color: var(--wheat-faint); }

/* ---------- Photos ---------- */
.tulip-jobshot { max-width: var(--garnet-span); margin: 0 auto; padding: 30px 20px; }
.tulip-jobshot img { width: 100%; max-width: 820px; height: auto; margin: 0 auto; border-radius: var(--khaki-round); border: 1px solid var(--inner-keyline); }
.poplar-photo-row .drift-contacts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.poplar-photo-row img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--khaki-round); border: 1px solid var(--inner-keyline); background: var(--vessel-light); }
@media (max-width: 900px) { .poplar-photo-row .drift-contacts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .poplar-photo-row .drift-contacts { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Area links, breadcrumb ---------- */
.garnet-coverage { display: flex; flex-wrap: wrap; gap: 10px; }
.garnet-coverage a { background: var(--vessel-light); border: 1px solid var(--inner-keyline); border-radius: 4px; padding: 8px 14px; color: var(--pine); font-size: 0.93rem; text-decoration: none; }
.garnet-coverage a:hover { border-color: var(--needle); }
.gentle-wayfinder { max-width: var(--garnet-span); margin: 0 auto; padding: 14px 20px 0; font-size: 0.85rem; color: var(--wheat-faint); }
.gentle-wayfinder a { color: var(--wheat-faint); }

/* ---------- Closing band ---------- */
.vessel-final-call { background: var(--pine); color: var(--vessel-light); text-align: center; padding: 46px 20px; }
.vessel-final-call h2 { color: var(--vessel-light); }
.vessel-final-call p { color: #b9d6cb; max-width: 640px; margin: 0 auto 18px; }
.vessel-final-call .quartz-striker { margin: 4px 6px; }

/* ---------- Form ---------- */
form.ember-brief-form { display: grid; gap: 13px; max-width: 520px; }
form.ember-brief-form label { display: block; margin-bottom: 4px; font-size: 0.88rem; font-weight: 700; color: var(--pine); }
form.ember-brief-form input, form.ember-brief-form select, form.ember-brief-form textarea { width: 100%; padding: 11px 12px; font: inherit; font-size: 0.96rem; border: 1px solid #b8ccc4; border-radius: var(--khaki-round); background: var(--vessel-light); color: var(--ebony-ink); }
form.ember-brief-form input:focus, form.ember-brief-form select:focus, form.ember-brief-form textarea:focus { outline: 2px solid var(--needle); outline-offset: 1px; }
form.ember-brief-form button { cursor: pointer; border: 0; }
form.ember-brief-form button[disabled] { opacity: 0.6; cursor: not-allowed; }
form.ember-brief-form .ember-proviso { font-size: 0.8rem; color: var(--wheat-faint); margin: 0; }
form.ember-brief-form .brisk-locale-note { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.creek-confirm-line { display: none; padding: 11px 14px; border-radius: var(--khaki-round); font-size: 0.92rem; }
.creek-confirm-line.visible { display: block; }
.creek-confirm-line.success { background: #e2efe9; color: #16604b; }
.creek-confirm-line.error { background: #fdecea; color: #b3261e; }

/* ---------- Footer ---------- */
footer.tall-mast { background: var(--needle-deep); color: #a9c7bc; padding: 40px 20px 22px; font-size: 0.9rem; }
footer.tall-mast .lumen-canvas { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer.tall-mast h2 { color: var(--vessel-light); font-size: 0.95rem; margin: 0 0 10px; }
footer.tall-mast p { margin: 0; }
footer.tall-mast ul { list-style: none; margin: 0; padding: 0; }
footer.tall-mast li { margin-bottom: 6px; }
footer.tall-mast a { color: #cfe2da; text-decoration: none; }
footer.tall-mast a:hover { text-decoration: underline; }
footer.tall-mast .sigma-closing-row { max-width: var(--garnet-span); 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.tall-mast .lumen-canvas { grid-template-columns: 1fr 1fr; } }

/* ---------- Fixed call bar ---------- */
.mesa-standing-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: center; gap: 10px; background: var(--pine); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 12px rgba(0,0,0,0.18); }
.mesa-standing-cta-inner { display: flex; gap: 10px; width: 100%; max-width: var(--garnet-span); margin: 0 auto; }
.mesa-standing-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; padding: 12px 10px; border-radius: var(--khaki-round); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.mesa-standing-cta .walnut-handset { flex: none; }
.mesa-standing-cta-call { flex: 3; background: var(--needle); color: var(--vessel-light); }
.mesa-standing-cta-call:hover { background: var(--needle-deep); }
.mesa-standing-cta-quote { flex: 2; color: var(--vessel-light); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.35); }
.mesa-standing-cta-quote:hover { background: rgba(255,255,255,0.16); }
.mesa-standing-cta .tandem-trailer { display: none; }
@media (min-width: 590px) { .mesa-standing-cta .tandem-trailer { display: inline; } }
@media (min-width: 721px) {
  .mesa-standing-cta-inner { justify-content: center; }
  .mesa-standing-cta a { flex: 0 0 auto; padding: 12px 24px; font-size: 1rem; }
}
