
/* Fonts come from this origin now — see website/assets/fonts/ud-fonts.css for why.
   A cross-origin @import is the worst shape available: this stylesheet blocks rendering, and
   then a SECOND blocking stylesheet has to be fetched from another host before a headline can
   be set. Same-origin keeps it to one connection that is already open. */
@import url('/assets/fonts/ud-fonts.css');
:root{--navy:#081B30;--navy2:#0C2440;--ink:#0E1B2C;--body:#4A5872;--blue:#B32424;--red:#B32424;--blued:#9B1C1C;--sky:#93A9C9;--ice:#EEF3FA;--line:#E4EAF4;--gold:#F5B82E;--gold-ink:#A96F00;--green:#10B981;--r:20px;--shl:0 24px 64px -24px rgba(8,27,48,.4);--shm:0 10px 32px -16px rgba(8,27,48,.28)}
*{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth;overflow-x:clip}
body{font-family:'Inter',system-ui,sans-serif;color:var(--ink);background:#fff;line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:clip;max-width:100%}
h1,h2{font-family:'Playfair Display',Georgia,'Times New Roman',serif;font-weight:700;letter-spacing:-.005em;line-height:1.12}
h3{font-family:'Sora','Inter',sans-serif;letter-spacing:-.025em;line-height:1.15}
/* A heading that is level 2 in the outline but wears the h3 treatment.
   Used where the visual hierarchy and the document hierarchy differ. */
.h-sub{font-family:'Sora','Inter',sans-serif;letter-spacing:-.025em;line-height:1.15;font-size:1.35rem;font-weight:700;color:var(--navy)}

a{color:inherit;text-decoration:none}img{display:block;max-width:100%;height:auto}img:not([width]):not([height]){aspect-ratio:auto 16/9}video{max-width:100%;height:auto}
/* HEADER LOGO — the 16/9 fallback above is wrong for it, and it is in the header of every page.
   226 <img src=".../logo-white.png"> tags carry no width/height (the .webp variants do carry
   405x132). They are styled height:44px;width:auto, so before the file loads the browser
   reserves 44 x 1.78 = 78px of width and then snaps to 44 x 3.065 = 135px on decode — a 57px
   horizontal jolt in the header, on ~226 pages, every cold load. That is Cumulative Layout
   Shift, which is a ranking signal, not just a cosmetic one.
   Fixed in CSS rather than on the tags because those headers are emitted by eleven generators
   with --check runs; hand-editing the pages would drift from the generators and fail the build.
   Ratio is the real file: logo-white.png is 1459x476 = 3.065 (the .webp's 405x132 is 3.068).
   Specificity must beat img:not([width]):not([height]) (0,2,1), hence the same :not() pair
   plus the attribute selector. After decode the intrinsic ratio governs either way, so this
   changes only what is reserved BEFORE load — no visual change, purely less shift. */
img[src$="logo-white.png"]:not([width]):not([height]){aspect-ratio:1459/476}
.wrap{width:min(1160px,92%);margin:0 auto}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;border:none;cursor:pointer;font-weight:600;font-size:.98rem;padding:1rem 1.75rem;border-radius:8px;transition:.25s;font-family:inherit}
.btn-primary{background:#B32424;color:#fff;box-shadow:0 14px 32px -14px rgba(179,36,36,.55)}
.btn-primary:hover{background:var(--blued)}
.btn-primary:hover{transform:translateY(-2px)}
.btn-ghost{background:rgba(255,255,255,.07);color:#fff;border:1px solid rgba(255,255,255,.22)}
/* .btn-ghost is built for a DARK ground — white label, translucent white fill. Used on a light
   section it measures 1.11:1 and the button is invisible (found on /resources at 1440 and 390).
   .btn-outline is the same shape for light grounds. */
.btn-outline{background:#fff;color:var(--navy);border:1.5px solid var(--line)}
.btn-outline:hover{border-color:var(--navy);background:var(--ice)}
.eyebrow{display:inline-flex;align-items:center;font-weight:600;font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;color:var(--blue)}
/* .eyebrow::before removed 2026-08-13: the 26px rule rendered as a stray dash above centred
   hero text on mobile. The eyebrow carries its own emphasis; the tick was decoration only. */
.topbar{background:var(--navy);color:#B7C9E5;font-size:.85rem}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;padding:.55rem 0;gap:1rem}
.topbar strong{color:#fff}.topbar a{color:#fff;font-weight:600;border-bottom:1px solid rgba(255,255,255,.3)}
@media(max-width:760px){.topbar .right{display:none}}
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(18px) saturate(1.4);border-bottom:1px solid var(--line);box-shadow:0 8px 28px -22px rgba(8,27,48,.35)}
/* The rule above describes the SITE header, but it is an element selector, so every OTHER
   <header> on the page picks it up too — and this site has 103 pages with <header class="gchero">
   (the hero on gen-gc-local output), 40 with class="lt-head", plus a handful of hero and page
   headers. Those set their own position and background, so the leak was invisible; z-index:50
   was not. A hero that is position:relative with z-index:50 and comes AFTER the sticky site
   header wins the tie on document order and paints over it.
   Measured at 390x844 on /remodeling/potomac/general-contractor.html: with the mobile menu open,
   elementFromPoint on the first menu item returned div.veil inside header.gchero. The hamburger
   opened a panel the hero then painted over — on a phone, on 103 pages, the menu was unusable.
   The site header is a bare <header> on all 516 pages that link this stylesheet, and every
   content header carries a class, so the attribute selector separates them exactly. z-index
   alone is the defect; the rest is dropped because it was never meant for these elements and
   backdrop-filter in particular makes each one a needless stacking context and compositor layer.
   :where() so the whole thing weighs (0,0,1) — enough to beat the bare `header` above it on
   source order, and light enough that ANY rule the component states about itself still wins.
   Written flat as `header[class]` it would weigh (0,1,1) and outrank `.gchero{position:relative}`,
   forcing the hero static and re-parenting its absolutely positioned .media and .veil. */
header:where([class]){position:static;z-index:auto;backdrop-filter:none;border-bottom:0;box-shadow:none}
nav{display:flex;align-items:center;justify-content:space-between;padding:.8rem 0;position:relative}
/* The rule above was written for the site header. A breadcrumb trail is also a <nav>, so it
   inherited justify-content:space-between and spread "Home > Section > Page" across the full
   page width. 181 pages already patched this locally; these 11 did not. Fix it once here. */
nav.crumbs,nav[aria-label="Breadcrumb"]{display:block;justify-content:normal;padding:0}
.logo img{height:46px;width:auto;max-width:none;flex:none}
.hamb{display:none;background:#fff;border:1.5px solid var(--line);border-radius:11px;width:44px;height:44px;cursor:pointer;align-items:center;justify-content:center;flex:none;color:var(--navy)}
.hamb svg{width:20px;height:20px}
.navlinks{display:flex;gap:1.6rem;align-items:center;font-weight:600;font-size:.91rem;color:#3D4D6B}
.navlinks a{white-space:nowrap;transition:.2s}.navlinks a:hover{color:#B32424}.navlinks .hot{color:#B32424;font-weight:700}
.nav-cta{display:flex;align-items:center;gap:1rem;margin-left:1.4rem;min-width:0}
.nav-phone{font-weight:700;color:var(--navy);font-size:.93rem;white-space:nowrap}
.nav-cta .btn{padding:.7rem 1.25rem;font-size:.9rem;white-space:nowrap}
/* Header must never exceed the viewport: logo holds, nav can shrink. */
header .wrap{max-width:100%}
@media(min-width:1025px){header .wrap{width:min(1480px,96%)}.navlinks{gap:.82rem;font-size:.84rem}.nav-cta{margin-left:1rem;gap:.65rem}.nav-cta .btn{padding:.62rem 1.05rem;font-size:.86rem}}
@media(max-width:1024px){
  .hamb{display:flex}
  /* TAP-TO-CALL. This rule used to be `.nav-phone{display:none!important}` — the phone
     number was hidden on every viewport under 1025px, which is where the roofing traffic
     is. tools/cro-fold-audit.mjs measured the consequence at 390x844: on
     /service-area/gaithersburg/ the only phone affordance above the fold was the bottom
     sticky bar labelled "Call", with no digits on screen at all, and the first VISIBLE
     tel: link on the page sat at y=5538 (a county permit line, not ours). A homeowner on
     a phone could not see our phone number.
     It was hidden for a real reason — logo + number + "Free Inspection" + burger overflows
     390px — so the fix is to make the number a compact pill and drop the button below
     600px (see the next block), not to un-hide it and re-break the header. */
  .nav-phone{display:inline-flex!important;align-items:center;gap:.4rem;
    background:var(--red);color:#fff;border-radius:999px;
    padding:.6rem .9rem;font-size:.92rem;font-weight:800;letter-spacing:-.01em;
    min-height:44px;                       /* WCAG 2.5.8 / iOS HIG tap target */
    box-shadow:0 6px 18px -8px rgba(179,36,36,.7)}
  /* 2026-09-10: the pill turns red here, but the <a> inside it carries an INLINE
     style="color:#B32424" from the header partial — red text on a red pill, 1.00:1. Measured at
     390x844 on /reviews: the header phone button rendered as a blank red capsule on every page
     using this header. An inline style can only be beaten by !important, so this is deliberate;
     the real fix is to drop the inline colour from the partial, which is tracked separately. */
  .nav-phone a,.nav-phone a:visited{color:#fff!important;text-decoration:none}
  .nav-phone svg,.nav-phone .ico{width:16px;height:16px;fill:currentColor;stroke:currentColor}
  .navlinks{display:none;position:absolute;top:calc(100% + 8px);left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 26px 54px -22px rgba(8,27,48,.45);padding:.35rem 0;font-size:.96rem;max-height:78vh;overflow-y:auto;z-index:60}
  .navlinks.open{display:flex}
  .navlinks a{padding:.9rem 1.25rem;border-bottom:1px solid #EEF1F6}
  .navlinks a:last-child{border-bottom:none}
  .nav-cta{margin-left:auto;gap:.55rem}
  .nav-cta .btn{padding:.62rem 1rem;font-size:.85rem;min-height:44px;display:inline-flex;align-items:center}
}
/* At 390px the header holds logo (~140px) + phone pill (~150px) + burger (44px) and nothing
   else. Given the choice between a "Free Inspection" button and the phone number, the phone
   number wins: it is the only header element that converts without a second page load, and
   the form CTA is repeated in the hero and in the bottom sticky bar on the same screen. */
/* THE SECOND HEADER PHONE LINK. 38 hand-built pages carry two tel: links in the header, both
   with the same digits — one saying the line is answered 24/7, one naming the office line —
   and both white-space:nowrap. At 390px that is roughly 520px of content in a 390px header, so
   the second one ran under the hamburger and got cut mid-number: the owner's screenshot of
   /buy-your-roof showed "Office · (240) 880". Both are useful on a desktop and one is enough on
   a phone, so the office line hides here rather than either being deleted.
   Tagged by scripts/fix-header-phone-overflow.mjs; enforced by tests/header-phone-overflow-guard.mjs. */
@media(max-width:900px){ .nav-phone-alt{display:none!important} }
@media(max-width:600px){
  .nav-cta > .btn{display:none}
  .logo img{height:38px}
  .nav-phone{padding:.6rem .8rem;font-size:.88rem}
}
.phero{position:relative;color:#fff;background:var(--navy);overflow:hidden}
.phero .bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.38}
.phero .media{position:absolute;inset:-6% 0;will-change:transform}
.phero .media video{width:100%;height:100%;object-fit:cover;object-position:center 45%;transform:scale(1.06);animation:pheroDrift 26s ease-in-out infinite alternate}
@keyframes pheroDrift{from{transform:scale(1.06) translateY(0)}to{transform:scale(1.13) translateY(-1.5%)}}
@media(prefers-reduced-motion:reduce){.phero .media video{animation:none}}
.phero .veil{position:absolute;inset:0;background:linear-gradient(96deg,rgba(8,27,48,.92) 0%,rgba(8,27,48,.78) 42%,rgba(8,27,48,.32) 100%)}
.phero .wrap{position:relative;padding:4.5rem 0}
.phero h1{color:#fff;font-size:clamp(2.2rem,4.4vw,3.4rem);font-weight:800;max-width:22ch;margin:.9rem 0;text-wrap:balance}
.phero h2{color:#fff}.phero p{color:#C5D4EC;font-size:1.12rem;max-width:60ch}
/* A white card inside the dark page hero must not inherit the hero's paragraph colour. Measured
   2026-09-12 on /es and /es/reemplazo-de-techo: the fine print and its Privacidad link were 1.44:1. */
.phero .lead-card p,.phero .lead-card .sub,.phero .lead-card .fineprint,
.phero .lead-card .fineprint a{color:var(--body,#4A5872)}
section.block{padding:4.5rem 0}
/* The closing CTA band. This rule lived ONLY in index.html's inline <style>, so gallery.html
   and checklist.html — which use `class="block final"` and link this sheet — ended on a blank
   white rectangle: the <h2 style="color:#fff"> sat white-on-white at exactly 1.00:1 and the
   ghost button vanished with it, leaving one floating red button on an empty slab. The 61
   rebuilt local/* pages had been patched one-by-one with an inline background for the same
   class; two pages were missed, which is what a per-page patch of a shared class always does.
   It belongs in the shared sheet. The pages that still declare it inline are identical. */
.final{position:relative;color:#fff;text-align:center;overflow:hidden;background:var(--navy)}
.sec-head{max-width:720px;margin:0 auto 2.8rem;text-align:center}
.sec-head h2{font-size:clamp(1.9rem,3.4vw,2.7rem);font-weight:800;color:var(--navy);margin:.7rem 0;text-wrap:balance}
.sec-head p{color:var(--body);font-size:1.07rem}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1.8rem;box-shadow:var(--shm)}
.grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2.5rem;align-items:center}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.3rem}
@media(max-width:880px){.grid2,.grid3{grid-template-columns:1fr}}
/* Hide the header phone block on laptops too (it's in the topbar/footer/sticky bar);
   keeps the nav from overflowing at ~1280. Only shows on wide desktops with room. */
/* Laptops 1025-1340px genuinely have no room for the number next to the full nav, and there
   the topbar carries it instead. Lower-bounded at 1025px so it stops swallowing the mobile
   tap-to-call pill defined above — unbounded, this rule was the second of two that hid it. */
@media(min-width:1025px) and (max-width:1340px){.nav-phone{display:none!important}}
.photo-r{border-radius:22px;overflow:hidden;box-shadow:var(--shl)}
.faq-item{border:1px solid var(--line);border-radius:16px;margin-bottom:.8rem;background:#fff;overflow:hidden}
.faq-item summary{cursor:pointer;padding:1.15rem 1.3rem;font-weight:600;color:var(--navy);list-style:none;display:flex;justify-content:space-between;gap:1rem;font-size:1.02rem}
.faq-item summary::after{content:"+";color:var(--blue);font-weight:700;font-size:1.3rem;line-height:1}
.faq-item[open] summary::after{content:"–"}
.faq-item .a{padding:0 1.3rem 1.15rem;color:var(--body);font-size:.97rem}
.cta-band{position:relative;color:#fff;text-align:center;background:var(--navy2)}
.cta-band .wrap{padding:4.5rem 0}
.cta-band h2{font-size:clamp(1.9rem,3.6vw,2.8rem);font-weight:800}
.cta-band p{color:#C5D4EC;font-size:1.1rem;margin:1rem auto 1.8rem;max-width:50ch}
footer{background:#050F1C;color:#8FA4C4;padding:3.6rem 0 2rem;font-size:.92rem}
/* An element rule like `p{color:var(--body)}` on the page beats the footer's INHERITED colour,
   so a page-level paragraph style silently repainted footer copy in --body (#4A5872) on the
   near-black #050F1C footer — 2.68:1. Naming footer p explicitly outranks it everywhere. */
footer p{color:#8FA4C4}
.fgrid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);gap:2.4rem;margin-bottom:2.6rem}
footer h3,footer h4{color:#fff;font-size:.95rem;margin-bottom:1rem;font-family:'Sora'}
footer a{display:block;margin-bottom:.55rem;color:#8FA4C4}footer a:hover{color:#fff}
.fbot{border-top:1px solid rgba(255,255,255,.08);padding-top:1.4rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.6rem;font-size:.8rem;color:#7488A8}
@media(max-width:880px){.fgrid{grid-template-columns:1fr 1fr}}
/* Canonical footer (matches homepage index.html) — shared so every page renders identically */
footer .foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:2.5rem;margin-bottom:3rem}
/* The Google rating row in the footer. Lives here rather than only in the above-the-fold CRO
   block so it reaches every page, not the 345 that use that block. --gold-ink, not --gold: on
   the navy footer the bright gold is fine, but this same rule is reused on light footers and the
   dark token measures well on both (7.8:1 on navy, 4.2:1 on white). */
/* The pre-footer trust strip. See scripts/apply-trust-strip.mjs for why it exists: the review
   count reached 330 of 685 indexable pages and a real job photo 210, while the licence, BBB and
   GAF badges — the three a homeowner scrolls past — were on all 685. Deliberately OUTSIDE the
   footer, because a signal buried under the legal row is a signal nobody reads. */
.ud-trust-strip{background:var(--ice,#EEF3FA);border-top:1px solid var(--line,#E4EAF4);
  border-bottom:1px solid var(--line,#E4EAF4);padding:1.4rem 0}
.ud-trust-strip .wrap{display:flex;align-items:center;gap:1rem 1.6rem;flex-wrap:wrap;justify-content:space-between}
.ud-trust-strip .uts-goog{display:inline-flex;align-items:center;gap:.5rem;flex-wrap:wrap;
  color:var(--navy,#081B30);text-decoration:none;font-size:.92rem;font-weight:600;min-height:44px}
.ud-trust-strip .uts-goog:hover{text-decoration:underline;text-underline-offset:3px}
.ud-trust-strip .uts-goog b{font-size:1.15rem;font-family:Sora,Inter,sans-serif;font-variant-numeric:tabular-nums}
.ud-trust-strip .uts-stars{color:var(--gold-ink,#A96F00);letter-spacing:1.5px;line-height:1}
.ud-trust-strip .uts-lic{margin:0;font-size:.82rem;color:var(--body,#4A5872);flex:1 1 240px}
@media(max-width:700px){
  .ud-trust-strip{padding:1.1rem 0}
  .ud-trust-strip .wrap{justify-content:flex-start}
    }
footer .foot-goog{display:inline-flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-top:.9rem;
  padding:.5rem .8rem;border:1px solid rgba(255,255,255,.16);border-radius:12px;
  background:rgba(255,255,255,.05);font-size:.86rem;color:#E8EEF7;text-decoration:none;min-height:44px}
footer .foot-goog:hover{border-color:rgba(255,255,255,.34);background:rgba(255,255,255,.09)}
footer .foot-goog b{color:#fff;font-size:.98rem;font-variant-numeric:tabular-nums}
footer .foot-goog .foot-stars{color:var(--gold,#F5B82E);letter-spacing:1.5px;line-height:1}
footer .foot-bottom{border-top:1px solid rgba(255,255,255,.08);padding-top:1.5rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.6rem;font-size:.8rem;color:#7488A8}
footer .foot-bottom span{display:inline}
footer .legal-links{flex-basis:100%;display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1rem}
footer .legal-links a{display:inline;margin:0;color:#8FA4C4}
footer .legal-links a:hover{color:#fff}
footer .loc-addr{display:block;margin-bottom:.9rem;line-height:1.5}
@media(max-width:780px){footer .foot-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){footer .foot-grid{grid-template-columns:1fr}}
/* Bottom sticky call bar.
   The reservation used to be a constant `body{padding-bottom:72px}` against a bar whose real
   height depends on whether its labels wrap. Measured 2026-08-21 in Chromium at 390x844:
   /index.html bar 97.6px vs 76px reserved, /contact.html 100.7px vs 72px. The bar covered the
   last ~25px of every page, and on the homepage the element sitting there is the hero form's
   "Continue" submit button — hit-tested as covered by div.sticky-call, i.e. the primary
   conversion control on the site's highest-traffic page could not be tapped on a phone.
   Both halves of the fix matter: the bar is made a predictable single line, AND the space
   reserved for it is measured at runtime (--ud-bar-pad, set by ud-chat.js) instead of guessed,
   so a future label change cannot silently re-open the gap. The literal below is the no-JS
   fallback and is deliberately generous — over-reserving costs dead space past the footer,
   under-reserving costs a lead. */
.sticky-call{display:none;position:fixed;bottom:0;left:0;right:0;z-index:70;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-top:1px solid var(--line);padding:.6rem .7rem calc(.6rem + env(safe-area-inset-bottom,0px));gap:.5rem}
/* nowrap is what takes the bar from 98px back to ~70px: "Call (240) 880-2108" broke onto a
   second line at 390px, which is also why the label was half-legible. The clamp lets the type
   shrink to fit the pill rather than the pill grow to fit the type. */
.sticky-call .btn{flex:1;min-width:0;padding:.8rem .45rem;white-space:nowrap;font-size:clamp(.76rem,3.25vw,.95rem);letter-spacing:-.02em}
@media(max-width:900px){.sticky-call{display:flex}body{padding-bottom:var(--ud-bar-pad,calc(92px + env(safe-area-inset-bottom,0px)))}}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.chips span{background:var(--ice);border-radius:999px;padding:.45rem .95rem;font-size:.87rem;font-weight:500;color:#33415E;transition:transform .2s,background .2s}
.chips span:hover{transform:translateY(-1px);background:#E4EAF4}

/* ===== UD premium polish layer — tactile, materially rich, 2027-grade (zero-JS) ===== */
::selection{background:rgba(197,48,48,.15);color:var(--navy)}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:6px}
body{text-rendering:optimizeLegibility;font-feature-settings:"kern","liga"}
h1,h2,h3{text-wrap:balance}
/* tactile buttons */
.btn{transition:transform .2s cubic-bezier(.16,1,.3,1),box-shadow .25s ease,filter .2s ease,background .25s ease;will-change:transform;letter-spacing:-.01em}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 22px 46px -16px rgba(197,48,48,.6),inset 0 1px 0 rgba(255,255,255,.2);filter:saturate(1.04)}
.btn-primary:active,.btn-ghost:active{transform:translateY(0) scale(.985)}
.btn-ghost{backdrop-filter:blur(6px)}
.btn-ghost:hover{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.42);transform:translateY(-2px)}
/* premium card materiality — tinted diffusion shadow + inner highlight */
.card{transition:transform .32s cubic-bezier(.16,1,.3,1),box-shadow .32s ease,border-color .32s ease;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),var(--shm)}
.card:hover{transform:translateY(-4px);border-color:#D7E0EE;box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 30px 60px -30px rgba(8,27,48,.42)}
.photo-r{transition:transform .5s cubic-bezier(.16,1,.3,1),box-shadow .4s ease}
.photo-r:hover{transform:translateY(-3px) scale(1.006);box-shadow:0 34px 72px -28px rgba(8,27,48,.5)}
/* nav underline grow (desktop) */
@media(min-width:1241px){
 .navlinks a{position:relative}
 .navlinks a::after{content:"";position:absolute;left:0;right:100%;bottom:-5px;height:2px;background:var(--blue);border-radius:2px;transition:right .28s cubic-bezier(.16,1,.3,1)}
 .navlinks a:hover::after{right:0}
}
/* ===========================================================================
   MOTION LAYER — scroll-driven, CSS-only, zero JS.
   Lives here because ud.css is on 553 pages: one file animates the whole site
   rather than 553 hand-edits.

   TWO GATES, BOTH REQUIRED, AND THE ORDER MATTERS:
     1. prefers-reduced-motion: no-preference — motion is opt-out for anyone who
        has asked their OS for less of it. Vestibular disorders are not a nicety.
     2. @supports (animation-timeline: view()) — the reveal keyframes START AT
        opacity 0. A browser that cannot run the animation must never see that
        initial state, or the page renders BLANK. Firefox has view() behind a
        flag today, so this is a live concern, not theoretical: everything
        opacity-0 stays inside the @supports block, always.

   Anything that only TRANSFORMS (parallax, ken-burns) is safe outside @supports
   because failing to animate leaves it at its natural position.
   =========================================================================== */
@media (prefers-reduced-motion: no-preference){
 .phero h1{animation:ud-rise .75s cubic-bezier(.16,1,.3,1) both}
 .phero p{animation:ud-rise .75s .12s cubic-bezier(.16,1,.3,1) both}

 /* NO scroll-drift on hero media, deliberately. `.phero .media video` (line ~49) already
    runs pheroDrift — a perpetual ken-burns — and index.html runs its own heroDrift. Those
    move WITHOUT the user scrolling, which is strictly better for a hero: a scroll-linked
    hero sits dead still until someone scrolls, and the hero is what they see first.
    Stacking a second animation on the same element just means the more specific rule wins
    and the other is dead code. Measured: a `.media video` rule here animated 0 of 4 hero
    elements because `.phero .media video` outranks it.

    Scroll-linked motion is therefore applied to CONTENT below the fold (see the @supports
    block), where it belongs, and non-hero stills get .kenburns for continuous motion. */

 /* Sticky header condenses once you leave the hero — driven by document scroll. */
 @supports (animation-timeline: scroll()){
  header.site,.site-header{animation:ud-condense linear both;
    animation-timeline:scroll(root);animation-range:0 220px}
 }

 @supports (animation-timeline: view()){
  /* Section-level reveal. Kept to structural containers so nothing that carries
     copy is ever left invisible if a selector stops matching after a redesign. */
  .block .card,.sec-head,.grid2>*,.grid3>*,.grid4>*,.faq-item,.cta-band .wrap>*,
  .svchero .wrap>*,.rev,.review,.step,.pstep,.tile,.stat,.badge-row,.logo-row,
  .tablewrap,.proof,.gal figure,.svc-card,.area-card{
    animation:ud-rise linear both;animation-timeline:view();animation-range:entry 2% cover 26%}

  /* Staggered children read as choreography rather than one slab moving. */
  .grid2>:nth-child(2n),.grid3>:nth-child(3n-1),.grid4>:nth-child(4n-2){animation-range:entry 4% cover 30%}
  .grid3>:nth-child(3n),.grid4>:nth-child(4n){animation-range:entry 6% cover 34%}

  /* Images scale in rather than popping — reads as intentional, not a jump cut. */
  .gal figure img,.proof img,.block .card img{
    animation:ud-zoom linear both;animation-timeline:view();animation-range:entry 0% cover 40%}
 }
}

/* Still photography gets slow ken-burns so nothing on the page is truly static,
   which is the point of "live imagery" without shooting new footage. Transform
   only + explicitly motion-gated. */
@media (prefers-reduced-motion: no-preference){
 .kenburns{overflow:hidden}
 .kenburns>img{animation:ud-kenburns 22s ease-in-out infinite alternate;will-change:transform}
}

/* ---------------------------------------------------------------------------
   .phero.alive — a living hero for pages that have NO honest media yet.
   The interior trades (kitchen, bath, basement, additions) are new, so UD has no
   photography or footage of that work. The two dishonest options were putting
   ROOF video behind a kitchen page, or dressing up the one AI-generated interior
   image as a finished project. Neither is acceptable on a contractor's site,
   where the photo IS the claim.
   So: a moving light sweep over the brand gradient. It reads premium, it is
   never static, and it asserts nothing about work we cannot show. Replace with
   real project footage the moment it exists — see task #12.
   --------------------------------------------------------------------------- */
.phero.alive{position:relative;overflow:hidden;isolation:isolate}
.phero.alive::before,.phero.alive::after{content:"";position:absolute;inset:-30% -10%;z-index:0;pointer-events:none}
/* Brand red at low alpha — the accent, never gold. */
.phero.alive::before{
  background:radial-gradient(42% 55% at 22% 30%,rgba(179,36,36,.30),transparent 70%),
             radial-gradient(38% 50% at 82% 68%,rgba(12,36,64,.85),transparent 72%)}
.phero.alive::after{
  background:linear-gradient(104deg,transparent 34%,rgba(255,255,255,.07) 47%,transparent 60%)}
.phero.alive>.wrap{position:relative;z-index:1}
@media (prefers-reduced-motion: no-preference){
 .phero.alive::before{animation:ud-aurora 19s ease-in-out infinite alternate}
 .phero.alive::after{animation:ud-sheen 13s linear infinite}
}
@keyframes ud-aurora{
 from{transform:translate3d(-3%,-2%,0) scale(1.02)}
 to{transform:translate3d(4%,3%,0) scale(1.12)}}
@keyframes ud-sheen{from{transform:translateX(-38%)}to{transform:translateX(38%)}}

@keyframes ud-rise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@keyframes ud-zoom{from{opacity:0;transform:scale(1.04)}to{opacity:1;transform:none}}
@keyframes ud-kenburns{from{transform:scale(1.02) translate(0,0)}to{transform:scale(1.12) translate(-1.5%,-1.5%)}}
/* Header condense: tighter padding + a real shadow once it detaches from the hero. */
@keyframes ud-condense{
 from{box-shadow:0 0 0 rgba(8,27,48,0);backdrop-filter:none}
 to{box-shadow:0 6px 26px rgba(8,27,48,.16);backdrop-filter:saturate(1.2) blur(6px)}
}
elevenlabs-convai{display:none !important}

/* ===== UD responsive layer — 320px→ultrawide sweep (2026) ===== */
/* Header phone: size the inline svg icon (areas/*.html ship an unsized svg.ico
   which defaults to 300x150 and used to push the phone number under the nav row). */
.nav-phone{display:inline-flex;align-items:center;gap:.45rem}
.nav-phone svg,.nav-phone .ico{width:15px;height:15px;flex:none;fill:currentColor}
/* Generic horizontal scroller for wide tables on content pages */
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tablewrap table{min-width:560px}
/* iOS focus-zoom guard — global so inputs never drop below 16px (covers iPad portrait 768px) */
input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important}
/* Touch targets: 44px minimum at tablet widths and below (not just phones) */
@media(max-width:768px){
 .btn{min-height:44px}
 .navlinks a{min-height:44px;display:flex;align-items:center}
}
@media(max-width:640px){
 .phero .wrap{padding:3.2rem 0}
 .phero h1{font-size:clamp(1.85rem,7.4vw,2.5rem)}
 .phero p{font-size:1.02rem}
 .phero .media video{animation:none;transform:scale(1.02)}
 section.block{padding:3.2rem 0}
 .cta-band .wrap{padding:3.2rem 0}
 .sec-head{margin-bottom:2rem}
 .sec-head h2,.cta-band h2{font-size:clamp(1.7rem,6.6vw,2.2rem)}
 .fgrid{grid-template-columns:1fr}
 .card{padding:1.4rem}
}

/* ===== Canonical footer (mirrors homepage) — areas / resources / local ===== */
.foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:2.5rem;margin-bottom:3rem}
.foot-bottom{border-top:1px solid rgba(255,255,255,.08);padding-top:1.5rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.6rem;font-size:.8rem;color:#7488A8}
footer .legal-links{flex-basis:100%;display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1rem}
footer .legal-links a{display:inline;margin:0;color:#8FA4C4}
footer .legal-links a:hover{color:#fff}
.loc-addr{display:block;margin-bottom:.7rem;color:#8FA4C4;line-height:1.5}
@media(max-width:880px){.foot-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.foot-grid{grid-template-columns:1fr}}
/* ===========================================================================
   CONFIGURATOR PRIMITIVES
   Two behaviours every quote tool on this site needed and none of them had.
   Added here rather than per-page because instant-quote, roof-quote,
   addition-designer, project-builder and see-your-new-roof all share the defect.

   WHY THESE TWO AND NOT MORE
   The rest of the motion vocabulary already exists above (ud-rise, ud-aurora,
   ud-sheen, ud-kenburns) and the scroll-timeline reveal block covers structural
   containers. These are the gaps: a disclosure that snapped, and a price that
   changed without telling you.

   BOTH ARE SAFE OUTSIDE @supports (animation-timeline: view()). Neither starts
   at opacity 0 — .ud-acc collapses via grid-template-rows and .ud-bump only
   scales and tints — so a browser that cannot animate them leaves content
   fully visible at its natural size. That is the trap the block above documents:
   opacity-0 keyframes outside @supports render a blank page.
   =========================================================================== */

/* --- 1. Disclosure that actually opens -------------------------------------
   You cannot transition to an unknown content height in CSS. A one-child grid
   animating grid-template-rows 0fr -> 1fr can, so the pattern needs a single
   wrapper inside:

     <div class="ud-acc"><div class="ud-acc-i"> ...rows... </div></div>
     parent gets .on to open it

   project-builder.html previously toggled display:none -> block, which snapped
   with no transition on every scope a customer opened. Measured after the fix:
   1px -> 54px mid-flight -> 103px, i.e. genuinely animating. */
.ud-acc{display:grid;grid-template-rows:0fr;
  transition:grid-template-rows .42s cubic-bezier(.16,1,.3,1)}
.ud-acc-i{overflow:hidden}
.on>.ud-acc,.ud-acc.on{grid-template-rows:1fr}

/* --- 2. A figure that reacts when it changes -------------------------------
   The core interaction of a quote tool is "I change a choice, the number
   moves". Every configurator here rewrote its total silently, which reads as
   the page ignoring you. Add .ud-bump when the value actually CHANGES — not on
   every re-render, or the number twitches at random, which is worse than
   sitting still. Restart it by removing the class, forcing a reflow, re-adding:

     el.classList.remove('ud-bump'); void el.offsetWidth;
     el.classList.add('ud-bump');                                            */
.ud-bump{animation:ud-bump .42s cubic-bezier(.34,1.56,.64,1)}
@keyframes ud-bump{
  0%{transform:scale(1)}
  35%{transform:scale(1.10);color:var(--red)}
  100%{transform:scale(1)}
}

/* Tabular figures must not reflow while they animate. */
.ud-figure{font-variant-numeric:tabular-nums}

@media (prefers-reduced-motion: reduce){
  .ud-acc{transition:none}
  .ud-bump{animation:none}
}

/* ===========================================================================
   CITY-LANDING-PAGE LEAD CARD
   The 45 local/storm-damage-repair-* pages are where paid storm traffic lands, and
   every one of them had ZERO <form> elements — the only way to convert was a second
   click through to /booking. That is also why the right half of those heroes read as
   an empty navy void at desktop widths: the hero was one text column in a 1160px wrap.
   The card fills that column AND closes the capture gap.

   Scoped to .phero.has-lp, which assets/ud-citylp.js adds only after it has injected
   the card, so a page without it renders exactly as before.
   =========================================================================== */
@media(min-width:981px){
  .phero.has-lp .wrap{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);
    gap:3rem;align-items:center}
}
.phero.has-lp .lp-copy{min-width:0}
/* Text-first city pages (local/roof-repair-*) have no .phero, so ud-citylp.js mounts the
   card on the first content section instead. The two-column grid above is deliberately
   NOT applied there — the card stacks under the hero copy, which reads correctly on a
   page that leads with prose. It just needs to stop being full-bleed and get some air. */
.block.has-lp .lp-card{max-width:520px;margin:1.6rem auto 0}
@media(min-width:981px){ .block.has-lp .lp-card{margin-left:0} }
/* The veil is a left-to-right gradient that goes nearly transparent on the right, which
   is fine behind a photo but leaves a white card sitting on bare video. Darken behind
   the card only, so the form keeps its contrast without flattening the whole image. */
@media(min-width:981px){
  .phero.has-lp .veil{background:linear-gradient(96deg,rgba(8,27,48,.94) 0%,rgba(8,27,48,.82) 40%,rgba(8,27,48,.62) 100%)}
}
.lp-card{position:relative;background:var(--surface,#fff);border-radius:20px;padding:1.5rem 1.4rem 1.3rem;
  box-shadow:0 34px 70px -28px rgba(6,18,34,.62),0 2px 6px rgba(6,18,34,.12);
  border:1px solid rgba(255,255,255,.5);min-width:0}
.lp-card .lp-badge{display:inline-block;background:var(--gold,#F5B82E);color:#2A1B00;font-weight:800;
  font-size:.64rem;letter-spacing:.08em;text-transform:uppercase;padding:.3rem .6rem;border-radius:999px;
  margin-bottom:.7rem}
.lp-card h3{color:var(--navy,#0C2440);font-family:'Sora',Inter,sans-serif;font-size:1.24rem;
  line-height:1.25;margin:0 0 .3rem}
.lp-card .lp-sub{color:var(--mut,#5E6E88);font-size:.9rem;line-height:1.45;margin:0 0 1rem;max-width:none}
.lp-card .lp-f{margin-bottom:.6rem}
.lp-card input,.lp-card select{width:100%;padding:.78rem .9rem;border:1.5px solid var(--line,#E3E9F2);
  border-radius:11px;font:inherit;font-size:.95rem;color:var(--ink,#0F1E33);background:#fff;
  min-height:46px;-webkit-appearance:none;appearance:none}
.lp-card select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6E88' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right .8rem center;background-size:1.05em;padding-right:2.3rem}
.lp-card input:focus,.lp-card select:focus{outline:none;border-color:var(--red,#B32424);
  box-shadow:0 0 0 3px rgba(179,36,36,.16)}
.lp-card .btn{width:100%;margin-top:.35rem}
.lp-card .lp-fine{color:var(--mut,#5E6E88);font-size:.7rem;line-height:1.45;margin:.75rem 0 0}
.lp-card .lp-fine a{color:inherit;text-decoration:underline}
.lp-card .lp-err{display:none;color:var(--red,#B32424);font-weight:700;font-size:.86rem;margin-bottom:.6rem}
.lp-card .lp-ok{display:none;text-align:center;padding:.4rem 0}
.lp-card .lp-ok .lp-tick{width:52px;height:52px;border-radius:50%;background:var(--ok,#10B981);color:#fff;
  display:grid;place-items:center;margin:0 auto .8rem;font-size:1.7rem;font-weight:800}
@media(max-width:980px){
  .lp-card{margin-top:2rem}
  /* Thumb targets on a phone. */
  .lp-card input,.lp-card select{min-height:50px;font-size:1rem}
}
/* Screen-reader-only text. Did not exist in this stylesheet, so any markup using .sr-only
   was rendering its labels visibly. The clip-path pairing keeps it out of the accessibility
   tree's visual output without the display:none that hides it from screen readers too. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}

/* ============================================================================
   ABOVE-THE-FOLD CONVERSION BLOCK  (.udaf)
   ============================================================================
   Owned by scripts/lib/cro-hero.mjs. Every generator that renders an above-fold
   unit emits THAT module's markup and these class names, so the pattern has one
   definition across ~1,290 generated pages instead of one per generator — the
   drift that put four different hero markups on this site in the first place.

   WHAT THIS FIXES, MEASURED. tools/cro-fold-audit.mjs, iPhone viewport 390x844,
   before this block existed:

     page                              phone above fold   form fields above fold
     /                                 sticky bar only    0 of 4  (first at y=1191)
     /service-area/gaithersburg/       "Call", no digits  0 of 4  (first at y=4677)
     /service-area/*/roof-replacement  "Call", no digits  0 of 4  (first at y=2683)
     /services/roofing                 y=609              0 of 3  (first at y=1744)
     /learn/how-long-does-a-roof-last  y=572              0 of 3  (first at y=7378)

   Not one page in the sample put a form field on the first screen of a phone.
   The lead form on the education pages was eight and a half screens down.

   LAYOUT CONTRACT: on a 390x844 phone the unit must fit H1 + three proof points
   + the Google review row + the call button + the first two form fields inside
   844px. That is why the type scale below is clamped hard and why the form is
   three fields and not four.
   ---------------------------------------------------------------------------- */
.udaf{position:relative;background:#fff;border-bottom:1px solid var(--line);padding:1.4rem 0 1.8rem}
.udaf-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:2.4rem;align-items:start}
@media(max-width:900px){.udaf-grid{grid-template-columns:1fr;gap:1.25rem}.udaf{padding:1rem 0 1.4rem}}
.udaf h1{font-size:clamp(1.55rem,5.2vw,2.85rem);margin:.35rem 0 .55rem;color:var(--navy);line-height:1.1;text-wrap:balance}
.udaf h1 em{font-style:italic;color:var(--red)}
.udaf .udaf-sub{color:var(--body);font-size:1rem;line-height:1.55;max-width:56ch;margin:0 0 .9rem}
@media(max-width:600px){.udaf .udaf-sub{font-size:.94rem;margin-bottom:.7rem}}

/* --- three proof points, checkmarks ---------------------------------------
   Three. Not five. Each one costs ~28px of the 844px budget and the fourth
   pushes the first form field off the first screen on a 390px phone. */
.udaf-proof{list-style:none;display:flex;flex-direction:column;gap:.5rem;margin:0 0 1rem;padding:0}
.udaf-proof li{display:flex;gap:.6rem;align-items:flex-start;color:var(--ink);
  font-size:.95rem;line-height:1.45;font-weight:500}
@media(max-width:600px){.udaf-proof li{font-size:.9rem}.udaf-proof{gap:.42rem}}
.udaf-proof li svg{width:19px;height:19px;flex:none;margin-top:.12rem;
  fill:none;stroke:var(--green);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}

/* --- Google review row ------------------------------------------------------
   Figures come from website/data/reviews.json via scripts/lib/cro-hero.mjs and are
   never typed into a template; tests/review-claim-guard.mjs fails the build otherwise. */
.udaf-goog{display:inline-flex;align-items:center;gap:.6rem;flex-wrap:wrap;
  background:var(--ice);border:1px solid var(--line);border-radius:14px;
  padding:.6rem .85rem;margin:0 0 1rem;min-height:44px}
.udaf-goog img{width:20px;height:20px;flex:none}
/* 2026-09-10: --gold (#F5B82E) on --ice (#EEF3FA) measured 1.60:1 — the highest-intent
   trust signal on 345 landing pages was effectively invisible on a phone in daylight. --gold-ink
   is the same hue darkened to 3.80:1, which clears the 3:1 floor for a graphical object while
   still reading as gold. --gold is unchanged everywhere it sits on navy. */
.udaf-goog .udaf-stars{color:var(--gold-ink,#A96F00);letter-spacing:1.5px;font-size:1rem;line-height:1}
.udaf-goog b{font-size:1rem;color:var(--navy);font-variant-numeric:tabular-nums}
.udaf-goog span{font-size:.87rem;color:var(--body)}
.udaf-goog a{color:var(--navy);text-decoration:underline;text-underline-offset:2px;font-weight:600;font-size:.87rem}

/* --- the call button --------------------------------------------------------
   Full-width on a phone and taller than the form CTA on purpose: on this traffic
   a tap-to-call is a same-second conversion and a form is a deferred one. */
.udaf-call{display:none}
@media(max-width:900px){
  .udaf-call{display:flex;align-items:center;justify-content:center;gap:.55rem;
    width:100%;min-height:56px;margin:0 0 .9rem;
    background:var(--red);color:#fff;border-radius:14px;
    font:800 1.06rem/1 'Sora','Inter',sans-serif;letter-spacing:-.01em;
    box-shadow:0 10px 26px -10px rgba(179,36,36,.75)}
  .udaf-call svg{width:20px;height:20px;fill:currentColor}
  .udaf-call small{display:block;font:600 .72rem/1 'Inter',sans-serif;opacity:.85;margin-top:.28rem}
}

/* --- the short form ---------------------------------------------------------
   Three fields. Every field past the third costs conversions and the lattice
   form was four (name / phone / email / address) with email and address both
   required — two fields a homeowner will not give a stranger before a call. */
.udaf-form{background:#fff;border:1px solid var(--line);border-radius:18px;
  padding:1.15rem 1.15rem 1.25rem;box-shadow:var(--shm)}
@media(max-width:900px){.udaf-form{padding:1rem}}
.udaf-form h2,.udaf-form .udaf-formh{font:800 1.12rem/1.25 'Sora','Inter',sans-serif;
  color:var(--navy);margin:0 0 .2rem;letter-spacing:-.02em}
.udaf-form .udaf-formp{color:var(--body);font-size:.87rem;line-height:1.45;margin:0 0 .85rem}
.udaf-fld{margin-bottom:.6rem}
.udaf-fld label{display:block;font:700 .72rem/1 'Inter',sans-serif;letter-spacing:.07em;
  text-transform:uppercase;color:#33415E;margin-bottom:.3rem}
.udaf-fld input,.udaf-fld select{width:100%;min-height:48px;padding:.7rem .85rem;
  border:1.5px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);
  font:500 1rem/1.2 'Inter',sans-serif;             /* 16px: anything smaller zooms iOS Safari */
  -webkit-appearance:none;appearance:none}
.udaf-fld select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5872' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right .8rem center;background-size:18px;padding-right:2.4rem}
.udaf-fld input:focus,.udaf-fld select:focus{outline:none;border-color:var(--red);
  box-shadow:0 0 0 3px rgba(179,36,36,.14)}
.udaf-form button{width:100%;min-height:54px;border:0;cursor:pointer;
  background:var(--red);color:#fff;border-radius:12px;
  font:800 1.02rem/1.2 'Sora','Inter',sans-serif;letter-spacing:-.01em;
  box-shadow:0 10px 26px -12px rgba(179,36,36,.8);transition:transform .15s,box-shadow .15s}
.udaf-form button:hover{transform:translateY(-1px)}
.udaf-form button[disabled]{opacity:.62;cursor:default;transform:none}
.udaf-msg{min-height:1.1rem;font-size:.85rem;line-height:1.4;margin-top:.5rem}
.udaf-msg.err{color:var(--red);font-weight:600}
.udaf-msg.ok{color:#0B7A54;font-weight:700}
/* This paragraph is the TCPA disclosure. axe-core measured the old #6B7A94 on white at
   4.34:1 — under the 4.5:1 WCAG AA minimum for text this size, on 54 pages. The consent
   engine in ud-chat.js goes to real trouble to store the exact sentence the visitor was
   SHOWN as evidence; a sentence a visitor with low vision cannot read is a poor thing to
   hold up as evidence. #5A6880 measures 5.6:1, and .75rem gives the smallest legally
   significant text on the site a little more room. The two links inside it were flagged
   separately under link-in-text-block (distinguishable by colour alone), so they are
   underlined — which is what a link in a legal disclosure should look like anyway. */
.udaf-fine{color:#5A6880;font-size:.75rem;line-height:1.5;margin:.6rem 0 0}
.udaf-fine a{color:inherit;text-decoration:underline;text-underline-offset:2px}
/* Honeypot. Off-screen rather than display:none — a bot that reads computed style skips
   the latter, and an off-screen field still gets filled by the ones worth catching. */
.udaf-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

/* --- photo slot --------------------------------------------------------------
   Deliberately NOT captioned with a place name or "our crew": see
   ops/cro/CONVERSION-OVERHAUL.md §"Photography". tests/photo-provenance-guard.mjs
   fails any image whose alt claims a town it cannot support. */
/* The photo is its OWN grid child, not a child of the copy column, so it can be positioned
   independently of it. Explicit placement on all three children, because auto-placement kept
   producing one of two wrong layouts: dropped into row 2 it left a band of dead whitespace the
   height of the form/copy difference, and asking for row 1 col 1 alongside an auto-placed copy
   div collapsed the whole grid to a single column. Naming every cell removes the ambiguity.
   The form spans both rows so the right-hand column stays one tall card. */
.udaf-grid > div:first-child{grid-column:1;grid-row:1}
.udaf-grid > div:nth-child(2){grid-column:2;grid-row:1/span 2}
.udaf-photo{border-radius:16px;overflow:hidden;border:1px solid var(--line);margin:1.1rem 0 0;
  box-shadow:var(--shm);aspect-ratio:16/10;grid-column:1;grid-row:2;align-self:start}
.udaf-photo img{width:100%;height:100%;object-fit:cover}
/* WAS display:none below 900px, with the note "photo never outranks the form on a phone".
   The instinct was right and the implementation threw the baby out: phones are most of this
   traffic, so hiding it left these pages with no photograph at all for the majority of
   visitors — on a site selling a $14,000-$26,000 visual product. Ordered after the form
   instead of deleted. The form still comes first on a phone. */
@media(max-width:900px){
  .udaf-grid{display:flex;flex-direction:column}
  .udaf-grid > div:first-child{order:1}
  .udaf-grid > div:nth-child(2){order:2}
  .udaf-photo{order:3;margin:.9rem 0 0}
}

/* Bottom sticky bar: both halves were under the 44px tap-target minimum at some
   widths, and the left half said "Call" with no number on it. */
.sticky-call .btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center}

/* --- review showcase (scripts/lib/cro-hero.mjs → reviewShowcase()) -------------
   Real review text, real names, from website/data/review-quotes.json. A star row with
   no words under it is decoration; the words are the thing that converts. */
.udrev{padding:3.4rem 0}
.udrev-card{display:flex;flex-direction:column;gap:.8rem;padding:1.5rem}
.udrev-stars{color:var(--gold-ink,#A96F00);letter-spacing:2px;font-size:1.05rem;line-height:1}
.udrev-card blockquote{margin:0}
.udrev-card blockquote p{color:var(--ink);font-size:.98rem;line-height:1.6;margin:0}
.udrev-card figcaption{margin-top:auto;padding-top:.6rem;border-top:1px solid var(--line);
  display:flex;flex-direction:column;gap:.1rem}
.udrev-card figcaption b{color:var(--navy);font-size:.94rem}
.udrev-card figcaption span{color:var(--body);font-size:.8rem}
@media(max-width:880px){.udrev{padding:2.4rem 0}}

/* --- sitewide trust strip (scripts/lib/cro-hero.mjs → trustStrip()) ------------
   Every substantiated credential in one row: MHIC, BBB, licensed & insured, years,
   completed roofs, workmanship warranty, financing, Spanish. Below the fold on purpose —
   above it, three checkmarks beat nine, and nine is where a hero starts looking like a
   footer. Uses its own class because .cred lives only in index.html's inline <style>. */
.udtrust{background:var(--navy);color:#C5D4EC;padding:.9rem 0}
.udtrust .wrap{display:flex;flex-wrap:wrap;gap:.55rem 1.6rem;align-items:center;justify-content:center;
  font:600 .8rem/1.4 'Inter',sans-serif}
.udtrust span{display:inline-flex;align-items:center;gap:.42rem;white-space:nowrap}
.udtrust svg{width:15px;height:15px;flex:none;fill:none;stroke:var(--green);stroke-width:3;
  stroke-linecap:round;stroke-linejoin:round}
@media(max-width:600px){.udtrust .wrap{gap:.5rem 1rem;font-size:.74rem}}

/* --- captureBand: the above-fold unit on editorial pages (no second H1) -------- */
.udband{background:var(--ice)}
.udband-h{font:800 clamp(1.15rem,3.4vw,1.55rem)/1.2 'Sora','Inter',sans-serif;
  color:var(--navy);letter-spacing:-.02em;margin:0 0 .45rem}

/* Header CTA tap target. Measured at 134x43px on desktop and 131x43 on mobile by
   tools/cro-fold-audit.mjs — one pixel under the 44px floor in WCAG 2.5.8 (Target Size,
   Minimum) and in Apple's and Google's touch guidance. It is the most-tapped button on the
   site, so the one pixel is worth taking seriously rather than rounding away. */
.nav-cta .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}

/* ===========================================================================
   THE MOBILE HEADER, FIXED LAST ON PURPOSE — TWO FAULTS, ONE OF THEM A CASCADE ACCIDENT
   ---------------------------------------------------------------------------
   Owner screenshot of /buy-your-roof at 390px: the red phone pill runs off the right edge and
   "Office · (240) 880" is cut mid-number under the hamburger. Measured in Chromium at 390x844:
   document.body.scrollWidth = 669 on a 390 viewport, i.e. 279px of the page hanging off screen,
   and the same on /contact (626). Two independent causes, both invisible in source review:

   1. A LATER RULE SILENTLY UNDID AN EARLIER FIX. `@media(max-width:600px){.nav-cta > .btn
      {display:none}}` (line ~90) was overridden by `.nav-cta .btn{min-height:44px;
      display:inline-flex}` appended later in this file for a WCAG tap-target fix. Same
      specificity (0,2,0), later position, no media query — so it won at every width and put a
      173px button back into a 390px header. A correct accessibility fix reverted a correct
      layout fix, and nothing failed: both rules are individually right.
      The tap-target rule is kept (it is right) and scoped so it cannot resurrect a hidden
      button: min-height applies to the button wherever it is VISIBLE.

   2. THE LABEL IS TOO LONG TO FIT ANY 390px HEADER. "Calls answered 24/7 · (240) 880-2108" at
      white-space:nowrap measures 316px; with a 135px logo and a 44px hamburger that is 495px of
      content in 390px. No amount of padding tuning fixes 495 into 390. So the WORDS shrink on a
      phone and the DIGITS never do: the "Calls answered 24/7 · " prefix is wrapped in
      .nav-phone-pre by scripts/fix-header-phone-overflow.mjs and hidden here, leaving
      "(240) 880-2108" — about 130px, which fits with room to spare. The promise is not lost:
      "answered 24/7" is in the topbar and in the sticky call bar on the same screen.

   Enforced by the browser assertions in tests/project-builder-intake-e2e.mjs, which fail if
   body.scrollWidth exceeds the viewport at 390px on the pages the owner sent.
   ========================================================================== */
@media(max-width:600px){
  /* !important because the offender is a later same-specificity rule; a third rule appended
     tomorrow must not be able to break the header a third time. */
  .nav-cta > .btn{display:none!important}
  .nav-phone-pre{display:none!important}
  .nav-phone{max-width:calc(100vw - 200px)}
  .nav-phone a{white-space:nowrap}
}
/* The tap-target floor, restated AFTER the hide so both hold: 44px tall wherever the button is
   shown, and not shown at all inside a 600px header. */
@media(min-width:601px){
  .nav-cta .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
}

/* THE 320px CASE (iPhone SE, and any phone with the text size turned up). At 320 the header is
   logo 135 + phone pill 163 + hamburger 44 = 342 before gaps, so it overflowed by 16px and the
   hamburger — the only way to reach the menu — sat partly off screen. Measured, not guessed:
   body.scrollWidth 336 at a 320 viewport on /index. The pill keeps its 44px tap height; what
   gives is logo size, padding and the icon, in that order. */
@media(max-width:360px){
  .logo img{height:32px}
  .nav-phone{padding:.55rem .65rem;font-size:.84rem;gap:.3rem}
  .nav-phone svg,.nav-phone .ico{display:none}   /* the digits carry the meaning, not the glyph */
  .nav-cta{gap:.35rem}
  header .wrap{padding-left:.7rem;padding-right:.7rem}
}

/* THE SECOND TOPBAR PHONE LINE, AND WHY IT WAS THE WORST OF THESE BUGS.
   /careers reported document.body.scrollWidth 547 on a 390px viewport — 157px off screen, and 224px
   off at 320. It was NOT the header: the .topbar-in row carries TWO tel: links, "Calls answered 24/7 ·
   (240) 880-2108" and "Office · (240) 880-2108", both white-space:nowrap, ~500px side by side. That
   widened the DOCUMENT, and everything sized at 100% inherited the new width — which is why the
   hamburger sat at x=547 and the fixed cookie banner stretched to 515px wide. Chasing the visible
   symptom (a banner off the side of the screen on the page people apply for jobs on) would have found
   the wrong element; the document width was the cause and the banner just obeyed it.
   Three pages carry this row and all three link this stylesheet, so one rule fixes them. The 24/7 line
   is kept because it is the promise; the office duplicate of the same number goes. */
@media(max-width:760px){
  .topbar-in{flex-wrap:wrap;row-gap:.2rem;min-width:0}
  .topbar-in .tline:not(.tred){display:none}
}

/* AND THE LAST FEW PIXELS AT 320px. After the 360px block the home page was still 5px over and the
   archived copy 16px, both at the hamburger — the header simply has more in it than 320px holds once
   the OS text size is up. Trimming the gap and the wrap padding rather than shrinking the tap target:
   44px stays 44px, because a button you cannot reliably hit is worse than a tight margin. */
@media(max-width:340px){
  .logo img{height:30px}
  .nav-cta{gap:.25rem}
  header .wrap{padding-left:.45rem;padding-right:.45rem}
  .nav-phone{padding:.5rem .55rem;font-size:.8rem}
}

/* BYLINE — the "Reviewed by <owner>" line under the breadcrumb on every /learn/ guide.
   Sits between the crumb and the short answer, which is the one place a reader's eye is
   already parked before deciding whether to trust the 4,000 words underneath. Deliberately
   quiet: it is a credential, not a CTA. The credential chip is the only coloured element,
   because the MHIC registration number is the part a skeptical homeowner can actually go and
   verify against the state database. The number itself is NOT written here — a licence claim
   inside a stylesheet comment is invisible to scripts/apply-license-status.mjs, so a lapse
   sweep would leave it published. tests/license-lapse-recovery-guard.mjs caught exactly that.
   Colours meet WCAG AA on white — #5A6880 is 5.32:1, the same value the TCPA disclosure was
   raised to. See scripts/lib/authors.mjs. */
.lby{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:0 0 1.4rem;
  padding:.65rem 0 0;font-size:.85rem;color:#5A6880;line-height:1.5}
.lby a{color:var(--ink);font-weight:650;text-decoration:none;border-bottom:1px solid var(--line)}
.lby a:hover{border-bottom-color:var(--ink)}
.lby-role{color:#5A6880}
.lby-role::before{content:"\00b7";margin-right:.5rem;color:#93A9C9}
.lby-cred{display:inline-block;background:var(--ice);color:#1F3B5C;border:1px solid var(--line);
  border-radius:999px;padding:.15rem .6rem;font-size:.76rem;font-weight:650;letter-spacing:.01em}

/* AUTHOR PAGE — /authors/<name>. One column, no hero image: we do not have a
   photograph of either owner we are licensed to publish, and a stock headshot on a page whose
   entire job is proving a real person exists would defeat the page. */
.aupg{max-width:720px;margin:0 auto}
.aupg h1{margin:0 0 .35rem}
.aupg .au-role{color:#5A6880;font-size:1rem;margin:0 0 1.2rem}
.aupg .au-bio{color:var(--body);font-size:1.06rem;line-height:1.7}
.au-facts{list-style:none;padding:0;margin:1.6rem 0 0;display:grid;gap:.55rem}
.au-facts li{display:flex;gap:.7rem;align-items:flex-start;color:var(--body);font-size:.97rem}
.au-facts li::before{content:"";flex:0 0 6px;height:6px;margin-top:.55rem;border-radius:50%;
  background:var(--blue)}
.au-card{display:block;border:1px solid var(--line);border-radius:var(--r);padding:1.4rem;
  text-decoration:none;background:#fff;box-shadow:var(--shm)}
.au-card h3{margin:0 0 .3rem;color:var(--ink)}
.au-card p{margin:0;color:var(--body);font-size:.95rem;line-height:1.6}

/* ── Minimum legible size on a phone ─────────────────────────────────────────
   Measured at 390x844 across twelve pages: .eyebrow 11.5px, .lt-dist and .lc-chip 11.8px,
   .badge, .svc and .lw-tag 11.2px, .fineprint 11.5px, .ud-map-eyebrow 9.6-9.9px. Lighthouse
   flags a document as not using legible fonts below 12px, and on a phone held at arm's length
   these are the lines a visitor actually has to read: the credential strip, the distance to a
   town, the consent line under the submit button.
   A flat value rather than a floor because CSS has no "at least my own size" — font-size:max(1em,…)
   resolves 1em against the PARENT, which would flatten every deliberate step down in the
   hierarchy. Flat is only safe where the measured range is narrow, so each class below was
   checked first and the widest span here is 11.2-12.8px; .8rem raises every one of them and
   shrinks none. .stars is deliberately NOT in this list — it ranges 11.8px to 16.8px across
   templates and a flat value would shrink the large ones.
   :root prefixed so it outranks the same class declared in a page's own <style>, which would
   otherwise win on source order for being later in the document. !important on top of that
   because several templates re-declare these classes inside their OWN phone media query, which
   ties on specificity and wins on order: without it the rule landed at 820px and not at 390px,
   i.e. everywhere except the phones it was written for. This is the one shape that justifies
   !important — a floor that must hold against every page-level value, over an enumerated list
   whose full measured range (11.2-12.8px across twelve templates) is below the value being set,
   so it can only raise. tests/mobile-layer-collision-guard.mjs re-measures that claim. */
@media(max-width:900px){
  :root .eyebrow,:root .trustline,:root .fineprint,:root .lt-dist,:root .lc-chip,
  :root .lw-tag,:root .badge,:root .svc,:root .ud-map-eyebrow{font-size:.8rem!important;line-height:1.45}
}
