/*
VOICE: calm, trustworthy local home-service company; plain words, big clear headings.
IDEA: a bright room seen through a clean window: cream hero panel beside the photo or video.
PICTURE: full-bleed hero photo or the tint-installation video on the right half; stacked on phones.
COLOUR and TYPE: navy ink #0e2341, evergreen action #0f7b5e, cream #fcf1e6, mint band #e1f2ec; Figtree 800 headings, Figtree body.
LAYOUT: matches the Integrity Windows mockups: header, split hero, card row, gallery, reviews, navy estimate band, footer.
*/
:root{
  color-scheme:light;
  --navy:#0e2341;--navy-2:#0b1f3d;--green:#0f7b5e;--green-dk:#0b6149;--cream:#fcf1e6;--mint:#e1f2ec;
  --line:#b9dccf;--ink:#0e2341;--muted:#33425a;--bg:#ffffff;--radius:6px;
  --max:1180px;--pad:max(4.5vw,18px);
}
*{box-sizing:border-box;min-width:0}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.55 "Figtree",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overflow-x:clip}
img,video{display:block;max-width:100%}
a{color:inherit}
h1,h2,h3{font-weight:800;line-height:1.08;margin:0;color:var(--navy);text-wrap:balance}
h1{font-size:clamp(34px,3.4vw,46px);letter-spacing:-.01em}
h2{font-size:clamp(28px,3.4vw,40px);letter-spacing:-.005em}
h3{font-size:21px;line-height:1.2}
p{margin:0}
.wrap{max-width:var(--max);margin-inline:auto;padding-inline:var(--pad)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid #2bb38b;outline-offset:2px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 20px;border-radius:4px;font-weight:700;font-size:17px;line-height:1.2;font-family:inherit;text-decoration:none;cursor:pointer;border:2px solid transparent;transition:background .15s}
.btn-primary{background:var(--green);color:#fff}
.btn-primary:hover{background:var(--green-dk)}
.btn-outline{background:#fff;color:var(--navy);border-color:var(--navy)}
.btn-outline:hover{background:#f3f5f8}
.btn-block{width:100%}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid #e9ecef}
.nav{display:flex;align-items:center;gap:24px;min-height:68px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;font-size:22px;letter-spacing:.01em;color:var(--navy);text-transform:uppercase;white-space:nowrap}
.brand svg{width:28px;height:28px;flex:none}
.menu{display:flex;align-items:center;gap:30px;margin-left:auto;list-style:none;padding:0;margin-block:0}
.menu a{display:block;padding:20px 2px;text-decoration:none;font-weight:600;font-size:15px;border-bottom:3px solid transparent}
.menu a:hover{color:var(--green)}
.menu a[aria-current=page]{color:var(--green);border-bottom-color:var(--green)}
.nav .btn{min-height:42px;padding:8px 18px;font-size:16px}
.menu-toggle{display:none;margin-left:auto;width:46px;height:46px;border:1px solid #d6dbe1;border-radius:4px;background:#fff;color:var(--navy);cursor:pointer;align-items:center;justify-content:center}
.menu-toggle svg{width:24px;height:24px}

/* Hero */
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);background:var(--cream)}
.hero-text{padding:clamp(36px,5vw,70px) clamp(20px,3vw,40px) clamp(36px,5vw,70px) max(var(--pad),calc((100vw - var(--max))/2 + var(--pad)));display:flex;flex-direction:column;justify-content:center;gap:18px}
.eyebrow{color:var(--green);font-weight:700;font-size:19px}
.hero-text .lead{font-size:clamp(18px,1.6vw,21px);color:var(--navy);max-width:30ch}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px}
.hero-media{position:relative;min-height:420px;background:#cfd8cf}
.hero-media img,.hero-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.video-toggle{position:absolute;right:14px;bottom:14px;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:0;border-radius:999px;background:rgba(14,35,65,.82);color:#fff;font-weight:600;font-size:14px;line-height:1;font-family:inherit;cursor:pointer}
.video-toggle svg{width:16px;height:16px}
.media-note{position:absolute;left:14px;bottom:14px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.88);color:var(--navy);font-size:13px;font-weight:600}

/* ZIP form in hero */
.zip-form{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.zip-form input{flex:1 1 160px;max-width:200px}

/* Sections */
.band{padding:clamp(34px,4.5vw,60px) 0}
.section-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-bottom:26px}
.section-head .tag{padding-left:18px;border-left:1px solid #9aa5b4;color:var(--muted);font-size:16px}
.section-head .more{margin-left:auto;color:var(--green);font-weight:700;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.section-head .more:hover{text-decoration:underline}

/* Cards */
.cards{display:grid;gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
.cards.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{border:1.5px solid var(--line);border-radius:var(--radius);background:#fff;padding:22px 24px 24px;display:flex;flex-direction:column;gap:10px}
.card .icon{width:50px;height:50px;color:var(--green);margin-bottom:6px}
.card h3{font-size:21px}
.card p{color:var(--muted);font-size:16px}
.cards.four .card{padding:20px 18px 22px}
.cards.four .card h3{font-size:19px}
.card.photo{padding:8px 8px 24px}
.card.photo img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:2px;margin-bottom:12px}
.card.photo .icon,.card.photo h3,.card.photo p{margin-inline:16px}
.card.photo h3{font-size:27px}
.card.photo p{font-size:17px}

/* Gallery */
.gallery{display:grid;gap:10px;grid-template-columns:1.1fr 1fr 1fr}
.gallery figure{margin:0;position:relative;overflow:hidden;border-radius:2px;background:#e8ece8}
.gallery img{width:100%;height:100%;aspect-ratio:5/4;object-fit:cover}
.gallery .pair{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.gallery .pair img{aspect-ratio:auto;height:100%}
.gallery figcaption{position:absolute;left:12px;bottom:12px;background:#fff;color:var(--navy);font-size:14px;font-weight:600;padding:4px 12px;border-radius:3px}

/* Reviews */
.mint{background:var(--mint)}
.reviews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.review{background:#fff;border-radius:4px;padding:22px 30px;font-size:17px;line-height:1.5;color:var(--navy);margin:0}
.draft{display:inline-block;margin-top:14px;font-size:13px;color:#7a4b00;background:#fff3d6;border:1px solid #f1d28b;border-radius:3px;padding:3px 8px}

/* Note band */
.note-band{background:var(--mint);padding:26px 0}
.note-band h2{font-size:clamp(26px,3vw,36px);margin-bottom:6px}

/* Estimate band */
.estimate{background:var(--navy);color:#fff}
.estimate .wrap{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:clamp(24px,5vw,60px);align-items:center;padding-block:clamp(30px,3.5vw,44px)}
.estimate h2{color:#fff;font-size:clamp(32px,4vw,48px)}
.estimate .intro p{margin-top:16px;font-size:clamp(17px,1.6vw,20px);max-width:32ch}
.estimate .rule{width:68px;height:4px;background:#7fd3b6;border-radius:2px;margin-top:22px}
.form{background:#fff;color:var(--navy);border-radius:var(--radius);padding:18px 20px 20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 26px}
.form .full{grid-column:1/-1}
label{display:block;font-weight:700;font-size:14px;margin-bottom:4px}
input,select,textarea{width:100%;min-height:44px;font-size:16px;line-height:1.4;font-family:inherit;color:var(--navy);background:#fff;border:1px solid #8c97a6;border-radius:4px;padding:9px 12px}
textarea{min-height:76px;resize:vertical}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230e2341' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:38px}
input:focus,select:focus,textarea:focus{border-color:var(--green);outline:2px solid #9ad9c3;outline-offset:0}
.form .btn{min-height:44px}
.form-status{grid-column:1/-1;font-size:15px;font-weight:600;border-radius:4px;padding:10px 12px;display:none}
.form-status.ok{display:block;background:#e1f2ec;color:#0b5a43}
.form-status.err{display:block;background:#fde8e6;color:#8a1f12}
.hp{position:absolute;left:-9999px}

/* Footer */
.site-footer{border-top:1px solid #e9ecef;background:#fff}
.site-footer .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;min-height:64px;padding-block:12px}
.site-footer .brand{font-size:19px}
.site-footer .brand svg{width:24px;height:24px}
.copy{color:var(--muted);font-size:14px;padding-left:20px;border-left:1px solid #9aa5b4}
.foot-links{display:flex;flex-wrap:wrap;gap:6px 0;margin-left:auto;list-style:none;padding:0;margin-block:0}
.foot-links li+li::before{content:"|";color:#9aa5b4;margin:0 10px}
.foot-links a{text-decoration:none;font-size:15px;font-weight:500}
.foot-links a:hover{color:var(--green)}

/* Call bar (shows only when a phone number is set in site.js) */
.callbar{display:none}
.has-phone .callbar{display:none}

/* Tablet */
@media (max-width:1060px){
  .menu{gap:18px}
  .cards.four{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .menu-toggle{display:inline-flex}
  .nav > .btn{display:none}
  .menu{position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;gap:0;background:#fff;border-bottom:1px solid #e3e7eb;box-shadow:0 10px 20px rgba(14,35,65,.08);padding:6px var(--pad) 16px;display:none}
  .menu.open{display:flex}
  .menu a{padding:13px 4px;border-bottom:1px solid #eef1f4;font-size:17px}
  .menu a[aria-current=page]{border-bottom-color:#eef1f4;border-left:3px solid var(--green);padding-left:10px}
  .menu .menu-cta{display:block;padding-top:14px}
  .menu .menu-cta a{border:0;padding:12px 20px;color:#fff;text-align:center}
  .hero{grid-template-columns:1fr}
  .hero-text{padding:32px var(--pad) 30px}
  .hero-media{min-height:0;aspect-ratio:16/10}
  .cards{grid-template-columns:1fr}
  .cards.four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery{grid-template-columns:1fr 1fr}
  .gallery figure:first-child{grid-column:1/-1}
  .reviews{grid-template-columns:1fr}
  .estimate .wrap{grid-template-columns:1fr}
  .site-footer .wrap{justify-content:center;text-align:center}
  .copy{border:0;padding:0;width:100%}
  .foot-links{margin:0 auto;justify-content:center}
}
@media (min-width:901px){.menu .menu-cta{display:none}}
@media (max-width:600px){
  body{font-size:16px}
  .brand{font-size:19px}
  .brand svg{width:24px;height:24px}
  .cards.four{grid-template-columns:1fr}
  .card.photo h3{font-size:24px}
  .form{grid-template-columns:1fr;padding:16px}
  .gallery{grid-template-columns:1fr}
  .gallery .pair img{aspect-ratio:4/5}
  .section-head .more{margin-left:0;width:100%}
  .section-head .tag{border:0;padding:0;width:100%;margin-top:-4px}
  .zip-form input{max-width:none}
  .zip-form .btn{flex:1 1 160px}
  .hero-actions .btn{flex:1 1 200px}
  .has-phone .callbar{display:flex;position:sticky;bottom:0;z-index:40;gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e3e7eb}
  .has-phone .callbar .btn{flex:1}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn{transition:none}}


/* Fixed background video (Services page) */
html:has(body.has-bgv){background:var(--navy)}
.has-bgv{background:transparent}
.bgv{position:fixed;inset:0;z-index:-1;background:var(--navy) url("../img/shower-poster.jpg") center/cover no-repeat}
.bgv video{width:100%;height:100%;object-fit:cover;object-position:62% center}
.bgv::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(14,35,65,.35),rgba(14,35,65,.55))}
.bgv-toggle{position:fixed;right:16px;bottom:16px;z-index:45}
.has-bgv .hero{background:transparent}
.has-bgv .hero-text{background:rgba(252,241,230,.95)}
.has-bgv .hero-media{background:transparent}
.has-bgv .band,.has-bgv .mint{background:transparent}
.has-bgv .section-head h2{color:#fff;text-shadow:0 1px 12px rgba(0,0,0,.25)}
.has-bgv .section-head .tag{color:#e3e9f1;border-left-color:rgba(255,255,255,.45)}
.has-bgv .card{background:rgba(255,255,255,.97);border-color:transparent;box-shadow:0 8px 24px rgba(8,20,40,.18)}
.has-bgv .gallery figure{box-shadow:0 8px 24px rgba(8,20,40,.22)}
.has-bgv .review{box-shadow:0 8px 24px rgba(8,20,40,.18)}
.has-bgv .estimate{background:rgba(14,35,65,.9)}
@media (max-width:900px){.has-bgv .hero-media{min-height:0;aspect-ratio:16/10}}
@media (max-width:600px){.has-bgv.has-phone .bgv-toggle{bottom:72px}.bgv-toggle{padding:8px 12px;font-size:13px}}
.has-bgv .site-footer{padding-bottom:68px}

/* Window installation model: swap-in brand + "Something else" option */
.brand{white-space:normal;line-height:1.1}
.brand [data-site=name]{overflow-wrap:anywhere}
.logo-slot{display:inline-flex;flex:none}
.logo-img{height:34px;width:auto;max-width:140px;object-fit:contain}
.site-footer .logo-img{height:28px}
.else-bar{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;margin-top:16px;padding:18px 24px;border:1.5px dashed var(--green);border-radius:var(--radius);background:#f4fbf8}
.else-bar .icon{width:44px;height:44px;color:var(--green);flex:none}
.else-bar div{flex:1 1 280px}
.else-bar h3{font-size:21px;margin-bottom:4px}
.else-bar p{color:var(--muted);font-size:16px}
.has-bgv .else-bar{background:rgba(255,255,255,.97);border-color:var(--green);box-shadow:0 8px 24px rgba(8,20,40,.18)}
@media (max-width:600px){.else-bar .btn{width:100%}}
.callbar .btn{white-space:nowrap;font-size:15px;padding:10px 12px}

/* Featured gallery video (The Window Comeback) */
.feature-video{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:clamp(18px,4vw,48px);align-items:center;margin-top:18px;padding:18px;border-radius:var(--radius);background:#fff}
.feature-video video{width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:4px;background:#0e2341}
.feature-kicker{color:var(--green);font-weight:700;font-size:16px;margin-bottom:6px}
.feature-text h3{font-size:clamp(26px,3vw,34px);margin-bottom:10px}
.feature-text p{max-width:46ch;color:var(--muted)}
.feature-text .feature-kicker{color:var(--green)}
.feature-meta{margin-top:12px;font-size:14px}
.has-bgv .feature-video{background:rgba(255,255,255,.97);box-shadow:0 8px 24px rgba(8,20,40,.22)}
@media (max-width:700px){.feature-video{grid-template-columns:1fr}.feature-video video{max-height:78svh;width:auto;max-width:100%;margin-inline:auto}}

/* Scroll-driven animation (Service Areas page) */
.film{position:relative;height:440vh;background:var(--navy);color:#fff}
.film-sticky{position:sticky;top:68px;height:calc(100vh - 68px);height:calc(100svh - 68px);display:flex;flex-direction:column;justify-content:center;gap:14px;padding-top:18px;padding-bottom:20px}
.film-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px}
.film-head h2{color:#fff;font-size:clamp(26px,3vw,38px)}
.film-head .tag{color:#b8c4d6;font-size:15px;padding-left:18px;border-left:1px solid #4a5d7c}
.film-stage{position:relative;width:100%;max-width:min(var(--max),calc((100svh - 300px) * 16 / 9));margin-inline:auto;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:#eef0f2}
.film-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.film-progress{height:4px;background:rgba(255,255,255,.15);border-radius:2px;overflow:hidden}
.film-progress i{display:block;height:100%;width:0;background:#7fd3b6}
.film-steps{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}
.film-steps button{min-height:40px;padding:6px 14px;border-radius:999px;border:1px solid #4a5d7c;background:transparent;color:#d9e1ec;font-weight:600;font-size:15px;font-family:inherit;cursor:pointer}
.film-steps button[aria-current=step]{background:#fff;color:var(--navy);border-color:#fff}
.film-caption{font-size:clamp(16px,1.5vw,18px);color:#e6ecf4;min-height:1.6em;max-width:70ch}
.film-static{height:auto}
.film-static .film-sticky{position:static;height:auto;padding-top:clamp(34px,4.5vw,60px);padding-bottom:clamp(34px,4.5vw,60px)}
@media (max-width:900px){.film-head .tag{border:0;padding:0;width:100%}}
@media (max-width:600px){
  .film{height:380vh}
  .film-steps{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}
  .film-steps li{flex:none;scroll-snap-align:start}
  .film-caption{min-height:3.2em}
}

/* Scroll-driven background (Service Areas page) */
.bg-scrub{background:#dcd6e2}
.bg-scrub canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.bg-scrub::after{z-index:1}
.has-bgv .note-band{background:rgba(225,242,236,.95)}
.scrub-chip{position:fixed;left:16px;bottom:16px;z-index:45;display:flex;align-items:center;gap:10px;min-height:40px;padding:8px 14px;border-radius:999px;background:rgba(14,35,65,.86);color:#fff;font-weight:600;font-size:14px}
.scrub-chip i{display:block;width:64px;height:4px;border-radius:2px;background:rgba(255,255,255,.25);overflow:hidden}
.scrub-chip b{display:block;height:100%;width:0;background:#7fd3b6}
.scrub-chip[hidden]{display:none}
@media (max-width:600px){.has-phone .scrub-chip{bottom:72px}.scrub-chip{font-size:13px;padding:6px 12px}}

/* Service Areas: animation brought forward */
.scrub-page .bg-scrub::after{background:linear-gradient(180deg,rgba(14,35,65,.06),rgba(14,35,65,.16))}
.scrub-page .hero-text{background:rgba(252,241,230,.84);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.scrub-page .hero-media{min-height:min(78vh,720px)}
.scrub-page .section-head h2,.scrub-page .note-band h2{color:var(--navy);text-shadow:0 1px 14px rgba(255,255,255,.7)}
.scrub-page .section-head .tag{color:var(--navy);border-left-color:rgba(14,35,65,.35)}
.scrub-page .card{background:rgba(255,255,255,.8);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 10px 30px rgba(8,20,40,.14)}
.scrub-page .card.photo img{opacity:.96}
.scrub-page .note-band{background:rgba(225,242,236,.78);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.scrub-page .estimate{background:rgba(14,35,65,.78);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.scrub-gap{height:85vh;height:85svh}
@media (max-width:900px){.scrub-page .hero-media{min-height:0;aspect-ratio:auto;height:62svh}.scrub-gap{height:70svh}}
