/* 02-hero: Healthy Homes initiative. Every rule scoped under #hero.
   One language, taken from the logo: heavy italic caps, navy with one action blue.
   The slant appears once here (the primary button); the type carries the lean.
   Strict two-column grid on desktop: the headline's top aligns with the photo's top edge, the last action aligns with
   its bottom edge, and the photo is framed by white above and below instead of butting into the header.
   The Healthy Homes mark sits on the photo's corner on its own white plate, like a label on the job. */
#hero{
  --hero-h:clamp(600px,calc(100svh - var(--hero-top,150px)),860px);
  --media-w:45vw;
  --pt:112px;
  --pb:88px;
  --wrap-left:calc(max(0px,(100vw - var(--maxw)) / 2) + var(--gutter));
  position:relative;
  background:var(--white);
  overflow:hidden;
  isolation:isolate;
}

/* Photo */
#hero .hero__media{position:relative;margin:0;overflow:hidden;background:var(--cloud-2)}
#hero .hero__photo{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 45%}

/* Copy */
#hero .hero__inner{position:relative;z-index:1}
#hero .hero__copy{display:flex;flex-direction:column;align-items:flex-start;scroll-margin-top:40px}
#hero .hero__mark{width:clamp(136px,11vw,164px);height:auto;margin:0 0 24px -4px}
#hero .hero__title{font-size:clamp(46px,6.4vw,94px);line-height:.92;letter-spacing:-.018em;color:var(--navy);margin:0;padding-right:.08em}
#hero .hero__line{display:block;white-space:nowrap}
#hero .hero__foot{display:flex;flex-direction:column;align-items:flex-start}
#hero .hero__lead{margin:0;max-width:31em;font:500 clamp(16.5px,1.3vw,19px)/1.55 var(--body);color:var(--navy);text-wrap:pretty}
#hero .hero__lead strong{font-weight:700}

/* Actions: one slanted button leads; the quote is a plain text link under it, so the two are clearly ranked. */
#hero .hero__actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 32px;margin-top:32px;padding-left:10px}
#hero .hero__cta{min-height:60px;font-size:14.5px;letter-spacing:.05em;white-space:nowrap;padding-inline:30px 28px;gap:12px}
#hero .hero__cta .arrow{font-size:17px}
#hero .hero__quote{display:inline-flex;align-items:center;gap:10px;min-height:44px;
  font:800 italic 14.5px/1 var(--display);letter-spacing:.06em;text-transform:uppercase;color:var(--navy);text-decoration:none;
  background:linear-gradient(currentColor,currentColor) 0 calc(100% - 9px)/100% 2px no-repeat;padding-bottom:2px;transition:color .2s var(--ease)}
#hero .hero__quote .arrow{transition:transform .2s var(--ease)}
#hero .hero__quote:hover{color:var(--water)}
#hero .hero__quote:hover .arrow{transform:translateX(4px)}

/* Entrance: quiet and quick. The end state is the default state. */
@keyframes hero-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes hero-fade{from{opacity:0}to{opacity:1}}
#hero .hero__title,#hero .hero__foot{animation:hero-rise .6s var(--ease) both}
#hero .hero__foot{animation-delay:.1s}
#hero .hero__media,#hero .hero__mark{animation:hero-fade .8s var(--ease) both}
@media (prefers-reduced-motion:reduce){
  #hero .hero__title,#hero .hero__foot,#hero .hero__media,#hero .hero__mark{animation:none}
}

/* Desktop: headline pinned to the photo's top edge, lead and actions pinned to its bottom edge. */
@media (min-width:900px){
  #hero{height:var(--hero-h);padding:var(--pt) 0 var(--pb);display:flex}
  #hero .hero__inner{position:static;display:flex}
  #hero .hero__copy{width:calc(100vw - var(--media-w) - var(--wrap-left) - 40px);justify-content:center;gap:clamp(28px,3vw,44px)}
  #hero .hero__title{margin-top:-.12em}
  #hero .hero__lead{max-width:34em}
  #hero .hero__media{position:absolute;top:var(--pt);bottom:var(--pb);right:0;width:var(--media-w);z-index:0}
  /* The mark: on its own white plate in the photo's top-left corner, level with the headline */
  #hero .hero__mark{position:absolute;z-index:2;left:calc(100% - var(--media-w));top:var(--pt);margin:0;
    width:clamp(150px,11.2vw,168px);box-sizing:content-box;padding:16px 20px 14px 18px;background:var(--white)}
}
/* Mid widths (the 1006px laptop): smaller frame so the whole hero sits in one short laptop screen */
@media (min-width:900px) and (max-width:1279.98px){
  #hero{--media-w:46vw;--hero-h:clamp(576px,calc(100svh - var(--hero-top,140px)),700px);--pt:90px;--pb:44px}
  #hero .hero__title{font-size:clamp(54px,6.2vw,74px)}
  #hero .hero__lead{font-size:16.5px;max-width:29em}
  #hero .hero__actions{margin-top:26px;gap:10px 28px}
  #hero .hero__cta{min-height:56px;font-size:13.5px}
  #hero .hero__quote{font-size:13.5px}
  #hero .hero__mark{width:128px;padding:12px 14px 10px 12px}
}

/* Phone and small tablet: mark, headline, copy, then the photo full width */
@media (max-width:899.98px){
  #hero{display:flex;flex-direction:column}
  #hero .hero__inner{padding-top:clamp(28px,7vw,56px);padding-bottom:clamp(36px,8vw,56px)}
  #hero .hero__media{aspect-ratio:4/5;max-height:680px}
  #hero .hero__photo{object-position:55% 50%}
  #hero .hero__mark{width:clamp(136px,38vw,180px)}
  #hero .hero__title{font-size:clamp(36px,11vw,86px)}
  #hero .hero__lead{margin-top:22px;max-width:34ch;font-size:16.5px}
  #hero .hero__actions{flex-direction:column;align-items:flex-start;width:100%;max-width:440px;padding-inline:10px;gap:14px}
  #hero .hero__cta{width:100%;min-height:56px;white-space:normal;justify-content:space-between;padding-inline:24px 22px;text-align:left;line-height:1.15}
}
@media (max-width:420px){
  #hero .hero__cta{min-height:64px;padding-block:12px;font-size:14.5px;letter-spacing:.04em}
}
