/* Katy Roofing & Siding — base stylesheet
   Single static stylesheet, no build step, no external font/JS dependency.

   Contrast check (AA: 4.5:1 small, 3:1 large). --drip is the accent, the CTA
   color and what links resolve to:
     --text on --violet-base-c ................................ 15.91:1
     --soft on --violet-base-c .............................. 7.63:1
     white on --deck (#7a1f2b) .................... 10.20:1
     white on --drip (#9c2734) .................... 7.63:1
     white on --drip-deep (#6b1620) ............... 11.93:1
     --drip on --violet-base-c (links, section labels) ....... 7.11:1
     --drip on white (links in cards) ............. 7.63:1
     --deck on --violet-base-c (h2, h3) ...................... 9.51:1
     hero lead (#f3dfe2) on gradient end (#9e3c48) . 5.16:1
     nav link (#f0d9dc) on --deck ................. 7.61:1
     brand mark (#f6b3bc) on --deck ............... 5.87:1
     footer text (#e9c9ce) on --drip-deep ......... 7.79:1
     ink on --sky (small highlight areas) ......... 8.91:1
   The hero gradient stops before the lighter --underlay: white on the
   full --underlay measures 4.24:1, so the gradient ends on a 50% blend.
*/

:root {
  --deck: #7a1f2b;
  /* RGB channels of --deck, for the hero photo scrim. */
  --wash: 122, 31, 43;
  --underlay: #c25a66;
  --drip: #9c2734;
  --drip-deep: #6b1620;
  --sky: #7fc4e8;
  --violet-base-c: #faf6f5;
  --bone: #ffffff;
  --text: #24191b;
  --soft: #5e4a4e;
  --divide: #eadfe0;
  --tint: #f3dfe2;
  --far-corner: 9px;
  --shore-bound-c: 1040px;
  /* The fixed CTA bar's real height: 8+11 padding top and bottom plus a
     0.88rem line (22px), +2px slack. Above 740px the bar is 64px. */
  --sticky-h: 62px;
}

@media (min-width: 740px) { :root { --sticky-h: 64px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--violet-base-c);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--drip); text-decoration: none; }
a:hover { text-decoration: underline; }
.span-wrap { max-width: var(--shore-bound-c); margin: 0 auto; padding: 0 20px; }

/* Header */
header.eaveline {
  background: var(--deck);
  color: var(--bone);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.eaveline .masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--shore-bound-c);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}
header.eaveline .signboard {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
header.eaveline .signboard span { color: #f6b3bc; }
header.eaveline nav { display: flex; gap: 16px; flex-wrap: wrap; }
header.eaveline nav a { color: #f0d9dc; font-size: 0.95rem; }
header.eaveline nav a:hover { color: var(--bone); }
header.eaveline .dial-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  background: var(--drip);
  color: var(--bone);
  padding: 9px 16px;
  border-radius: var(--far-corner);
  font-weight: 700;
}
header.eaveline .dial-btn:hover { background: var(--drip-deep); text-decoration: none; }

/* Hero */
.frontage {
  background: linear-gradient(135deg, var(--deck), #9e3c48);
  color: var(--bone);
  padding: 56px 20px 48px;
}
.frontage .span-wrap { display: flex; flex-direction: column; gap: 18px; }
.frontage .upline {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  width: fit-content;
}
.frontage h1 { font-size: 2.2rem; margin: 0; max-width: 760px; }
.frontage p.prologue-copy { font-size: 1.1rem; color: #f3dfe2; max-width: 620px; margin: 0; }
.frontage .options-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.lever {
  display: inline-block;
  padding: 13px 22px;
  border-radius: var(--far-corner);
  font-weight: 700;
  font-size: 1rem;
}
.lever.prime { background: var(--drip); color: var(--bone); }
.lever.prime:hover { background: var(--drip-deep); text-decoration: none; }
.lever.bare-btn { background: rgba(255,255,255,0.08); color: var(--bone); border: 1px solid rgba(255,255,255,0.4); }
.lever.bare-btn:hover { background: rgba(255,255,255,0.16); text-decoration: none; }
.frontage .under-note { font-size: 0.9rem; color: #f0d5d9; }

/* Homepage hero with a full-bleed background photo. */
.frontage.scenic {
  background-image:
    linear-gradient(90deg, rgba(var(--wash), 0.92) 0%, rgba(var(--wash), 0.74) 38%, rgba(var(--wash), 0.30) 68%, rgba(var(--wash), 0.06) 100%),
    url('/images/hero-roofing-photo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 540px;
  display: flex;
  align-items: center;
  padding: 56px 20px;
}
@media (max-width: 820px) {
  .frontage.scenic {
    background-image:
      linear-gradient(180deg, rgba(var(--wash), 0.9) 0%, rgba(var(--wash), 0.82) 55%, rgba(var(--wash), 0.68) 100%),
      url('/images/hero-roofing-photo-mobile.jpg');
    min-height: 460px;
  }
}

/* Sections */
section { padding: 48px 20px; }
section.secondary-band { background: var(--bone); border-top: 1px solid var(--divide); border-bottom: 1px solid var(--divide); }
.chapter-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--drip);
  font-weight: 700;
  margin-bottom: 6px;
}
h2 { font-size: 1.65rem; margin: 0 0 20px; color: var(--deck); }
h3 { font-size: 1.15rem; margin: 0 0 8px; color: var(--deck); }
h2.minor-head { font-size: 1.15rem; margin: 0 0 8px; color: var(--deck); }

/* Grid cards */
.quilt { display: grid; gap: 18px; }
.quilt.ternary { grid-template-columns: repeat(3, 1fr); }
.quilt.brace { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .quilt.ternary, .quilt.brace { grid-template-columns: 1fr; }
  .frontage h1 { font-size: 1.7rem; }
  header.eaveline .masthead-row { justify-content: center; text-align: center; }
}
@media (min-width: 821px) and (max-width: 1060px) {
  header.eaveline nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    margin-top: 2px;
  }
}
.lyric-box {
  background: var(--bone);
  border: 1px solid var(--divide);
  border-radius: var(--far-corner);
  padding: 20px;
}
.lyric-box p { color: var(--soft); margin: 6px 0 0; font-size: 0.95rem; }

/* Two-track band under the homepage hero */
.tracks { background: var(--tint); border-bottom: 1px solid var(--divide); padding: 36px 20px; }
.tracks .lyric-box { border-top: 4px solid var(--drip); }
.tracks .lyric-box + .lyric-box { border-top-color: var(--sky); }
.tracks .lyric-box p { color: var(--text); }

/* Dated-events timeline */
ol.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--underlay); }
ol.timeline li { position: relative; padding: 0 0 22px 18px; color: var(--text); }
ol.timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--drip);
  border: 2px solid var(--violet-base-c);
}
ol.timeline li:last-child { padding-bottom: 0; }
section.secondary-band ol.timeline li::before { border-color: var(--bone); }

/* FAQ — native <details>/<summary> accordion, no JS needed */
.topic-block { border-bottom: 1px solid var(--divide); padding: 14px 0; }
.topic-block:first-child { padding-top: 0; }
.topic-block summary {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--deck);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topic-block summary::-webkit-details-marker { display: none; }
.topic-block summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--drip); flex-shrink: 0; }
.topic-block[open] summary::after { content: "\2212"; }
.topic-block p { margin: 10px 0 0; color: var(--soft); }

/* Sticky CTA bar — visible at every width */
.moorbar {
  display: flex;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--deck);
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  gap: 10px;
  justify-content: center;
}
.moorbar-inner { display: flex; gap: 10px; width: 100%; max-width: var(--shore-bound-c); margin: 0 auto; }
.moorbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-align: center;
  padding: 11px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
}
.moorbar .call-glyph { flex: none; }
.moorbar-call { flex: 3; background: var(--drip); color: var(--bone); }
.moorbar-quote { flex: 2; background: rgba(255,255,255,0.1); color: var(--bone); border: 1px solid rgba(255,255,255,0.4); }
.moorbar-call:hover { background: var(--drip-deep); text-decoration: none; }
.moorbar-quote:hover { background: rgba(255,255,255,0.18); text-decoration: none; }
.moorbar .subclause { display: none; }
@media (min-width: 550px) { .moorbar .subclause { display: inline; } }
@media (min-width: 740px) {
  .moorbar-inner { justify-content: center; }
  .moorbar a { flex: 0 0 auto; padding: 11px 22px; font-size: 0.95rem; }
}
body { padding-bottom: var(--sticky-h); }

/* Area links */
.zones-list { display: flex; flex-wrap: wrap; gap: 10px; }
.zones-list a {
  background: var(--bone);
  border: 1px solid var(--divide);
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--deck);
  font-size: 0.92rem;
}
.zones-list a:hover { border-color: var(--drip); text-decoration: none; }

/* CTA band */
.coda { background: var(--deck); color: var(--bone); text-align: center; padding: 44px 20px; }
.coda h2 { color: var(--bone); }
.coda p { color: #f0d9dc; margin-bottom: 18px; }

/* Contact form */
form.petition-form { display: grid; gap: 12px; max-width: 480px; }
form.petition-form label { font-size: 0.88rem; font-weight: 600; color: var(--deck); display: block; margin-bottom: 4px; }
form.petition-form input, form.petition-form select, form.petition-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--divide);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}
form.petition-form .stipulation { font-size: 0.78rem; color: var(--soft); }
form.petition-form .offscreen-slot { position: absolute; left: -9999px; top: -9999px; }
form.petition-form button[disabled] { opacity: 0.6; cursor: not-allowed; }
.outcome-note { margin-top: 12px; padding: 11px 14px; border-radius: 6px; font-size: 0.9rem; display: none; }
.outcome-note.visible { display: block; }
.outcome-note.success { background: #f6e4e6; color: #7a1f2b; }
.outcome-note.error { background: #fdecea; color: #b3261e; }

/* Breadcrumb */
.waypoints { font-size: 0.85rem; color: var(--soft); padding: 14px 20px 0; max-width: var(--shore-bound-c); margin: 0 auto; }
.waypoints a { color: var(--soft); }

/* Footer */
footer.eaveline {
  background: var(--drip-deep);
  color: #e9c9ce;
  padding: 40px 20px 24px;
  font-size: 0.9rem;
}
footer.eaveline .span-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer.eaveline h2 { color: var(--bone); font-size: 0.95rem; margin: 0 0 10px; }
footer.eaveline ul { list-style: none; padding: 0; margin: 0; }
footer.eaveline li { margin-bottom: 6px; }
footer.eaveline a { color: #e9c9ce; }
footer.eaveline .foot-edge {
  max-width: var(--shore-bound-c);
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 720px) { footer.eaveline .span-wrap { grid-template-columns: 1fr 1fr; } }

/* Brand logo */
.seal-badge { width: 30px; height: 30px; border-radius: 50%; display: block; flex-shrink: 0; }

/* Inline documentary photo between two content sections. One per page, no
   captions, capped width so an unclassed figure can never render full-bleed. */
.plate-figure { max-width: var(--shore-bound-c); margin: 0 auto; padding: 34px 20px; }
.plate-figure img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--far-corner);
  border: 1px solid var(--divide);
}

/* Homepage work strip: twelve thumbnails, so the rows come out even at every
   breakpoint: 6+6 on desktop, 3x4 at 900px, 2x6 at 520px. */
.strip-band .storm-tally { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.strip-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--divide);
  background: var(--bone);
}
@media (max-width: 900px) { .strip-band .storm-tally { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .strip-band .storm-tally { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
