/* 1UNO V2.7.0 — Communities page reference layout */
.communities-reference-page{
  --cr-black:#0d0e10;
  --cr-ink:#17191d;
  --cr-muted:#66707d;
  --cr-gold:#c79a43;
  --cr-gold-soft:#e3bd6b;
  --cr-line:#d9dde2;
  --cr-soft:#f4f6f8;
  --cr-container:1400px;
  margin:0;
  background:#fff;
  color:var(--cr-ink);
  font-family:'League Spartan',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
.communities-reference-page *{box-sizing:border-box}
.communities-reference-page .cr-container{width:min(var(--cr-container),calc(100% - 136px));margin-inline:auto}
.communities-reference-page .cr-page{overflow:hidden}

/* Transparent hero navigation; standard compact header returns on scroll. */
.communities-reference-page .site-header:not(.scrolled).inner-site-header .nav-shell{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
.communities-reference-page .site-header:not(.scrolled) .logo-light{display:block!important}
.communities-reference-page .site-header:not(.scrolled) .logo-dark{display:none!important}
.communities-reference-page .site-header:not(.scrolled) .desktop-nav{color:#fff!important}
.communities-reference-page .site-header:not(.scrolled) .desktop-nav a,
.communities-reference-page .site-header:not(.scrolled) .desktop-nav a:hover,
.communities-reference-page .site-header:not(.scrolled) .desktop-nav a.active{color:#fff!important}
.communities-reference-page .site-header:not(.scrolled) .theme-btn,
.communities-reference-page .site-header:not(.scrolled) .menu-btn{border-color:rgba(255,255,255,.38)!important;background:rgba(255,255,255,.07)!important;color:#fff!important}
.communities-reference-page .site-header:not(.scrolled) .contact-btn{background:var(--cr-gold)!important;color:#111!important}

.cr-hero{
  position:relative;
  min-height:432px;
  display:flex;
  align-items:center;
  color:#fff;
  background:#1a1c20 url('../img/community-abudhabi.webp') center 49%/cover no-repeat;
  overflow:hidden;
}
.cr-hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(12,17,24,.60),rgba(14,18,25,.48) 55%,rgba(12,15,20,.64)),linear-gradient(90deg,rgba(7,8,10,.34),rgba(199,154,67,.05));}
.cr-hero-inner{position:relative;z-index:2;text-align:center;padding-top:78px}
.cr-breadcrumb{display:flex;align-items:center;justify-content:center;gap:9px;margin:0 0 24px;font-size:13px;font-weight:500;color:rgba(255,255,255,.78)}
.cr-breadcrumb a{color:inherit;text-decoration:none}.cr-breadcrumb span:last-child{color:#fff;font-weight:700}
.cr-hero h1{margin:0;font-family:'League Spartan',sans-serif;font-size:clamp(38px,3.35vw,54px);line-height:1.08;font-weight:700;letter-spacing:-.025em;color:#fff}
.cr-hero p{width:min(740px,92%);margin:20px auto 0;font-size:18px;line-height:1.6;color:rgba(255,255,255,.82);font-weight:400}

.cr-stats-wrap{position:relative;z-index:5;margin-top:-24px}
.cr-stats{display:grid;grid-template-columns:repeat(4,1fr);min-height:112px;background:#fff;border:1px solid #d4dae1;border-radius:19px;box-shadow:0 18px 45px rgba(18,26,35,.10);overflow:hidden}
.cr-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:24px 18px;position:relative;text-align:center}
.cr-stat:not(:last-child)::after{content:"";position:absolute;right:0;top:24px;bottom:24px;width:1px;background:#edf0f3}
.cr-stat strong{font-size:31px;line-height:1;font-weight:700;letter-spacing:-.025em;color:#11141a}
.cr-stat span{font-size:14px;line-height:1.3;color:#657080;font-weight:500}

.cr-browse-section{padding:86px 0 98px;background:#fff}
.cr-section-head h2{margin:0;color:#151820;font-size:clamp(32px,3vw,44px);font-weight:700;line-height:1.12;letter-spacing:-.025em}
.cr-section-head p{margin:18px 0 0;color:#5f6a79;font-size:18px;line-height:1.65}
.cr-center-head{text-align:center;width:min(900px,100%);margin-inline:auto}
.cr-filter-row{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:34px auto 42px}
.cr-filter-chip{height:42px;padding:0 18px;border:1px solid #ced5dd;border-radius:999px;background:#fff;color:#334052;font-size:14px;font-weight:600;cursor:pointer;transition:.2s ease;box-shadow:0 5px 12px rgba(19,29,40,.03)}
.cr-filter-chip:hover{border-color:#b6bdc6;transform:translateY(-1px)}
.cr-filter-chip.active{background:#111317;border-color:#111317;color:#fff;box-shadow:0 10px 22px rgba(17,19,23,.16)}

.cr-community-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.cr-community-card{border:1px solid #d6dce3;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 12px 28px rgba(26,34,44,.07);transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;min-width:0}
.cr-community-card:hover{transform:translateY(-5px);box-shadow:0 22px 40px rgba(22,31,41,.12);border-color:#c8cfd7}
.cr-community-card[hidden]{display:none!important}
.cr-community-media{position:relative;display:block;aspect-ratio:1.13/1;overflow:hidden;background:#e9ecef}
.cr-community-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.cr-community-card:hover .cr-community-media img{transform:scale(1.025)}
.cr-community-media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.12))}
.cr-community-badge{position:absolute;z-index:2;left:13px;top:13px;display:inline-flex;align-items:center;min-height:36px;padding:0 11px;border:1px solid rgba(255,255,255,.70);border-radius:8px;background:rgba(255,255,255,.92);color:#213047;font-size:10px;font-weight:800;letter-spacing:.08em;backdrop-filter:blur(8px)}
.cr-community-copy{padding:22px 21px 20px}
.cr-community-copy h3{margin:0;font-size:23px;line-height:1.15;font-weight:700;letter-spacing:-.015em;color:#171b23}
.cr-community-copy>p{min-height:72px;margin:12px 0 15px;font-size:14px;line-height:1.55;color:#596575}
.cr-tag-row,.cr-corridor-tags{display:flex;flex-wrap:wrap;gap:7px}
.cr-tag-row span,.cr-corridor-tags span{display:inline-flex;align-items:center;min-height:33px;padding:0 10px;border:1px solid #d5dbe2;border-radius:999px;background:#fff;color:#39475a;font-size:11px;font-weight:500}
.cr-card-divider,.cr-corridor-divider{height:1px;background:#e5e9ed;margin:19px 0 17px}
.cr-community-foot,.cr-corridor-foot{display:flex;align-items:center;justify-content:space-between;gap:15px}
.cr-community-foot small,.cr-corridor-foot small{display:block;margin-bottom:5px;color:#7f8997;font-size:9px;font-weight:800;letter-spacing:.12em}
.cr-community-foot strong,.cr-corridor-foot strong{display:block;color:#1d2430;font-size:16px;line-height:1.1;font-weight:600}
.cr-round-arrow{width:49px;height:49px;flex:0 0 49px;display:grid;place-items:center;border-radius:50%;background:#111317;color:#fff;font-size:23px;line-height:1;transition:.2s ease}
.cr-round-arrow:hover{background:var(--cr-gold);color:#111}
.cr-empty{margin:34px auto 0;padding:34px;border:1px solid #d9dee4;border-radius:18px;background:#fafbfc;text-align:center;max-width:680px}
.cr-empty strong,.cr-empty span{display:block}.cr-empty strong{font-size:22px}.cr-empty span{margin-top:8px;color:#66717f}.cr-empty a{display:inline-flex;margin-top:18px;padding:12px 18px;border-radius:999px;background:#111;color:#fff;font-weight:700}

.cr-corridors-section{padding:92px 0 100px;background:#f0f3f7;border-top:1px solid #e7ebef;border-bottom:1px solid #e7ebef}
.cr-corridors-head{margin-bottom:50px}
.cr-corridor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;align-items:stretch}
.cr-corridor-card{display:flex;flex-direction:column;min-height:360px;padding:24px 22px 20px;border:1px solid #cfd6de;border-radius:18px;background:#fff;box-shadow:0 12px 28px rgba(21,29,38,.07)}
.cr-corridor-card-last{grid-column:2/span 2}
.cr-corridor-kicker{display:inline-flex;align-self:flex-start;min-height:38px;align-items:center;padding:0 10px;border:1px solid #c9d1da;border-radius:6px;color:#334156;font-size:10px;font-weight:800;letter-spacing:.09em}
.cr-corridor-card h3{margin:17px 0 10px;color:#171b23;font-size:22px;font-weight:700}
.cr-corridor-card>p{margin:0 0 17px;color:#556274;font-size:14px;line-height:1.58}
.cr-corridor-card .cr-corridor-divider{margin-top:auto}

.cr-context-section{padding:104px 0;background:#fff}
.cr-context-grid{display:grid;grid-template-columns:.78fr 1.22fr;gap:72px;align-items:center}
.cr-eyebrow{display:block;margin-bottom:22px;color:#9d7229;font-size:12px;font-weight:800;letter-spacing:.23em}
.cr-context-copy h2{max-width:560px;margin:0;color:#171a20;font-size:clamp(36px,3.4vw,52px);line-height:1.13;letter-spacing:-.03em;font-weight:700}
.cr-context-copy p{max-width:570px;margin:22px 0 0;color:#596575;font-size:17px;line-height:1.65}
.cr-context-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cr-context-cards article{min-height:190px;padding:25px 25px 22px;border:1px solid #cfd6de;border-radius:17px;background:#fff;box-shadow:0 7px 20px rgba(20,30,42,.04)}
.cr-context-icon{display:block;width:30px;height:30px;color:#111}
.cr-context-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cr-context-cards h3{margin:18px 0 9px;color:#171b23;font-size:19px;font-weight:700}
.cr-context-cards p{margin:0;color:#566375;font-size:14px;line-height:1.55}

.cr-cta-section{padding:0 0 92px;background:#fff}
.cr-cta-card{position:relative;min-height:355px;display:grid;place-items:center;border-radius:21px;overflow:hidden;background:#20252b url('../img/community-waterfront.webp') center 50%/cover no-repeat;box-shadow:0 18px 40px rgba(14,20,28,.13)}
.cr-cta-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(17,22,27,.33),rgba(13,17,22,.66))}
.cr-cta-content{position:relative;z-index:2;width:min(760px,90%);text-align:center;color:#fff}
.cr-cta-content h2{margin:0;font-size:clamp(31px,3vw,44px);line-height:1.14;font-weight:700;letter-spacing:-.02em}
.cr-cta-content p{margin:16px auto 0;color:rgba(255,255,255,.84);font-size:17px;line-height:1.55}
.cr-cta-actions{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:31px}
.cr-cta-primary,.cr-cta-secondary{min-width:170px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;padding:0 20px;border-radius:8px;font-size:16px;font-weight:700;transition:.2s ease}
.cr-cta-primary{background:#fff;color:#111;border:1px solid #fff}.cr-cta-secondary{background:rgba(17,17,17,.18);color:#fff;border:1px solid rgba(255,255,255,.56);backdrop-filter:blur(8px)}
.cr-cta-primary:hover{background:var(--cr-gold);border-color:var(--cr-gold)}.cr-cta-secondary:hover{border-color:var(--cr-gold);color:#fff}

@media(max-width:1180px){
  .communities-reference-page .cr-container{width:min(var(--cr-container),calc(100% - 60px))}
  .cr-community-grid,.cr-corridor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cr-corridor-card-last{grid-column:auto}
  .cr-context-grid{grid-template-columns:1fr;gap:44px}
  .cr-context-copy{text-align:center}.cr-context-copy h2,.cr-context-copy p{margin-left:auto;margin-right:auto}
}
@media(max-width:860px){
  .communities-reference-page .cr-container{width:calc(100% - 36px)}
  .cr-hero{min-height:410px;background-position:58% center}
  .cr-hero-inner{padding-top:84px}
  .cr-stats{grid-template-columns:repeat(2,1fr)}
  .cr-stat:nth-child(2)::after{display:none}.cr-stat:nth-child(-n+2){border-bottom:1px solid #edf0f3}
  .cr-browse-section,.cr-corridors-section,.cr-context-section{padding-top:72px;padding-bottom:78px}
  .cr-community-copy>p{min-height:0}
}
@media(max-width:650px){
  .communities-reference-page .cr-container{width:calc(100% - 24px)}
  .cr-hero{min-height:390px;background-position:62% center}
  .cr-hero-inner{padding-top:80px}
  .cr-breadcrumb{margin-bottom:18px;font-size:12px}
  .cr-hero h1{font-size:36px}
  .cr-hero p{font-size:15px;line-height:1.55}
  .cr-stats-wrap{margin-top:-17px}
  .cr-stats{border-radius:16px;min-height:0}
  .cr-stat{padding:20px 10px}.cr-stat strong{font-size:26px}.cr-stat span{font-size:12px}
  .cr-section-head h2{font-size:31px}.cr-section-head p{font-size:15px;line-height:1.55}
  .cr-filter-row{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding:0 2px 8px;margin:28px 0 32px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.cr-filter-row::-webkit-scrollbar{display:none}.cr-filter-chip{flex:0 0 auto}
  .cr-community-grid,.cr-corridor-grid,.cr-context-cards{grid-template-columns:1fr}
  .cr-community-media{aspect-ratio:1.42/1}
  .cr-community-copy{padding:19px 18px}.cr-community-copy h3{font-size:21px}
  .cr-corridor-card{min-height:0}.cr-context-copy{text-align:left}.cr-context-copy h2{font-size:34px}.cr-context-copy p{font-size:15px}
  .cr-context-cards article{min-height:0;padding:21px}
  .cr-cta-section{padding-bottom:70px}.cr-cta-card{min-height:320px;border-radius:18px}.cr-cta-content p{font-size:15px}.cr-cta-actions{flex-direction:column}.cr-cta-primary,.cr-cta-secondary{width:min(280px,100%)}
}
@media(max-width:420px){
  .communities-reference-page .cr-container{width:calc(100% - 20px)}
  .cr-hero{min-height:370px}.cr-hero h1{font-size:32px}.cr-hero p{width:96%}
  .cr-stat strong{font-size:24px}.cr-stat span{font-size:11px}
  .cr-community-media{aspect-ratio:1.28/1}
}
