/* Nest English — Homepage background layer
   Production-safe, responsive, no JS dependency. */
.nest-home-hero{
  --nest-hero-ink:#123f31;
  --nest-hero-ivory:rgba(249,246,234,.90);
  --nest-hero-ivory-soft:rgba(249,246,234,.58);
  isolation:isolate;
  min-height:clamp(620px,76vh,820px);
  overflow:hidden;
  border-radius:clamp(22px,2.4vw,34px);
  background:#e9e4d2;
  box-shadow:0 24px 70px -34px rgba(22,61,45,.32);
}
.nest-home-hero-media{
  position:absolute;
  inset:0;
  z-index:-3;
  display:block;
  overflow:hidden;
}
.nest-home-hero-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}
.nest-home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    linear-gradient(90deg,
      rgba(249,246,234,.88) 0%,
      rgba(249,246,234,.70) 24%,
      rgba(249,246,234,.27) 50%,
      rgba(249,246,234,.18) 72%,
      rgba(249,246,234,.10) 100%),
    linear-gradient(180deg,rgba(20,54,39,.05),rgba(249,246,234,.20) 82%,rgba(249,246,234,.58) 100%);
}
.nest-home-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(circle at 53% 40%,rgba(255,251,235,.18),transparent 38%);
}
.nest-home-hero > #hero-text-wrap,
.nest-home-hero > .glass-panel{
  position:relative;
  z-index:2;
}
/* The generated background already supplies the botanical language. */
.nest-home-hero > .hero-glow,
.nest-home-hero > #sky-stars,
.nest-home-hero > .nest-leaves{display:none !important}
.nest-home-hero #hero-text-wrap h1,
.nest-home-hero #hero-text-wrap p,
.nest-home-hero #hero-text-wrap .hero-fineprint{ text-shadow:0 1px 0 rgba(255,255,255,.34); }
.nest-home-hero #hero-text-wrap h1{color:var(--nest-hero-ink)}
.nest-home-hero #hero-text-wrap .gradient-text{
  background-image:linear-gradient(110deg,#0c6d4f 0%,#124f3a 55%,#235b46 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.nest-home-hero .glass-panel{
  background:rgba(250,248,240,.82) !important;
  border-color:rgba(18,63,46,.13) !important;
  box-shadow:0 24px 54px -28px rgba(18,63,46,.34),0 2px 0 rgba(255,255,255,.52) inset !important;
}
html.dark .nest-home-hero{
  background:#17271f;
}
html.dark .nest-home-hero::before{
  background:
    linear-gradient(90deg,rgba(8,25,18,.86) 0%,rgba(8,25,18,.72) 26%,rgba(8,25,18,.43) 55%,rgba(8,25,18,.38) 100%),
    linear-gradient(180deg,rgba(5,19,13,.18),rgba(5,19,13,.60) 100%);
}
html.dark .nest-home-hero::after{background:radial-gradient(circle at 53% 40%,rgba(179,215,190,.08),transparent 38%)}
html.dark .nest-home-hero #hero-text-wrap h1{color:#edf5ef}
html.dark .nest-home-hero #hero-text-wrap .gradient-text{-webkit-text-fill-color:#b8e1c9;background:none}
html.dark .nest-home-hero .glass-panel{
  background:rgba(17,34,29,.80) !important;
  border-color:rgba(190,226,209,.14) !important;
}
@media (max-width: 767px){
  .nest-home-hero{
    min-height:0;
    border-radius:20px;
    padding-top:2.5rem;
    padding-bottom:2rem;
    background:#e9e4d2;
  }
  .nest-home-hero-media img{object-position:center center}
  .nest-home-hero::before{
    background:
      linear-gradient(180deg,rgba(249,246,234,.28) 0%,rgba(249,246,234,.62) 32%,rgba(249,246,234,.88) 63%,rgba(249,246,234,.94) 100%),
      linear-gradient(90deg,rgba(249,246,234,.16),rgba(249,246,234,.16));
  }
  .nest-home-hero::after{background:radial-gradient(circle at 50% 31%,rgba(255,251,235,.24),transparent 42%)}
  .nest-home-hero #hero-text-wrap h1{font-size:clamp(2.65rem,12vw,4rem);line-height:.99;letter-spacing:-.045em}
  .nest-home-hero #hero-text-wrap p{max-width:36rem}
  .nest-home-hero .glass-panel{max-width:34rem;margin-top:.25rem}
}
@media (max-width: 430px){
  .nest-home-hero{margin-inline:.25rem}
  .nest-home-hero #hero-text-wrap h1{font-size:clamp(2.35rem,13vw,3.35rem)}
  .nest-home-hero .hero-cta-row{gap:.65rem}
}
@media (prefers-reduced-motion:reduce){
  .nest-home-hero .hero-stagger > *,
  .nest-home-hero .hero-card-entrance{animation:none !important;opacity:1 !important}
}
