/* ==========================================================================
   /contractors: HCS Contractor Essential, for US roofing contractors (Nov 25, 2026)
   Loaded only on this page (head_extra in site-src/build.py, hash-stamped). Page classes are
   prefixed .ct-; the fictional roofing concept inside the hero is .rm-. Tokens and shared
   components (.label, .lede, .btn, .panel-box, .faq-*, .steps, .demo-form) come from site.css.
   Mobile first: 720px tablet, 1080px desktop.
   ========================================================================== */

/* ---------- sections: surface and surface-2 alternate, a hairline between ---------- */
.ct-sec{position:relative;padding:clamp(4.5rem,10vw,8rem) var(--gutter);background:var(--surface);border-top:1px solid var(--line)}
.ct-faq{overflow-x:clip}   /* FAQ rows slide in from x:44 (site.js), clipped like the homepage .faq */
.ct-alt{background:var(--surface-2)}
.ct-head{max-width:62rem;margin-bottom:clamp(2.4rem,5vw,4rem)}
.ct-head h2,.ct-faq .faq-head h2{margin-top:1.1rem;font-size:clamp(2.3rem,5.6vw,4.6rem);line-height:.98;letter-spacing:-.018em}
.ct-head .lede{margin-top:1.3rem;max-width:58ch}
.ct-c{margin-left:auto;margin-right:auto;text-align:center}
.ct-c .lede{margin-left:auto;margin-right:auto}
.ct-split{display:grid;gap:1.4rem 4rem}
@media (min-width:1080px){.ct-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end}.ct-split .ct-head{margin-bottom:0}}
.ct-body{font-size:clamp(1.02rem,1.3vw,1.15rem);line-height:1.65;max-width:60ch}
.ct-note{margin-top:1.8rem;max-width:72ch;font-size:.86rem;line-height:1.55;color:var(--muted)}

/* ---------- hero ---------- */
.ct-hero{position:relative;overflow:hidden;isolation:isolate;padding:clamp(6.5rem,14vw,9.5rem) var(--gutter) clamp(3.5rem,8vw,6rem);background:var(--surface)}
.ct-hero-grid{display:grid;gap:clamp(2.6rem,6vw,3.5rem);align-items:center}
@media (min-width:1080px){.ct-hero-grid{grid-template-columns:minmax(0,55fr) minmax(0,45fr);gap:clamp(2rem,4vw,4.5rem)}}
.ct-hero h1{margin-top:1.2rem;font-size:clamp(2.1rem,6.2vw,4.6rem);line-height:1.04;letter-spacing:-.015em;-webkit-hyphens:none;hyphens:none}
@media (min-width:1080px){.ct-hero h1{max-width:16ch}}
.ct-hero .lede{margin-top:1.4rem;max-width:46ch}
.ct-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:2rem}
@media (max-width:479px){.ct-actions .btn{width:100%}}
.ct-where{margin-top:1.6rem;max-width:52ch;font-size:.82rem;line-height:1.5;letter-spacing:.03em;color:var(--muted)}

/* ---------- hero concept: a fictional roofer's homepage on a laptop and a phone (no images) ---------- */
.ct-fig{position:relative;margin:0;width:100%;max-width:640px;justify-self:center}
.ct-mock{position:relative;aspect-ratio:5/4}
.ct-mock::before{content:"";position:absolute;left:-8%;right:-8%;top:-8%;bottom:-4%;background:radial-gradient(closest-side,rgba(var(--glow-rgb),.3),transparent 74%);pointer-events:none}
:root[data-theme="light"] .ct-mock::before{background:radial-gradient(closest-side,rgba(var(--glow-rgb),.16),transparent 74%)}
.ct-cap{margin-top:1rem;text-align:center;font-size:.7rem;font-weight:500;letter-spacing:.22em;text-transform:uppercase;color:var(--muted)}
.rm-lap{position:absolute;left:0;top:5%;width:86%}
.rm-scr{position:relative;aspect-ratio:16/10;border:clamp(4px,1vw,7px) solid #0b0b0d;border-bottom-width:clamp(6px,1.4vw,10px);border-radius:10px 10px 0 0;background:#F6F6F7;overflow:hidden;container-type:inline-size;box-shadow:0 40px 70px -40px rgba(0,0,0,.8)}
.rm-base{height:clamp(6px,1.4vw,10px);margin:0 -7%;border-radius:0 0 12px 12px;background:linear-gradient(#9A9CA3,#2A2A2E)}
.rm-ph{position:absolute;right:0;bottom:3%;width:27%;aspect-ratio:9/19;border:4px solid #0b0b0d;border-radius:16px;background:#F6F6F7;overflow:hidden;container-type:inline-size;box-shadow:0 30px 50px -24px rgba(0,0,0,.85)}
.rm-site{position:absolute;inset:0;display:flex;flex-direction:column;font-family:var(--sans);color:#111114;line-height:1.2;text-align:left}
.rm-nav{flex:none;display:flex;align-items:center;gap:2cqw;height:8.5cqw;padding:0 4cqw;background:#FFFFFF;border-bottom:1px solid #E3E4E7}
.rm-logo{display:flex;align-items:center;gap:1.2cqw;font-size:2.2cqw;font-weight:600;letter-spacing:.02em;white-space:nowrap}
.rm-mk{display:block;width:3.4cqw;height:2.8cqw;background:#2A2A2E;clip-path:polygon(50% 0,100% 58%,84% 58%,84% 100%,16% 100%,16% 58%,0 58%)}
.rm-links{display:flex;gap:2.4cqw;margin-left:auto}
.rm-links i{display:block;width:5.5cqw;height:.9cqw;border-radius:1cqw;background:#C6C8CE}
.rm-pill{padding:.9cqw 2cqw;border:1px solid #9A9CA3;border-radius:5cqw;font-size:1.6cqw;font-weight:600;white-space:nowrap}
.rm-hero{position:relative;flex:1 1 auto;padding:5cqw 5cqw 0;background:linear-gradient(170deg,#4a4e57,#2c2f35 55%,#1d1f23);overflow:hidden;color:#FFFFFF}
.rm-h{position:relative;z-index:1;display:block;max-width:54%;font-size:4.4cqw;font-weight:600;line-height:1.06;letter-spacing:-.01em}
.rm-l{display:block;width:34%;height:1cqw;margin-top:2cqw;border-radius:1cqw;background:rgba(255,255,255,.45)}
.rm-btn{position:relative;z-index:1;display:inline-block;margin-top:3cqw;padding:1.5cqw 2.6cqw;border-radius:5cqw;background:#7A3CFF;color:#FFFFFF;font-size:1.7cqw;font-weight:600;letter-spacing:.04em;white-space:nowrap}
.rm-roof{position:absolute;left:0;right:0;bottom:0;height:56%;background:#16181C;clip-path:polygon(0 100%,0 88%,44% 88%,44% 62%,55% 30%,66% 62%,66% 50%,80% 6%,94% 50%,94% 64%,100% 64%,100% 100%)}
.rm-tiles{flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2cqw;padding:2.6cqw 5cqw 1.6cqw}
.rm-tiles span{display:flex;flex-direction:column;gap:1.2cqw;padding:1.8cqw;border:1px solid #E3E4E7;border-radius:1.4cqw;background:#FFFFFF;font-size:1.65cqw;font-weight:600;white-space:nowrap}
.rm-tiles i{display:block;width:3.4cqw;height:3.4cqw;border-radius:.8cqw;background:#E3E4E7}
.rm-rev{flex:none;display:flex;align-items:center;gap:2cqw;padding:0 5cqw 2.6cqw}
.rm-rev .rm-l{width:22%;margin:0;background:#C6C8CE}
.rm-stars{display:block;width:13cqw;height:2.6cqw;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5l2.6 5.6 6 .7-4.5 4.1 1.2 6-5.3-3-5.3 3 1.2-6L1.4 7.8l6-.7z' fill='%232A2A2E'/%3E%3C/svg%3E") 0 50%/2.6cqw 2.6cqw repeat-x}
.rm-bg{display:block;margin-left:auto;width:7cqw;height:5cqw;background:linear-gradient(#2A2A2E,#2A2A2E) 0 0/100% 1.1cqw no-repeat,linear-gradient(#2A2A2E,#2A2A2E) 0 50%/100% 1.1cqw no-repeat,linear-gradient(#2A2A2E,#2A2A2E) 0 100%/100% 1.1cqw no-repeat}
.rm-ph .rm-nav{height:15cqw;padding:0 6cqw}
.rm-ph .rm-logo{font-size:6cqw;gap:3cqw}
.rm-ph .rm-mk{width:8cqw;height:6.6cqw}
.rm-ph .rm-hero{flex:none;height:96cqw;padding:9cqw 7cqw 0}
.rm-ph .rm-h{max-width:none;font-size:11cqw}
.rm-ph .rm-l{width:60%;height:2.4cqw;margin-top:5cqw}
.rm-ph .rm-btn{margin-top:7cqw;padding:3.6cqw 5.5cqw;font-size:5cqw}
.rm-ph .rm-roof{height:30%}
.rm-ph .rm-tiles{grid-template-columns:minmax(0,1fr);gap:3cqw;padding:6cqw 7cqw 3cqw}
.rm-ph .rm-tiles span{flex-direction:row;align-items:center;gap:3.5cqw;padding:3.6cqw 4cqw;border-radius:3.6cqw;font-size:5cqw}
.rm-ph .rm-tiles i{width:7cqw;height:7cqw;border-radius:2cqw}
.rm-ph .rm-rev{padding:2cqw 7cqw}
.rm-ph .rm-stars{width:32cqw;height:6.4cqw;background-size:6.4cqw 6.4cqw}
.rm-call{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:3cqw;height:17cqw;padding:0 5cqw;background:#111114;color:#FFFFFF;font-size:5cqw;font-weight:600}
.rm-call .rm-btn{margin:0;padding:3cqw 4.5cqw;font-size:4.6cqw}

/* ---------- the studio: three commitments ---------- */
.ct-commit{list-style:none;margin:clamp(2.4rem,5vw,3.6rem) 0 0;padding:0;display:grid;gap:1rem}
@media (min-width:720px){.ct-commit{grid-template-columns:repeat(3,minmax(0,1fr))}}
.ct-commit li{padding:clamp(1.4rem,3vw,2rem);border:1px solid var(--line-2);border-radius:20px;background:var(--surface)}
.ct-commit h3{font-size:clamp(1.5rem,2.4vw,1.9rem);line-height:1.05}
.ct-commit p{margin-top:.7rem;line-height:1.55}

/* ---------- services: 2 columns, 3 on tablet, 5 x 2 on desktop ---------- */
.ct-svc{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.ct-svc li{display:flex;flex-direction:column;gap:.75rem;padding:clamp(1rem,2.4vw,1.5rem);border:1px solid var(--line);border-radius:18px;background:var(--surface-2)}
.ct-svc svg{width:28px;height:28px;flex:none;fill:none;stroke:var(--muted);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ct-svc h3{font-size:clamp(1.15rem,1.6vw,1.35rem);line-height:1.1}
.ct-svc p{font-size:.9rem;line-height:1.5}
@media (min-width:720px){
  .ct-svc{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
  .ct-svc li:last-child{grid-column:1/-1;flex-direction:row;align-items:center;gap:1.2rem}
  .ct-svc li:last-child h3{min-width:12rem}
}
@media (min-width:1080px){
  .ct-svc{grid-template-columns:repeat(5,minmax(0,1fr))}
  .ct-svc li:last-child{grid-column:auto;flex-direction:column;align-items:stretch;gap:.75rem}
  .ct-svc li:last-child h3{min-width:0}
}

/* ---------- work: three static cards ---------- */
.ct-work{list-style:none;margin:0;padding:0;display:grid;gap:1.2rem}
.ct-wcard{display:grid;gap:1.2rem;align-content:start;padding:.75rem .75rem 1.4rem;border:1px solid var(--line);border-radius:24px;background:var(--surface)}
.ct-wv{position:relative;height:220px;border-radius:18px;overflow:hidden;background:#1d1d21;container-type:size}
.ct-wtxt{display:grid;gap:.6rem;align-content:start;justify-items:start;padding:0 .75rem}
.ct-wtxt h3{margin-top:.3rem;font-size:clamp(1.5rem,2.2vw,1.9rem);line-height:1.05}
.ct-wloc{font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.ct-wtxt p:not(.ct-wloc){line-height:1.55}
@media (min-width:720px) and (max-width:1079px){.ct-wcard{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;padding:.75rem}}
@media (min-width:1080px){.ct-work{grid-template-columns:repeat(3,minmax(0,1fr))}.ct-wv{height:250px}}

/* ---------- process: the stacked list only (no pinned stage on this page) ---------- */
.ct-proc .steps{padding:0;max-width:none}
@media (min-width:768px){.ct-proc .step{grid-template-columns:auto minmax(0,1fr) minmax(0,440px)}}

/* ---------- pricing: one centred card ---------- */
.ct-price{max-width:760px;margin:0 auto;padding:clamp(1.5rem,5vw,3.2rem);border:1px solid var(--line-2);border-radius:28px;background:var(--surface)}
.ct-price-k{font-size:.72rem;font-weight:500;letter-spacing:.3em;text-transform:uppercase;color:var(--muted)}
.ct-price-n{margin-top:.6rem;font-family:var(--serif);font-weight:600;font-size:clamp(2.6rem,7vw,4rem);line-height:1;letter-spacing:-.01em;color:var(--text);font-variant-numeric:lining-nums;font-feature-settings:"lnum" 1}
.ct-price-n span{margin-left:.35em;font-family:var(--sans);font-size:.3em;font-weight:500;letter-spacing:.2em;color:var(--muted);vertical-align:.45em}
.ct-price-sub{margin-top:.9rem;max-width:52ch;line-height:1.55}
.ct-inc-h{margin-top:2rem;padding-top:1.6rem;border-top:1px solid var(--line);font-size:clamp(1.4rem,2.4vw,1.75rem)}
.ct-inc{list-style:none;margin:1.1rem 0 0;padding:0;display:grid;gap:.7rem 2rem}
.ct-inc li{display:flex;align-items:flex-start;gap:.7rem;line-height:1.45}
.ct-inc svg{flex:none;width:18px;height:18px;margin-top:.12em;fill:none;stroke:var(--accent-text);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (min-width:720px){.ct-inc{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ct-price .btn{margin-top:1.8rem}

/* ---------- consultation band + form ---------- */
.ct-consult{position:relative;overflow:hidden;isolation:isolate;padding:clamp(4.5rem,10vw,8rem) var(--gutter);background:var(--surface);border-top:1px solid var(--line)}
.ct-consult-grid{display:grid;gap:2.6rem clamp(2rem,6vw,6rem);align-items:start}
@media (min-width:1080px){.ct-consult-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}}
.ct-consult h2{margin-top:1.1rem;font-size:clamp(2.2rem,5vw,4.2rem);line-height:1;letter-spacing:-.018em}
.ct-consult .lede{margin-top:1.4rem;max-width:44ch}
.ct-direct{margin-top:2.2rem;padding-top:1.6rem;border-top:1px solid var(--line)}
.ct-direct-k{font-size:.72rem;font-weight:500;letter-spacing:.24em;text-transform:uppercase;color:var(--muted)}
.ct-mailrow{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1rem;margin-top:.5rem}
.ct-mail{display:inline-flex;align-items:center;min-height:44px;font-size:clamp(1rem,1.8vw,1.2rem);font-weight:500;color:var(--text);overflow-wrap:anywhere;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:4px}
.ct-mail:hover{text-decoration-color:currentColor}
.ct-copy{display:inline-flex;align-items:center;min-height:44px;padding:0 1.1rem;border:1px solid var(--line-2);border-radius:999px;background:transparent;color:var(--text);font-size:.72rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;cursor:pointer;transition:border-color .25s}
.ct-copy:hover{border-color:var(--text)}
.ct-copied{font-size:.82rem;color:var(--muted)}
.ct-fields{display:grid;gap:1rem}
@media (min-width:720px){.ct-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.ct-fields .ct-span{grid-column:1/-1}}
.ct-form .field textarea{min-height:80px}
.ct-form-actions{align-items:center;gap:.4rem 1.4rem}
.ct-linkbtn{border:0;background-color:transparent;padding:0;cursor:pointer}
.ct-box .form-done [data-for]{display:none}
.ct-box[data-via="mail"] .form-done [data-for="mail"],.ct-box[data-via="wa"] .form-done [data-for="wa"]{display:block}
.ct-box .form-done strong{color:var(--text);font-weight:600;overflow-wrap:anywhere}
.ct-box .form-done .ct-mailrow{margin-top:1rem}
.ct-box .form-done .ct-linkbtn{margin-top:.6rem}

/* ---------- phones: a bottom bar between the hero and the form (replaces the header button) ---------- */
.ct-bar{display:none}
@media (max-width:719px){
  html{scroll-padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .site-head .head-cta{display:none}
  .ct-bar{position:fixed;left:0;right:0;bottom:0;z-index:44;display:flex;align-items:center;gap:.6rem;min-height:64px;padding:10px var(--gutter) calc(10px + env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--line);visibility:hidden;transform:translate3d(0,100%,0);transition:transform .4s var(--ease-out),visibility 0s linear .4s}
  .ct-bar.is-on{visibility:visible;transform:none;transition:transform .45s var(--ease-out),visibility 0s}
  .ct-bar .btn-accent{flex:1 1 auto}
  html.has-dialog .ct-bar{visibility:hidden}
}
