/* ===================================================================
   Undo Fundo — Community page custom sections
   Reuses the global FoundersCard-CDN design system for nav / footer /
   stats / testimonials / buttons; this file only styles the bespoke
   community sections (hero, pillars, how-we-gather, faces, cities).
   =================================================================== */

/* Responsive nav wordmark — shrink so it never overlaps the menu toggle on phones */
@media (max-width: 600px) {
  .uf-logo { font-size: 14px !important; letter-spacing: .08em !important; }
  .uf-logo--footer { font-size: 18px !important; }
}

/* Mission + Stats band — identical to the About page (.uf-ab-impact) */
.uf-ab-impact { position:relative; background:#15161a center/cover no-repeat; color:#fff; overflow:hidden; border:8px solid #fff; border-radius:24px; background-clip:padding-box; }
.uf-ab-impact::after { content:""; position:absolute; inset:0; border-radius:16px; background:linear-gradient(90deg, rgba(8,9,11,.82) 0%, rgba(8,9,11,.34) 34%, rgba(8,9,11,.30) 60%, rgba(8,9,11,.74) 100%); }
.uf-ab-impact-inner { position:relative; z-index:2; width:min(1480px,94vw); margin:0 auto; display:flex; justify-content:space-between; align-items:center; gap:clamp(30px,5vw,80px); min-height:clamp(520px,58vw,760px); padding:clamp(48px,6vw,90px) 0; }
.uf-ab-impact-text { flex:0 1 420px; max-width:420px; }
.uf-ab-impact-text h2 { font-family:var(--uf-serif); font-weight:300; font-size:clamp(34px,3.8vw,52px); line-height:1.04; }
.uf-ab-impact-text h2 em { font-style:italic; }
.uf-ab-impact-text p { font-family:var(--uf-sans); font-size:16.5px; line-height:1.55; color:rgba(255,255,255,.85); margin-top:20px; max-width:380px; }
.uf-ab-impact-cta { margin-top:32px; display:inline-flex; }
.uf-ab-stats { flex:0 1 520px; max-width:520px; background:rgba(255,255,255,.08); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.12); border-radius:18px; overflow:hidden; }
.uf-ab-stat-row { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:clamp(26px,3vw,40px) clamp(30px,3.2vw,48px); border-top:1px solid rgba(255,255,255,.12); }
.uf-ab-stat-row:first-child { border-top:none; }
.uf-ab-stat-figure { font-family:var(--uf-serif); font-weight:300; font-size:clamp(40px,4.2vw,62px); line-height:1; letter-spacing:-.01em; color:#fff; white-space:nowrap; }
.uf-ab-stat-label { font-family:var(--uf-sans); font-size:15px; line-height:1.45; color:rgba(255,255,255,.8); text-align:right; max-width:230px; }
@media (max-width:860px) {
  .uf-ab-impact-inner { flex-direction:column; align-items:stretch; min-height:0; gap:32px; }
  .uf-ab-impact-text { flex:none; max-width:none; }
  .uf-ab-stats { flex:none; max-width:none; }
}

:root {
  --uf-ink: #2d2d2d;
  --uf-dark: #0e0f10;
  --uf-cream: #f3f1ea;
  --uf-gold: #c09123;
  --uf-serif: "Feature Display", Georgia, "Times New Roman", serif;
  --uf-sans: "Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- shared rhythm ---- */
.uf-c-section { padding: 110px 0; }
.uf-c-wrap { width: min(1240px, 92vw); margin: 0 auto; }
.uf-c-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.uf-c-eyebrow {
  font-family: var(--uf-sans);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--uf-gold);
  margin-bottom: 18px;
}
.uf-c-title {
  font-family: var(--uf-serif);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--uf-ink);
}
.uf-c-title em { font-style: italic; color: var(--uf-ink); }
.uf-c-lead {
  font-family: var(--uf-sans);
  font-size: 18px;
  line-height: 1.55;
  color: #5b5b58;
  margin-top: 20px;
}
.uf-on-dark .uf-c-title,
.uf-on-dark .uf-c-title em { color: #fff; }
.uf-on-dark .uf-c-lead { color: rgba(255,255,255,.78); }

/* ===================== HERO ===================== */
.uf-c-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #0e0f10 center/cover no-repeat;
}
.uf-c-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,10,.55) 0%, rgba(8,9,10,.35) 38%, rgba(8,9,10,.82) 100%);
}
.uf-c-hero-inner {
  position: relative;
  z-index: 2;
  width: min(900px, 90vw);
  padding: 120px 0 90px;
}
.uf-c-hero h1 {
  font-family: var(--uf-serif);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -.015em;
}
.uf-c-hero h1 em { font-style: italic; }
.uf-c-hero p {
  font-family: var(--uf-sans);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: rgba(255,255,255,.86);
  max-width: 640px;
  margin: 26px auto 0;
}
.uf-c-hero-cta { margin-top: 40px; display: inline-flex; }
.uf-c-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; opacity: .8;
}
.uf-c-scroll svg { width: 26px; height: 26px; }

/* ===================== PILLARS ===================== */
.uf-pillars-section { background: var(--uf-cream); }
.uf-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.uf-pillar {
  background: #fff;
  border: 1px solid #e7e3d8;
  border-radius: 18px;
  padding: 36px 30px 40px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.uf-pillar:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(0,0,0,.35); }
/* Photo pillar — image card with text at the bottom (no number badge) */
.uf-pillar--photo {
  position: relative;
  overflow: hidden;
  background: #222 center/cover no-repeat;
  border: none;
  min-height: 460px;
  justify-content: flex-end;
  padding: 30px;
}
.uf-pillar--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.32) 64%, rgba(0,0,0,.8) 100%);
}
.uf-pillar--photo > * { position: relative; z-index: 1; }
.uf-pillar--photo .uf-pillar-num { display: none; }
.uf-pillar.uf-pillar--photo h3 { color: #fff; margin: 0 0 8px; }
.uf-pillar.uf-pillar--photo p { color: rgba(255,255,255,.92); margin: 0; }
.uf-pillar-num {
  font-family: var(--uf-sans);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--uf-gold);
  margin-bottom: 26px;
}
.uf-pillar h3 {
  font-family: var(--uf-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  color: var(--uf-ink);
  margin-bottom: 14px;
}
.uf-pillar p {
  font-family: var(--uf-sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: #66655f;
  margin-top: auto;
}

/* ===================== HOW WE GATHER ===================== */
.uf-gather-section { background: #fff; }
.uf-gather { display: flex; flex-direction: column; gap: 26px; }
.uf-gather-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--uf-cream);
  min-height: 420px;
}
.uf-gather-row:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.uf-gather-row:nth-child(even) .uf-gather-media { order: 2; }
.uf-gather-media {
  background: #ccc center/cover no-repeat;
  min-height: 320px;
}
.uf-gather-body {
  padding: clamp(34px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.uf-gather-index {
  font-family: var(--uf-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--uf-gold);
  margin-bottom: 16px;
}
.uf-gather-kicker {
  font-family: var(--uf-sans);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a8980;
  margin-bottom: 18px;
}
.uf-gather-body h3 {
  font-family: var(--uf-serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.06;
  color: var(--uf-ink);
  margin-bottom: 16px;
}
.uf-gather-body p {
  font-family: var(--uf-sans);
  font-size: 17px;
  line-height: 1.55;
  color: #5d5c56;
  max-width: 460px;
}

/* ===================== FACES ===================== */
.uf-faces-section { background: var(--uf-cream); }
.uf-faces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.uf-face {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 440px;
  background: #222 center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.uf-face::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.78) 100%);
}
.uf-face-body { position: relative; z-index: 2; padding: 30px; }
.uf-face-body span {
  font-family: var(--uf-sans);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--uf-gold);
}
.uf-face-body h3 {
  font-family: var(--uf-serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.08;
  margin-top: 10px;
}
.uf-face-body p {
  font-family: var(--uf-sans);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,.82);
  margin-top: 10px;
}

/* ===================== GLOBAL CITIES ===================== */
.uf-cities-section { background: var(--uf-dark); color: #fff; }
.uf-cities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow: hidden;
}
.uf-city {
  background: var(--uf-dark);
  padding: 22px 18px;
  text-align: center;
  font-family: var(--uf-sans);
  font-size: 15px;
  letter-spacing: .02em;
  color: rgba(255,255,255,.82);
  transition: background .3s ease, color .3s ease;
}
.uf-city:hover { background: #17181a; color: #fff; }

/* ===================== CTA ===================== */
.uf-cta-section {
  background: var(--uf-dark);
  color: #fff;
  text-align: center;
  padding: 130px 0;
}
.uf-cta-section .uf-c-title { color: #fff; }
.uf-cta-section .uf-c-title em { color: #fff; }
.uf-cta-section .uf-c-cta { margin-top: 40px; display: inline-flex; }

/* ===================== NAV: transparent over the hero, solid once scrolled =====================
   The solid background goes on the inset .navbar pill (like the homepage), NOT the full-width
   .nav-container — so it never bleeds over the hero's white frame. */
/* Keep the fixed menu visible — the CDN scroll script otherwise fades/moves it away */
.nav-container { background: transparent; transform: none !important; opacity: 1 !important; pointer-events: auto !important; }
.navbar { transition: background .3s ease; }
.nav-container.uf-nav-solid .navbar { background: #15161a; }

/* Keep the menu white at all times (no gold), incl. hover/active — matches FoundersCard */
.nav-desktop-menu > a,
.nav-desktop-menu > a:hover,
.nav-desktop-menu > a.uf-active { color: #fff !important; }

/* Render the white menu text crisp (not heavy/bold-looking) on the dark bar */
.nav-desktop-menu > a {
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===================== WHITE-FRAMED MEDIA (matches legacy hero frame) ===================== */
.uf-c-hero,
.uf-impact,
.uf-globe,
.uf-cta-section.uf-c-cta-photo {
  border: 8px solid #fff;
  border-radius: 24px;
  background-clip: padding-box;
}
.uf-c-hero::after,
.uf-impact::after,
.uf-globe::after,
.uf-cta-section.uf-c-cta-photo::after {
  border-radius: 16px;
}

/* ===================== MISSION + STATS (photo left, stat rows right) ===================== */
.uf-impact { position: relative; background: #15161a center/cover no-repeat; color: #fff; overflow: hidden; }
.uf-impact::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,10,.82) 0%, rgba(8,9,10,.5) 52%, rgba(8,9,10,.2) 100%); }
.uf-impact-inner { position: relative; z-index: 2; width: min(1240px, 92vw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,72px); align-items: center; padding: clamp(70px,8vw,120px) 0; }
.uf-impact-text h2 { font-family: var(--uf-serif); font-weight: 300; font-size: clamp(32px,4vw,54px); line-height: 1.04; }
.uf-impact-text h2 em { font-style: italic; }
.uf-impact-text p { font-family: var(--uf-sans); font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.82); margin-top: 20px; max-width: 460px; }
.uf-impact-cta { margin-top: 30px; display: inline-flex; }
.uf-impact-stats { display: flex; flex-direction: column; }
.uf-impact-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 26px 32px; background: rgba(255,255,255,.06); border-top: 1px solid rgba(255,255,255,.14); }
.uf-impact-stat:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.uf-impact-figure { font-family: var(--uf-serif); font-weight: 300; font-size: clamp(32px,4vw,52px); line-height: 1; }
.uf-impact-label { font-family: var(--uf-sans); font-size: 13px; color: rgba(255,255,255,.68); text-align: right; max-width: 190px; }

/* ===================== GLOBE + CITY PILLS (marquee) ===================== */
.uf-globe { position: relative; background: #08090a center/cover no-repeat; color: #fff; overflow: hidden; padding: clamp(80px,9vw,130px) 0 clamp(40px,5vw,70px); }
.uf-globe-head { text-align: center; max-width: 760px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
.uf-globe-marquees { margin-top: clamp(50px,7vw,90px); display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 2; }
.uf-marquee-track { overflow: hidden; }
.uf-marquee { display: flex; gap: 14px; width: max-content; animation: uf-marquee-l 45s linear infinite; }
.uf-marquee--rev { animation-name: uf-marquee-r; }
@keyframes uf-marquee-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes uf-marquee-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.uf-pill { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 12px 26px; font-family: var(--uf-sans); font-size: 15px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.04); white-space: nowrap; }

/* ===================== MEET OUR MEMBERS (portrait cards) ===================== */
.uf-members-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.uf-member { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; }
.uf-member-img { position: absolute; inset: 0; background: #222 center/cover no-repeat; }
.uf-member::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.82) 100%); }
.uf-member-plus { position: absolute; top: 16px; right: 16px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #15161a; display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }
.uf-member-info { position: absolute; left: 22px; bottom: 22px; z-index: 3; color: #fff; }
.uf-member-info h3 { font-family: var(--uf-serif); font-weight: 500; font-size: 21px; line-height: 1.1; }
.uf-member-info span { font-family: var(--uf-sans); font-size: 13px; color: rgba(255,255,255,.8); }

/* ===================== CTA over a photo ===================== */
.uf-cta-section.uf-c-cta-photo { position: relative; background: #0e0f10 center/cover no-repeat; }
.uf-cta-section.uf-c-cta-photo::after { content: ""; position: absolute; inset: 0; background: rgba(8,9,10,.55); }
.uf-cta-section.uf-c-cta-photo .uf-c-wrap { position: relative; z-index: 2; }
.uf-c-cta-eyebrow { font-family: var(--uf-sans); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #e9c87a; margin-bottom: 22px; }

@media (max-width: 860px) {
  .uf-impact-inner { grid-template-columns: 1fr; }
  .uf-members-grid { grid-template-columns: 1fr; max-width: 380px; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .uf-pillars { grid-template-columns: repeat(2, 1fr); }
  .uf-faces { grid-template-columns: repeat(3, 1fr); }
  .uf-cities { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .uf-c-section { padding: 76px 0; }
  .uf-pillars { grid-template-columns: 1fr; }
  .uf-gather-row,
  .uf-gather-row:nth-child(even) { grid-template-columns: 1fr; }
  .uf-gather-row:nth-child(even) .uf-gather-media { order: 0; }
  .uf-gather-media { min-height: 240px; }
  .uf-faces { grid-template-columns: 1fr; }
  .uf-cities { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Keep faces in frame on cover-cropped people photos (about + community).
   Default 50% 50% cuts heads on narrow/short crops; bias toward the
   upper third where faces sit.
   ============================================================ */
.uf-ab-card-img,
.uf-ab-gallery-img,
.uf-ab-story2-photo,
.uf-ab-impact,
.uf-gather-media,
.uf-member-img,
.uf-pillar { background-position: center 28%; }

/* ============================================================
   Testimonial avatars — small round headshots (match homepage)
   ============================================================ */
.testimonials .testimonial-avatar { width: 52px !important; height: 52px !important; object-fit: cover; border-radius: 50%; flex: 0 0 auto; }

/* ============================================================
   Hero video white frame — match the founders-style hero border
   (homepage/legacy/dinner/seniors get an 8px white rounded frame
   from the page behind; the community hero is full-bleed dark, so
   give it the same visible white border on every device).
   ============================================================ */
.uf-c-hero { border: 8px solid #fff; border-radius: 28px; }
@media (max-width: 760px) { .uf-c-hero { border-width: 6px; border-radius: 20px; } }

/* Remove the decorative "+" badge on member cards */
.uf-member-plus { display: none !important; }
