/* ============================================================
   ADVANCED GLOBAL CLIMATE FUND — SITE STYLESHEET
   ------------------------------------------------------------
   EDIT HERE: brand colors & fonts (change once, applies site-wide)
   ============================================================ */
:root{
  --teal:#178780;
  --navy:#0b2244;
  --ink:#343234;
  --white:#ffffff;
  --teal-light:#5fc4bd;
  --teal-tint:#eef6f5;
  --line:#e2e6ea;
  --grey:#6b7280;
  --font-primary:"Century Gothic","CenturyGothic","Jost",sans-serif;
  --font-secondary:"Helvetica Neue",Helvetica,Arial,sans-serif;
  --max:1140px;
}

/* ---------- base ---------- */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
body{font-family:var(--font-secondary);color:var(--ink);background:var(--white);line-height:1.65;font-size:16px;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,.eyebrow{font-family:var(--font-primary)}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
a{color:var(--teal);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
img{max-width:100%;display:block}
.eyebrow{font-size:.74rem;font-weight:600;letter-spacing:.3em;text-transform:uppercase;color:var(--teal)}

/* ---------- header / nav ---------- */
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:80px;gap:24px}
.logo{height:44px;width:auto}
nav ul{display:flex;gap:26px;list-style:none;flex-wrap:wrap}
nav a{font-family:var(--font-primary);font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink);font-weight:500}
nav a:hover{color:var(--teal);text-decoration:none}
nav a.active{color:var(--teal);border-bottom:2px solid var(--teal);padding-bottom:4px}
.menu-toggle{display:none;background:none;border:1px solid var(--line);border-radius:6px;padding:8px 12px;font-family:var(--font-primary);font-size:.8rem;letter-spacing:.1em;color:var(--navy);cursor:pointer}

/* ---------- page hero ---------- */
.page-hero{position:relative;color:var(--white);background:var(--navy);overflow:hidden}
.page-hero .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.page-hero .veil{position:absolute;inset:0;background:linear-gradient(100deg,rgba(11,34,68,.94) 25%,rgba(11,34,68,.55) 65%,rgba(23,135,128,.35))}
.page-hero .wrap{position:relative;z-index:2;padding-top:96px;padding-bottom:104px}
.page-hero.tall .wrap{padding-top:140px;padding-bottom:150px}
.page-hero h1{font-size:clamp(2rem,4.6vw,3.6rem);font-weight:500;line-height:1.14;max-width:18ch;margin:16px 0 22px}
.page-hero h1 em{font-style:normal;color:var(--teal-light)}
.page-hero p{max-width:58ch;font-size:1.05rem;color:#c7d2e0}

/* ---------- mid-page photo section (image + veil, like page-hero but for a content block) ---------- */
.photo-section{position:relative;overflow:hidden}
.photo-section .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.photo-section .veil{position:absolute;inset:0;background:linear-gradient(100deg,rgba(238,246,245,.94) 35%,rgba(238,246,245,.8) 70%,rgba(95,196,189,.4))}
.photo-section .wrap{position:relative;z-index:2}

/* ---------- sections ---------- */
section.block .wrap{padding-top:88px;padding-bottom:88px}
section.conviction .wrap{padding-top:48px;padding-bottom:48px}
section.block.tint{background:var(--teal-tint)}
.section-head{max-width:64ch;margin-bottom:52px}
.section-head h2{font-size:clamp(1.5rem,3vw,2.2rem);font-weight:500;color:var(--navy);line-height:1.22;margin:12px 0 16px}
.lede{font-size:1.05rem}
.prose p{margin-bottom:18px;max-width:72ch}
.prose h3{font-size:1.4rem;font-weight:600;color:var(--navy);margin:36px 0 12px;display:flex;align-items:center;gap:10px}
.prose h3 svg{color:var(--teal);flex-shrink:0}
.prose ul{margin:0 0 18px 20px}
.prose li{margin-bottom:8px}

/* ---------- section-head split (text + side graphic) ---------- */
.section-head.split{max-width:none;display:flex;align-items:center;justify-content:space-between;gap:48px}
.section-head.split .text{max-width:64ch}
.section-head.split img{flex-shrink:0;width:480px;height:auto}
@media(max-width:768px){
  .section-head.split{flex-direction:column-reverse}
  .section-head.split img{width:340px}
}

/* ---------- cards & grids ---------- */
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}
.card{border:1px solid var(--line);border-radius:10px;padding:32px 28px;background:var(--white);transition:box-shadow .25s ease,transform .25s ease}
.card:hover{box-shadow:0 14px 34px rgba(11,34,68,.10);transform:translateY(-3px)}
.card h3{font-size:1.4rem;font-weight:600;color:var(--navy);margin-bottom:10px;line-height:1.3}
.card p{font-size:.94rem}
.card .glyph{width:46px;height:46px;border-radius:50%;background:var(--teal-tint);color:var(--teal);display:flex;align-items:center;justify-content:center;margin-bottom:20px}
a.card{color:var(--ink);display:block}
a.card:hover{text-decoration:none}
a.card .more{display:inline-block;margin-top:14px;font-family:var(--font-primary);font-size:.76rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--teal)}
.check-list{list-style:none;margin-top:14px}
.check-list li{display:flex;align-items:flex-start;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.check-list li svg{flex-shrink:0;margin-top:3px;color:var(--teal)}
.sdg-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:18px}
.sdg-row img{width:52px;height:52px;border-radius:6px}
.keyline{border-left:3px solid var(--teal);padding-left:22px}

/* ---------- numbered dark principle cards ---------- */
.card.numbered{position:relative;overflow:hidden}
.card.numbered .num{position:absolute;top:2px;right:20px;font-family:var(--font-primary);font-size:5.5rem;font-weight:700;color:rgba(11,34,68,.06);line-height:1;z-index:0;pointer-events:none}
.card.numbered .glyph,.card.numbered h3,.card.numbered p{position:relative;z-index:1}
.card.numbered .glyph{width:64px;height:64px}
.card.photo.numbered .num{color:rgba(255,255,255,.16)}
.card.photo.numbered{min-height:320px}
.card.dark{background:var(--navy);border-color:var(--navy)}
.card.dark h3{color:var(--white)}
.card.dark p{color:#c7d2e0}
.card.dark .glyph{background:rgba(255,255,255,.12);color:var(--teal-light)}
.card.dark.numbered .num{color:rgba(255,255,255,.14)}

/* ---------- sponsor stats + logo strip ---------- */
.sponsor-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-top:56px;padding-top:40px;border-top:1px solid var(--line)}
.sponsor-stats .stat-num{font-family:var(--font-primary);font-size:2.1rem;font-weight:600;line-height:1;color:var(--teal)}
.sponsor-stats .stat-label{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--grey);margin-top:8px}
.logo-strip{margin-top:52px;text-align:center}
.logo-strip .eyebrow{margin-bottom:22px}
.logo-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:56px}
.logo-row img{width:auto;max-height:64px}
.logo-row img.rjof{max-height:60px}
.logo-row img.jgi{max-height:56px}
.logo-row img.grameen{max-height:40px}
@media(max-width:600px){
  .sponsor-stats{grid-template-columns:1fr;gap:24px;text-align:center}
  .logo-row{gap:36px}
}

/* ---------- service-provider logos ---------- */
.provider-logos{display:flex;align-items:center;flex-wrap:wrap;gap:32px;margin-top:24px}
.feature .provider-logos img{width:auto;height:auto;aspect-ratio:auto;object-fit:contain;border-radius:0;display:block}
.provider-logos img:nth-child(1){max-height:14px}
.provider-logos img:nth-child(2){max-height:36px}
.provider-logos img:nth-child(3){max-height:36px}
.provider-logos img:nth-child(4){max-height:22px}

/* ---------- photo cards ---------- */
.card.photo{position:relative;overflow:hidden;padding:0;border:none;min-height:280px;display:flex;align-items:flex-end}
.card.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.card.photo .veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,34,68,.08) 0%,rgba(11,34,68,.55) 60%,rgba(11,34,68,.92) 100%)}
.card.photo:hover img{transform:scale(1.05)}
.card.photo:hover{box-shadow:0 18px 40px rgba(11,34,68,.28)}
.card.photo .content{position:relative;z-index:2;padding:26px 24px}
.card.photo .glyph{background:rgba(255,255,255,.16);color:var(--white);width:54px;height:54px;margin-bottom:14px}
.card.photo h3{color:var(--white)}
.card.photo p{color:#dbe4ef;font-size:.9rem}
.card.photo .more{color:var(--teal-light)}

/* ---------- stats band ---------- */
.stats{background:var(--teal);color:var(--white)}
.stats .wrap{display:grid;grid-template-columns:repeat(3,1fr);padding-top:26px;padding-bottom:0;gap:20px}
.stat-top{display:flex;align-items:center;gap:10px}
.stat-num{font-family:var(--font-primary);font-size:2.1rem;font-weight:600;line-height:1}
.stat-label{font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;margin-top:6px;opacity:.92}
.stats-foot-wrap{padding-top:0}
.stats-foot{font-size:.68rem;color:rgba(255,255,255,.78);padding-bottom:14px;white-space:nowrap}

/* ---------- dark band (navy) ---------- */
.band-navy{background:var(--navy);color:var(--white)}
.band-navy .section-head h2,.band-navy h2,.band-navy h3{color:var(--white)}
.band-navy .section-head p,.band-navy p{color:#c7d2e0}
.band-navy .card{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.16)}
.band-navy .card h3{color:var(--white)}
.band-navy .card .glyph{background:rgba(95,196,189,.16);color:var(--teal-light)}
.stat-icon{color:rgba(255,255,255,.85);display:inline-flex}
.stat-icon svg{width:28px;height:28px}
.band-navy .card li{color:#e6ecf3;border-top:1px solid rgba(255,255,255,.1)}

/* ---------- tag / pill ---------- */
.tag{display:inline-block;font-family:var(--font-primary);font-size:.66rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--teal);border:1px solid var(--teal-light);border-radius:99px;padding:5px 14px;margin-bottom:18px}
.band-navy .tag{color:var(--teal-light);border-color:rgba(95,196,189,.5)}

/* ---------- feature (image + text) ---------- */
.feature{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.feature img{border-radius:10px;aspect-ratio:4/3;object-fit:cover;width:100%}
.feature h2{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:500;color:var(--navy);line-height:1.25;margin:12px 0 16px}

/* ---------- investment funnel (text left, numbered marker right) ---------- */
.funnel-steps{position:relative;display:flex;flex-direction:column}
.fstep{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:24px 0;border-bottom:1px solid var(--line)}
.fstep:last-child{border-bottom:none}
.fstep-text{flex:1;min-width:0}
.fstep-text h3{font-family:var(--font-primary);font-size:1.4rem;font-weight:600;color:var(--navy);margin-bottom:8px}
.fstep-text p{font-size:.94rem;color:var(--grey);max-width:56ch}
.fstep-marker{flex-shrink:0;width:150px;display:flex;align-items:center;justify-content:flex-end;gap:16px}
.fnum{font-family:var(--font-primary);font-weight:700;font-size:2.6rem;line-height:1}
.ficon{position:relative;z-index:1;width:56px;height:56px;border-radius:50%;background:var(--white);border:2px solid;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .3s ease}
.fstep:hover .ficon{transform:scale(1.1)}

/* ---------- team ---------- */
.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:32px}
.member{text-align:center}
.member-photo{position:relative;width:100%;max-width:210px;margin:0 auto 18px;border-radius:16px;overflow:hidden;background:linear-gradient(100deg,rgba(238,246,245,.94) 35%,rgba(238,246,245,.8) 70%,rgba(95,196,189,.4)),url(../images/hero-team.jpg) center/cover}
.member-photo img{position:relative;width:100%;display:block}
.member h3{font-family:var(--font-primary);font-size:1.4rem;font-weight:600;color:var(--navy)}
.member .role{font-size:.84rem;color:var(--teal);letter-spacing:.05em}

/* ---------- insights ---------- */
.post-card{display:flex;flex-direction:column}
.post-card .date{font-size:.76rem;color:var(--grey);letter-spacing:.1em;text-transform:uppercase;margin-bottom:8px}
article.post{max-width:760px;margin:0 auto}
article.post h1{font-size:clamp(1.7rem,3.4vw,2.5rem);color:var(--navy);font-weight:500;line-height:1.2;margin-bottom:10px}
article.post .date{color:var(--grey);font-size:.85rem;margin-bottom:32px}
article.post p{margin-bottom:18px}
article.post h2{font-size:1.3rem;color:var(--navy);font-weight:600;margin:34px 0 14px}

/* ---------- learning topics ---------- */
.topic-nav{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:56px}
.topic-nav a{font-family:var(--font-primary);font-size:.76rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--navy);border:1px solid var(--line);border-radius:99px;padding:9px 18px}
.topic-nav a:hover{border-color:var(--teal);color:var(--teal);text-decoration:none}
.topic{padding:44px 0;border-top:1px solid var(--line)}
.topic h2{font-size:1.4rem;color:var(--navy);font-weight:600;margin-bottom:16px}
.topic p{max-width:76ch;margin-bottom:14px}
.topic ul{margin:0 0 14px 20px}
.topic li{margin-bottom:6px;max-width:70ch}
.topic-expanded{display:flex;flex-direction:column;align-items:flex-start;gap:20px}
.topic-expanded-text{width:100%}
.topic-expanded img{width:100%;max-width:680px;border-radius:12px}
@media(max-width:768px){
  .topic-expanded img{max-width:320px}
}

/* ---------- svg charts ---------- */
.chartbox{background:var(--white);border:1px solid var(--line);border-radius:10px;padding:28px}
.band-navy .chartbox{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.16)}
.chartbox.dark{background:var(--navy);border-color:rgba(255,255,255,.12)}
.chartbox.dark .src{color:#94a3b8}
.chartbox .src{font-size:.72rem;color:var(--grey);margin-top:12px}
.band-navy .chartbox .src{color:#94a3b8}

/* ---------- contact ---------- */
.contact-card{background:var(--teal-tint);border-radius:10px;padding:44px 40px}
.contact-card h3{font-family:var(--font-primary);color:var(--navy);font-size:1.4rem;font-weight:600;margin-bottom:8px}
.contact-card p{margin-bottom:20px}

/* ---------- footer ---------- */
footer{background:#f7f8fa;border-top:1px solid var(--line);margin-top:0}
footer .wrap{padding-top:60px;padding-bottom:44px}
.foot-grid{display:flex;justify-content:space-between;gap:48px;flex-wrap:wrap;align-items:flex-start}
.foot-logo{height:48px;width:auto}
.foot-nav{display:flex;gap:22px;flex-wrap:wrap;list-style:none}
.foot-nav a{font-family:var(--font-primary);font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink)}
.foot-legal{margin-top:40px;padding-top:26px;border-top:1px solid var(--line)}
.foot-legal p{font-size:.75rem;color:var(--grey);max-width:100ch;margin-bottom:10px}

/* ---------- reveal ---------- */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}

/* ---------- responsive ---------- */
@media(max-width:1020px){
  nav ul{gap:16px}
}
@media(max-width:920px){
  .menu-toggle{display:block}
  nav{position:absolute;top:80px;left:0;right:0;background:var(--white);border-bottom:1px solid var(--line);display:none;padding:18px 24px}
  nav.open{display:block}
  nav ul{flex-direction:column;gap:16px}
  .grid-3,.grid-4,.team-grid{grid-template-columns:repeat(2,1fr)}
  .grid-2,.feature{grid-template-columns:1fr;gap:36px}
  .stats .wrap{grid-template-columns:repeat(2,1fr)}
  .rowlist .row{grid-template-columns:1fr;gap:8px}
}
@media(max-width:600px){
  .grid-3,.grid-4,.team-grid{grid-template-columns:1fr}
  .page-hero .wrap{padding-top:70px;padding-bottom:80px}
  section.block .wrap{padding-top:60px;padding-bottom:60px}
  .stats-foot{white-space:normal}
  .fstep{flex-direction:column;align-items:flex-start;gap:12px}
  .fstep-marker{width:auto;justify-content:flex-start}
  .fnum{font-size:2rem}
  .ficon{width:40px;height:40px}
  .fstep-text p{max-width:100%}
}
