/* ══════════════════════════════════════════
   global.css — SDGs Bagian A
   Shared base styles across all pages
══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700;9..144,800;9..144,900&family=Outfit:wght@300;400;500;600;700&family=Inconsolata:wght@400;500&display=swap');

/* ── VARIABLES ── */
:root {
  --forest:   #0b2e1a;
  --deep:     #0f3d22;
  --mid:      #1a6b3c;
  --leaf:     #2e9955;
  --lime:     #7ed957;
  --mint:     #c8f5d8;
  --glow:     #a3f0b5;
  --paper:    #f2faf4;
  --white:    #ffffff;
  --sdg3:     #4c9f38;
  --sdg4:     #c5192d;
  --muted:    #5a8a6a;
  --border:   #c2e8cc;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--paper);
  color: var(--forest);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--leaf); border-radius: 3px; }

/* ── ANIMATION ── */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
main { animation: pageIn 0.4s ease; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  backdrop-filter: blur(20px);
  background: rgba(11, 46, 26, 0.92);
  border-bottom: 1px solid rgba(126, 217, 87, 0.2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-orb {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--sdg3), var(--lime));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; text-decoration: none;
}
.nav-brand {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem; font-weight: 800;
  color: var(--mint); letter-spacing: 0.06em;
  text-decoration: none;
}
.nav-pills { display: flex; gap: 0.3rem; list-style: none; }
.nav-pills a {
  display: block;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  color: rgba(200, 245, 216, 0.6);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.nav-pills a:hover {
  color: var(--lime);
  border-color: rgba(126, 217, 87, 0.3);
  background: rgba(126, 217, 87, 0.08);
}
.nav-pills a.active {
  color: var(--forest);
  background: var(--lime);
  border-color: var(--lime);
}

/* ── HERO ── */
.hero {
  background: var(--forest);
  position: relative; overflow: hidden;
  padding: 5rem 2.5rem 4rem;
  min-height: 480px;
  display: flex; flex-direction: column; justify-content: center;
  margin-top: 60px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 20%, rgba(78,159,56,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(46,153,85,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(126,217,87,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.chip {
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.chip-3  { background: rgba(76,159,56,0.25);  color: var(--lime);  border: 1px solid rgba(76,159,56,0.4); }
.chip-4  { background: rgba(197,25,45,0.2);   color: #ff8a96;      border: 1px solid rgba(197,25,45,0.35); }
.chip-year { background: rgba(255,255,255,0.07); color: rgba(200,245,216,0.7); border: 1px solid rgba(255,255,255,0.1); }

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 800; color: var(--white);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.hero h1 .hl  { color: var(--lime); }
.hero h1 .hl2 { color: #ff8a96; }
.hero-sub {
  font-size: 0.95rem;
  color: rgba(200,245,216,0.65);
  line-height: 1.75; max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hstat-n {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem; font-weight: 800;
  color: var(--lime); line-height: 1;
}
.hstat-n.red { color: #ff8a96; }
.hstat-l {
  font-size: 0.68rem;
  color: rgba(200,245,216,0.5);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ── SECTION WRAP ── */
.wrap { padding: 4rem 2.5rem; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'Inconsolata', monospace;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--leaf); margin-bottom: 0.5rem;
}
.sec-tag::before {
  content: ''; display: block;
  width: 18px; height: 2px;
  background: var(--lime); border-radius: 2px;
}
.sec-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.1; color: var(--forest);
  margin-bottom: 2.5rem;
}

/* ── FOOTER ── */
footer {
  background: var(--forest);
  color: rgba(200,245,216,0.35);
  padding: 2.5rem;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
footer .fl {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem; font-weight: 800;
  color: var(--lime);
}
footer .fr {
  font-family: 'Inconsolata', monospace;
  font-size: 0.65rem; letter-spacing: 0.08em;
}

/* ── UTILS ── */
.divider { height: 1px; background: var(--border); }
.btn-green {
  display: inline-block; padding: 0.6rem 1.4rem;
  background: var(--lime); color: var(--forest);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  border-radius: 100px; cursor: pointer; border: none;
  transition: all 0.2s; letter-spacing: 0.04em;
}
.btn-green:hover { background: var(--glow); transform: translateY(-1px); }
.btn-outline-g {
  display: inline-block; padding: 0.6rem 1.4rem;
  background: transparent; color: var(--leaf);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  border-radius: 100px; cursor: pointer;
  border: 1.5px solid var(--leaf); transition: all 0.2s;
}
.btn-outline-g:hover { background: var(--leaf); color: #fff; }

/* ── SDG COLOR PALETTE ── */
.c1{background:#e5243b}  .c2{background:#dda63a}  .c3{background:#4c9f38}
.c4{background:#c5192d}  .c5{background:#ff3a21}  .c6{background:#26bde2}
.c7{background:#fcc30b}  .c8{background:#a21942}  .c9{background:#fd6925}
.c10{background:#dd1367} .c11{background:#fd9d24} .c12{background:#bf8b2e}
.c13{background:#3f7e44} .c14{background:#0a97d9} .c15{background:#56c02b}
.c16{background:#00689d} .c17{background:#19486a}

/* ── SDG PILL STRIP (shared: sdgs & home) ── */
.sdg-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem; margin-top: 1.5rem;
}
.sdg-pill {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--white); border: 1px solid var(--border);
  transition: all 0.2s;
}
.sdg-pill:hover        { border-color: var(--leaf); background: var(--mint); }
.sdg-pill.focus        { border-color: var(--sdg3); background: rgba(76,159,56,0.06); }
.sdg-pill.focus4       { border-color: var(--sdg4); background: rgba(197,25,45,0.04); }
.pill-dot {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 0.7rem; font-weight: 800;
  color: #fff; flex-shrink: 0;
}
.pill-label { font-size: 0.72rem; font-weight: 600; color: var(--forest); line-height: 1.2; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-pills { display: none; }
}