/* Groundwell homepage – ported from the approved design package (index.html). Layout, spacing, type scale and colors are unchanged;
   additions: hero video slot, working mobile menu, skip link, lazy images, explicit illustrative-imagery notes. */
.container{max-width:1520px;padding:0 clamp(20px,4.1vw,72px);margin:auto}
.nav{height:78px;display:flex;align-items:center;justify-content:space-between;gap:25px;position:absolute;top:0;left:0;right:0;z-index:12;color:#fff;max-width:none;width:100%}
.nav .navinner{display:flex;align-items:center;justify-content:space-between;gap:25px;width:100%;max-width:1520px;margin:auto;padding:0 clamp(20px,4.1vw,72px)}
.brand{white-space:nowrap;display:inline-flex;align-items:center;min-height:44px;flex:0 0 auto}
.brand img{display:block;height:44px;width:auto}
.footbrand img{height:38px}
.navlinks{display:flex;gap:clamp(18px,2vw,28px);font-size:15px;font-weight:650;align-items:center;white-space:nowrap;flex:0 1 auto}
.navlinks a,.navlinks .btn{white-space:nowrap;flex:0 0 auto}
.mobilemenu{flex:0 0 auto}
.navlinks a:hover{text-decoration:underline;text-underline-offset:5px}
.btn{min-height:51px;border-radius:999px;padding:13px 27px;background:var(--green);color:#fff;border:0;display:inline-flex;align-items:center;justify-content:center;gap:13px;font-weight:735;font-size:16px;transition:transform .15s,background .15s;cursor:pointer}
.btn:hover{transform:translateY(-2px);background:var(--green2)}
.btn.white{background:#fff;color:#14221b}
.btn.outline{border:1.5px solid #fff8;background:#ffffff08;color:#fff}
.btn.outline:hover{background:#ffffff22}
.mobilemenu{display:none;background:#fff2;border:1px solid #fff7;color:#fff;border-radius:12px;min-width:48px;min-height:48px;padding:9px 14px;cursor:pointer;font-size:20px;line-height:1}

/* Hero */
.hero{position:relative;min-height:min(790px,92svh);height:760px;display:flex;align-items:center;color:#fff;background:#161a1b;overflow:hidden}
.heroBg,.heroVideo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 45%}
.heroVideo{opacity:0;transition:opacity .8s ease;pointer-events:none}
.heroVideo.on{opacity:1}
/* Installation illustration layer: only its opacity changes (no zoom, slide or movement), so text and buttons stay put. */
.heroInstall{position:absolute;inset:0;opacity:0;transition:opacity var(--fade,700ms) ease;pointer-events:none}
.heroInstall img{width:100%;height:100%;object-fit:cover;object-position:62% 62%;display:block}
.heroInstall.on{opacity:1}
.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,11,13,.87) 0%,rgba(6,11,13,.53) 40%,rgba(6,11,13,.1) 78%),linear-gradient(0deg,#0b13139e,transparent 45%)}
/* Soft landing: the photo dissolves into the off-white of the next section instead of ending on a hard edge. */
.heroFade{position:absolute;left:0;right:0;bottom:0;height:clamp(90px,14vw,170px);z-index:2;pointer-events:none;background:linear-gradient(180deg,rgba(246,247,243,0) 0,rgba(246,247,243,.55) 55%,#f6f7f3 100%)}
.heroContent{position:relative;z-index:1;padding-top:70px;padding-bottom:150px;width:100%}
.eyebrow{font-size:15px;line-height:1.3;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.hero h1{font-size:clamp(47px,6.2vw,91px);letter-spacing:-.025em;line-height:1.08;margin:18px 0 21px;max-width:860px;font-weight:700}
.hero .sub{font-size:clamp(19px,2vw,25px);line-height:1.5;max-width:600px;margin:0 0 32px;color:#f3f7f4}
.actions{display:flex;flex-wrap:wrap;gap:13px}

/* Sections */
.section{padding:clamp(72px,8vw,120px) 0}
.section.alt{background:linear-gradient(180deg,#f6f7f3 0,#fff 210px,#fff 62%,#f1f5f2 100%)}
.leadrow{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:35px}
.section h2{font-size:clamp(37px,4vw,60px);letter-spacing:-.055em;line-height:1.1;margin:15px 0 17px}
.bodycopy{font-size:clamp(17px,1.25vw,20px);color:var(--muted);line-height:1.55}

/* How it works – the ONLY place with large photo cards */
.stepgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,1.6vw,22px)}
.step{min-width:0;aspect-ratio:2/3;border-radius:var(--r);position:relative;overflow:hidden;isolation:isolate;background:#222;display:flex;align-items:flex-end;color:#fff;cursor:pointer}
.step img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .6s;z-index:-2}
.step:hover img{transform:scale(1.035)}
.step:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(3,10,9,.34) 72%,rgba(3,10,9,.74));z-index:-1}
.stepContent{position:relative;z-index:1;padding:clamp(27px,3vw,45px);width:100%}
.stepNum{display:block;font-weight:820;letter-spacing:.13em;font-size:15px;margin-bottom:12px;color:#e7f2e8}
.step h3{font-size:clamp(32px,3.2vw,52px);letter-spacing:-.048em;line-height:1.08;margin:0 0 13px;max-width:360px}
.step small{font-size:17px;color:#edf3f0}
.plus{position:absolute;right:clamp(22px,2.4vw,34px);bottom:clamp(24px,2.6vw,38px);z-index:1;display:grid;place-items:center;width:47px;height:47px;color:#fff;font-size:40px;font-weight:300;line-height:1;transition:transform .2s;text-shadow:0 1px 8px #0006}
/* Card numerals and supporting lines stay in the DOM for screen readers; the approved photo-card composition shows headings only. */
.stepNum,.step small{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.step:hover .plus,.step:focus-visible .plus{transform:rotate(90deg)}
.step:focus-visible{outline:3px solid #6dba99;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.step img,.plus{transition:none}.step:hover img{transform:none}.step:hover .plus,.step:focus-visible .plus{transform:none}}

/* Garage Studio bar (one horizontal band with a full-catalog carousel – not a card grid). Light surface, white tiles, Groundwell teal selection. */
.studioRibbon{background:linear-gradient(180deg,#f1f5f2 0,#f4f4ef 240px,#eceeea 100%);color:var(--ink,#16211b);padding:clamp(75px,7vw,110px) 0;scroll-margin-top:24px}
.studioRibbon .ribbonHeading{display:flex;align-items:end;justify-content:space-between;gap:32px;margin-bottom:31px}
.studioRibbon h2{font-size:clamp(37px,4.1vw,60px);line-height:1.08;letter-spacing:-.055em;margin:13px 0}
.studioRibbon .ribbonHeading p,.studioRibbon .ribbonPicker p{font-size:clamp(17px,1.3vw,20px);line-height:1.55;color:#4b5a52;margin:10px 0 22px;max-width:520px}
.ribbonLink{color:#16211b;font-weight:700;font-size:17px;white-space:nowrap;border-bottom:2px solid #207e66;padding-bottom:6px;display:inline-flex;align-items:center;min-height:44px}
.ribbonGrid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:clamp(22px,4vw,56px);align-items:stretch}
.ribbonPicker{padding:clamp(8px,1.5vw,20px) 0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}
.ribbonPicker h3{font-size:clamp(34px,3.5vw,54px);line-height:1.08;letter-spacing:-.05em;margin:17px 0 8px}
.carousel{width:100%;min-width:0;margin:6px 0 26px}
.ribbonSwatches{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:3px 2px 6px;margin:0 -2px;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.ribbonSwatches::-webkit-scrollbar{display:none}
.ribbonSwatch{position:relative;flex:0 0 calc((100% - 36px) / 3.5);min-width:112px;scroll-snap-align:start;background:#fff;border:1.5px solid #cfd5cd;border-radius:14px;color:#16211b;padding:9px 9px 11px;cursor:pointer;text-align:center;font-size:16px;font-weight:700;transition:border-color .15s,box-shadow .15s}
.ribbonSwatch img,.ribbonSwatch .swNone{display:block;aspect-ratio:1;width:100%;object-fit:cover;border-radius:9px;margin-bottom:9px}
.ribbonSwatch .swNone{background:repeating-linear-gradient(135deg,#eceee9 0 8px,#e2e5df 8px 16px);border:1px dashed #b9c0b7}
.ribbonSwatch .swName{display:block;line-height:1.25;overflow-wrap:anywhere}
.ribbonSwatch:hover{border-color:#5aa88f;box-shadow:0 2px 12px #207e6620}
.ribbonSwatch.selected{border:2px solid #207e66;padding:8.5px 8.5px 10.5px;box-shadow:0 0 0 3px #207e661f}
.ribbonSwatch .tick{display:none;position:absolute;top:14px;right:14px;width:24px;height:24px;border-radius:50%;background:#207e66;color:#fff;font-size:15px;line-height:24px;font-weight:800}
.ribbonSwatch.selected .tick{display:block}
.carNav{display:flex;gap:10px;margin-top:10px}
.carBtn{width:46px;height:46px;border-radius:50%;border:1.5px solid #cfd5cd;background:#fff;color:#16211b;font-size:26px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0 0 3px}
.carBtn:hover:not(:disabled){border-color:#207e66}
.carBtn:disabled{opacity:.38;cursor:default}
.ribbonCta{display:inline-flex;align-items:center;justify-content:center;gap:18px;border-radius:999px;background:#207e66;color:#fff;font-size:17px;font-weight:750;padding:16px 29px;min-height:55px}
.ribbonCta:hover{background:#145a47}
.ribbonPreview{display:block;position:relative;min-height:435px;border-radius:18px;overflow:hidden;background:#d9ddd6}
.ribbonPreview img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}
.previewSoon{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:24px;background:repeating-linear-gradient(135deg,#e7e9e3 0 14px,#dfe2db 14px 28px);color:#2a3a31}
.previewSoon strong{font-size:clamp(26px,3vw,38px);letter-spacing:-.04em}
.previewSoon span{font-size:17px;font-weight:650}
.previewHint{position:absolute;right:16px;bottom:16px;font-size:15px;font-weight:720;color:#19231f;background:#ffffffec;padding:11px 16px;border-radius:999px}
.concept{position:absolute;left:16px;bottom:16px;font-size:13px;line-height:1.35;font-weight:650;color:#fff;background:#0b1313b8;padding:8px 12px;border-radius:999px;max-width:55%}


.footer{background:linear-gradient(180deg,#1d2623 0,#101614 110px);color:#d9e2dc;padding:35px 0;font-size:15px}
.footer{position:relative}
.footer:before{content:'';position:absolute;left:0;right:0;top:-104px;height:104px;pointer-events:none;background:linear-gradient(180deg,rgba(236,238,234,0) 0,rgba(190,199,194,.55) 55%,#1d2623 100%)}
.footer .footinner{display:flex;gap:20px;justify-content:space-between;flex-wrap:wrap;align-items:center}
.footer a{text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:44px}
.footer .imgnote{flex-basis:100%;font-size:14px;color:#aebbb3;margin:6px 0 0;max-width:900px}
.floating{display:none}

@media(max-width:1140px){
  .navlinks{display:none}
  .navlinks.open{display:flex;position:absolute;top:70px;left:16px;right:16px;flex-direction:column;align-items:stretch;gap:0;background:#0f1816f2;border:1px solid #ffffff2b;border-radius:16px;padding:8px;backdrop-filter:blur(14px)}
  .navlinks.open a{padding:14px 16px;min-height:48px;display:flex;align-items:center;border-radius:10px}
  .navlinks.open a:hover{background:#ffffff14;text-decoration:none}
  .navlinks.open .btn{margin:6px 0 4px;justify-content:center}
  .mobilemenu{display:block}
}
/* Cards: three equal ~2:3 columns while they fit; below 900px a single stacked column (never a cramped row, never fixed heights). */
@media(max-width:899px){
  .stepgrid{grid-template-columns:1fr;gap:16px;max-width:560px;margin:0 auto}
  .step{aspect-ratio:4/5}
  .step h3{font-size:clamp(36px,7vw,46px)}
}
@media(max-width:850px){
  .ribbonGrid{grid-template-columns:1fr}
  .ribbonPreview{min-height:340px;order:-1}
  .ribbonPicker{padding:0}
  .ribbonHeading{align-items:start!important;flex-direction:column}
  .studioRibbon{padding:70px 0}
}
@media(max-width:680px){
  body{font-size:16px}
  .nav{height:70px}
  .brand img{height:34px}
  .footbrand img{height:32px}
  .hero{height:auto;min-height:705px;align-items:end}
  .heroBg,.heroVideo{object-position:50% center}
  .heroInstall img{object-position:70% 70%}
  .hero:after{background:linear-gradient(0deg,#08100ed4 0%,#08100e94 45%,#08100e1a 100%)}
  .heroContent{padding-top:145px;padding-bottom:112px}
  .hero h1{font-size:clamp(42px,10vw,57px);margin:15px 0 18px}
  .hero .sub{font-size:19px}
  .btn{width:100%;min-height:54px}
  .actions{flex-direction:column}
  .section{padding:72px 0}
  .leadrow{display:block}
  .stepgrid{gap:14px}
  .step h3{font-size:40px}
  .stepContent{padding:27px}
  .ribbonPreview{min-height:0;aspect-ratio:1.4;width:100%}
  .ribbonSwatch{flex-basis:calc((100% - 20px) / 2.5);min-width:120px}
  .ribbonSwatches{gap:10px}
  .ribbonCta{width:100%}
  .previewHint{font-size:14px}
  .concept{display:none}
  .footer{padding-bottom:120px}
  .floating{position:fixed;display:flex;bottom:0;left:0;right:0;padding:13px 17px max(13px,env(safe-area-inset-bottom));background:#ffffffed;backdrop-filter:blur(15px);box-shadow:0 -2px 20px #0001;z-index:20}
  .floating .btn{width:100%}
}

.footlinks{display:inline-flex;align-items:center;flex-wrap:wrap;gap:0 6px}
.studioRibbon .hidden,.previewSoon.hidden{display:none}

/* Before & After portfolio (real photos only; the section stays hidden until authorized pairs exist) */
.portfolio[hidden]{display:none}
.section.portfolio{background:linear-gradient(180deg,#eceeea 0,#e6ebe7 100%)}
.portGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:30px}
.portItem{margin:0;background:#fff;border:1px solid #dde2da;border-radius:18px;overflow:hidden}
.portPair{display:grid;grid-template-columns:1fr 1fr;gap:2px;background:#dde2da}
.portShot{position:relative;margin:0}
.portShot img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover}
.portTag{position:absolute;left:10px;top:10px;font-size:13px;font-weight:760;letter-spacing:.06em;text-transform:uppercase;background:#101614d9;color:#fff;padding:6px 11px;border-radius:999px}
.portShot.after .portTag{background:#207e66}
.portItem figcaption{padding:16px 18px 20px;font-size:16px;line-height:1.5;color:#33433a}
.portPartner{display:inline-block;margin-bottom:8px;font-size:13px;font-weight:760;letter-spacing:.05em;text-transform:uppercase;color:#4b5a52;border:1px solid #c9d0c6;border-radius:999px;padding:4px 10px}
.portMore{text-align:center;margin:28px 0 0}
.btn.outline.dark{color:#16211b;border-color:#16211b;background:transparent}
@media(max-width:960px){.portGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.portGrid{grid-template-columns:1fr}.portMore .btn{width:100%}}
#portMore[hidden]{display:none}

.gwphone{white-space:nowrap;font-weight:700}
/* grouped footer (Contact · My Project · Policies · Company): stacked on phones, balanced grid on desktop */
.gwfoot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 28px;text-align:left;max-width:1100px;margin:0 auto;padding:6px 0 4px;flex-basis:100%}
.gwfoot .fgroup{min-width:0}.gwfoot .fh{font-size:13px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;margin:0 0 6px;opacity:.75}
.gwfoot ul{list-style:none;margin:0;padding:0}.gwfoot li{margin:0}
.gwfoot a{color:inherit;text-decoration:none;display:inline-flex;align-items:center;min-height:44px;padding:2px 0;font-size:15px;line-height:1.3;border-bottom:0}.gwfoot a:hover,.gwfoot a:focus-visible{text-decoration:underline;text-underline-offset:3px}
.gwfoot a[hidden]{display:none}
.legalco{flex-basis:100%;margin:10px auto 0;font-size:13px;opacity:.8;max-width:1100px;text-align:left}
@media(max-width:560px){.gwfoot{grid-template-columns:1fr 1fr;gap:12px 20px}.gwfoot .fcontact{grid-column:1/-1}.gwfoot .fpolicies{grid-column:1/-1;order:4}.gwfoot .fpolicies ul{columns:2;column-gap:20px}.gwfoot .fcompany{order:3}.gwfoot .fproject{order:2}.gwfoot a{min-height:44px}}
@media(max-width:480px){.nav .brand img,.sHeader .brand img{max-width:152px;height:auto}}
@media(min-width:900px){.gwfoot{grid-template-columns:1fr 1fr 1.4fr 1fr;gap:28px 40px}}
/* mobile: "A premium garage floor in / three simple steps." stays on two lines */
@media(max-width:480px){#how .leadrow h2{font-size:clamp(22px,7.2vw,32px);letter-spacing:-.04em}}
@media(max-width:480px){.nav .navinner{gap:8px;padding:0 12px}.nav .brand img{max-width:152px;height:auto}.nav #faqSlot{margin-left:auto}.nav .hdrPhone{padding:6px 9px;font-size:13px;min-height:44px}}
/* Rev 25: every header link has a 44 px hit area on desktop as well */
.navlinks a:not(.btn){display:inline-flex;align-items:center;min-height:44px}
