/* Biji-biji Initiative — shared styles */
:root {
  --bg: #F4F1EB;
  --panel: #ECE8E0;
  --panel-2: #E6E2DA;
  --ink: #15140F;
  --ink-2: #1F1E18;
  --muted: #5A574E;
  --muted-2: #7A776E;
  --line: #D9D4C8;
  --accent: #15140F;
  --maroon: #5A1B3A;
  --navy: #0E2746;
  --pink: #F4A8C8;
  --serif: 'Poppins', system-ui, sans-serif;
  --sans: 'Raleway', 'Helvetica Neue', system-ui, sans-serif;
  --r-card: 28px;
  --r-pill: 999px;
  --r-md: 14px;
  --shadow-soft: 0 1px 0 rgba(0,0,0,0.04), 0 12px 32px -16px rgba(20,18,12,0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.05; }
h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; }
h3 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.2; }
em, .it { font-style: italic; font-weight: 500; }
.bold { font-weight: 600; font-style: normal; }

p { margin: 0 0 1em; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-color: var(--line); background: rgba(244,241,235,0.92); backdrop-filter: blur(10px); }
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center;
}
.brand img { height: 44px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a, .nav-links .has-menu {
  font-size: 14px; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 0; position: relative;
}
.nav-links a:hover, .nav-links .has-menu:hover { opacity: 0.7; }
.nav-links .caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: -16px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; min-width: 240px;
  box-shadow: var(--shadow-soft);
  display: none;
}
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.dropdown-menu a:hover { background: var(--panel); }

.nav-mobile.btn { display: none; }
.nav-mobile.btn { padding: 10px 14px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2820; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--panel); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn .arrow { width: 18px; height: 18px; border-radius: 999px; background: rgba(255,255,255,0.15); display: inline-grid; place-items: center; }
.btn-light .arrow { background: var(--panel); }

/* ---------- PANELS / SECTIONS ---------- */
.panel {
  background: var(--panel);
  border-radius: var(--r-card);
  padding: 56px 48px;
  margin: 0;
}
.panel-tight { padding: 40px 36px; }
section { padding: 56px 0; }
section.tight { padding: 36px 0; }

.curved-top {
  background: var(--bg);
  border-radius: 48px 48px 0 0;
  margin-top: -32px;
  padding-top: 64px;
  position: relative;
}
.curved-bottom {
  background: var(--bg);
  border-radius: 0 0 48px 48px;
  padding-bottom: 64px;
}

/* ---------- HERO ---------- */
.hero {
  padding: 72px 0 56px;
}
.hero h1 .it { font-style: italic; }
.hero-lede { max-width: 720px; color: var(--muted); font-size: 17px; margin-top: 24px; }

/* ---------- STATS ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--serif);
  font-size: 44px; line-height: 1;
  font-weight: 500; color: var(--ink);
  display: flex; align-items: baseline; gap: 4px;
}
.stat-num sup { font-size: 18px; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 8px; max-width: 220px; }

/* ---------- COMMITMENTS / 3-COL ---------- */
.tri-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.tri-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 8px;
}
.tri-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: var(--ink);
}
.tri-card h4 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; font-weight: 500; }
.tri-card p { color: var(--muted); font-size: 14px; max-width: 320px; }

/* ---------- WORK CARDS ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work-card {
  background: #fff;
  border-radius: 22px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line);
}
.work-img {
  aspect-ratio: 16/10;
  border-radius: 14px;
  background: linear-gradient(135deg, #2b2a25, #15140f);
  background-size: cover; background-position: center;
  position: relative;
  overflow: hidden;
}
.work-img .badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.95); color: var(--ink);
  padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em;
}
.work-card h4 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.work-card p { font-size: 13px; color: var(--muted); margin: 0; }
.work-card .btn { align-self: flex-start; padding: 10px 18px; font-size: 13px; }
.work-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 18px auto 0; }

/* ---------- IMPACT FRAMEWORK ---------- */
.framework-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.framework-row {
  display: grid; grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease;
}
.framework-row:hover { background: rgba(0,0,0,0.02); }
.framework-icon { width: 56px; height: 56px; display: grid; place-items: center; }
.framework-row h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.framework-row .plus {
  width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--ink);
  display: grid; place-items: center; font-size: 18px; line-height: 1;
}

/* ---------- ECOSYSTEM CARDS ---------- */
.eco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.eco-card {
  background: var(--panel-2);
  border-radius: 20px;
  padding: 32px 28px;
}
.eco-card h4 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-bottom: 12px; }
.eco-card p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* ---------- LOGO STRIPS ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 48px; }
.logo-strip .logo {
  height: 36px; width: 120px;
  display: grid; place-items: center;
  color: var(--muted-2);
  font-family: var(--serif); font-size: 14px; font-weight: 500;
  filter: grayscale(1);
  opacity: 0.85;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg); padding: 64px 0 28px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer h5 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600; margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--ink-2); }
.footer ul a:hover { color: var(--ink); text-decoration: underline; }
.subscribe { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.subscribe input {
  padding: 14px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px;
}
.subscribe button {
  padding: 14px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 0; font-size: 14px; font-weight: 500;
}
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: 12px; color: var(--muted);
}
.footer-legal { display: flex; flex-direction: column; gap: 6px; }
.footer-legal .legal-links { display: flex; gap: 18px; margin-top: 6px; }
.footer-right { display: flex; align-items: center; gap: 18px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 12px;
}
.socials a:hover { background: #2a2820; }

/* ---------- UTIL ---------- */
.row { display: flex; align-items: center; gap: 16px; }
.row.between { justify-content: space-between; }
.row.center { justify-content: center; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-48 { margin-bottom: 48px; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 32px 0; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-size: 12px; color: var(--muted);
}

/* ---------- IMAGE PLACEHOLDERS ---------- */
.ph {
  background: linear-gradient(135deg, #d9d4c8, #ece8e0);
  position: relative; overflow: hidden; border-radius: 14px;
  display: grid; place-items: center; color: var(--muted-2);
  font-size: 12px; letter-spacing: .06em;
}
.ph::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.4), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.05), transparent 40%);
  pointer-events: none;
}
.ph-portrait { aspect-ratio: 4/5; }
.ph-square { aspect-ratio: 1; }
.ph-wide { aspect-ratio: 16/9; }
.ph-tall { aspect-ratio: 3/4; }
.ph.dark { background: linear-gradient(135deg, #2a2a25, #14130f); color: #6c6a60; }

/* SVG inline styles */
.icon { width: 24px; height: 24px; stroke-width: 1.5; fill: none; stroke: currentColor; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .tri-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid-2 { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .panel { padding: 36px 24px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-mobile.btn { display: inline-flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow-soft);
  }
  .nav.open .nav-links a,
  .nav.open .nav-links .has-menu {
    padding: 10px 12px;
    border-radius: 8px;
  }
  .nav.open .nav-links a:hover,
  .nav.open .nav-links .has-menu:hover { background: var(--panel); opacity: 1; }
  .nav.open .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 4px 0 4px 12px;
    min-width: 0;
  }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- FRAMEWORK ACCORDION ---------- */
.framework-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 8px 0 88px;
}
.framework-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.framework-row.open + .framework-content {
  max-height: 200px;
  padding: 0 8px 24px 88px;
}
.framework-row .plus {
  transition: transform 0.25s ease;
}
.framework-row.open .plus {
  transform: rotate(45deg);
}

/* ---------- FRAMEWORK ACCORDION ---------- */
.framework-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 8px 0 88px;
}
.framework-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.framework-row.open + .framework-content {
  max-height: 200px;
  padding: 0 8px 24px 88px;
}
.framework-row .plus {
  transition: transform 0.25s ease;
}
.framework-row.open .plus {
  transform: rotate(45deg);
}
