/* Cypress Roofing & Siding — stylesheet
   One static file, no build step, no web fonts, no framework.

   Palette (framing vocabulary: the rafter carries the house, the purlin
   spans between, the fastener is what actually holds):
     --rafter        #2f3f7a  chrome: header, hero base, CTA band
     --purlin        #6f7fc2  mid tone: hero gradient light end, card tints
     --fastener      #3d4f9a  accent: buttons, section labels, body links
     --fastener-deep #26336a  accent hover, footer background
     --lime          #c4e27f  highlight, small areas only, ink on top

   Contrast (WCAG AA: 4.5:1 body text, 3:1 large text), each pair resolved
   from the rules in this file:
     --quarry-text #171a2a on --walnut-base-c #f6f7fb .................. 16.11:1
     --cocoa-sub #4b5069 on --walnut-base-c ......................... 7.40:1
     link / section label --fastener on --walnut-base-c ......... 7.05:1
     link --fastener on white ........................ 7.54:1
     white on --fastener (buttons) ................... 7.54:1
     white on --fastener-deep (button hover) ......... 11.90:1
     white on --rafter (header, hero, CTA band) ...... 9.94:1
     nav link #dfe3f5 on --rafter .................... 7.78:1
     hero lead / subnote #e3e7f7 on --rafter ......... 8.06:1
     brand span --lime on --rafter ................... 6.88:1
     --quarry-text on --lime (step numbers, tags) ............ 11.93:1
     footer text #c3c9e6 on --fastener-deep .......... 7.27:1
     footer link #e6e9f7 on --fastener-deep .......... 9.84:1
     success #1d5a33 on #e4f3e8 ...................... 7.14:1
     error #8a1f1f on #fbe5e5 ........................ 7.59:1
     --quarry-text on quote button #b3d468 (hover) ........... 10.29:1
     --fastener on disclosure tint #eef0f8 ........... 6.63:1
   --purlin is never used as text; it only tints and grades.
*/

:root {
  --rafter: #2f3f7a;
  --purlin: #6f7fc2;
  --fastener: #3d4f9a;
  --fastener-deep: #26336a;
  --lime: #c4e27f;
  --walnut-base-c: #f6f7fb;
  --light: #ffffff;
  --quarry-text: #171a2a;
  --cocoa-sub: #4b5069;
  --fern-keyline: #dde0ec;
  --graphite-arc-c: 6px;
  --bevel-sm: 4px;
  --prairie-column-w: 1080px;
  /* RGB channels of --rafter, for the hero photo scrim. */
  --sincere-veil: 47, 63, 122;
  /* Fixed CTA bar height: padding plus one line of the call link. */
  --tempo-perch-h: 60px;
}
@media (min-width: 760px) { :root { --tempo-perch-h: 64px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--quarry-text);
  background: var(--walnut-base-c);
  line-height: 1.6;
  padding-bottom: var(--tempo-perch-h);
}
img { max-width: 100%; display: block; }
a { color: var(--fastener); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--fastener-deep); }
h1, h2, h3 { line-height: 1.22; letter-spacing: -0.01em; }
h1 { font-size: 2.05rem; margin: 0 0 14px; }
h2 { font-size: 1.5rem; margin: 0 0 12px; }
h3 { font-size: 1.12rem; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.spread { max-width: var(--prairie-column-w); margin: 0 auto; padding: 0 18px; }
section { padding: 50px 0; }
section.counterband { background: var(--light); border-top: 1px solid var(--fern-keyline); border-bottom: 1px solid var(--fern-keyline); }

/* Header */
header.topband { background: var(--rafter); color: var(--light); position: sticky; top: 0; z-index: 40; }
header.topband .sill {
  max-width: var(--prairie-column-w); margin: 0 auto; padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px;
}
header.topband .titleblock { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--light); text-decoration: none; }
header.topband .titleblock span { color: var(--lime); }
header.topband .blazon { width: 34px; height: 34px; border-radius: 50%; }
header.topband nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
header.topband nav a { color: #dfe3f5; text-decoration: none; font-size: 0.93rem; }
header.topband nav a:hover { color: var(--light); text-decoration: underline; }
header.topband .ringer {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--fastener); color: var(--light); border: 1px solid #5a6bb3;
  padding: 8px 14px; border-radius: var(--graphite-arc-c); font-weight: 700; text-decoration: none; white-space: nowrap;
}
header.topband .ringer:hover { background: var(--fastener-deep); color: var(--light); }
.dial-glyph { flex: none; }
@media (max-width: 720px) {
  header.topband nav { order: 3; width: 100%; font-size: 0.9rem; }
  header.topband .ringer { padding: 7px 11px; font-size: 0.92rem; }
}

/* Breadcrumb */
.ariadne { max-width: var(--prairie-column-w); margin: 0 auto; padding: 14px 18px 0; font-size: 0.86rem; color: var(--cocoa-sub); }
.ariadne a { color: var(--fastener); }

/* Hero */
.overlook { background: linear-gradient(160deg, var(--rafter) 0%, var(--rafter) 55%, var(--purlin) 140%); color: var(--light); padding: 56px 0 50px; }
.overlook h1 { color: var(--light); max-width: 780px; }
.overlook .blurb { color: #e3e7f7; font-size: 1.1rem; max-width: 700px; }
.overlook .minor-note { color: #e3e7f7; font-size: 0.9rem; margin-top: 12px; }
.overlook a:not(.striker) { color: var(--light); }
.overlook.shot-backed {
  background:
    linear-gradient(100deg, rgba(var(--sincere-veil), 0.94) 0%, rgba(var(--sincere-veil), 0.86) 48%, rgba(var(--sincere-veil), 0.55) 100%),
    url('/images/hero-roofing-photo.jpg') center / cover no-repeat;
  padding: 84px 0 76px;
}
@media (max-width: 820px) {
  .overlook.shot-backed {
    background:
      linear-gradient(rgba(var(--sincere-veil), 0.9), rgba(var(--sincere-veil), 0.9)),
      url('/images/hero-roofing-photo-mobile.jpg') center / cover no-repeat;
    padding: 56px 0 50px;
  }
  h1 { font-size: 1.7rem; }
}
.overlook.subpage { padding: 38px 0 34px; }
.brow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); margin-bottom: 10px; }
.blurb { font-size: 1.06rem; }
.minor-note { font-size: 0.88rem; color: var(--cocoa-sub); }

/* Buttons */
.striker { display: inline-block; padding: 12px 20px; border-radius: var(--graphite-arc-c); font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.striker.cardinal { background: var(--fastener); color: var(--light); border-color: #5a6bb3; }
.striker.cardinal:hover { background: var(--fastener-deep); color: var(--light); }
.striker.lined-btn { background: transparent; color: var(--light); border-color: rgba(255,255,255,0.7); }
.striker.lined-btn:hover { background: rgba(255,255,255,0.12); color: var(--light); }
.route-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Section label */
.banner-tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fastener); margin-bottom: 8px; }

/* The three checks: an ordered list, not cards */
ol.procedure { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--rafter); }
ol.procedure .beat { padding: 22px 20px 6px 0; border-right: 1px solid var(--fern-keyline); }
ol.procedure .beat + .beat { padding-left: 20px; }
ol.procedure .beat:last-child { border-right: 0; }
.move-no { display: inline-block; background: var(--lime); color: var(--quarry-text); font-weight: 800; font-size: 0.82rem; padding: 2px 9px; border-radius: var(--bevel-sm); margin-bottom: 10px; }
@media (max-width: 820px) {
  ol.procedure { grid-template-columns: 1fr; }
  ol.procedure .beat, ol.procedure .beat + .beat { padding: 18px 0 4px; border-right: 0; border-bottom: 1px solid var(--fern-keyline); }
}

/* Dated storm callout */
aside.metric-band { background: var(--light); border-left: 6px solid var(--lime); border-top: 1px solid var(--fern-keyline); border-bottom: 1px solid var(--fern-keyline); padding: 30px 0; }
aside.metric-band .spread { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
aside.metric-band .value-lg { font-size: 2.4rem; font-weight: 800; color: var(--rafter); line-height: 1; }
aside.metric-band .figure-cap { font-size: 0.85rem; color: var(--cocoa-sub); margin-top: 6px; }
@media (max-width: 720px) { aside.metric-band .spread { grid-template-columns: 1fr; gap: 10px; } }

/* Grids and cards */
.gridwork { display: grid; gap: 18px; }
.gridwork.three-part { grid-template-columns: repeat(3, 1fr); }
.gridwork.doubleton { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .gridwork.three-part { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gridwork.three-part, .gridwork.doubleton { grid-template-columns: 1fr; } }
.bronze-pod { background: var(--light); border: 1px solid var(--fern-keyline); border-radius: var(--graphite-arc-c); padding: 20px; }
.bronze-pod h3 a { color: var(--quarry-text); text-decoration: none; }
.bronze-pod h3 a:hover { color: var(--fastener); text-decoration: underline; }
.gridwork.doubleton .bronze-pod { border-top: 4px solid var(--purlin); }
.symbol { display: inline-block; width: 30px; height: 4px; background: var(--lime); margin-bottom: 12px; border-radius: 2px; }

/* Tables */
.table-swipe { overflow-x: auto; margin: 16px 0 20px; }
table.price-grid { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--light); font-size: 0.94rem; }
table.price-grid th, table.price-grid td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--fern-keyline); vertical-align: top; }
table.price-grid th { background: #e9ecf6; color: var(--quarry-text); }

/* Plain-language legal box */
.made-plain { background: #eef0f8; border: 1px solid var(--fern-keyline); border-left: 4px solid var(--rafter); border-radius: var(--bevel-sm); padding: 16px 18px; margin: 18px 0; }
.made-plain p:last-child { margin-bottom: 0; }

/* Work photos */
.job-photo { max-width: var(--prairie-column-w); margin: 0 auto; padding: 30px 18px; }
.job-photo img { display: block; width: 100%; max-width: 800px; height: auto; margin: 0 auto; border-radius: var(--graphite-arc-c); border: 1px solid var(--fern-keyline); }

/* Homepage photo strip: four across; the first spans two columns so eleven
   thumbnails fill three even rows (and six even rows at two across). */
.job-band .smalls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.job-band img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--bevel-sm); border: 1px solid var(--fern-keyline); background: var(--light);
}
.job-band img:first-child { grid-column: span 2; aspect-ratio: 3 / 1; object-position: center 40%; }
@media (max-width: 620px) {
  .job-band .smalls { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .job-band img:first-child { aspect-ratio: 3 / 1; }
}

/* Service-area links, grouped by build era */
.quill-catchment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
.quill-catchment h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cocoa-sub); border-bottom: 2px solid var(--lime); padding-bottom: 6px; }
.quill-catchment ul { list-style: none; margin: 0; padding: 0; }
.quill-catchment li { padding: 5px 0; }
@media (max-width: 760px) { .quill-catchment { grid-template-columns: 1fr; } }

/* FAQ as a definition list */
dl.faq-stack { margin: 16px 0 0; }
dl.faq-stack dt { font-weight: 700; font-size: 1.04rem; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--fern-keyline); }
dl.faq-stack dt:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
dl.faq-stack dd { margin: 8px 0 0; color: var(--quarry-text); }

/* CTA band */
.close-band { background: var(--rafter); color: var(--light); text-align: left; }
.close-band h2 { color: var(--light); }
.close-band p { color: #e3e7f7; max-width: 680px; }

/* Lead form */
.tell-form { display: grid; gap: 14px; }
.tell-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 5px; }
.tell-form input, .tell-form select, .tell-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #b9bfd6; border-radius: var(--bevel-sm); font: inherit; background: var(--light); color: var(--quarry-text);
}
.tell-form input:focus, .tell-form select:focus, .tell-form textarea:focus { outline: 2px solid var(--fastener); outline-offset: 1px; }
.tell-form button { cursor: pointer; font: inherit; font-weight: 700; }
.focal-aux-note { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qualifier-note { font-size: 0.82rem; color: var(--cocoa-sub); margin: 0; }
.confirm-line { display: none; padding: 12px 14px; border-radius: var(--bevel-sm); font-size: 0.94rem; }
.confirm-line.visible { display: block; }
.confirm-line.success { background: #e4f3e8; color: #1d5a33; }
.confirm-line.error { background: #fbe5e5; color: #8a1f1f; }

/* Footer */
footer.topband { background: var(--fastener-deep); color: #c3c9e6; padding: 40px 0 20px; font-size: 0.92rem; }
footer.topband .spread { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
footer.topband h2 { color: var(--light); font-size: 1rem; margin-bottom: 10px; }
footer.topband ul { list-style: none; margin: 0; padding: 0; }
footer.topband li { padding: 3px 0; }
footer.topband a { color: #e6e9f7; }
footer.topband .closing-row { display: block; margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.84rem; }
@media (max-width: 760px) { footer.topband .spread { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { footer.topband .spread { grid-template-columns: 1fr; } }

/* Fixed call bar, every width */
.keelbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--light); border-top: 1px solid var(--fern-keyline); box-shadow: 0 -2px 10px rgba(23, 26, 42, 0.08); }
.keelbar-inner { max-width: var(--prairie-column-w); margin: 0 auto; display: flex; gap: 10px; padding: 8px 12px; }
.keelbar-call, .keelbar-quote { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 10px; border-radius: var(--graphite-arc-c); font-weight: 700; font-size: 0.9rem; text-decoration: none; line-height: 1.3; }
.keelbar-call { flex: 1.6; background: var(--fastener); color: var(--light); }
.keelbar-call:hover { background: var(--fastener-deep); color: var(--light); }
.keelbar-quote { flex: 1; background: var(--lime); color: var(--quarry-text); }
.keelbar-quote:hover { color: var(--quarry-text); background: #b3d468; }
@media (min-width: 760px) { .keelbar-call, .keelbar-quote { font-size: 0.97rem; } }
@media (max-width: 559px) { .endorsement-line { display: none; } }

/* Reviews (off until a contractor with real reviews is attached) */
.reports .said { background: var(--light); }
.ranking { color: var(--fastener); letter-spacing: 2px; }
.credited { font-size: 0.88rem; color: var(--cocoa-sub); }

/* Link row (404) */
.detour-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.detour-tabs a {
  background: var(--light);
  border: 1px solid var(--fern-keyline);
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--fastener);
  font-size: 0.92rem;
}
.detour-tabs a:hover { border-color: var(--fastener); text-decoration: none; }

/* Utility */
.narrow { max-width: 760px; }
