/* ============================================================
   AEEWF — African Economic Empowerment Wealth Fund
   Core stylesheet
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink:        #0E0E0E;   /* AEEWF black — nav, footer, body text */
  --ink-soft:   #1C1C1C;
  --gold:       #FCCC00;   /* exact logo gold */
  --gold-deep:  #D9A800;   /* hover / darker gold */
  --green:      #123D2C;   /* empowerment green — secondary sections */
  --green-soft: #1B5741;
  --sand:       #F5F1E8;   /* warm neutral background */
  --white:      #FFFFFF;
  --slate:      #6B7280;   /* secondary text */
  --line:       rgba(14,14,14,.12);
  --line-light: rgba(255,255,255,.16);

  --wrap: 1240px;
  --gut: clamp(1.25rem, 4vw, 3rem);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --r: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - (var(--gut) * 2)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--sand { background: var(--sand); }
.section--green { background: var(--green); color: rgba(255,255,255,.86); }
.section--ink { background: var(--ink); color: rgba(255,255,255,.84); }
.section--green h2, .section--green h3, .section--ink h2, .section--ink h3 { color: var(--white); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--f-body);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 1rem;
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--gold); flex: none; }
.section--green .eyebrow, .section--ink .eyebrow { color: var(--gold); }

.h-xl  { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
.h-lg  { font-size: clamp(2rem, 4.4vw, 3.15rem); }
.h-md  { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.h-sm  { font-size: clamp(1.16rem, 1.7vw, 1.35rem); }
.lede  { font-size: clamp(1.06rem, 1.5vw, 1.24rem); line-height: 1.6; color: var(--slate); max-width: 62ch; }
.section--green .lede, .section--ink .lede { color: rgba(255,255,255,.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-body); font-weight: 700;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 1.02rem 1.9rem; border: 2px solid transparent; border-radius: var(--r);
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold  { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--ink   { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--ink:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }

.btn:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 84px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  color: rgba(255,255,255,.82); text-decoration: none;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem 0; position: relative; white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav a::after {
  content:""; position: absolute; left:0; bottom:-2px; width:0; height:2px;
  background: var(--gold); transition: width .28s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; flex: none;
}
.nav-toggle span { display:block; height:2px; background: var(--white); margin: 5px 0; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 84px 0 auto 0;
    background: var(--ink); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 1rem var(--gut) 2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-130%); transition: transform .38s var(--ease);
    max-height: calc(100vh - 84px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { width: 100%; padding: .95rem 0; font-size: .9rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 1.1rem; width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(560px, 86vh, 820px); display: flex; align-items: center; background: var(--ink); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(14,14,14,.94) 0%, rgba(14,14,14,.78) 42%, rgba(18,61,44,.55) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(4rem,10vw,6rem) 0; max-width: 60rem; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lede { color: rgba(255,255,255,.8); font-size: clamp(1.06rem,1.6vw,1.28rem); max-width: 54ch; margin-bottom: 2.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .eyebrow { color: var(--gold); }

/* Page hero (interior pages) */
.page-hero { position: relative; background: var(--ink); padding: clamp(4rem,9vw,7rem) 0 clamp(3rem,6vw,4.5rem); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width:100%; height:100%; object-fit: cover; opacity:.34; }
.page-hero__media::after { content:""; position:absolute; inset:0; background: linear-gradient(100deg, rgba(14,14,14,.93), rgba(18,61,44,.7)); }
.page-hero__inner { position: relative; z-index: 2; max-width: 56rem; }
.page-hero h1 { color: var(--white); margin-bottom: 1.1rem; }
.page-hero p { color: rgba(255,255,255,.76); font-size: clamp(1.02rem,1.4vw,1.16rem); max-width: 58ch; margin: 0; }
.crumb { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 1.2rem; }
.crumb a { color: var(--gold); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- Trust strip ---------- */
.trust { background: var(--gold); color: var(--ink); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { padding: 2.4rem 1.6rem; border-right: 1px solid rgba(14,14,14,.16); }
.trust__item:last-child { border-right: 0; }
.trust__num { font-family: var(--f-display); font-size: clamp(2rem,3.4vw,2.9rem); font-weight: 700; line-height: 1; display: block; margin-bottom: .45rem; }
.trust__label { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: rgba(14,14,14,.72); }
@media (max-width: 860px) {
  .trust__grid { grid-template-columns: repeat(2,1fr); }
  .trust__item:nth-child(2) { border-right: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid rgba(14,14,14,.16); }
}

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: var(--r); }
.split__media--tall img { aspect-ratio: 3/4; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reverse .split__media { order: 0; }
}

/* Mission / vision pair */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2.4rem; }
.mv__card { padding: 1.7rem 1.6rem; background: var(--sand); border-left: 3px solid var(--gold); border-radius: 0 var(--r) var(--r) 0; }
.section--sand .mv__card { background: var(--white); }
.mv__card h3 { font-size: 1.15rem; margin-bottom: .55rem; }
.mv__card p { margin: 0; font-size: .96rem; color: var(--slate); }
@media (max-width: 640px) { .mv { grid-template-columns: 1fr; } }

/* ---------- Program cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px,1fr)); gap: 1.7rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(14,14,14,.11); }
.card__media { position: relative; aspect-ratio: 16/10.5; overflow: hidden; }
.card__media img { width:100%; height:100%; object-fit: cover; transition: transform .55s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.6rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card__body p { font-size: .95rem; color: var(--slate); margin-bottom: 1.2rem; }
.card__link {
  margin-top: auto; font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: .45rem;
}
.card__link::after { content:"→"; transition: transform .25s var(--ease); }
.card__link:hover { color: var(--gold-deep); }
.card__link:hover::after { transform: translateX(4px); }

/* Impact stat on a card */
.card__stat { font-family: var(--f-display); font-size: .95rem; font-weight: 700; color: var(--gold-deep); margin-bottom: .5rem; display: block; }

/* ---------- Focus area list (About) ---------- */
.focus { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 0; border-top: 1px solid var(--line); }
.focus__item { padding: 1.9rem 1.6rem 1.9rem 0; border-bottom: 1px solid var(--line); }
.focus__item h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.focus__item p { font-size: .93rem; color: var(--slate); margin: 0; }

/* ---------- Service blocks ---------- */
.service { padding: clamp(3rem,6vw,4.5rem) 0; border-bottom: 1px solid var(--line); }
.service:last-of-type { border-bottom: 0; }
.service__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.2rem,5vw,4.5rem); align-items: center; }
.service:nth-child(even) .service__media { order: 2; }
.service__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.service h2 { margin-bottom: .5rem; }
.service__tag { font-family: var(--f-display); font-style: italic; font-size: 1.1rem; color: var(--gold-deep); margin-bottom: 1.2rem; }
.service ul { list-style: none; margin: 0 0 1.5rem; }
.service ul li { position: relative; padding-left: 1.6rem; margin-bottom: .8rem; font-size: .97rem; }
.service ul li::before { content:""; position:absolute; left:0; top:.62em; width:8px; height:8px; background: var(--gold); border-radius: 50%; }
.service ul li strong { font-weight: 700; }
.service__impact {
  background: var(--sand); border-left: 3px solid var(--green);
  padding: 1rem 1.2rem; font-size: .94rem; margin-bottom: 1.6rem; border-radius: 0 var(--r) var(--r) 0;
}
.service__impact strong { font-weight: 700; }
@media (max-width: 900px) {
  .service__grid { grid-template-columns: 1fr; gap: 2rem; }
  .service:nth-child(even) .service__media { order: 0; }
}

/* ---------- Leadership ---------- */
.leader { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.leader__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; border-radius: var(--r); }
.leader__role { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .6rem; }
.pullquote {
  font-family: var(--f-display); font-size: clamp(1.25rem,2.2vw,1.65rem);
  line-height: 1.42; color: var(--ink); border-left: 3px solid var(--gold);
  padding: .3rem 0 .3rem 1.5rem; margin: 1.8rem 0;
}
.pullquote cite { display:block; font-family: var(--f-body); font-size: .8rem; font-style: normal; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--slate); margin-top: .9rem; }
@media (max-width: 820px) { .leader { grid-template-columns: 1fr; } }

.gov { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.7rem; margin-top: 2.5rem; }
.gov__card { padding: 1.8rem 1.6rem; background: rgba(255,255,255,.05); border: 1px solid var(--line-light); border-radius: var(--r); }
.gov__card h3 { font-size: 1.08rem; margin-bottom: .6rem; }
.gov__card p { font-size: .94rem; margin: 0; color: rgba(255,255,255,.72); }

/* ---------- Posts / news ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 1.7rem; }
.post { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); display:flex; flex-direction:column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(14,14,14,.1); }
.post__media { aspect-ratio: 16/9; overflow: hidden; }
.post__media img { width:100%; height:100%; object-fit: cover; }
.post__body { padding: 1.5rem; display:flex; flex-direction:column; flex:1; }
.post__meta { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: .7rem; }
.post__body h3 { font-size: 1.13rem; margin-bottom: .6rem; line-height: 1.28; }
.post__body p { font-size: .93rem; color: var(--slate); margin-bottom: 1.1rem; }

/* ---------- Get involved tracks ---------- */
.tracks { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.7rem; }
.track { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--r); padding: 2rem 1.7rem; display:flex; flex-direction:column; }
.track h3 { font-size: 1.22rem; margin-bottom: .7rem; }
.track p { font-size: .95rem; color: var(--slate); margin-bottom: 1.3rem; }
.track ul { list-style:none; margin: 0 0 1.5rem; }
.track ul li { font-size: .92rem; padding-left: 1.3rem; position: relative; margin-bottom: .55rem; color: var(--slate); }
.track ul li::before { content:"→"; position:absolute; left:0; color: var(--gold-deep); }
.track .btn { margin-top: auto; align-self: flex-start; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.cta-band__inner { position: relative; z-index: 2; max-width: 46rem; margin-inline: auto; }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.75); margin-bottom: 2rem; }
.cta-band .eyebrow { color: var(--gold); justify-content: center; }
.cta-band__cta { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2.5rem,6vw,5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.contact-item:first-child { padding-top: 0; }
.contact-item h3 { font-size: .78rem; font-family: var(--f-body); font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: var(--slate); margin-bottom:.5rem; }
.contact-item p, .contact-item a { font-size: 1.05rem; color: var(--ink); text-decoration:none; margin:0; }
.contact-item a:hover { color: var(--gold-deep); }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field label { display:block; font-size: .76rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color: var(--slate); margin-bottom:.45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; font-family: var(--f-body); font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink);
  transition: border-color .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { min-height: 150px; resize: vertical; }
.form__note { font-size: .84rem; color: var(--slate); margin: 0; }
.form-status { padding: .9rem 1.1rem; border-radius: var(--r); font-size: .93rem; display: none; }
.form-status[data-state="ok"]   { display:block; background: rgba(18,61,44,.09); border-left: 3px solid var(--green); color: var(--green); }
.form-status[data-state="err"]  { display:block; background: rgba(180,30,30,.07); border-left: 3px solid #B41E1E; color: #8A1717; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.66); padding: clamp(3.5rem,7vw,5.5rem) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(2rem,5vw,4rem); padding-bottom: 3rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.footer__brand img { height: 46px; margin-bottom: 1.3rem; }
.footer__grid h4 { color: var(--white); font-family: var(--f-body); font-size: .76rem; font-weight:700; letter-spacing:.15em; text-transform:uppercase; margin-bottom: 1.1rem; }
.footer__grid p { font-size: .94rem; line-height: 1.65; }
.footer__list { list-style:none; }
.footer__list li { margin-bottom: .65rem; }
.footer__list a { font-size: .94rem; text-decoration:none; color: rgba(255,255,255,.66); transition: color .2s var(--ease); }
.footer__list a:hover { color: var(--gold); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; font-size:.85rem; }
.footer__social { display:flex; gap:1.3rem; list-style:none; }
.footer__social a { text-decoration:none; color: rgba(255,255,255,.66); }
.footer__social a:hover { color: var(--gold); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; } }

/* ---------- Utility ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--ink); padding: .8rem 1.3rem; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.narrow { max-width: 46rem; margin-inline: auto; }
.stack-lg > * + * { margin-top: 2.6rem; }
