/* The community pages (/communities/<slug>, crawl-pages edge function, pages.js, 2026-10-15): the
   hero (communityHero), the HOA amenity center band and the HOA facts (amenityBand / hoaFacts).
   Same look as the Verdancia hero and The Veranda band in css/verdancia.css. Loaded after
   style.css, home.css, pages.css and seo-pages.css, and uses their tokens (--burgundy-deep…). */

.cp [id]{scroll-margin-top:6.5rem}

/* hero: the community's footage, full width, the name over a soft gradient (as Verdancia).
   Not .cm-hero: that is the /communities page hero, and js/hero-video.js styles it on phones. */
.page-hero.ch-hero{padding:0;min-height:clamp(440px,66vh,660px);display:flex;flex-direction:column;justify-content:flex-end;background:#2E2A25;isolation:isolate}
.ch-hero>.ch-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 55%;z-index:0}
/* the loop over the still (js/hero-video.js adds .on once it plays, and the Play/Pause button) */
.ch-hero>.ch-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 55%;z-index:0;opacity:0;transition:opacity .8s ease}
.ch-hero>.ch-hero-video.on{opacity:1}
@media (prefers-reduced-motion:reduce){.ch-hero>.ch-hero-video{transition:none}}
/* bright footage (white roofs, daylight): a soft pool behind the headline and a dark bottom band */
.ch-hero::after{background:radial-gradient(58% 46% at 50% 66%,rgba(35,31,27,.5),rgba(35,31,27,0) 76%),linear-gradient(180deg,rgba(35,31,27,.5) 0%,rgba(35,31,27,.1) 30%,rgba(35,31,27,.18) 52%,rgba(35,31,27,.78) 100%);opacity:1;z-index:0}
.ch-hero-text{padding:7rem 1.5rem 3.2rem}
.ch-hero h1{color:#fff;font-size:clamp(2.6rem,6.4vw,4.8rem);font-weight:400;letter-spacing:.12em;text-shadow:0 2px 24px rgba(0,0,0,.5),0 0 2px rgba(0,0,0,.3)}
.ch-hero .sub{color:#F4EFE6;font-size:1.02rem;max-width:640px;text-shadow:0 1px 12px rgba(0,0,0,.6)}
.ch-hero .hero-script{text-shadow:0 2px 14px rgba(0,0,0,.45)}
.ch-hero-cta{margin:1.6rem 0 0}
.ch-hero-cta .btn{text-decoration:none;margin:0}
/* the clips are AI-generated: the same corner caption as /communities and /inventory */
.ch-hero>.ch-hero-cap{position:absolute;right:1rem;bottom:.7rem;margin:0;font-size:.66rem;letter-spacing:.08em;color:rgba(251,249,244,.72)}

/* one line under the lead: what the amenity center is, with a jump link */
.am-lead{max-width:52rem;border-left:3px solid var(--gold);padding:.15rem 0 .15rem 1rem}

/* the band */
.am-band{background:var(--burgundy-deep);color:var(--cream);padding:2.6rem 2.2rem;position:relative;overflow:hidden}
.am-band::after{content:"\25C6";position:absolute;right:-3.2rem;bottom:-6.4rem;font-size:15rem;line-height:1;color:rgba(217,188,127,.07);pointer-events:none}
.cp .am-band h2{color:var(--cream);font-size:clamp(1.8rem,3.4vw,2.6rem);margin-bottom:.6rem}
.cp .am-band p{color:#E9E3D8;max-width:44rem;position:relative}
.cp .am-band .am-kicker{font-size:.66rem;letter-spacing:.22em;text-transform:uppercase;color:var(--gold-bright);margin:0 0 .5rem}
.cp .am-band .am-status{margin:0 0 1rem}
.am-pill{display:inline-block;font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;font-weight:500;color:var(--burgundy-deep);background:var(--gold-bright);padding:.34rem .8rem;border-radius:999px;white-space:nowrap}
.am-checks{list-style:none;margin:1.2rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.55rem 1.4rem;position:relative}
.am-checks li{position:relative;padding-left:1.4rem;font-size:.95rem}
.am-checks li::before{content:"\25C6";position:absolute;left:0;top:.08rem;color:var(--gold-bright);font-size:.72rem}
.cp .am-band .am-also{margin:1.2rem 0 0}

/* illustrative renderings (only for an amenity center that isn't built yet) */
.am-renders{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:.8rem;margin:1.8rem 0 0;position:relative;z-index:1}
.am-renders figure{margin:0;min-height:0}
.am-renders img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:var(--sand)}
.am-renders figure:nth-child(2) img{aspect-ratio:auto;height:100%}
.cp .am-band .am-cap{font-size:.72rem;color:rgba(233,227,216,.68);margin:.6rem 0 0}

/* HOA, taxes and schools */
.am-dl>div{padding-right:1.2rem}
.am-dl dd{line-height:1.6}

@media (max-width:820px){
  .am-band{padding:2rem 1.3rem}
}
@media (max-width:700px){
  .page-hero.ch-hero{min-height:420px}
  .ch-hero-text{padding:6rem 16px 3.4rem}
  .ch-hero>.ch-hero-cap{font-size:.58rem;right:.6rem;bottom:.45rem}
  .am-renders{grid-template-columns:minmax(0,1fr)}
  .am-renders figure:nth-child(2) img{aspect-ratio:16/9;height:auto}
}
