/* Spring Roofing Repairs — base stylesheet
   Single static stylesheet, no build step, no external font/JS dependency.

   Contrast check (AA: 4.5:1 small, 3:1 large). --seal is the accent, the CTA
   color and what links resolve to:
     --myrtle-body-c on --thread-bg .................................. 15.84:1
     --node-faint on --thread-bg ................................ 7.67:1
     --node-faint on white ............................... 8.16:1
     white on --shank (#6b2158) ..................... 10.59:1
     white on --seal (#8a2c72) ...................... 7.82:1
     white on --seal-deep (#55174a) ................. 13.06:1
     --seal on --thread-bg (links, section labels) ......... 7.35:1
     --seal on white (links in cards) ............... 7.82:1
     --shank on --thread-bg (h2, h3) ....................... 9.95:1
     hero lead (#f3dff0) on gradient end (#883e75) .. 5.55:1
     nav link (#f0d6ea) on --shank .................. 7.82:1
     brand mark (#f7c9ec) on --shank ................ 7.32:1
     footer text (#efd3ea) on --seal-deep ........... 9.44:1
     ink on --straw (small highlight areas) ......... 13.02:1
     success text (--seal-deep on #f4e3ef) .......... 10.62:1
     error text (#b3261e on #fdecea) ................ 5.72:1
   The hero gradient stops before the lighter --patch: white on the full
   --patch measures 4.71:1, so the gradient ends on a 50% blend (#883e75).
   The rationale behind the palette and what it was checked against are
   recorded outside the web root — this file is served publicly, so it does
   not carry them.
*/

:root {
  --shank:      #6b2158;  /* chrome — header, hero base, cta band */
  --patch:      #a45a92;  /* mid — hero gradient light end, card tints */
  --seal:       #8a2c72;  /* accent + CTA + body link */
  --seal-deep:  #55174a;  /* accent hover; footer background */
  --straw:      #efe3a8;  /* highlight — small-area; ink on it */
  /* RGB channels of --shank, for the hero photo scrim. */
  --quiet-overlay:      107, 33, 88;
  --thread-bg:         #faf7f9;
  --merry-plain:      #ffffff;
  --myrtle-body-c:        #241a22;
  --node-faint:      #5c4a57;
  --omega-edge:     #e9dde5;
  --blush:       #f4e3ef;
  --pole-easing-c:     7px;
  --low-maxw:       1060px;
  /* 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. */
  --russet-cta-h: 62px;
}

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--myrtle-body-c);
  background: var(--thread-bg);
  line-height: 1.6;
}
h1, h2, h3, .proud-press, nav, .marsh-band-name, .khaki-brow, .rivet-keelbar, header.graphite-topbar, .handset-link, .verdict-table th, .copper-area-links, form.soft-tell-form label, .tempo-routeline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--seal); text-decoration: none; }
a:hover { text-decoration: underline; }
.runway { max-width: var(--low-maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
header.graphite-topbar {
  background: var(--shank);
  color: var(--merry-plain);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.graphite-topbar .crossbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  max-width: var(--low-maxw);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}
header.graphite-topbar .byname {
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--merry-plain);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
header.graphite-topbar .byname span { color: #f7c9ec; font-weight: 400; }
header.graphite-topbar nav { display: flex; gap: 14px; flex-wrap: wrap; }
header.graphite-topbar nav a { color: #f0d6ea; font-size: 0.92rem; }
header.graphite-topbar nav a:hover { color: var(--merry-plain); }
header.graphite-topbar .handset-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  background: var(--seal);
  color: var(--merry-plain);
  padding: 9px 16px;
  border-radius: var(--pole-easing-c);
  font-weight: 700;
}
header.graphite-topbar .handset-link:hover { background: var(--seal-deep); text-decoration: none; }

/* Hero */
.cedar-topline {
  background: linear-gradient(125deg, var(--shank), #883e75);
  color: var(--merry-plain);
  padding: 52px 20px 44px;
}
.cedar-topline .runway { display: flex; flex-direction: column; gap: 16px; }
.cedar-topline .khaki-brow {
  display: inline-block;
  background: var(--straw);
  color: var(--myrtle-body-c);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  width: fit-content;
}
.cedar-topline h1 { font-size: 2.15rem; margin: 0; max-width: 740px; line-height: 1.2; }
.cedar-topline p.sleek-opening-line { font-size: 1.1rem; color: #f3dff0; max-width: 600px; margin: 0; }
.cedar-topline .olive-route-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.proud-press {
  display: inline-block;
  padding: 13px 22px;
  border-radius: var(--pole-easing-c);
  font-weight: 700;
  font-size: 1rem;
}
.proud-press.urban-lead-btn { background: var(--seal); color: var(--merry-plain); }
.proud-press.urban-lead-btn:hover { background: var(--seal-deep); text-decoration: none; }
.proud-press.mallet-unfilled { background: rgba(255,255,255,0.08); color: var(--merry-plain); border: 1px solid rgba(255,255,255,0.45); }
.proud-press.mallet-unfilled:hover { background: rgba(255,255,255,0.16); text-decoration: none; }
.cedar-topline .vertex-minor-note { font-size: 0.9rem; color: #f0d6ea; }

/* Homepage hero with a full-bleed background photo. */
.cedar-topline.lucid-shot-backed {
  background-image:
    linear-gradient(90deg, rgba(var(--quiet-overlay), 0.93) 0%, rgba(var(--quiet-overlay), 0.76) 40%, rgba(var(--quiet-overlay), 0.32) 70%, rgba(var(--quiet-overlay), 0.08) 100%),
    url('/images/hero-roofing-photo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 52px 20px;
}
@media (max-width: 820px) {
  .cedar-topline.lucid-shot-backed {
    background-image:
      linear-gradient(180deg, rgba(var(--quiet-overlay), 0.9) 0%, rgba(var(--quiet-overlay), 0.82) 55%, rgba(var(--quiet-overlay), 0.7) 100%),
      url('/images/hero-roofing-photo-mobile.jpg');
    min-height: 440px;
  }
}

/* Sections */
section { padding: 46px 20px; }
section.spiral-secondary-band { background: var(--merry-plain); border-top: 1px solid var(--omega-edge); border-bottom: 1px solid var(--omega-edge); }
.marsh-band-name {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--seal);
  font-weight: 700;
  margin-bottom: 6px;
}
h2 { font-size: 1.6rem; margin: 0 0 18px; color: var(--shank); line-height: 1.25; }
h3 { font-size: 1.12rem; margin: 0 0 8px; color: var(--shank); }
h2.minor { font-size: 1.12rem; margin: 0 0 8px; color: var(--shank); }

/* The verdict table — the homepage's defining block and the long-form page's spine */
.verdict-table { width: 100%; border-collapse: collapse; background: var(--merry-plain); border: 1px solid var(--omega-edge); border-radius: var(--pole-easing-c); overflow: hidden; }
.verdict-table th, .verdict-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--omega-edge); }
.verdict-table th { background: var(--shank); color: var(--merry-plain); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.verdict-table th:first-child { width: 22%; }
.verdict-table tr:last-child td { border-bottom: 0; }
.verdict-table td:first-child { font-weight: 700; color: var(--shank); }
.verdict-table td:nth-child(2) { background: var(--blush); }
.verdict-table tbody tr:nth-child(even) td:first-child { background: var(--thread-bg); }
.verdict-table td p { margin: 0; font-size: 0.95rem; }
.pan-wide { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Under 640px the three-column table becomes a stack of six cards: the row
   heading, then the repair case, then the replace case, each labeled. */
@media (max-width: 640px) {
  .verdict-table, .verdict-table tbody, .verdict-table tr, .verdict-table td { display: block; width: 100%; }
  .verdict-table thead { display: none; }
  .verdict-table tr { border-bottom: 3px solid var(--omega-edge); }
  .verdict-table tr:last-child { border-bottom: 0; }
  .verdict-table td { padding: 10px 14px; border-bottom: 0; }
  .verdict-table td:first-child { padding-top: 14px; font-size: 1rem; }
  .verdict-table td:nth-child(2)::before, .verdict-table td:nth-child(3)::before {
    display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; margin-bottom: 3px;
  }
  .verdict-table td:nth-child(2)::before { content: "Repair when\2026"; color: var(--shank); }
  .verdict-table td:nth-child(3)::before { content: "Replace when\2026"; color: var(--seal); }
  .verdict-table td:nth-child(3) { padding-bottom: 16px; }
}

/* Grid cards */
.true-grid { display: grid; gap: 18px; }
.true-grid.harp-threefold { grid-template-columns: repeat(3, 1fr); }
.true-grid.tan-doubleton { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .true-grid.harp-threefold, .true-grid.tan-doubleton { grid-template-columns: 1fr; }
  .cedar-topline h1 { font-size: 1.68rem; }
  header.graphite-topbar .crossbar { justify-content: center; text-align: center; }
}
@media (min-width: 821px) and (max-width: 1080px) {
  header.graphite-topbar nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    margin-top: 2px;
  }
}
.sorrel-panel {
  background: var(--merry-plain);
  border: 1px solid var(--omega-edge);
  border-radius: var(--pole-easing-c);
  padding: 20px;
}
.sorrel-panel p { color: var(--node-faint); margin: 6px 0 0; font-size: 0.95rem; }

/* Two stacked category grids on the homepage: repair, then replace */
.stacked-groups .group-caption { font-size: 0.95rem; color: var(--node-faint); margin: 26px 0 10px; padding-left: 12px; border-left: 4px solid var(--straw); }
.stacked-groups .true-grid + .group-caption { margin-top: 30px; }
.stacked-groups .sorrel-panel { border-top: 4px solid var(--seal); }
.stacked-groups .replace-set .sorrel-panel { border-top-color: var(--patch); }

/* Canopy section: photo-and-text pair */
.canopy-pair { display: grid; grid-template-columns: 5fr 6fr; gap: 28px; align-items: center; }
.canopy-pair img { width: 100%; height: auto; border-radius: var(--pole-easing-c); border: 1px solid var(--omega-edge); }
.canopy-pair p { margin: 0 0 12px; }
@media (max-width: 820px) { .canopy-pair { grid-template-columns: 1fr; } }

/* Callout with the straw highlight */
.pullout { background: var(--straw); color: var(--myrtle-body-c); padding: 16px 18px; border-radius: var(--pole-easing-c); font-size: 0.98rem; margin: 18px 0 0; }
.pullout strong { color: var(--myrtle-body-c); }

/* FAQ — native <details>/<summary>, no JS needed */
.stout-point { border-bottom: 1px solid var(--omega-edge); padding: 14px 0; }
.stout-point:first-of-type { padding-top: 0; }
.stout-point summary {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--shank);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.stout-point summary::-webkit-details-marker { display: none; }
.stout-point summary::after { content: "\203A"; font-size: 1.6rem; font-weight: 400; color: var(--seal); flex-shrink: 0; transition: transform 0.15s; }
.stout-point[open] summary::after { transform: rotate(90deg); }
.stout-point p { margin: 10px 0 0; color: var(--node-faint); }

/* Sticky CTA bar — visible at every width */
.rivet-keelbar {
  display: flex;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--shank);
  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;
}
.rivet-keelbar-inner { display: flex; gap: 10px; width: 100%; max-width: var(--low-maxw); margin: 0 auto; }
.rivet-keelbar 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;
}
.rivet-keelbar .rare-earpiece { flex: none; }
.rivet-keelbar-call { flex: 3; background: var(--seal); color: var(--merry-plain); }
.rivet-keelbar-quote { flex: 2; background: rgba(255,255,255,0.1); color: var(--merry-plain); border: 1px solid rgba(255,255,255,0.4); }
.rivet-keelbar-call:hover { background: var(--seal-deep); text-decoration: none; }
.rivet-keelbar-quote:hover { background: rgba(255,255,255,0.18); text-decoration: none; }
.rivet-keelbar .ledger-addendum-cta { display: none; }
@media (min-width: 550px) { .rivet-keelbar .ledger-addendum-cta { display: inline; } }
@media (min-width: 740px) {
  .rivet-keelbar-inner { justify-content: center; }
  .rivet-keelbar a { flex: 0 0 auto; padding: 11px 22px; font-size: 0.95rem; }
}
body { padding-bottom: var(--russet-cta-h); }

/* Area links — oldest first, as an ordered list */
ol.copper-area-links { list-style: none; counter-reset: era; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; }
ol.copper-area-links li { counter-increment: era; display: flex; align-items: baseline; gap: 10px; border-bottom: 1px dotted var(--omega-edge); padding: 6px 0; }
ol.copper-area-links li::before { content: counter(era, decimal-leading-zero); font-size: 0.78rem; color: var(--node-faint); font-variant-numeric: tabular-nums; }
ol.copper-area-links a { color: var(--shank); font-weight: 600; }
ol.copper-area-links small { color: var(--node-faint); font-size: 0.8rem; margin-left: auto; white-space: nowrap; }
@media (max-width: 820px) { ol.copper-area-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { ol.copper-area-links { grid-template-columns: 1fr; } }
/* Inline related links on deep pages */
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a {
  background: var(--merry-plain);
  border: 1px solid var(--omega-edge);
  padding: 8px 14px;
  border-radius: 4px;
  color: var(--shank);
  font-size: 0.9rem;
}
.related-links a:hover { border-color: var(--seal); text-decoration: none; }

/* CTA band */
.lens-sendoff { background: var(--shank); color: var(--merry-plain); text-align: center; padding: 44px 20px; }
.lens-sendoff h2 { color: var(--merry-plain); }
.lens-sendoff p { color: #f0d6ea; margin-bottom: 18px; }

/* Contact form */
form.soft-tell-form { display: grid; gap: 12px; max-width: 480px; }
form.soft-tell-form label { font-size: 0.88rem; font-weight: 600; color: var(--shank); display: block; margin-bottom: 4px; }
form.soft-tell-form input, form.soft-tell-form select, form.soft-tell-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--omega-edge);
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
}
form.soft-tell-form .nectar-stipulation { font-size: 0.78rem; color: var(--node-faint); }
form.soft-tell-form .tiller-aux-note { position: absolute; left: -9999px; top: -9999px; }
form.soft-tell-form button[disabled] { opacity: 0.6; cursor: not-allowed; }
.receipt-line { margin-top: 12px; padding: 11px 14px; border-radius: 5px; font-size: 0.9rem; display: none; }
.receipt-line.visible { display: block; }
.receipt-line.success { background: #f4e3ef; color: #55174a; }
.receipt-line.error { background: #fdecea; color: #b3261e; }

/* Breadcrumb */
.tempo-routeline { font-size: 0.85rem; color: var(--node-faint); padding: 14px 20px 0; max-width: var(--low-maxw); margin: 0 auto; }
.tempo-routeline a { color: var(--node-faint); }

/* Footer */
footer.graphite-topbar {
  background: var(--seal-deep);
  color: #efd3ea;
  padding: 40px 20px 24px;
  font-size: 0.9rem;
}
footer.graphite-topbar .runway { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer.graphite-topbar h2 { color: var(--merry-plain); font-size: 0.95rem; margin: 0 0 10px; }
footer.graphite-topbar ul { list-style: none; padding: 0; margin: 0; }
footer.graphite-topbar li { margin-bottom: 6px; }
footer.graphite-topbar a { color: #efd3ea; }
footer.graphite-topbar .thicket-base-row {
  max-width: var(--low-maxw);
  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.graphite-topbar .runway { grid-template-columns: 1fr 1fr; } }

/* Brand logo */
.cartouche { 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. */
.sheer-worksite-shot { max-width: var(--low-maxw); margin: 0 auto; padding: 30px 20px; }
.sheer-worksite-shot img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--pole-easing-c);
  border: 1px solid var(--omega-edge);
}

/* Homepage work strip: eleven thumbnails in a centered wrapping row, so the
   short last row sits in the middle rather than hanging off the left:
   6+5 on desktop, 3+3+3+2 at 900px, 2s at 520px. */
.shot-band .snippets { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.shot-band img {
  display: block;
  flex: 0 0 calc((100% - 60px) / 6);
  width: calc((100% - 60px) / 6);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--omega-edge);
  background: var(--merry-plain);
}
@media (max-width: 900px) { .shot-band img { flex-basis: calc((100% - 24px) / 3); width: calc((100% - 24px) / 3); } }
@media (max-width: 520px) { .shot-band .snippets { gap: 10px; } .shot-band img { flex-basis: calc((100% - 10px) / 2); width: calc((100% - 10px) / 2); } }
