/* NorthStar Air Source Heat Pumps York
   Palette taken from the job itself: winter slate, frost, York stone,
   and the red-on-yellow rotary isolator that sits beside every outdoor unit. */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --slate:#16212b;--slate2:#22313d;--slate3:#33444f;
  --frost:#eef2f3;--white:#fff;--stone:#e6e1d6;--stone2:#d3ccbd;
  --red:#cf2a2f;--red-dk:#a51e22;--yellow:#f3c21c;--yellow-lt:#f8d65e;
  --text:#16212b;--muted:#4f5d68;--dim:#9fb0bb;--line:#cfd7db;
  --wrap:1180px;--r:6px;
  --head:'Archivo',system-ui,-apple-system,'Segoe UI',sans-serif;
  --body:'Atkinson Hyperlegible',system-ui,-apple-system,'Segoe UI',sans-serif;
}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--body);font-size:1.0625rem;line-height:1.6;color:var(--text);background:var(--frost);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
.wrap{width:min(var(--wrap),92%);margin-inline:auto}
h1,h2,h3,h4{font-family:var(--head);font-stretch:112%;font-weight:800;line-height:1.06;letter-spacing:-.02em}
h1{font-size:clamp(2.35rem,5.6vw,4.3rem);letter-spacing:-.035em}
h2{font-size:clamp(1.8rem,3.6vw,2.7rem);letter-spacing:-.03em}
h3{font-size:1.18rem;line-height:1.2}
h4{font-size:.95rem}
p{max-width:66ch}
p+p{margin-top:.9rem}
.lead{font-size:1.2rem;color:var(--muted)}
.muted{color:var(--muted)}
strong{font-weight:700}
:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.skip{position:absolute;left:-9999px}
.skip:focus{left:1rem;top:1rem;z-index:300;background:var(--white);padding:.7rem 1rem}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- isolator mark ---------- */
.iso{width:40px;height:40px;background:var(--yellow);border-radius:5px;display:grid;place-items:center;flex-shrink:0;
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.08)}
.iso i{width:28px;height:28px;border-radius:50%;background:var(--red);position:relative;display:block}
.iso i::after{content:"";position:absolute;left:50%;top:3px;width:7px;height:22px;margin-left:-3.5px;border-radius:3px;
  background:var(--yellow);transform:rotate(0deg);transition:transform .7s cubic-bezier(.3,1.4,.5,1)}
.iso.off i::after{transform:rotate(-90deg)}

/* ---------- top bar & header ---------- */
.topbar{background:var(--slate);color:#dfe7eb;font-size:.9rem}
.topbar .wrap{display:flex;gap:1rem;justify-content:space-between;align-items:center;padding:.5rem 0;flex-wrap:wrap}
.topbar b{color:var(--yellow)}
.topbar a{color:#fff;font-weight:700;text-decoration:none}
.hdr{position:sticky;top:0;z-index:60;background:var(--white);border-bottom:1px solid var(--line)}
.hdr-in{display:flex;align-items:center;gap:1.2rem;min-height:72px}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;flex-shrink:0}
.brand span{font-family:var(--head);font-stretch:110%;font-weight:800;font-size:1.12rem;line-height:1.05;letter-spacing:-.02em}
.brand small{display:block;font-family:var(--body);font-weight:400;font-size:.8rem;color:var(--muted);letter-spacing:0;font-stretch:100%}
nav.main{margin-left:auto;display:flex;gap:.2rem}
nav.main a{text-decoration:none;font-weight:700;font-size:.92rem;padding:.55rem .6rem;border-radius:var(--r);white-space:nowrap}
nav.main a:hover{background:var(--frost)}
nav.main a[aria-current="page"]{background:var(--slate);color:#fff}
.hdr-tel{font-family:var(--head);font-weight:800;font-stretch:108%;text-decoration:none;white-space:nowrap;font-size:1.05rem;
  padding:.6rem .95rem;border-radius:var(--r);background:var(--yellow)}
.hdr-tel:hover{background:var(--yellow-lt)}
.burger{display:none;margin-left:auto;background:none;border:2px solid var(--slate);border-radius:var(--r);
  width:46px;height:46px;cursor:pointer;place-items:center}
.burger span{display:block;width:20px;height:2px;background:var(--slate);margin:4px auto}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:50px;padding:.8rem 1.4rem;
  font-family:var(--head);font-stretch:108%;font-weight:800;font-size:1rem;text-decoration:none;border-radius:var(--r);
  border:2px solid transparent;cursor:pointer;transition:background .15s,border-color .15s}
.btn-y{background:var(--yellow);color:var(--slate)}
.btn-y:hover{background:var(--yellow-lt)}
.btn-r{background:var(--red);color:#fff}
.btn-r:hover{background:var(--red-dk)}
.btn-o{border-color:currentColor;background:transparent}
.btn-o:hover{background:rgba(127,140,150,.14)}
.btns{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.6rem}
.btn-wide{width:100%}

/* ---------- hero ---------- */
.hero{padding:clamp(2rem,5vw,4rem) 0 clamp(2.5rem,5vw,4.5rem)}
.hero-g{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.hero h1{margin:.2rem 0 1.1rem;max-width:15ch}
.hero .place{font-weight:700;color:var(--red-dk);font-size:1rem}
.hero-photo{position:relative;border-radius:10px;overflow:hidden;aspect-ratio:4/5;background:var(--stone)}
.hero-photo img{width:100%;height:100%;object-fit:cover}
.plate{position:absolute;left:1rem;bottom:1rem;right:1rem;background:rgba(22,33,43,.9);color:#fff;border-radius:var(--r);
  padding:.75rem .9rem;display:flex;gap:.75rem;align-items:center;font-size:.92rem;line-height:1.35}
.plate .iso{width:34px;height:34px}
.plate .iso i{width:24px;height:24px}
.plate .iso i::after{top:3px;height:18px;width:6px;margin-left:-3px}
.grantline{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);
  border-radius:var(--r);overflow:hidden;margin-top:2rem;max-width:620px}
.grantline div{background:var(--white);padding:.85rem 1rem}
.grantline b{display:block;font-family:var(--head);font-stretch:112%;font-weight:800;font-size:1.55rem;letter-spacing:-.03em;line-height:1.1}
.grantline span{font-size:.85rem;color:var(--muted);line-height:1.3;display:block}

.phead{padding:clamp(2rem,4.5vw,3.5rem) 0}
.phead-g{display:grid;grid-template-columns:1.2fr .8fr;gap:2.5rem;align-items:end}
.phead h1{font-size:clamp(2.1rem,4.8vw,3.6rem);max-width:18ch;margin-bottom:1rem}
.phead .crumbs{font-size:.9rem;color:var(--muted);margin-bottom:.8rem}
.phead .crumbs a{color:var(--muted)}
.phead-img{border-radius:10px;overflow:hidden;aspect-ratio:4/3}
.phead-img img{width:100%;height:100%;object-fit:cover}

/* ---------- sections ---------- */
.sec{padding:clamp(3rem,7vw,5.5rem) 0}
.sec-w{background:var(--white)}
.sec-s{background:var(--stone)}
.sec-d{background:var(--slate);color:#e3eaee}
.sec-d p,.sec-d .muted,.sec-d .lead{color:#b7c5ce}
.sec-d h2,.sec-d h3{color:#fff}
.shead{max-width:720px;margin-bottom:2.4rem}
.shead h2{margin-bottom:.8rem}
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.split-top{align-items:start}
.split .ph{border-radius:10px;overflow:hidden}
.split .ph img{width:100%;aspect-ratio:4/5;object-fit:cover}
.g2{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem}
.g3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.g4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem}

/* path cards (home: the four questions) */
.path{display:flex;flex-direction:column;background:var(--white);border-radius:10px;overflow:hidden;text-decoration:none;
  border:1px solid var(--line);transition:border-color .15s}
.path:hover{border-color:var(--slate)}
.path img{aspect-ratio:1/1;object-fit:cover;width:100%}
.path div{padding:1rem 1.1rem 1.2rem}
.path h3{margin-bottom:.3rem}
.path p{font-size:.95rem;color:var(--muted)}

/* ticks */
.ticks{list-style:none;display:grid;gap:1rem;margin-top:1.5rem}
.ticks li{display:grid;grid-template-columns:26px 1fr;gap:.8rem;align-items:start}
.ticks li::before{content:"";width:22px;height:22px;margin-top:.15rem;border-radius:50%;background:var(--yellow);
  box-shadow:inset 0 0 0 6px var(--yellow),inset 0 0 0 11px var(--red)}
.ticks li>span{color:inherit}
.ticks b{display:block;color:var(--text)}
.sec-d .ticks b{color:#fff}
.ticks span{color:var(--muted);font-size:.98rem}
.sec-d .ticks span{color:#b7c5ce}

/* grant figures */
.figs{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.fig{border-radius:10px;padding:1.5rem;background:var(--slate2);border-top:5px solid var(--yellow)}
.fig.red{border-top-color:var(--red)}
.fig b{display:block;font-family:var(--head);font-stretch:115%;font-weight:800;font-size:clamp(2.2rem,4vw,3rem);
  letter-spacing:-.04em;line-height:1;color:#fff;margin-bottom:.6rem}
.fig h3{font-size:1.02rem;margin-bottom:.4rem}
.fig p{font-size:.96rem}
.sec-w .fig,.sec-s .fig{background:var(--white);border:1px solid var(--line);border-top-width:5px}
.sec-w .fig b,.sec-s .fig b{color:var(--slate)}
.note{border-left:4px solid var(--yellow);background:var(--white);padding:1.2rem 1.4rem;border-radius:0 var(--r) var(--r) 0;margin-top:2rem}
.sec-d .note{background:var(--slate2)}
.note h3{margin-bottom:.5rem}

/* numbered steps — real sequences only */
.steps{list-style:none;counter-reset:s;display:grid;gap:0}
.steps li{counter-increment:s;display:grid;grid-template-columns:64px 1fr;gap:1.2rem;padding:1.4rem 0;border-top:1px solid var(--line)}
.sec-d .steps li{border-top-color:var(--slate3)}
.steps li::before{content:counter(s);font-family:var(--head);font-stretch:115%;font-weight:800;font-size:2.2rem;line-height:1;
  color:var(--red)}
.sec-d .steps li::before{color:var(--yellow)}
.steps h3{margin-bottom:.35rem}

/* gallery strip & gallery */
.strip{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.shot{margin:0}
.shot .im{border-radius:8px;overflow:hidden;background:var(--stone);aspect-ratio:4/5}
.shot img{width:100%;height:100%;object-fit:cover}
.shot figcaption{padding:.7rem .1rem 0;font-size:.94rem;color:var(--muted)}
.shot figcaption b{display:block;color:var(--text);font-size:1rem}
.filters{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.75rem}
.filters button{font:700 .95rem var(--body);padding:.6rem 1rem;min-height:44px;border-radius:999px;border:1px solid var(--line);
  background:var(--white);cursor:pointer;color:var(--text)}
.filters button[aria-pressed="true"]{background:var(--slate);color:#fff;border-color:var(--slate)}
.gal{columns:3 300px;column-gap:1.25rem}
.gal .shot{break-inside:avoid;margin-bottom:1.5rem}
.gal .im{aspect-ratio:auto}
.gal button.im{display:block;width:100%;border:0;padding:0;cursor:zoom-in}
.gal [hidden]{display:none}
.lb{position:fixed;inset:0;z-index:200;background:rgba(10,16,21,.94);display:none;align-items:center;justify-content:center;padding:4vh 4vw}
.lb.open{display:flex}
.lb figure{max-width:min(1000px,100%);max-height:100%;display:flex;flex-direction:column;align-items:center}
.lb img{max-height:80vh;width:auto;border-radius:6px}
.lb figcaption{color:#dfe7eb;margin-top:.8rem;text-align:center;max-width:70ch}
.lb button{position:absolute;background:var(--white);border:0;border-radius:50%;width:48px;height:48px;font-size:1.4rem;cursor:pointer;color:var(--slate)}
.lb .x{top:1rem;right:1rem}
.lb .pv{left:1rem;top:50%;transform:translateY(-50%)}
.lb .nx{right:1rem;top:50%;transform:translateY(-50%)}

/* reviews */
.revs{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.rev{background:var(--white);border-radius:10px;padding:1.5rem;border:1px solid var(--line);display:flex;flex-direction:column}
.rev .st{color:var(--red);letter-spacing:.15em;font-size:1rem;margin-bottom:.7rem}
.rev blockquote{font-size:1rem;line-height:1.6;flex:1}
.rev .who{margin-top:1rem;font-size:.88rem;color:var(--muted)}

/* areas */
.areas{columns:4 170px;column-gap:1.5rem;list-style:none;margin-top:1.5rem}
.areas li{padding:.42rem 0;border-bottom:1px solid var(--stone2);break-inside:avoid;font-size:.98rem}
.areas li b{font-weight:700}

/* faq */
.faq{max-width:820px}
.faq details{border-top:1px solid var(--line)}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;padding:1.15rem 2.5rem 1.15rem 0;position:relative;font-family:var(--head);
  font-stretch:106%;font-weight:700;font-size:1.1rem;line-height:1.3}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:.2rem;top:.9rem;font-size:1.6rem;line-height:1;color:var(--red);
  transition:transform .2s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details>div{padding:0 0 1.3rem}
.faq details>div p{color:var(--muted)}

/* forms */
.formcard{background:var(--white);color:var(--text);border-radius:12px;padding:clamp(1.4rem,3vw,2.2rem);border:1px solid var(--line)}
.formcard h2,.formcard h3{color:var(--text)}
.formcard>p{color:var(--muted)}
.f{display:grid;gap:1rem;margin-top:1.2rem}
.f2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.f label{display:block;font-weight:700;font-size:.92rem;margin-bottom:.35rem}
.f input,.f select,.f textarea{width:100%;font:inherit;font-size:1rem;padding:.8rem .9rem;min-height:50px;border-radius:var(--r);
  border:1.5px solid #b5c1c8;background:var(--white);color:var(--text)}
.f input:focus,.f select:focus,.f textarea:focus{outline:none;border-color:var(--slate);box-shadow:0 0 0 3px var(--yellow)}
.f textarea{min-height:110px;resize:vertical}
.fnote{font-size:.86rem;color:var(--muted);margin-top:.2rem}
.quick h2{margin-bottom:.8rem}
.quick{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center}

/* contact panel */
.cpanel{display:grid;gap:1.2rem}
.cbig{font-family:var(--head);font-stretch:112%;font-weight:800;font-size:clamp(2rem,4.2vw,2.9rem);letter-spacing:-.03em;
  text-decoration:none;color:var(--yellow);line-height:1}
.facts{list-style:none;display:grid;gap:.8rem;margin-top:.5rem}
.facts li{display:grid;grid-template-columns:110px 1fr;gap:.8rem;padding-top:.8rem;border-top:1px solid var(--slate3);font-size:.98rem}
.facts b{color:#fff}

/* checker */
.check{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:clamp(1.3rem,3vw,2rem)}
.check fieldset{border:0;display:grid;gap:.25rem}
.check label{display:grid;grid-template-columns:28px 1fr;gap:.7rem;align-items:start;padding:.7rem .5rem;border-radius:var(--r);cursor:pointer}
.check label:hover{background:var(--frost)}
.check input{width:22px;height:22px;margin-top:.15rem;accent-color:var(--red)}
.check .out{margin-top:1rem;padding:1rem 1.2rem;border-radius:var(--r);background:var(--frost);font-weight:700}

/* diagram */
.diagram{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:1rem;overflow-x:auto}
.diagram svg{min-width:640px;width:100%;height:auto;display:block}

/* call band */
.callband{background:var(--yellow)}
.callband .wrap{display:flex;gap:1.5rem;align-items:center;justify-content:space-between;padding:2rem 0;flex-wrap:wrap}
.callband h2{font-size:clamp(1.5rem,3vw,2.1rem)}
.callband p{color:var(--slate2)}

/* footer */
footer{background:var(--slate);color:#b7c5ce;padding:3.5rem 0 6rem;font-size:.95rem}
.fg{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2rem}
footer h4{color:#fff;margin-bottom:.8rem;font-size:1rem}
footer ul{list-style:none;display:grid;gap:.45rem}
footer a{color:#dfe7eb;text-decoration:none}
footer a:hover{text-decoration:underline}
footer .brand span{color:#fff}
footer .brand small{color:#9fb0bb}
.legal{border-top:1px solid var(--slate3);margin-top:2.5rem;padding-top:1.4rem;font-size:.85rem}

/* sticky mobile call bar */
.mbar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:80;background:var(--slate);padding:.6rem;gap:.6rem;
  padding-bottom:calc(.6rem + env(safe-area-inset-bottom,0px))}
.mbar a{flex:1}

/* ---------- responsive ---------- */
@media (max-width:1240px){
  nav.main{display:none;position:absolute;left:0;right:0;top:100%;background:var(--white);flex-direction:column;
    padding:.6rem 4% 1rem;border-bottom:1px solid var(--line);gap:0}
  nav.main.open{display:flex}
  nav.main a{padding:.85rem .6rem}
  .burger{display:grid}
  .hdr-in{position:relative}
  .hdr-tel{display:none}
  .g4{grid-template-columns:repeat(2,1fr)}
  .fg{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .hero-g,.phead-g,.split,.quick{grid-template-columns:1fr}
  .hero-photo{aspect-ratio:4/3;order:-1}
  .phead-img{display:none}
  .g3,.figs,.revs,.strip{grid-template-columns:1fr 1fr}
  .split .ph img{aspect-ratio:4/3}
  .topbar .hide-s{display:none}
  .mbar{display:flex}
}
@media (max-width:600px){
  body{font-size:1rem}
  .g2,.g3,.figs,.revs,.strip,.f2{grid-template-columns:1fr}
  .g4{grid-template-columns:1fr 1fr;gap:.8rem}
  .grantline{grid-template-columns:1fr}
  .grantline div{display:flex;gap:.8rem;align-items:baseline}
  .grantline b{font-size:1.3rem;min-width:4.5rem}
  .fg{grid-template-columns:1fr}
  .steps li{grid-template-columns:44px 1fr;gap:.8rem}
  .steps li::before{font-size:1.7rem}
  .facts li{grid-template-columns:1fr;gap:.1rem}
  .brand small{display:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
}
.hdr .wrap,.topbar .wrap{width:min(1300px,95%)}
.mbar .btn{font-size:.95rem;white-space:nowrap;padding:.7rem .6rem}
