/* ==========================================================================
   Yayasan Karya Mujur Bersama — Institutional Design System
   Style: BAZNAS/NGO Light Theme (Emerald, Deep Forest, Warm Cream & Amber)
   ========================================================================== */

:root {
  --green: #0C6239;
  --green-hover: #084D2C;
  --green-deep: #063B22;
  --green-light: #16A34A;
  --green-50: #EAF5EF;
  --green-100: #DCF0E4;
  --green-200: #BBDFCA;
  
  --gold: #D97706;
  --gold-hover: #B45309;
  --gold-50: #FEF3C7;
  --gold-100: #FDE68A;
  
  --bg: #F8FAF8;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F2;
  --border: #E2E8E4;
  --border-strong: #CFD9D3;
  --border-focus: #0C6239;
  
  --heading: #0F172A;
  --text: #334155;
  --muted: #64748B;
  --subtle: #94A3B8;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.03);

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 9999px;

  --container: 1180px;
  --container-narrow: 860px;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* Base & Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.break { display: block; }
.text-accent { color: var(--gold); }

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  line-height: 1.2;
}

.btn-primary {
  background: var(--green);
  color: #FFFFFF !important;
  box-shadow: 0 2px 4px rgba(12, 98, 57, 0.2);
}
.btn-primary:hover {
  background: var(--green-hover);
  box-shadow: 0 4px 8px rgba(12, 98, 57, 0.3);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #FFFFFF !important;
}
.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--heading);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-50);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
  border-radius: var(--r-md);
}

.btn-block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--r-full);
  background: var(--green-50);
  color: var(--green);
  border: 1px solid var(--green-100);
}

.badge-sdg {
  background: var(--gold-50);
  color: var(--gold-dark);
  border: 1px solid var(--gold-100);
  font-size: 0.75rem;
}

/* Topbar */
.topbar {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-contacts {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  align-items: center;
}
.topbar-contacts a:hover { color: #FFFFFF; text-decoration: underline; }
.topbar-label { color: rgba(255, 255, 255, 0.6); margin-right: 4px; }

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1.2;
  letter-spacing: -0.2px;
}
.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--heading);
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-copy h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin: 1rem 0 1.25rem;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.trust-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  list-style: none;
}

/* ID Card / Seal (Hero Right) */
.id-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  background-image: radial-gradient(var(--green-50) 1px, transparent 1px);
  background-size: 16px 16px;
}
.id-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.id-card-seal {
  width: 48px;
  height: 48px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.id-card-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--green);
  display: block;
}
.id-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
}
.id-card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  font-size: 0.88rem;
}
.id-card-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 600;
}
.id-card-list dd {
  color: var(--heading);
  font-weight: 600;
  margin-bottom: 6px;
}

/* Metrics Section */
.metrics {
  padding: 3rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.metrics-panel {
  background: var(--green-deep);
  color: #FFFFFF;
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.metrics-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.metrics-head h2 { font-size: 1.75rem; font-weight: 800; color: #FFFFFF; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.metric-value {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--gold-100);
  line-height: 1.1;
  display: block;
}
.metric-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-top: 6px;
  display: block;
}
.metric-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  display: block;
}
.metrics-foot {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Generic Section */
.section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.section-white { background: var(--surface); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-tag {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 0.5rem;
}
.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.3px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* 5 Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}
.pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.pillar-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green);
  background: var(--green-50);
  padding: 3px 8px;
  border-radius: var(--r-sm);
}
.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--green-50);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 1.25rem;
}
.pillar-icon-gold {
  background: var(--gold-50);
  color: var(--gold);
}
.pillar h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.75rem;
}
.pillar p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.pillar-list {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.pillar-list li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.pillar-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}
.pillar-foot {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* Board & Governance (Tata Kelola) */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.board-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.board-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.board-col-head h3 { font-size: 1.15rem; font-weight: 700; color: var(--heading); }
.board-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--green-50);
  color: var(--green);
}
.person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.25rem;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--green-100);
}
.person strong { font-size: 0.95rem; color: var(--heading); display: block; }
.person span { font-size: 0.82rem; color: var(--muted); }
.board-source {
  font-size: 0.8rem;
  color: var(--subtle);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  text-align: center;
}

/* Legalitas & Table */
.legal-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
}
.legal-table tr { border-bottom: 1px solid var(--border); }
.legal-table td {
  padding: 10px 0;
  font-size: 0.92rem;
}
.legal-table td:first-child {
  width: 40%;
  color: var(--muted);
  font-weight: 600;
}
.legal-table td:last-child {
  color: var(--heading);
  font-weight: 600;
}

.doc-callout {
  background: linear-gradient(135deg, var(--green-deep) 0%, #0D5C35 100%);
  color: #FFFFFF;
  border-radius: var(--r-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}
.doc-callout-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-100);
  margin-bottom: 1.25rem;
}
.doc-callout h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.5rem; }
.doc-meta { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 1.25rem; }
.doc-contents {
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}
.doc-contents li { padding-left: 20px; position: relative; }
.doc-contents li::before {
  content: "📄";
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

/* Donasi & Banks */
.donation-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
}
.bank-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.bank-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.bank-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.bank-mark {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-deep);
}
.bank-code {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
}
.bank-info dt { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.bank-info dd { font-size: 1.25rem; font-weight: 800; color: var(--heading); margin: 2px 0 1rem; }
.copy-btn {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--green-50);
  border-radius: var(--r-sm);
}
.copy-btn:hover { background: var(--green-100); }
.copy-btn.is-copied { background: #DCFCE7; color: #166534; }

.confirm-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.confirm-box h3 { font-size: 1.25rem; font-weight: 700; color: var(--heading); margin-bottom: 1rem; }
.steps { list-style: none; font-size: 0.92rem; color: var(--text); counter-reset: step-counter; }
.steps li { position: relative; padding-left: 36px; margin-bottom: 1rem; }
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--green-50);
  color: var(--green);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  border: 1px solid var(--green-100);
}

.notice-warn {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  padding: 1rem;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: var(--heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem;
  text-align: center;
}
.partner-icon { font-size: 32px; margin-bottom: 1rem; }
.partner-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--heading); margin-bottom: 0.5rem; }
.partner-card p { font-size: 0.9rem; color: var(--muted); }

/* Contacts Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.contact-card, .contact-card-static {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}
.contact-card:hover { border-color: var(--green); transform: translateY(-2px); }
.contact-icon { font-size: 28px; margin-bottom: 1rem; color: var(--green); }
.contact-label { font-size: 0.8rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-card strong { font-size: 1.05rem; color: var(--heading); margin-top: 4px; }
.hours { list-style: none; font-size: 0.88rem; color: var(--text); margin-top: 8px; line-height: 1.8; }

/* Site Footer */
.site-footer {
  background: var(--green-deep);
  color: #FFFFFF;
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-title { font-size: 1.25rem; font-weight: 800; color: #FFFFFF; }
.footer-desc { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; margin-top: 0.75rem; line-height: 1.6; }
.footer-legal dt { color: var(--gold-100); font-size: 0.75rem; text-transform: uppercase; font-weight: 700; margin-top: 8px; }
.footer-legal dd { color: #FFFFFF; font-size: 0.88rem; font-weight: 600; }
.footer-links { list-style: none; font-size: 0.9rem; line-height: 2; }
.footer-links a { color: rgba(255, 255, 255, 0.8); transition: color 0.2s; }
.footer-links a:hover { color: #FFFFFF; }
.footer-contact { list-style: none; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); line-height: 1.8; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Mobile Media Queries */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .board-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .donation-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar-hide-sm { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-copy h1 { font-size: 2.15rem; }
  .section-header h2 { font-size: 1.85rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
