.communities-page .communities-hero{min-height:clamp(580px,69vh,800px);background:#123b5b;color:#fff;display:grid;grid-template-columns:minmax(0,45%) minmax(0,55%);overflow:hidden}
.communities-hero-copy{align-self:center;padding:76px max(36px,calc((100vw - 1180px)/2)) 92px;position:relative;z-index:1}
.communities-hero .eyebrow{color:#f0b35c;letter-spacing:.2em}
.communities-hero h1{color:#fff;font-size:clamp(3.5rem,5.8vw,6.3rem);line-height:1.04;letter-spacing:-.035em;max-width:620px;margin:16px 0 27px}
.communities-hero-copy>p:not(.eyebrow){color:#e1eaf0;font-size:clamp(1.06rem,1.4vw,1.23rem);line-height:1.75;max-width:510px;margin:0 0 36px}
.communities-hero-link{display:inline-flex;align-items:center;gap:18px;color:#fff;text-decoration:none;font-size:.88rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.communities-hero-link span{display:grid;place-items:center;border:1px solid #d99a44;border-radius:50%;width:48px;height:48px;font-size:1.35rem;transition:background .25s,transform .25s}
.communities-hero-link:hover span{background:#d99a44;color:#123b5b;transform:translateY(4px)}
.communities-hero-photos{display:grid;grid-template-columns:1.06fr .94fr;grid-template-rows:1fr 1fr;gap:9px;min-height:580px;overflow:hidden}
.communities-hero-photos img{width:100%;height:100%;object-fit:cover;transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.communities-hero-photos img:first-child{grid-row:span 2}
.communities-hero-photos:hover img{transform:scale(1.035)}
.communities-intro{background:#fff;padding:105px 0 80px}
.communities-intro .wrap{display:grid;grid-template-columns:1fr 1fr;gap:10%;align-items:end}
.communities-intro h2{font-size:clamp(2.6rem,4vw,4.5rem);letter-spacing:-.035em;margin:8px 0 0;max-width:510px}
.communities-intro .intro-right{border-left:2px solid #d6983a;padding:8px 0 8px 27px}
.communities-intro .intro-right p{font-size:1.1rem;line-height:1.8;color:#536571;margin:0;max-width:530px}
.communities-browse{background:#f5f3ee;padding:34px 0 112px;scroll-margin-top:90px}
.communities-filter-bar{border-top:1px solid #d9dedc;border-bottom:1px solid #d9dedc;padding:22px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:44px}
.communities-filter-bar>span{font-weight:700;color:var(--navy);font-size:.82rem;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
.communities-page .community-filter{justify-content:flex-end;margin:0;gap:8px}
.communities-page .filter-btn{padding:8px 17px;background:#fff;border-color:#d7d6d0;font-size:.9rem}
.communities-page .filter-btn.active,.communities-page .filter-btn:hover{background:var(--navy);border-color:var(--navy);color:#fff}
.communities-results{font-size:.9rem;color:#566771;margin:0 0 22px}
.communities-page .community-grid{display:grid;grid-template-columns:1fr;gap:40px}
.communities-page .community-card{display:grid;grid-template-columns:52% 48%;min-height:420px;border:0;background:#fff;box-shadow:0 12px 38px #173c5a0b;overflow:hidden}
.communities-page .community-card:nth-child(even){grid-template-columns:48% 52%}
.communities-page .community-card:nth-child(even) .community-card-media{order:2}
.communities-page .community-card-media{overflow:hidden;min-height:420px;position:relative}
.communities-page .community-card img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.communities-page .community-card:hover{transform:none;box-shadow:0 20px 48px #173c5a16}
.communities-page .community-card:hover img{transform:scale(1.06)}
.communities-page .community-card-body{padding:clamp(30px,5vw,70px);justify-content:center;align-items:flex-start}
.communities-page .community-card .location{font-size:.8rem;letter-spacing:.16em;margin:0 0 17px;color:#a66314}
.communities-page .community-card h3{font-size:clamp(2rem,3vw,3.3rem);line-height:1.18;letter-spacing:-.025em;margin:0 0 22px;max-width:500px}
.communities-page .community-card-body .card-rule{height:2px;width:50px;background:#d6983a;margin-bottom:20px}
.communities-page .community-card-body>p:not(.location){font-size:1rem;line-height:1.75;color:#5b6972;margin:0 0 26px}
.communities-page .community-card .text-link{font-size:.88rem;letter-spacing:.05em;text-transform:uppercase;padding-bottom:6px;transition:gap .2s}
.communities-page .community-card .text-link:hover{gap:15px}
.communities-page .community-card[hidden]{display:none}

/* Community cards show the living options alongside each location. */
@media(min-width:761px){
  .communities-page .community-card,.communities-page .community-card:nth-child(even){grid-template-columns:minmax(235px,34%) minmax(0,1fr) minmax(205px,23%);min-height:330px}
  .communities-page .community-card:nth-child(even) .community-card-media{order:0}
  .communities-page .community-card-media{min-height:330px}
  .communities-page .community-card-body{padding:32px clamp(24px,3vw,48px)}
  .communities-page .community-card h3{font-size:clamp(1.7rem,2.35vw,2.65rem);margin-bottom:15px}
  .communities-page .community-card-body>p:not(.location){margin-bottom:19px}
}
.community-card-care{align-self:center;border-left:1px solid #d9e1df;padding:14px clamp(20px,2.6vw,42px);color:var(--navy)}
.community-card-care-title{margin:0 0 14px;color:#a06115;font-size:.71rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase}
.community-care-list{list-style:none;padding:0;margin:0;display:grid;gap:15px}
.community-care-list li{display:flex;align-items:flex-start;gap:10px;font-size:.9rem;font-weight:700;line-height:1.35}
.community-care-list li::before{content:'✓';display:grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;background:#d89127;color:#fff;font-size:.73rem;line-height:1}
@media(max-width:760px){.community-card-care{align-self:stretch;margin:0 30px 28px;border-left:0;border-top:1px solid #d9e1df;padding:22px 0 0}.community-care-list{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}}
.communities-page .page-cta{padding:90px 0}
@media(max-width:980px){.communities-hero-copy{padding:60px 40px}.communities-page .community-card{min-height:360px}.communities-page .community-card-media{min-height:360px}.communities-page .community-card-body{padding:34px}.communities-page .community-card h3{font-size:2.35rem}}
@media(max-width:760px){.communities-page .communities-hero{display:flex;flex-direction:column;min-height:0}.communities-hero-copy{padding:68px 26px 60px}.communities-hero h1{font-size:clamp(3.2rem,11vw,5rem)}.communities-hero-photos{min-height:310px;height:310px}.communities-intro{padding:70px 0 58px}.communities-intro .wrap{display:block}.communities-intro h2{margin-bottom:28px}.communities-intro .intro-right{padding-left:20px}.communities-browse{padding:20px 0 72px}.communities-filter-bar{display:block}.communities-page .community-filter{justify-content:flex-start;margin-top:14px}.communities-page .filter-btn{padding:7px 13px}.communities-page .community-grid{gap:27px}.communities-page .community-card,.communities-page .community-card:nth-child(even){display:flex;flex-direction:column;min-height:0}.communities-page .community-card:nth-child(even) .community-card-media{order:0}.communities-page .community-card-media{height:250px;min-height:0}.communities-page .community-card-body{padding:30px}.communities-page .community-card h3{font-size:2.15rem;margin-bottom:17px}.communities-page .page-cta{padding:70px 0}}
@media(prefers-reduced-motion:reduce){.communities-hero-photos img,.communities-page .community-card img,.communities-hero-link span{transition:none}}

/* Keep services distinct from the living options used by the map filter. */
@media(min-width:761px){
  .communities-page .community-card,.communities-page .community-card:nth-child(even){min-height:380px}
  .communities-page .community-card-media{min-height:380px}
}
.community-card-services{margin-top:21px;padding-top:18px;border-top:1px solid #e1e8e6}
.community-card-services .community-card-care-title{margin-bottom:12px}
.community-service-list{list-style:none;padding:0;margin:0;display:grid;gap:11px}
.community-service-list li{display:flex;align-items:flex-start;gap:10px;font-size:.85rem;font-weight:600;line-height:1.35}
.community-service-list li::before{content:"\2713";display:grid;place-items:center;flex:none;width:19px;height:19px;border-radius:50%;background:#e5eff1;color:var(--navy);font-size:.73rem;line-height:1}
@media(max-width:760px){.community-service-list{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}}

/* Keep the opening image and heading in a balanced frame at wide screen sizes. */
@media(min-width:761px){
  .communities-page .communities-hero{height:clamp(620px,70vh,720px);min-height:0;grid-template-columns:minmax(0,46%) minmax(0,54%)}
  .communities-hero-copy{min-width:0;padding:48px clamp(32px,4vw,76px)}
  .communities-hero h1{font-size:clamp(3.4rem,4.6vw,5.2rem);max-width:640px}
  .communities-hero-photos{display:block;height:100%;min-height:0}
}
.communities-hero-photos{display:block;overflow:hidden}
.communities-hero-photos img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 62%}
@media(max-width:760px){
  .communities-hero-photos{height:310px;min-height:0}
}

/* A calm, open backdrop for browsing locations. */
.communities-intro{background:#eaf1ee;padding:92px 0 88px}
.communities-browse{background:radial-gradient(circle at 8% 2%,#f5faf7 0,transparent 34%),radial-gradient(circle at 96% 52%,#e1eeea 0,transparent 38%),#eaf1ee}
.communities-page .community-grid{gap:28px}
.communities-page .community-card{border-radius:20px;box-shadow:0 12px 36px #153d6012}
.communities-page .community-card:hover{box-shadow:0 18px 42px #153d6020}
@media(max-width:760px){.communities-intro{padding:68px 0 60px}.communities-page .community-grid{gap:22px}.communities-page .community-card{border-radius:16px}}
.communities-page .community-card[hidden]{display:none}
