/* ==========================================================================
   Angaza Africa — Stylesheet
   Palette: ink black, warm paper white, single gold accent.
   Type: Fraunces (display) + Inter Tight (body).
   "Angaza" — Swahili: to shine light. The radiant-line motif below is the
   site's one signature device, tied directly to that meaning.
   ========================================================================== */

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
img, picture, video { display: block; max-width: 100%; }
img { object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
input, textarea { background: none; }

/* ---- Design tokens -------------------------------------------------------- */
:root {
  /* Color */
  --ink: #15130f;          /* near-black, warm */
  --charcoal: #2b2620;     /* secondary dark / body text on light */
  --paper: #faf6ec;        /* warm off-white background */
  --white: #ffffff;
  --gold: #c9a227;         /* primary accent */
  --gold-deep: #8a6d1f;    /* pressed / darker gold */
  --gold-soft: #e9d9a4;    /* faint gold for hairlines on dark */
  --line: rgba(21, 19, 15, 0.12);
  --line-on-dark: rgba(250, 246, 236, 0.16);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter Tight", "Segoe UI", sans-serif;

  --fs-h1: clamp(2.4rem, 4.4vw + 1.2rem, 4.6rem);
  --fs-h2: clamp(1.9rem, 2.4vw + 1rem, 3rem);
  --fs-h3: clamp(1.35rem, 1vw + 1rem, 1.85rem);
  --fs-lead: clamp(1.05rem, 0.5vw + 0.9rem, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8rem;

  /* Spacing */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6.5rem;
  --sp-8: 9rem;

  --container: 1280px;
  --radius: 2px;
}

/* ---- Base ----------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-top: 84px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 600;
}
h1 { font-size: var(--fs-h1); font-weight: 500; }
h2 { font-size: var(--fs-h2); font-weight: 500; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { max-width: 62ch; }
p.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--charcoal); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--gold); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-5); }
.section.on-dark { background: var(--ink); color: var(--paper); }
.section.on-dark h1, .section.on-dark h2, .section.on-dark h3 { color: var(--white); }
.section.on-dark p { color: rgba(250, 246, 236, 0.82); }
.section--paper2 { background: var(--white); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--ink);
  padding: 0.75rem 1.25rem; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 1.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  min-height: 44px;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-deep); color: var(--white); }

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.on-dark .btn-ghost { color: var(--paper); }
.on-dark .btn-ghost:hover { background: var(--paper); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---- Header / Nav ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 246, 236, 0.94);
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 42px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav-list {
  display: none;
  align-items: center;
  gap: var(--sp-4);
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
  padding-block: 0.65rem;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-list a:hover { color: var(--ink); border-color: var(--gold); }
.nav-list a[aria-current="page"] { color: var(--ink); border-color: var(--gold); }

.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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); }

.mobile-panel {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 99;
}
.mobile-panel.is-open { display: flex; }
.mobile-panel .container { display: flex; flex-direction: column; padding-block: var(--sp-3); gap: 0.25rem; }
.mobile-panel a {
  padding: 0.85rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
}
.mobile-panel a[aria-current="page"] { color: var(--gold-deep); }
.mobile-panel .btn { margin-top: var(--sp-3); text-align: center; }

@media (min-width: 900px) {
  .nav-list { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-panel { display: none !important; }
}

/* ---- Radiant motif (signature device) ---------------------------------- */
.radiant {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.radiant svg { position: absolute; }

/* ---- Page hero (inner pages) --------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--sp-7) var(--sp-6);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); max-width: 16ch; }
.page-hero p.lead { color: rgba(250, 246, 236, 0.85); max-width: 58ch; margin-top: var(--sp-3); }
.page-hero .eyebrow { margin-bottom: var(--sp-3); }

/* ---- Home hero ------------------------------------------------------------ */
.home-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.home-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding-block: var(--sp-7) var(--sp-6);
}
.home-hero h1 { color: var(--white); max-width: 15ch; }
.home-hero p.lead { color: rgba(250, 246, 236, 0.85); margin-top: var(--sp-3); max-width: 46ch; }
.home-hero .btn-row { margin-top: var(--sp-4); }

.hero-collage {
  position: relative;
  min-height: 320px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 0.9rem;
}
.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line-on-dark);
}
.hero-collage .cell-a { grid-row: 1 / 3; aspect-ratio: 4/5; }
.hero-collage .cell-b { aspect-ratio: 4/3; }
.hero-collage .cell-c { aspect-ratio: 4/3; }

@media (min-width: 900px) {
  .home-hero .container {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding-block: var(--sp-8) var(--sp-7);
  }
}

/* ---- Intro statement ------------------------------------------------------ */
.statement {
  padding-block: var(--sp-7);
}
.statement .container {
  display: grid;
  gap: var(--sp-4);
}
.statement h2 { max-width: 22ch; }
.statement-body { max-width: 52ch; }

@media (min-width: 900px) {
  .statement .container {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ---- Pillars --------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar-card {
  border: 1px solid var(--line);
  padding: var(--sp-4);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.pillar-number {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
}
.pillar-icon { width: 40px; height: 40px; color: var(--gold-deep); }
.pillar-card h3 { margin-top: 0.25rem; }
.pillar-card p { font-size: 0.97rem; }
.on-dark .pillar-card h3 { color: var(--ink); }
.on-dark .pillar-card p { color: var(--charcoal); }
.pillar-card .link-arrow { margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.pillar-card .link-arrow::after { content: " →"; color: var(--gold-deep); }

/* ---- Festival teaser -------------------------------------------------------- */
.festival-teaser {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.festival-teaser .bg-image {
  position: absolute; inset: 0;
  opacity: 0.34;
}
.festival-teaser .bg-image img { width: 100%; height: 100%; object-fit: cover; }
.festival-teaser::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,19,15,0.55) 0%, rgba(21,19,15,0.92) 100%);
}
.festival-teaser .container { position: relative; z-index: 1; padding-block: var(--sp-7); }
.festival-teaser .date-badge {
  display: inline-flex;
  flex-direction: column;
  border: 1px solid var(--gold);
  padding: 0.8rem 1.2rem;
  margin-bottom: var(--sp-3);
}
.festival-teaser .date-badge strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); }
.festival-teaser .date-badge span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,246,236,0.75); }
.festival-teaser h2 { color: var(--white); max-width: 20ch; }
.facts {
  display: grid;
  gap: var(--sp-2);
  margin-block: var(--sp-4);
  max-width: 40ch;
}
.facts dt { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.facts dd { font-size: 1.05rem; font-weight: 600; color: var(--white); margin: 0 0 0.7rem; }

/* ---- Founder / story block --------------------------------------------- */
.story-block {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
}
.story-media { position: relative; }
.story-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story-media .caption {
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  color: var(--gold-deep);
  font-weight: 600;
}
@media (min-width: 860px) {
  .story-block { grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-6); }
  .story-block.reverse { grid-template-columns: 1.15fr 0.85fr; }
  .story-block.reverse .story-media { order: 2; }
}

/* ---- Mission / vision ---------------------------------------------------- */
.mv-grid {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}
@media (min-width: 760px) {
  .mv-grid { grid-template-columns: 1fr 1fr; }
}
.mv-card {
  border-top: 2px solid var(--gold);
  padding-top: var(--sp-2);
}

/* ---- Alternating feature rows (About pillars detail, Our Work) ---------- */
.feature-row {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: none; }
.feature-media { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.feature-media img { width: 100%; height: 100%; aspect-ratio: 1/1; object-fit: cover; }
.feature-media .tall { aspect-ratio: 4/5; grid-row: 1/3; }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .feature-row.reverse .feature-media { order: 2; }
}

/* ---- Timeline (Praise Festival history) ---------------------------------- */
.timeline { margin-top: var(--sp-5); border-top: 1px solid var(--line); }
.timeline-item {
  display: grid;
  gap: 0.4rem;
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.timeline-item .year {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--gold-deep);
  line-height: 1;
}
.timeline-item .status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.2rem 0.55rem;
  margin-top: 0.3rem;
}
@media (min-width: 760px) {
  .timeline-item { grid-template-columns: 160px 1fr; gap: var(--sp-4); align-items: baseline; }
}

/* ---- Gallery + lightbox ------------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-top: var(--sp-5);
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(21, 19, 15, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin-inline: auto; border: 1px solid var(--line-on-dark); }
.lightbox-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  width: 44px; height: 44px;
  border: 1px solid var(--line-on-dark);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  width: 48px; height: 48px;
  border: 1px solid var(--line-on-dark);
  font-size: 1.4rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-prev { left: var(--sp-3); }
.lightbox-next { right: var(--sp-3); }

/* ---- Contact ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
}
.contact-info-list { margin-top: var(--sp-4); display: grid; gap: var(--sp-3); }
.contact-info-list dt { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); }
.contact-info-list dd { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-top: 0.2rem; }

.form-field { display: grid; gap: 0.4rem; margin-bottom: var(--sp-3); }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field textarea {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  min-height: 44px;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold-deep); }
.form-row { display: grid; gap: var(--sp-3); }
@media (min-width: 620px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: var(--fs-small); color: var(--charcoal); margin-top: var(--sp-2); }
.form-status { font-size: 0.9rem; margin-top: var(--sp-2); font-weight: 600; }
.form-status[data-state="error"] { color: #9c3b2c; }
.form-status[data-state="success"] { color: var(--gold-deep); }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: rgba(250,246,236,0.82); }
.footer-top { padding-block: var(--sp-6); display: grid; gap: var(--sp-5); }
.footer-brand img { height: 40px; }
.footer-brand p { margin-top: var(--sp-2); font-size: 0.92rem; max-width: 34ch; color: rgba(250,246,236,0.7); }
.footer-cols { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
.footer-col h4 { font-family: var(--font-body); color: var(--white); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--sp-2); }
.footer-col a, .footer-col span { display: flex; align-items: center; min-height: 44px; font-size: 0.92rem; padding-block: 0.35rem; color: rgba(250,246,236,0.78); }
.footer-col a:hover { color: var(--gold); }
.join-box { border: 1px solid var(--gold); padding: var(--sp-3); }
.join-box p { font-size: 0.88rem; color: rgba(250,246,236,0.75); margin-bottom: var(--sp-2); }
.footer-bottom {
  border-top: 1px solid var(--line-on-dark);
  padding-block: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(250,246,236,0.6);
}
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1fr 2fr; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Reveal-on-scroll -------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
