/* ==========================================================================
   BIASHARA FORUM — DESIGN SYSTEM
   Palette: forest green (growth), Tanzania blue (trust), gold (opportunity)
   Signature motif: the "Growth Ridge" — a jagged silhouette that reads at
   once as a mountain range (Kilimanjaro) and a rising bar chart. It appears
   as the hero divider, section dividers, card corner marks and the stat
   underlines — the one recurring shape that ties growth + place together.
   Type: Plus Jakarta Sans (display/body) + JetBrains Mono (data/eyebrows)
   ========================================================================== */

:root {
  --forest: #0d1b2a;
  --forest-deep: #162032;
  --forest-tint: #f4f7fb;
  --sky: #1a2f4b;
  --sky-tint: #ffffff;
  --gold: #F2A900;
  --gold-soft: #F7C948;
  --gold-tint: #f4f7fb;
   --ink: #13140F;
  --ink-soft: #4A4C43;
  --paper: #FBF9F3;
  --paper-dim: #F2EEE1;
  --line: #E3DFCF;
  --white: #FFFFFF;


  --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 1px 2px rgba(19,20,15,0.04), 0 12px 32px -16px rgba(19,20,15,0.18);
  --shadow-lift: 0 2px 4px rgba(19,20,15,0.06), 0 24px 48px -20px rgba(19,20,15,0.28);
  --container: 1200px;
}

* { box-sizing: border-box; }

html { 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; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dim { background: var(--paper-dim); }
.section--forest { background: var(--forest); color: var(--white); }
.section--forest h2, .section--forest h3, .section--forest .eyebrow { color: var(--white); }
.section--forest p { color: rgba(255,255,255,0.78); }
.section--forest .eyebrow::before { background: var(--gold); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn--gold { background: var(--gold); color: var(--forest-deep); }
.btn--gold:hover { background: var(--gold-soft); box-shadow: var(--shadow-soft); }

.btn--forest { background: var(--forest); color: var(--white); }
.btn--forest:hover { background: var(--forest-deep); box-shadow: var(--shadow-soft); }

.btn--outline { background: transparent; border-color: currentColor; color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,0.1); }

.btn--outline-dark { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline-dark:hover { border-color: var(--forest); color: var(--forest); }

.btn--ghost { background: transparent; color: var(--forest); padding-left: 4px; padding-right: 4px; }
.btn--ghost svg { transition: transform 0.15s ease; }
.btn--ghost:hover svg { transform: translateX(3px); }

/* ---------- Navbar ---------- */
.topbar {
  background: var(--forest-deep);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 12px; }
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--gold-soft); }
.topbar__links { display: flex; gap: 18px; align-items: center; }
.topbar__social { display: flex; gap: 12px; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,249,243,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.navbar.is-scrolled { box-shadow: 0 1px 0 rgba(19,20,15,0.06), 0 12px 24px -18px rgba(19,20,15,0.3); border-color: var(--line); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand__name span { color: var(--forest); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--forest-tint); color: var(--forest); }
.nav-links a.is-active { color: var(--forest); background: var(--forest-tint); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content:""; position:absolute; left:0; width:18px; height:2px; background: var(--ink); transition: transform 0.2s ease; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 60;
  padding: 24px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-menu__close { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); display: flex; align-items: center; justify-content: center; }
.mobile-menu a.mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
  font-size: 20px; font-weight: 700; font-family: var(--font-display);
}
.mobile-menu__cta { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; background: var(--paper); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__label { margin-bottom: 22px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--forest); }
.hero__text { font-size: 18px; max-width: 480px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero__stats { display: flex; gap: 32px; margin-top: 44px; }
.hero__stat b { display: block; font-family: var(--font-mono); font-size: 26px; color: var(--forest); }
.hero__stat span { font-size: 13px; color: var(--ink-soft); }

.hero__art { position: relative; }
.hero__ridge-bg { position: absolute; inset: -10% -10% -10% -10%; z-index: 0; opacity: 0.5; }
.hero__panel {
  position: relative; z-index: 1;
  border-radius: 28px;
  background: linear-gradient(155deg, var(--forest) 0%, var(--forest-deep) 100%);
  padding: 8px;
  box-shadow: var(--shadow-lift);
}
.hero__panel-inner { border-radius: 22px; overflow: hidden; position: relative; aspect-ratio: 4/5; }

.hero__ridge-divider { display: block; width: 100%; height: auto; margin-top: 48px; }

/* ---------- Growth ridge divider (signature) ---------- */
.ridge-divider { display: block; width: 100%; height: 46px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: transparent; }
.card::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 26px 26px 0;
  border-color: transparent var(--gold-tint) transparent transparent;
  transition: border-color 0.18s ease;
}
.card:hover::before { border-color: transparent var(--gold) transparent transparent; }

.card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--forest-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--forest);
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Tag / badge ---------- */
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; font-weight: 600;
}
.tag--forest { background: var(--forest-tint); color: var(--forest); }
.tag--sky { background: var(--sky-tint); color: var(--sky); }
.tag--gold { background: var(--gold-tint); color: #8A5A00; }

/* ---------- Opportunity / program / event cards ---------- */
.opp-card { display: flex; flex-direction: column; height: 100%; }
.opp-card__meta { display: flex; gap: 16px; font-size: 13px; color: var(--ink-soft); margin: 14px 0 18px; font-family: var(--font-mono); }
.opp-card .btn--ghost { margin-top: auto; align-self: flex-start; }

.event-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.event-card__art { aspect-ratio: 16/10; position: relative; }
.event-card__body { padding: 22px; }
.event-card__date { font-family: var(--font-mono); font-size: 13px; color: var(--forest); margin-bottom: 6px; }
.event-card h3 { font-size: 18px; margin-bottom: 6px; }
.event-card__loc { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- Stats ---------- */
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-mono); font-size: clamp(30px, 4vw, 44px); color: var(--white); }
.stat span { font-size: 14px; color: rgba(255,255,255,0.75); }
.stat__underline { width: 40px; height: 3px; background: var(--gold); margin: 10px auto 14px; border-radius: 2px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 1; }
.gallery-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13, 27, 42, 0.88) 0%, rgba(13, 27, 42, 0.05) 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  opacity: 0; transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item img, .gallery-item .art-fill { transition: transform 0.35s ease; width: 100%; height: 100%; object-fit: cover; }
.gallery-item__overlay span { color: var(--gold-soft); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.gallery-item__overlay strong { color: var(--white); font-size: 15px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(13,15,10,0.92); z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox__frame { max-width: 720px; width: 100%; background: var(--forest); border-radius: 20px; aspect-ratio: 4/3; position: relative; overflow: hidden; }
.lightbox__caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent); color: var(--white); }
.lightbox__close { position: absolute; top: -50px; right: 0; color: var(--white); width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Art fills (illustrated placeholders instead of photography) ---------- */
.art-fill { position: relative; width: 100%; height: 100%; overflow: hidden; }
.art-fill svg { width: 100%; height: 100%; display: block; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; cursor: pointer; font-weight: 700; font-size: 16.5px; }
.faq-item__icon { flex-shrink: 0; transition: transform 0.2s ease; color: var(--forest); }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.is-open .faq-item__a { max-height: 240px; }
.faq-item__a p { padding: 0 4px 22px; }

/* ---------- Logo placeholder grid ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-tile { border: 1px dashed var(--line); border-radius: var(--radius-sm); height: 84px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); background: var(--white); }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__art { border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-soft); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step b { display: block; font-family: var(--font-mono); color: var(--gold); font-size: 14px; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--forest-deep); color: rgba(255,255,255,0.72); padding: 72px 0 32px; }
.footer h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; font-family: var(--font-mono); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer a { color: rgba(255,255,255,0.72); font-size: 14.5px; }
.footer a:hover { color: var(--gold-soft); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__brand { color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 19px; display:flex; align-items:center; gap:10px; margin-bottom: 14px; }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a { width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .split { grid-template-columns: 1fr; }
  .split__art { order: -1; aspect-ratio: 16/9; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn--outline-dark, .topbar__links span.hide-sm { display: none; }
  .nav-toggle { display: flex; }
  .topbar .container { font-size: 12px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { flex-wrap: wrap; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
