/* v187 — Phones: the review under the hero button and the credentials band under the hero.
   Shared by the homepage and the landing pages (city and service pages); moved here from
   home.css (v183–v186), which keeps only the homepage's own charcoal.
   The hero shows at once, so the band's chalk snap is the only motion: one chalk line is
   plucked and snaps, then GAF, BBB and Google land on it one at a time in their own colors
   and stay. The sequence runs from the inline script after each strip. The lineup is the
   resting state here, so that's what shows without JS or with reduced motion. Licensed/
   insured and local share one line underneath. Tablet and desktop are unchanged (desktop's
   own landing, in the About section on the homepage and the town pages, is the v202 block
   at the bottom).
   v190: no labels under the line. The badges speak for themselves, and the BBB icon
   carries its own letters so the A+ still names its source.
   v191: they land from above, one at a time, instead of rising from behind the line.
   v192: sized to the capitals of A+ and 5.0 (39px): the G grows and GAF shrinks a little,
   so the three read as one set. */
.hero-review-m,.cred-m{display:none}
@keyframes credGlint{from{background-position:100% 0}to{background-position:0 0}}
@media (max-width:768px){
  /* The hero ends 34px under the review; with the band's top padding that leaves 54px
     to the top of the GAF badge. No entrance for the headline or buttons. */
  html body .hero .hero-inner:not(#_),
  html body .svc-hero .svc-hero-inner:not(#_){padding-bottom:34px !important}
  html body :is(.hero,.svc-hero) :is(h1,.hero-h2,.svc-hero-sub,.hero-cta-stack,.svc-hero-cta-stack,.hero-cta-row):not(#_){animation:none}
  /* The review lines up with the button's left edge, so the city pages' button runs
     full width, as on the homepage and the service pages. */
  html body .hero .hero-cta-mobile{width:100%}

  /* Review: small gold stars, a regular-weight quote with open lines, upright, and a
     quiet but readable attribution, lined up with the button's left edge. It names
     Google and the band below carries the G, so the quote has no logo of its own. */
  html body .hero-review-m{display:flex;flex-direction:column;gap:3px;margin:24px 0 0}
  html body .hero-review-m-stars{color:var(--amber-400);font-size:.85rem;letter-spacing:2px;line-height:1}
  html body .hero-review-m-quote{
    margin:0;padding:0;border:0;font-size:1rem;font-weight:400;font-style:normal;line-height:1.45;
    color:rgba(255,255,255,.92);text-wrap:balance}
  html body .hero-review-m-name{font-size:.8rem;font-weight:500;line-height:1.3;color:rgba(255,255,255,.7)}

  /* Credentials band. It carries on the charcoal the hero ends on (#17181b, see
     charcoal.css; the homepage overrides it in home.css), so the proof reads as part of
     the hero, right under the review. The hero can end on a fraction of a pixel, which
     let the white page show through as a hairline; the 1px shadow covers that seam. */
  html body .trust-strip-bar:not(#_){padding:0;border:0;box-shadow:0 -1px 0 #17181b}
  html body .trust-strip-bar > .container{display:none}
  html body .cred-m{
    --col:clamp(104px,31vw,124px);
    display:block;position:relative;padding:12px 20px 30px;text-align:center}

  /* Stage: the credentials stand side by side on the chalk line (the rail's bottom
     edge) and land on it from above, so the rail clips only at the sides. Each item
     spans the rail and centers its content, so --x places it, and it scales from its
     base. A faint warm glow sits behind them, 340px wide, or the screen's
     width on phones narrower than that. */
  html body .cred-m-stage{position:relative}
  html body .cred-m-stage::before{
    content:"";position:absolute;left:max(-20px,50% - 170px);right:max(-20px,50% - 170px);top:44px;height:120px;margin-top:-60px;
    pointer-events:none;background:radial-gradient(closest-side,rgba(226,169,78,.09),transparent)}
  html body .cred-m-rail{position:relative;height:78px;margin:0 -20px;overflow:hidden;overflow:clip visible}
  html body .cred-m-item{
    position:absolute;left:0;right:0;bottom:8px;display:flex;align-items:flex-end;justify-content:center;gap:6px;
    transform:translateX(var(--x));transform-origin:50% 100%}
  /* The three are different widths (GAF narrowest), so the lineup is spaced as a
     group with even gaps rather than on the middle item. */
  html body .cred-m-item:nth-child(1){--x:calc(var(--col) * -1.112)}
  html body .cred-m-item:nth-child(2){--x:calc(var(--col) * -.191)}
  html body .cred-m-item:nth-child(3){--x:calc(var(--col) * .921)}
  /* GAF is the one credential without a number, and a diamond looks smaller than a
     square of the same height, so it stands taller than the rest: 62px point to point,
     about 1.6 times the capitals. */
  html body .cred-m-badge{position:relative;display:block;width:62px;height:62px}
  html body .cred-m-gaf{display:block;width:100%;height:100%;object-fit:contain;
    filter:drop-shadow(0 5px 9px rgba(0,0,0,.5))}
  html body .cred-m-badge::after{
    content:"";position:absolute;inset:0;pointer-events:none;
    -webkit-mask:url(assets/images/gaf-certified-v2.webp) center/contain no-repeat;
    mask:url(assets/images/gaf-certified-v2.webp) center/contain no-repeat;
    background:linear-gradient(105deg,transparent 38%,rgba(255,240,205,.6) 50%,transparent 62%) 100% 0/300% 100% no-repeat}
  /* BBB: a small version of the Accredited Business seal (navy, the blue torch over
     white BBB letters, and the two blue layers on the right) as an icon, as tall as the
     capitals beside it. The G's box is the same height; the G inside it is about 35px,
     which reads level with the square tile because it's round. Both center on the
     capitals. */
  html body .cred-m-bbb{display:block;flex:none;width:46px;height:40px;margin-bottom:10.5px;
    filter:drop-shadow(0 5px 9px rgba(0,0,0,.5))}
  html body .cred-m-g{display:block;flex:none;width:40px;height:40px;margin-bottom:10.5px}
  html body .cred-m-score{display:flex;flex-direction:column;align-items:center;gap:4px}
  html body .cred-m-stars{color:#fbbc04;font-size:.5rem;letter-spacing:1.5px;line-height:1}
  /* The negative margin drops the number's empty descent space, so the 5.0's
     baseline sits right on its stars. The A+ is lifted by the stars' height and
     gap so it stands exactly level with the 5.0. */
  html body .cred-m-num{
    display:block;margin-bottom:-.12em;
    font-family:var(--font-display);font-size:3.45rem;font-weight:800;line-height:1;
    background:linear-gradient(105deg,#fff 42%,#f5d48f 50%,#fff 58%) 100% 0/300% 100% no-repeat;
    -webkit-background-clip:text;background-clip:text;color:transparent;
    filter:drop-shadow(0 5px 9px rgba(0,0,0,.5))}
  html body .cred-m-item > .cred-m-num{margin-bottom:calc(.5rem + 4px - .12em)}
  html body .cred-m-line{display:block;height:1.5px;margin:0 -20px;
    background:linear-gradient(90deg,transparent,rgba(217,173,95,.55) 10%,rgba(217,173,95,.55) 90%,transparent)}
  html body .cred-m-chalk{position:absolute;left:0;top:0;width:100%;height:0;pointer-events:none}
  html body .cred-chalk .cred-m-line{opacity:0}

  html body .cred-m-more{
    margin:16px 0 0;display:flex;align-items:center;justify-content:center;gap:12px;
    font-size:.68rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.8)}
  html body .cred-m-dot{width:5px;height:5px;background:#d4a254;transform:rotate(45deg)}

  /* Sequence (.cred-run from the inline script, which moves everything frame by frame;
     the string, chalk mark, dust, puffs and flashes are drawn on the canvas). The bottom
     line rises in once the three have landed. Light crosses each number and the GAF badge
     once as it lands (.is-sheen). No bounce (v147). */
  html body .cred-run .cred-m-item{opacity:0}
  html body .cred-motion .cred-m-more{opacity:0;transform:translateY(14px)}
  html body .cred-in .cred-m-more{
    opacity:1;transform:none;
    transition:opacity .6s ease 1.15s,transform .8s var(--ease-reveal) 1.15s}
  html body .is-sheen .cred-m-badge::after,
  html body .is-sheen .cred-m-num{animation:credGlint .6s ease-in-out both}
}

/* v202 — Desktop: the three credentials in the About section (homepage,
   Canton and Holly Springs), in place of the four stats, which tablets keep. Their own version
   of the phone band's landing, made for the white section: the gold line draws out from the
   middle, then GAF, BBB and Google drop onto it one at a time, a little large and faint at
   first, picking up speed and stopping dead. The line gives under each one and settles back
   (no rebound), flashes warm and kicks up a small puff of grit, and light crosses each one as
   it lands. The sequence runs from the inline script after the section, once, after the photo
   has revealed. The lineup is the resting state, so that's what shows without JS or with
   reduced motion. The install and inspection stats share one line underneath. Sized a tenth
   bigger than the phone band.
   v203: the credentials sit under the paragraphs and the quote moves under the photo, so each
   column pairs a picture with words instead of stacking all the text on one side.
   v205: the quote under the photo gets a plainer look of its own. v209: that look is now every
   review quote's, so it lives in review-callouts.css. */
.cred-d{display:none}
@media (min-width:1025px){
  html body .about-img-wrap .about-stats:not(#_){display:none}
  html body .cred-d{display:block;margin-top:40px;text-align:center}

  /* v203: two rows. The photo stands beside the label, heading and paragraphs (the text column
     is opened up so they can take rows of their own; on the homepage the quote sits inside it,
     on the town pages beside it), then the quote under the photo and the credentials under the
     paragraphs. When the photo is the taller, the extra goes under the paragraphs; when the text
     is, the photo drops to sit right on the quote. */
  html body .about-grid:has(.cred-d):not(#_){grid-template-rows:auto auto 1fr auto;row-gap:0;align-items:start}
  html body .about-grid:has(.cred-d) > div:has(> .about-text){display:contents}
  html body .about-grid:has(.cred-d) > .about-img-wrap:not(#_){grid-column:1;grid-row:1 / 4;align-self:end}
  html body .about-grid:has(.cred-d) .sec-label{grid-column:2;grid-row:1}
  html body .about-grid:has(.cred-d) .sec-heading{grid-column:2;grid-row:2}
  html body .about-grid:has(.cred-d) .about-text{grid-column:2;grid-row:3}
  html body .about-grid:has(.cred-d) .about-pq:not(#_){grid-column:1;grid-row:4;margin-top:28px}
  html body .about-grid:has(.cred-d) .cred-d{grid-column:2;grid-row:4;margin-top:20px}

  /* Stage: the three spread evenly along the line, standing on it from 3px up. Each scales
     from its base, so it lands on the line. */
  html body .cred-d-stage{position:relative}
  html body .cred-d-row{display:flex;align-items:flex-end;justify-content:space-evenly;padding-bottom:3px}
  html body .cred-d-item{display:flex;align-items:flex-end;justify-content:center;gap:8px;transform-origin:50% 100%}
  html body .cred-d-badge{position:relative;display:block;width:68px;height:68px}
  html body .cred-d-gaf{display:block;width:100%;height:100%;object-fit:contain;
    filter:drop-shadow(0 4px 8px rgba(0,0,0,.18))}
  html body .cred-d-badge::after{
    content:"";position:absolute;inset:0;pointer-events:none;
    -webkit-mask:url(assets/images/gaf-certified-v2.webp) center/contain no-repeat;
    mask:url(assets/images/gaf-certified-v2.webp) center/contain no-repeat;
    background:linear-gradient(105deg,transparent 38%,rgba(255,240,205,.7) 50%,transparent 62%) 100% 0/300% 100% no-repeat}
  /* BBB and the G center on the capitals of A+ and 5.0, as on phones. */
  html body .cred-d-bbb{display:block;flex:none;width:51px;height:44px;margin-bottom:12px;
    filter:drop-shadow(0 4px 8px rgba(0,0,0,.18))}
  html body .cred-d-g{display:block;flex:none;width:44px;height:44px;margin-bottom:12px}
  html body .cred-d-score{display:flex;flex-direction:column;align-items:center;gap:4px}
  html body .cred-d-stars{color:#fbbc04;font-size:.55rem;letter-spacing:1.5px;line-height:1}
  /* Charcoal numbers on white; the light that crosses them is gold. */
  html body .cred-d-num{
    display:block;margin-bottom:-.12em;
    font-family:var(--font-display);font-size:3.8rem;font-weight:800;line-height:1;
    background:linear-gradient(105deg,var(--teal-950) 42%,#d9ad6b 50%,var(--teal-950) 58%) 100% 0/300% 100% no-repeat;
    -webkit-background-clip:text;background-clip:text;color:transparent}
  html body .cred-d-item > .cred-d-num{margin-bottom:calc(.55rem + 4px - .12em)}
  html body .cred-d-line{display:block;height:1.5px;
    background:linear-gradient(90deg,transparent,rgba(184,134,63,.6) 10%,rgba(184,134,63,.6) 90%,transparent)}
  html body .cred-d-fx{position:absolute;left:0;top:0;width:100%;height:0;pointer-events:none}

  html body .cred-d-more{
    margin:18px 0 0;display:flex;align-items:center;justify-content:center;gap:12px;
    font-size:.7rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--neutral-500)}
  html body .cred-d-dot{width:5px;height:5px;background:var(--amber-500);transform:rotate(45deg)}

  /* Sequence (.cred-d-run from the inline script, which moves the three frame by frame and
     draws the line on the canvas while it runs). The line underneath rises in once the three
     have landed. */
  html body .cred-d-run .cred-d-item{opacity:0}
  html body .cred-d-draw .cred-d-line{opacity:0}
  html body .cred-d-motion .cred-d-more{opacity:0;transform:translateY(10px)}
  html body .cred-d-in .cred-d-more{
    opacity:1;transform:none;
    transition:opacity .6s ease 1.6s,transform .8s var(--ease-reveal) 1.6s}
  html body .cred-d-item.is-sheen .cred-d-badge::after,
  html body .cred-d-item.is-sheen .cred-d-num{animation:credGlint .7s ease-in-out both}
}
