/* Pearland Roofing & Siding - stylesheet
   One static file, no build step, no external fonts or scripts.

   Palette: garnet chrome with a pale lilac highlight.
     --truss    #4f1733  chrome: header, hero base, cta band
     --lath     #8c4a6d  mid: light end of the hero gradient, card tints
     --flashing #7a2452  accent, buttons, body links
     --flashing-deep #561a3a  accent hover, footer
     --ridgecap #cdb4f0  highlight, small areas only, ink on it

   Contrast, computed (AA body text needs 4.5:1):
     white on --truss ........................ 13.97:1
     white on --flashing ..................... 9.54:1
     white on --flashing-deep ................ 13.09:1
     white on --lath ......................... 6.33:1
     --ridgecap on --truss (brand, rung dates) 7.57:1
     nav link #ecd6e2 on --truss ............. 10.17:1
     hero lead #f3e4ec on --lath ............. 5.16:1
     hero subnote #f1e0ea on --lath .......... 4.9:1
     footer text #dcc2cf on --flashing-deep .. 7.89:1
     --flashing on --fiber-ground (labels, links) ...... 8.88:1
     --flashing on white ..................... 9.54:1
     --truss on --fiber-ground (h2) .................... 13.01:1
     --cove-sub on --fiber-ground ......................... 6.80:1
     --true-glyph-c on --ridgecap ..................... 9.76:1
     success #561a3a on #f4e8ef .............. 10.99:1
     error #b3261e on #fdecea ................ 5.72:1
*/

:root {
  --truss: #4f1733;
  /* RGB channels of --truss, for the hero photo scrim. */
  --granite-shade-l: 79, 23, 51;
  --lath: #8c4a6d;
  --flashing: #7a2452;
  --flashing-deep: #561a3a;
  --ridgecap: #cdb4f0;
  --fiber-ground: #f9f6f7;
  --tulip-sheet: #ffffff;
  --true-glyph-c: #21121a;
  --cove-sub: #694f5c;
  --saffron-rule: #e6dbe0;
  --lyric-radius: 6px;
  --low-gauge: 1140px;
  /* Real height of the fixed call bar: 10+12 padding each side plus a
     0.95rem line, +2px slack. Grows to 71px above 721px. */
  --level-dock-h: 70px;
}
@media (min-width: 721px) { :root { --level-dock-h: 71px; } }

* { 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(--true-glyph-c);
  background: var(--fiber-ground);
  line-height: 1.6;
  padding-bottom: var(--level-dock-h);
}
img { max-width: 100%; display: block; }
a { color: var(--flashing); text-decoration: none; }
a:hover { text-decoration: underline; }
.fiber-inner { max-width: var(--low-gauge); margin: 0 auto; padding: 0 20px; }

/* Header */
header.east-mast { background: var(--truss); color: var(--tulip-sheet); position: sticky; top: 0; z-index: 50; }
header.east-mast .slate-shelf {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px; max-width: var(--low-gauge); margin: 0 auto; flex-wrap: wrap; gap: 10px;
}
header.east-mast .teal-insignia { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.12rem; color: var(--tulip-sheet); }
header.east-mast .teal-insignia span { color: var(--ridgecap); }
header.east-mast nav { display: flex; gap: 15px; flex-wrap: wrap; }
header.east-mast nav a { color: #ecd6e2; font-size: 0.93rem; }
header.east-mast nav a:hover { color: var(--tulip-sheet); }
header.east-mast .still-ringer {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--flashing); color: var(--tulip-sheet); padding: 9px 15px;
  border-radius: var(--lyric-radius); font-weight: 700;
}
header.east-mast .still-ringer:hover { background: var(--flashing-deep); text-decoration: none; }
.sturdy-cipher { width: 30px; height: 30px; border-radius: 50%; display: block; flex-shrink: 0; }
@media (min-width: 821px) and (max-width: 1080px) {
  header.east-mast nav { order: 3; flex: 1 0 100%; justify-content: center; margin-top: 2px; }
}

/* Hero */
.west-overture { background: linear-gradient(160deg, var(--truss) 30%, var(--lath)); color: var(--tulip-sheet); padding: 52px 20px 46px; }
.west-overture .fiber-inner { display: flex; flex-direction: column; gap: 16px; }
.west-overture .bronze-pretitle {
  display: inline-block; width: fit-content; font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; border-bottom: 2px solid var(--ridgecap); padding-bottom: 3px;
}
.west-overture h1 { font-size: 2.15rem; line-height: 1.2; margin: 0; max-width: 780px; }
.west-overture p.sextant-chapeau { font-size: 1.08rem; color: #f3e4ec; max-width: 640px; margin: 0; }
.west-overture .central-options-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.west-overture .even-undernote { font-size: 0.9rem; color: #f1e0ea; margin: 0; }
.west-overture.lumen-photo-set {
  background-image:
    linear-gradient(90deg, rgba(var(--granite-shade-l), 0.92) 0%, rgba(var(--granite-shade-l), 0.74) 40%, rgba(var(--granite-shade-l), 0.3) 70%, rgba(var(--granite-shade-l), 0.06) 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;
}
@media (max-width: 820px) {
  .west-overture.lumen-photo-set {
    background-image:
      linear-gradient(180deg, rgba(var(--granite-shade-l), 0.9) 0%, rgba(var(--granite-shade-l), 0.82) 55%, rgba(var(--granite-shade-l), 0.68) 100%),
      url('/images/hero-roofing-photo-mobile.jpg');
    min-height: 460px;
  }
  .west-overture h1 { font-size: 1.68rem; }
}

.fern-btn { display: inline-block; padding: 12px 21px; border-radius: var(--lyric-radius); font-weight: 700; font-size: 1rem; }
.fern-btn.cobble-principal { background: var(--flashing); color: var(--tulip-sheet); }
.fern-btn.cobble-principal:hover { background: var(--flashing-deep); text-decoration: none; }
.fern-btn.prism-unfilled { background: rgba(255,255,255,0.08); color: var(--tulip-sheet); border: 1px solid rgba(255,255,255,0.4); }
.fern-btn.prism-unfilled:hover { background: rgba(255,255,255,0.16); text-decoration: none; }

/* Sections */
section { padding: 46px 20px; }
section.khaki-counterband { background: var(--tulip-sheet); border-top: 1px solid var(--saffron-rule); border-bottom: 1px solid var(--saffron-rule); }
.gilded-section-tag { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; color: var(--flashing); font-weight: 700; margin-bottom: 6px; }
h2 { font-size: 1.6rem; margin: 0 0 18px; color: var(--truss); line-height: 1.25; }
h3 { font-size: 1.12rem; margin: 0 0 8px; color: var(--truss); }
h2.h-minor { font-size: 1.12rem; margin: 22px 0 8px; }
.longform { max-width: 720px; }
.longform p { margin: 0 0 14px; }
ol.numbered { max-width: 740px; padding-left: 22px; }
ol.numbered li { margin-bottom: 10px; }

.onyx-grid { display: grid; gap: 18px; }
.onyx-grid.ferry-trisect { grid-template-columns: repeat(3, 1fr); }
.onyx-grid.acorn-couplet { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .onyx-grid.ferry-trisect, .onyx-grid.acorn-couplet { grid-template-columns: 1fr; }
  header.east-mast .slate-shelf { justify-content: center; text-align: center; }
}
.humble-unit { background: var(--tulip-sheet); border: 1px solid var(--saffron-rule); border-radius: var(--lyric-radius); padding: 19px; }
.humble-unit p { color: var(--cove-sub); margin: 6px 0 0; font-size: 0.95rem; }

/* Decade ladder - the homepage's defining block, read oldest first */
.ladder { list-style: none; margin: 0; padding: 0; max-width: 860px; border-left: 3px solid var(--lath); }
.ladder .ladder-step { position: relative; padding: 4px 0 26px 26px; }
.ladder .ladder-step::before {
  content: ""; position: absolute; left: -9px; top: 10px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--ridgecap); border: 3px solid var(--truss);
}
.ladder .ladder-step:last-child { padding-bottom: 4px; }
.rung-years {
  display: inline-block; background: var(--truss); color: var(--ridgecap); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 999px; margin-bottom: 6px;
}
.ladder-step h3 { margin-top: 2px; }
.ladder-step p { margin: 4px 0 8px; }
.ladder-step .marble-territories a { font-size: 0.88rem; padding: 6px 12px; }

/* Three-county strip */
.county-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.county-trio > div { background: var(--tulip-sheet); border: 1px solid var(--saffron-rule); border-top: 5px solid var(--lath); border-radius: var(--lyric-radius); padding: 18px; }
.county-trio > div.twia { border-top-color: var(--flashing); }
.county-trio .era-flag { display: inline-block; background: var(--ridgecap); color: var(--true-glyph-c); font-size: 0.78rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.county-trio p { margin: 6px 0 0; color: var(--cove-sub); font-size: 0.94rem; }
@media (max-width: 820px) { .county-trio { grid-template-columns: 1fr; } }

/* An era note under an area page's hero */
.era-note { max-width: 860px; margin: 0; background: var(--tulip-sheet); border: 1px solid var(--saffron-rule); border-left: 5px solid var(--ridgecap); border-radius: var(--lyric-radius); padding: 14px 18px; }

/* Dated observation box */
.datebox { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; max-width: 900px; }
.datebox .datebox-day { background: var(--truss); color: var(--tulip-sheet); border-radius: var(--lyric-radius); padding: 14px; text-align: center; font-weight: 700; line-height: 1.3; }
.datebox .datebox-day span { display: block; color: var(--ridgecap); font-size: 1.6rem; }
.datebox p { margin: 0 0 12px; }
@media (max-width: 640px) { .datebox { grid-template-columns: 1fr; } }

/* Tables */
.quiver-table-swipe { overflow-x: auto; max-width: 900px; }
table.decade-table { border-collapse: collapse; width: 100%; background: var(--tulip-sheet); font-size: 0.94rem; }
table.decade-table th, table.decade-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--saffron-rule); vertical-align: top; }
table.decade-table th { background: #f4e8ef; color: var(--truss); }
table.decade-table caption { caption-side: bottom; text-align: left; font-size: 0.84rem; color: var(--cove-sub); padding-top: 8px; }

/* Numbered FAQ, answers always visible */
ol.q-and-a { list-style: none; counter-reset: q; padding: 0; margin: 0; max-width: 820px; }
ol.q-and-a > li { counter-increment: q; position: relative; padding: 0 0 18px 46px; margin-bottom: 18px; border-bottom: 1px solid var(--saffron-rule); }
ol.q-and-a > li::before {
  content: counter(q); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: #f2e4ec; color: var(--flashing); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
ol.q-and-a h3 { font-size: 1.06rem; }
ol.q-and-a p { margin: 4px 0 0; color: var(--cove-sub); }

/* Area links */
.marble-territories { display: flex; flex-wrap: wrap; gap: 9px; }
.marble-territories a { background: var(--tulip-sheet); border: 1px solid var(--saffron-rule); padding: 8px 14px; border-radius: 999px; color: var(--truss); font-size: 0.92rem; }
.marble-territories a:hover { border-color: var(--flashing); text-decoration: none; }

/* CTA band */
.willow-last-word { background: var(--truss); color: var(--tulip-sheet); text-align: center; padding: 44px 20px; }
.willow-last-word h2 { color: var(--tulip-sheet); }
.willow-last-word p { color: #ecd6e2; margin: 0 auto 18px; max-width: 640px; }

/* Sticky call bar - every width */
.harbor-undock {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--truss);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 10px rgba(0,0,0,0.16);
  gap: 10px; justify-content: center;
}
.harbor-undock-inner { display: flex; gap: 10px; width: 100%; max-width: var(--low-gauge); margin: 0 auto; }
.harbor-undock a {
  display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-align: center;
  padding: 12px 10px; border-radius: var(--lyric-radius); font-weight: 700; font-size: 0.95rem;
}
.harbor-undock .gentle-ring-mark { flex: none; }
.harbor-undock-call { flex: 3; background: var(--flashing); color: var(--tulip-sheet); }
.harbor-undock-quote { flex: 2; background: rgba(255,255,255,0.1); color: var(--tulip-sheet); border: 1px solid rgba(255,255,255,0.38); }
.harbor-undock-call:hover { background: var(--flashing-deep); text-decoration: none; }
.harbor-undock-quote:hover { background: rgba(255,255,255,0.18); text-decoration: none; }
.harbor-undock .maple-cta-note { display: none; }
@media (min-width: 600px) { .harbor-undock .maple-cta-note { display: inline; } }
@media (min-width: 721px) {
  .harbor-undock-inner { justify-content: center; }
  .harbor-undock a { flex: 0 0 auto; padding: 12px 24px; font-size: 1rem; }
}

/* Contact form */
form.tidy-enrollment { display: grid; gap: 12px; max-width: 480px; }
form.tidy-enrollment label { font-size: 0.88rem; font-weight: 600; color: var(--truss); display: block; margin-bottom: 4px; }
form.tidy-enrollment input, form.tidy-enrollment select, form.tidy-enrollment textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--saffron-rule); border-radius: var(--lyric-radius); font-size: 0.95rem; font-family: inherit;
}
form.tidy-enrollment .teal-caveat { font-size: 0.78rem; color: var(--cove-sub); }
form.tidy-enrollment .cyan-filler-line { position: absolute; left: -9999px; top: -9999px; }
form.tidy-enrollment button[disabled] { opacity: 0.6; cursor: not-allowed; }
.honey-receipt-line { margin-top: 12px; padding: 11px 14px; border-radius: var(--lyric-radius); font-size: 0.9rem; display: none; }
.honey-receipt-line.visible { display: block; }
.honey-receipt-line.success { background: #f4e8ef; color: #561a3a; }
.honey-receipt-line.error { background: #fdecea; color: #b3261e; }

/* Breadcrumb */
.orchid-trailmarks { font-size: 0.85rem; color: var(--cove-sub); padding: 14px 20px 0; max-width: var(--low-gauge); margin: 0 auto; }
.orchid-trailmarks a { color: var(--cove-sub); }

/* Footer */
footer.east-mast { background: var(--flashing-deep); color: #dcc2cf; padding: 40px 20px 24px; font-size: 0.9rem; }
footer.east-mast .fiber-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer.east-mast h2 { color: var(--tulip-sheet); font-size: 0.95rem; margin: 0 0 10px; }
footer.east-mast ul { list-style: none; padding: 0; margin: 0; }
footer.east-mast li { margin-bottom: 6px; }
footer.east-mast a { color: #dcc2cf; }
footer.east-mast .chalk-base-row {
  max-width: var(--low-gauge); margin: 24px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
@media (max-width: 720px) { footer.east-mast .fiber-inner { grid-template-columns: 1fr 1fr; } }
.ember-placeholder-flag { background: #fff3cd; color: #7a5b00; border: 1px dashed var(--ridgecap); padding: 2px 6px; border-radius: 3px; font-size: 0.82em; }

/* Work photos: one per service page, between two sections. Masters are
   landscape 1200x800; the cap stops any figure rendering full-bleed. */
.atlas-task-shot { max-width: var(--low-gauge); margin: 0 auto; padding: 30px 20px; }
.atlas-task-shot img { width: 100%; max-width: 800px; height: auto; margin: 0 auto; border-radius: var(--lyric-radius); border: 1px solid var(--saffron-rule); }

/* Homepage work strip - small thumbnails, not links, not a gallery */
.still-photo-band .easel-smalls { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 16px; }
.still-photo-band img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--lyric-radius); border: 1px solid var(--saffron-rule); background: var(--tulip-sheet); }
@media (max-width: 900px) { .still-photo-band .easel-smalls { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .still-photo-band .easel-smalls { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
