/* =========================================================
   RWAFEM — Rwanda Feminist Forum
   Built on the Rwafem Brand Guidelines v1.0
   Colours: Purple #7B3FE4 (anchor) · Green #1ED760 (belonging)
            Yellow #FFD400 (energy) · Red #FF2E2E (emphasis/rage)
            Black #000000 (text) · Off-white #F5F5F0 (background)
   Type:    Anton (headlines, replaces Obra Letra) · Poppins (body)
   ========================================================= */

/* Fonts are self-hosted in /fonts (free, SIL Open Font Licence, see fonts/OFL.txt).
   Anton: loud, condensed protest-poster headlines. Poppins: body text, as in the brand guide. */
@font-face { font-family: "Anton"; src: url("../fonts/Anton-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --purple: #7B3FE4;
  --green: #1ED760;
  --yellow: #FFD400;
  --red: #FF2E2E;
  --black: #000000;
  --offwhite: #F5F5F0;
  --white: #FFFFFF;
  --grey: #4a4a4a;
  --line: #dcdcd3;

  --font-display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--black);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--black); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.65rem; line-height: 1.1; }
h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--black { background: var(--black); color: var(--offwhite); }
.section--purple { background: var(--purple); color: var(--white); }
.section--white { background: var(--white); }
.section--black a { color: var(--yellow); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem;
  color: var(--purple);
}
.section--black .eyebrow, .hero .eyebrow { color: var(--green); }
.section--purple .eyebrow { color: var(--yellow); }
.lead { font-size: 1.15rem; max-width: 48ch; color: var(--grey); }
.section--black .lead, .hero .lead { color: #d7d7cf; }
.section--purple .lead { color: #efe7ff; }
.hl-yellow { color: var(--yellow); }
.hl-green { color: var(--green); }
.hl-red { color: var(--red); }

/* Placeholder marker: draft text to confirm before launch */
.ph {
  background: linear-gradient(transparent 60%, rgba(255, 212, 0, .55) 60%);
  border-bottom: 1px dashed var(--red);
}
.section--black .ph, .hero .ph, .section--purple .ph, .site-footer .ph {
  background: linear-gradient(transparent 60%, rgba(255, 212, 0, .35) 60%);
}
.ph-note { background: var(--yellow); color: var(--black); font-size: .82rem; text-align: center; padding: .45rem 1rem; }

/* ---------- Brand tiles (logogram pieces) ---------- */
.tiles { display: flex; }
.tiles svg { width: var(--t, 26px); height: var(--t, 26px); }
.tiles-grid { display: grid; grid-template-columns: 1fr 1fr; width: min(440px, 80vw); }
.tiles-grid svg { width: 100%; height: auto; aspect-ratio: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 245, 240, .94); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--black);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.logo { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--black); }
.logo:hover { color: var(--black); }
.logo-text { line-height: 1; }
.logo-text strong { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: .03em; }
.logo-text span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--black); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--purple); }
.nav-links a[aria-current="page"] { color: var(--purple); box-shadow: 0 3px 0 var(--purple); }
.nav-toggle { display: none; background: var(--black); color: var(--offwhite); border: 0; border-radius: 999px; padding: .55rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .96rem; text-decoration: none;
  border: 2px solid var(--black); cursor: pointer; transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--purple); border-color: var(--purple); color: var(--white); }
.btn--primary:hover { color: var(--white); }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.btn--yellow:hover { color: var(--black); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { color: var(--black); }
.section--black .btn--ghost, .hero .btn--ghost, .section--purple .btn--ghost { color: var(--offwhite); border-color: var(--offwhite); }
.nav-links .btn--primary, .nav-links .btn--primary:hover { color: var(--white); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: var(--offwhite); padding: clamp(4.5rem, 10vw, 8rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { max-width: 13ch; }
.page-hero { background: var(--black); color: var(--offwhite); padding: clamp(4rem, 9vw, 6.5rem) 0; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { color: #d7d7cf; }
.page-hero-grid { display: grid; grid-template-columns: 1.5fr auto; gap: 2rem; align-items: end; }
.page-hero .tiles { --t: clamp(56px, 8vw, 96px); }

/* Essence band */
.band { background: var(--yellow); border-block: 2px solid var(--black); overflow: hidden; white-space: nowrap; }
.band-track { display: inline-flex; gap: 3rem; padding: 1rem 0; animation: scroll 28s linear infinite; }
.band span { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
.band span::after { content: "✦"; margin-left: 3rem; font-size: .7em; vertical-align: middle; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }

.card {
  background: var(--white); border: 2px solid var(--black); border-radius: var(--radius);
  padding: 1.8rem; display: flex; flex-direction: column;
}
.card p { color: var(--grey); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--black); }
.card .more:hover { color: var(--purple); }
.card--purple { background: var(--purple); border-color: var(--purple); color: var(--white); }
.card--green { background: var(--green); border-color: var(--green); }
.card--yellow { background: var(--yellow); border-color: var(--yellow); }
.card--red { background: var(--red); border-color: var(--red); color: var(--white); }
.card--purple p, .card--red p { color: rgba(255,255,255,.9); }
.card--green p, .card--yellow p { color: rgba(0,0,0,.78); }
.card--purple .more, .card--red .more { color: var(--white); }
.card--black { background: var(--black); color: var(--offwhite); border-color: var(--black); }
.card--black p { color: #cfcfc7; }

.pillar svg { width: 72px; height: 72px; margin-bottom: 1.3rem; border-radius: 6px; }
.pillar h3 { font-size: 2rem; }

.tag {
  align-self: flex-start; display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px;
  background: var(--black); color: var(--offwhite); margin-bottom: 1rem;
}
.tag--purple { background: var(--purple); color: var(--white); }
.tag--green { background: var(--green); color: var(--black); }
.tag--yellow { background: var(--yellow); color: var(--black); }
.tag--red { background: var(--red); color: var(--white); }

/* Photo frames (brand imagery: real, human, Black women; green rounded frame) */
.photo {
  border: 3px solid var(--green); border-radius: var(--radius); overflow: hidden;
  background: #1b1b1b; aspect-ratio: 4 / 5; position: relative;
  display: grid; place-items: center; text-align: center; padding: 1.2rem;
  color: #9a9a92; font-size: .85rem;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo--wide { aspect-ratio: 16 / 10; }
.photos { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem; align-items: end; }
.photos .photo:nth-child(2) { aspect-ratio: 3 / 4; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { border-top: 3px solid var(--yellow); padding-top: 1rem; }
.stat b { display: block; font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: var(--yellow); font-weight: 600; }
.stat > span { font-size: .92rem; color: #efe7ff; }

/* Is / is not */
.isnot { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.isnot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.isnot li { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.isnot .not li { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; color: #8d8d86; }

/* Voice principles */
.voice { list-style: none; padding: 0; margin: 0; }
.voice li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 2px solid var(--black); align-items: baseline; }
.voice li b { font-family: var(--font-display); font-size: 2rem; color: var(--purple); }
.voice li span { font-size: 1.15rem; font-weight: 500; }

/* Timeline */
.timeline { border-left: 3px solid var(--black); margin-left: .5rem; padding-left: 2rem; }
.section--black .timeline, .section--purple .timeline { border-color: rgba(255,255,255,.3); }
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before {
  content: ""; position: absolute; left: -2.75rem; top: .35rem; width: 18px; height: 18px;
  border-radius: 50%; background: var(--green); border: 3px solid var(--black);
}
.timeline-item b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.timeline-item p { margin: .1rem 0 0; color: var(--grey); }
.section--black .timeline-item p { color: #cfcfc7; }
.section--black .timeline-item::before { border-color: var(--black); }

/* Resources */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter { border: 2px solid var(--black); background: transparent; color: var(--black); padding: .45rem 1.15rem; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--black); color: var(--offwhite); }
.resource { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.6rem 0; border-bottom: 2px solid var(--black); }
.resource h3 { font-size: 1.6rem; margin: .1rem 0 .3rem; }
.resource p { margin: 0; color: var(--grey); font-size: .95rem; }
.resource[hidden] { display: none; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--black);
  padding: .8rem 1rem; border: 2px solid var(--black); border-radius: 12px; background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--purple); outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.checkbox input { width: auto; margin-top: .4rem; }
.form-status { display: none; padding: 1rem 1.2rem; border-radius: 12px; background: var(--green); color: var(--black); font-weight: 600; }
.form-status.show { display: block; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.3rem; }
.contact-list b { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--purple); }

/* CTA band */
.cta-band {
  background: var(--purple); color: var(--white); border-radius: calc(var(--radius) * 1.4);
  padding: clamp(2.5rem, 6vw, 4rem); display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; opacity: .92; }

/* Footer */
.site-footer { background: var(--black); color: #cfcfc7; padding: 4.5rem 0 2rem; font-size: .93rem; }
.site-footer a { color: var(--offwhite); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-logo { margin-bottom: 1.5rem; }
.footer-logo .tiles { --t: 54px; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; letter-spacing: .03em; color: var(--offwhite); line-height: 1; margin-top: .5rem; text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid h4 { color: var(--green); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-tagline { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; color: var(--offwhite); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .footer-grid, .cta-band, .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tiles-grid { width: min(300px, 70vw); }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--offwhite); border-bottom: 2px solid var(--black); padding: .5rem 1.25rem 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { box-shadow: none; }
  .nav-links .btn { margin-top: 1rem; width: 100%; }
  .grid-2, .grid-3, .grid-4, .form .row, .isnot, .photos { grid-template-columns: 1fr; }
  .resource { grid-template-columns: 1fr; }
  .logo-text span { display: none; }
  .tiles-grid { width: min(240px, 62vw); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band-track { animation: none; }
  .btn { transition: none; }
}
.section--black .btn--yellow, .section--purple .btn--yellow, .cta-band .btn--yellow { color: var(--black); }
.section--black .btn--primary { color: var(--white); }
.page-hero .eyebrow { color: var(--green); }

/* Anton has one weight: never fake-bold it. Big headlines shout in capitals. */
h1, h2, h3, .logo-text strong, .band span, .stat b, .isnot li, .wordmark,
.timeline-item b, .voice li b, .footer-tagline { font-weight: 400; }
h1, h2, .band span, .wordmark { text-transform: uppercase; letter-spacing: .01em; }
h1 { line-height: .95; font-size: clamp(3.1rem, 7.6vw, 6.4rem); }
h2 { line-height: .98; }
h3 { letter-spacing: .01em; }
.logo-text strong { text-transform: uppercase; letter-spacing: .04em; font-size: 1.5rem; }

/* ---------- Brand photos (black & white + one brand colour) ---------- */
.pic { margin: 0; }
.pic img { width: 100%; height: auto; display: block; border: 3px solid var(--green); border-radius: var(--radius); }
.pic figcaption { font-size: .78rem; color: #9a9a92; margin-top: .6rem; letter-spacing: .02em; }
.section:not(.section--black) .pic figcaption { color: var(--grey); }
.pic--hero img { border-color: var(--yellow); aspect-ratio: 1; object-fit: cover; }
.pic--wide img { max-height: 620px; object-fit: cover; object-position: center 30%; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery .photo { aspect-ratio: 4 / 3; }
.gallery .pic img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
.pic--low img { object-position: center 75%; }
.gform { margin-top: 2rem; border: 2px solid var(--black); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.gform iframe { width: 100%; height: 1400px; border: 0; display: block; }
@media (max-width: 760px) { .gform iframe { height: 1700px; } }
.nav-links .btn--primary[aria-current="page"] { color: var(--white); box-shadow: none; }
/* Gallery: photos shown in black and white (brand rule), colour on hover */
.gallery .gal-item { cursor: zoom-in; }
.gallery .gal-item img { filter: grayscale(1) contrast(1.08); transition: filter .3s ease; }
.gallery .gal-item:hover img, .gallery .gal-item:focus img { filter: none; }
.gallery-empty { font-size: 1.1rem; color: var(--grey); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 82vh; border: 3px solid var(--green); border-radius: var(--radius); }
.lightbox-cap { color: var(--offwhite); margin-top: 1rem; text-align: center; }
.lightbox-close { position: absolute; top: 1rem; right: 1.2rem; background: var(--yellow); border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 1.6rem; cursor: pointer; }
.gallery .gal-item { border: 3px solid var(--green); border-radius: var(--radius); overflow: hidden; background: var(--black); }
.gallery .gal-item img { border: 0; border-radius: 0; }
.gallery .gal-item figcaption { color: var(--offwhite); padding: .6rem .9rem; margin: 0; }

/* Members */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.6rem; margin-top: 2rem; }
.member { margin: 0; text-align: center; }
.member-photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 3px solid var(--black);
  font-family: var(--font-display); font-size: 2.6rem; color: var(--white); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.member-photo--purple { background: var(--purple); } .member-photo--yellow { background: var(--yellow); color: var(--black); }
.member-photo--green { background: var(--green); color: var(--black); } .member-photo--red { background: var(--red); }
.member figcaption { margin-top: .8rem; line-height: 1.35; }
.member figcaption b { display: block; font-weight: 600; }
.member figcaption span { font-size: .85rem; color: var(--grey); }

/* Partner logos on brand-colour tiles */
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.logo-tile { aspect-ratio: 16 / 9; border-radius: var(--radius); display: grid; place-items: center; padding: 1.6rem; }
.logo-tile img { max-width: 78%; max-height: 70%; object-fit: contain; background: var(--white); padding: .8rem 1.1rem; border-radius: 12px; }
.logo-tile span { font-family: var(--font-display); font-size: 1.9rem; text-transform: uppercase; text-align: center; line-height: 1; }
.logo-tile--purple { background: var(--purple); color: var(--white); } .logo-tile--yellow { background: var(--yellow); color: var(--black); }
.logo-tile--green { background: var(--green); color: var(--black); } .logo-tile--red { background: var(--red); color: var(--white); }
@media (max-width: 760px) { .logo-grid { grid-template-columns: 1fr 1fr; } .members { grid-template-columns: repeat(2, 1fr); } }
.logo-tile img[hidden] { display: none; }
