/* Resnick Roofing & Contracting — shared token system & base components
   Register: trade confident (design-standard/references/registers.md).
   Palette sourced from Resnick's own logo SVG (resnickroof.com/img/logo.svg):
   #b52325 (red) and #156f81 (teal). Verified AA: red/white 6.58:1, teal/white 5.79:1.
   Delivered under ARC (pitch_brand: arc, not white-label) — ARC credit lives only in
   the footer per the brand pack; Resnick's own brand carries the page. */

/* Type: a system sans stack, deliberately — not a placeholder. Genuinely self-contained
   (zero font bytes to ship, no FOUT, no CDN risk) and squarely in the trade-confident
   register (bold grotesque, no flourish). Every device renders its own best-hinted
   equivalent of the same shapes Resnick's own site already uses. */

:root{
  /* brand — Resnick's own, scraped from their logo SVG */
  --red:#B52325;
  --red-dark:#8F1B1D;
  --red-ink-on:#ffffff;
  --teal:#156F81;
  --teal-dark:#0E4E5B;
  --ink:#181510;
  --ink-soft:#4A453E;
  --paper:#FFFFFF;
  --paper-warm:#F7F4EF;
  --paper-deep:#EFEAE1;
  --line:#E2DCD2;
  --gold:#F5A623;

  /* type */
  --font-head:ui-sans-serif,'Helvetica Neue',Helvetica,Arial,system-ui,sans-serif;
  --font-body:ui-sans-serif,'Helvetica Neue',Helvetica,Arial,system-ui,sans-serif;

  /* spacing (8pt-ish rhythm) */
  --sp-1:.5rem; --sp-2:.75rem; --sp-3:1rem; --sp-4:1.5rem; --sp-5:2rem;
  --sp-6:3rem; --sp-7:4.5rem; --sp-8:6rem; --sp-9:8rem;

  /* radius */
  --r-sm:4px; --r-md:8px; --r-lg:14px; --r-pill:999px;

  /* elevation — tinted toward ink, per motion-and-depth.md */
  --e-1:0 1px 2px rgba(24,21,16,.08), 0 1px 1px rgba(24,21,16,.05);
  --e-2:0 2px 4px rgba(24,21,16,.08), 0 6px 16px rgba(24,21,16,.10);
  --e-3:0 4px 10px rgba(24,21,16,.10), 0 14px 32px rgba(24,21,16,.14);
  --e-4:0 10px 20px rgba(24,21,16,.12), 0 28px 56px rgba(24,21,16,.18);

  --ease:cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--font-body); font-size:16px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block}
h1,h2,h3,h4{font-family:var(--font-head); font-weight:800; line-height:1.08; margin:0; letter-spacing:-.01em}
p{margin:0}
a{color:inherit}
.wrap{max-width:1280px; margin:0 auto; padding-inline:var(--sp-5)}
@media (max-width:640px){.wrap{padding-inline:var(--sp-4)}}

.eyebrow{
  display:inline-flex; align-items:center; gap:.5em;
  font-family:var(--font-head); font-weight:700; font-size:.8rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--red);
}
.eyebrow::before{content:"";width:22px;height:2px;background:var(--red)}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  font-family:var(--font-head); font-weight:800; font-size:1rem;
  padding:1rem 1.75rem; border-radius:var(--r-sm); border:2px solid transparent;
  text-decoration:none; cursor:pointer; transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease;
  letter-spacing:.01em;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--red); color:#fff; box-shadow:var(--e-2)}
.btn-primary:hover{background:var(--red-dark); box-shadow:var(--e-3)}
.btn-ghost{background:transparent; color:#fff; border-color:rgba(255,255,255,.55)}
.btn-ghost:hover{background:rgba(255,255,255,.12); border-color:#fff}
.btn-dark{background:var(--ink); color:#fff}
.btn-dark:hover{background:#000}
.btn-block{width:100%}

/* utility bar */
.utility{background:var(--ink); color:#fff; font-size:.82rem}
.utility .wrap{display:flex; align-items:center; justify-content:space-between; padding-block:.5rem; gap:1rem}
.utility a{text-decoration:none; white-space:nowrap}
.utility .u-phone{font-family:var(--font-head); font-weight:800; letter-spacing:.02em; display:flex; align-items:center; gap:.4em}
.utility .u-links{display:flex; gap:1.25rem; align-items:center}
.utility .u-pay{border:1px solid rgba(255,255,255,.4); border-radius:var(--r-pill); padding:.3rem .9rem; font-weight:700}
.utility .u-pay:hover{background:rgba(255,255,255,.12)}
@media (max-width:480px){
  .utility .wrap{font-size:.72rem; gap:.5rem}
  .utility .u-links{gap:.6rem}
  .utility .u-pay{padding:.25rem .6rem}
}

/* generic two-column layout that collapses on small screens */
.split-2{display:grid; grid-template-columns:1.1fr .9fr; gap:3rem; align-items:center}
@media (max-width:860px){.split-2{grid-template-columns:1fr; gap:2rem}}

/* header/nav */
header.site{position:sticky; top:0; z-index:40; background:#fff; border-bottom:1px solid var(--line); transition:padding .2s var(--ease), box-shadow .2s var(--ease)}
header.site.condensed{box-shadow:var(--e-2)}
.nav{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; padding-block:1.1rem; transition:padding .2s var(--ease); row-gap:.75rem}
header.site.condensed .nav{padding-block:.65rem}
.logo{display:flex; align-items:center; gap:.6rem; font-family:var(--font-head); font-weight:800; font-size:1.15rem; text-decoration:none; color:var(--ink)}
.logo .mark{width:38px; height:38px; border-radius:8px; background:var(--red); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.2rem}
.logo b{color:var(--red)}
.navlinks{display:flex; gap:1.75rem; list-style:none; margin:0; padding:0; font-weight:600; font-size:.92rem}
.navlinks a{text-decoration:none; opacity:.85}
.navlinks a:hover{opacity:1; color:var(--red)}
.navcta{display:flex; align-items:center; gap:1rem}
.navphone{display:flex; align-items:center; gap:.5em; font-family:var(--font-head); font-weight:800; color:var(--ink); text-decoration:none}
.navphone svg{color:var(--red)}
/* No JS-driven hamburger in this concept: rather than hide nav links with no way to
   reach them on mobile, the link row wraps to its own full-width line instead. Every
   link stays reachable at every breakpoint — nothing gets dropped silently. */
@media (max-width:900px){
  .navphone{display:none}
  .navlinks{order:3; width:100%; justify-content:center; gap:1rem; font-size:.82rem; flex-wrap:wrap;
            padding-top:.75rem; border-top:1px solid var(--line)}
}

/* proof cluster — the non-negotiable hero element */
.proof-cluster{display:flex; flex-wrap:wrap; align-items:center; gap:1.1rem}
.proof-badges{display:flex; flex-wrap:wrap; align-items:center; gap:.6rem}
.proof-badges img{height:56px; width:auto; border-radius:50%}
.proof-rating{display:flex; align-items:center; gap:.6rem; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2); border-radius:var(--r-md); padding:.55rem .9rem}
.proof-rating .stars{color:var(--gold); letter-spacing:.05em}
.proof-rating strong{font-family:var(--font-head)}
.proof-rating small{opacity:.75; display:block; font-size:.72rem}

/* stat counters */
.stat{font-family:var(--font-head); font-weight:800; font-size:clamp(1.8rem,3vw,2.6rem)}
.stat-label{font-size:.82rem; opacity:.75; font-weight:600}

/* cards */
.card{background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--e-1); transition:transform .22s var(--ease), box-shadow .22s var(--ease)}
.card:hover{transform:translateY(-5px); box-shadow:var(--e-3)}

/* motion: scroll reveal */
.rise{opacity:0; transform:translateY(20px); transition:opacity .6s var(--ease), transform .6s var(--ease)}
.rise.in{opacity:1; transform:none}
@media (prefers-reduced-motion:reduce){ .rise{opacity:1!important; transform:none!important; transition:none!important} }
noscript .rise{opacity:1; transform:none}

/* hero drift */
@keyframes drift{from{transform:scale(1.07)} to{transform:scale(1)}}
.hero-drift{animation:drift 20s ease-out both}
@media (prefers-reduced-motion:reduce){ .hero-drift{animation:none} }

@keyframes rise-once{from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none}}
/* on-load entrance for content guaranteed to be in the initial viewport (hero) —
   deterministic CSS animation, not IntersectionObserver-gated, so it never depends
   on scroll-threshold timing the way .rise does. */
.enter{animation:rise-once .7s var(--ease) both}
@media (prefers-reduced-motion:reduce){ .enter{animation:none} }

/* section chrome */
.section{padding-block:var(--sp-8)}
@media (max-width:640px){.section{padding-block:var(--sp-6)}}
.section-dark{background:var(--ink); color:#fff}
.section-teal{background:var(--teal); color:#fff}
.section-warm{background:var(--paper-warm)}
.h2{font-size:clamp(1.9rem,3.4vw,2.9rem)}
.lede{font-size:1.1rem; color:var(--ink-soft); max-width:60ch}
.section-dark .lede,.section-teal .lede{color:rgba(255,255,255,.82)}

/* pill chips under CTA / trust strip */
.chips{display:flex; flex-wrap:wrap; gap:.5rem}
.chip{display:inline-flex; align-items:center; gap:.4em; border:1px solid var(--line); border-radius:var(--r-pill); padding:.4rem .85rem; font-size:.8rem; font-weight:700; background:#fff; white-space:nowrap}
.chip.on-dark{border-color:rgba(255,255,255,.3); background:rgba(255,255,255,.06); color:#fff}

/* footer */
footer.site{background:var(--ink); color:#fff}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:var(--sp-6); padding-block:var(--sp-8)}
@media (max-width:900px){.foot-grid{grid-template-columns:1fr 1fr; row-gap:var(--sp-5)}}
@media (max-width:520px){.foot-grid{grid-template-columns:1fr}}
.foot-grid h4{font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:1rem; color:rgba(255,255,255,.6)}
.foot-grid ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.6rem; font-size:.92rem}
.foot-grid a{text-decoration:none; opacity:.9}
.foot-grid a:hover{opacity:1; text-decoration:underline}
.foot-bottom{border-top:1px solid rgba(255,255,255,.12); padding-block:1.25rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; font-size:.82rem; opacity:.75}
.arc-credit{display:flex; align-items:center; gap:.5em; font-weight:700}
.arc-credit b{color:#FF0E63}

/* placeholder-question flag */
.qflag{outline:2px dashed var(--gold); outline-offset:4px; position:relative}
.qflag::after{content:"OPEN QUESTION — see NOTES.md"; position:absolute; top:-1.6rem; left:0; background:var(--gold); color:#3a2600; font-size:.65rem; font-weight:800; padding:.15rem .5rem; border-radius:4px; white-space:nowrap; z-index:5}

/* lightbox (CSS-only) */
.lightbox{position:fixed; inset:0; background:rgba(10,9,7,.92); display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .25s ease; z-index:100; padding:2rem}
.lightbox:target{opacity:1; pointer-events:auto}
.lightbox img{max-width:min(1100px,92vw); max-height:88vh; border-radius:var(--r-md); box-shadow:var(--e-4)}
.lightbox .lb-close{position:absolute; top:1.5rem; right:1.5rem; width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.15); color:#fff; display:flex; align-items:center; justify-content:center; text-decoration:none; font-size:1.4rem}
.gallery-thumb{position:relative; display:block; overflow:hidden; border-radius:var(--r-md); cursor:zoom-in}
.gallery-thumb img{transition:transform .35s var(--ease)}
.gallery-thumb:hover img{transform:scale(1.06)}
.gallery-thumb .zoom{position:absolute; inset:auto .75rem .75rem auto; width:34px; height:34px; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; display:flex; align-items:center; justify-content:center; font-size:.9rem}

.skip-link{position:absolute; left:-999px; top:0; background:var(--red); color:#fff; padding:.75rem 1.25rem; z-index:200}
.skip-link:focus{left:1rem; top:1rem}

/* ============================================================
   Shared page components — reused across all three directions.
   (A direction's own <style> block adds only what's unique to it;
   anything here is content default, not a per-direction choice.)
   ============================================================ */

/* full-bleed photo band (stat bands, awards wall, closing CTA) */
.band{position:relative; color:#fff; padding-block:clamp(3.5rem,7vw,5.5rem)}
.band-bg{position:absolute; inset:0}
.band-bg img{width:100%; height:100%; object-fit:cover}
.band-scrim{position:absolute; inset:0; background:rgba(14,12,9,.72)}
.band-inner{position:relative; z-index:2}
.statgrid{display:grid; grid-template-columns:repeat(4,1fr); gap:2rem; text-align:center; margin-top:2rem}
@media (max-width:760px){.statgrid{grid-template-columns:1fr 1fr}}

.cta-band{position:relative; color:#fff; padding-block:clamp(4rem,8vw,6.5rem); text-align:center}
.cta-band .band-bg img{filter:saturate(1.05)}
.cta-band h2{font-size:clamp(2rem,4vw,3.1rem); max-width:26ch; margin-inline:auto}
.cta-band .btn{margin-top:2rem}

.rating-row{display:flex; gap:1rem; flex-wrap:wrap; margin-top:1rem}
.rating-row .proof-rating{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.18)}

/* awards */
.awards-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(96px,1fr)); gap:1.5rem; align-items:center; margin-top:2.25rem}
.awards-grid img{width:100%; height:auto; max-width:96px; margin:0 auto; border-radius:50%; box-shadow:var(--e-2)}
.award-rect{max-width:130px!important; border-radius:var(--r-sm)!important}

/* generic split two-column info block (image + copy) */
.alt-block{display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,5vw,4.5rem); align-items:center}
@media (max-width:880px){.alt-block{grid-template-columns:1fr}}
.alt-block img{border-radius:var(--r-lg); box-shadow:var(--e-3); width:100%; aspect-ratio:4/3; object-fit:cover}
.alt-block.rev{grid-template-columns:1fr 1fr}
.alt-block.rev .alt-media{order:2}
@media (max-width:880px){.alt-block.rev .alt-media{order:0}}

/* offers + services grids */
.offers-grid,.services-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:1.75rem; margin-top:2.25rem}
@media (max-width:900px){.offers-grid{grid-template-columns:1fr}}
@media (max-width:900px){.services-grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.services-grid{grid-template-columns:1fr}}
.offer-card{overflow:hidden}
.offer-card img{aspect-ratio:16/10; object-fit:cover}
.offer-card .oc-body{padding:1.5rem}
.service-card{padding:0; overflow:hidden}
.service-card img{aspect-ratio:5/4; object-fit:cover}
.service-card .sc-body{padding:1.5rem}
.service-card h3{font-size:1.2rem}
.service-card p{margin-top:.6rem; font-size:.95rem; color:var(--ink-soft)}

/* 3-step approach */
.approach-steps{display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; margin-top:2.25rem}
@media (max-width:760px){.approach-steps{grid-template-columns:1fr}}
.approach-steps .step{border-top:3px solid var(--red); padding-top:1rem}
.approach-steps .num{font-family:var(--font-head); font-weight:900; font-size:2rem; color:var(--red)}

/* thumbnail galleries (lightbox grid) */
.gallery-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:1.1rem; margin-top:2.25rem}
@media (max-width:760px){.gallery-grid{grid-template-columns:1fr 1fr}}
.gallery-grid img{aspect-ratio:1/1; object-fit:cover; width:100%}

/* benefits / "what makes us stand out" */
.benefits-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:1.5rem; margin-top:2.25rem}
@media (max-width:980px){.benefits-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:640px){.benefits-grid{grid-template-columns:1fr 1fr}}
.benefit{text-align:left}
.benefit .bicon{width:44px; height:44px; margin-bottom:1rem}
.benefit h3{font-size:1rem}
.benefit p{font-size:.88rem; color:var(--ink-soft); margin-top:.5rem}

/* service areas */
.areas-wrap{display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center}
@media (max-width:880px){.areas-wrap{grid-template-columns:1fr}}
.areas-wrap img{border-radius:var(--r-lg); box-shadow:var(--e-3)}
.town-list{display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.5rem}

/* boxed quote form (hero card variant) */
.quote-panel{background:#fff; color:var(--ink); border-radius:var(--r-lg); padding:1.75rem; box-shadow:var(--e-4)}
.quote-panel h3{font-size:1.15rem}
.quote-panel .sub{font-size:.85rem; color:var(--ink-soft); margin-top:.35rem}
.field{display:flex; flex-direction:column; gap:.35rem; margin-top:1rem}
.field label{font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-soft)}
.field input,.field select{border:1.5px solid var(--line); border-radius:var(--r-sm); padding:.75rem .9rem; font:inherit; font-size:.95rem}
.field input:focus,.field select:focus{outline:2px solid var(--teal); outline-offset:1px}
.quote-panel form .btn{margin-top:1.25rem}
.quote-panel .formnote{font-size:.72rem; color:var(--ink-soft); margin-top:.6rem; text-align:center}
