/* =========================================================
   YAYASAN PENDIDIKAN — DESIGN SYSTEM
   Ink-green + parchment + gold, aksen ornamen garis kawung
   ========================================================= */

:root {
  --ink-green: #132420;
  --ink-green-dark: #0b1613;
  --parchment: #efe8d8;
  --parchment-soft: #f6f2e6;
  --gold: #b98b2a;
  --gold-soft: #d8ae5c;
  --rust: #8b3a2b;
  --text-dark: #1c1b17;
  --text-muted: #5b584e;
  --text-on-dark: #efe8d8;
  --line: rgba(28, 27, 23, 0.12);
  --line-on-dark: rgba(239, 232, 216, 0.18);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 4px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--parchment-soft);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--text-muted); }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 14px;
}

/* ---------- Ornamen garis kawung (signature element) ---------- */
.ornamen {
  height: 14px;
  width: 100%;
  background-image: repeating-linear-gradient(
    115deg,
    var(--gold) 0px, var(--gold) 2px,
    transparent 2px, transparent 16px
  );
  opacity: 0.55;
}
.ornamen.dark { opacity: 0.35; }

.ornamen-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 40px;
}
.ornamen-divider::before,
.ornamen-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    115deg, var(--gold) 0, var(--gold) 3px, transparent 3px, transparent 10px
  );
}
.ornamen-divider span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--ink-green);
  color: var(--text-on-dark);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-on-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--parchment);
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo .mark {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
}
.main-nav ul {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-on-dark);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
  opacity: 1;
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-on-dark);
  color: var(--parchment);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink-green);
    border-bottom: 1px solid var(--line-on-dark);
    display: none;
    padding: 8px 24px 24px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink-green);
  color: var(--text-on-dark);
  padding: 88px 0 72px;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  color: var(--parchment);
  max-width: 15ch;
}
.hero .lede {
  max-width: 52ch;
  font-size: 1.08rem;
  color: rgba(239,232,216,0.72);
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink-green-dark); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline { border-color: var(--line-on-dark); color: var(--text-on-dark); }
.btn-outline:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-outline-dark { border-color: var(--line); color: var(--text-dark); }
.btn-outline-dark:hover { border-color: var(--rust); color: var(--rust); }

/* ---------- Ledger stats row (bukan card gradient) ---------- */
.ledger {
  background: var(--ink-green-dark);
  border-top: 1px solid var(--line-on-dark);
}
.ledger .container {
  display: flex;
  flex-wrap: wrap;
}
.ledger-item {
  flex: 1 1 200px;
  padding: 28px 24px;
  border-right: 1px solid var(--line-on-dark);
}
.ledger-item:last-child { border-right: none; }
.ledger-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-soft);
  display: block;
}
.ledger-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239,232,216,0.6);
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-parchment { background: var(--parchment); }
.section-soft { background: var(--parchment-soft); }
.section-dark { background: var(--ink-green); color: var(--text-on-dark); }
.section-dark p { color: rgba(239,232,216,0.72); }
.section-dark h2 { color: var(--parchment); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Grid cards (program, galeri) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--parchment-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.card .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--rust);
  display: block;
  margin-bottom: 14px;
}
.card h3 { font-size: 1.15rem; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Struktur organisasi ---------- */
.org-tier {
  margin-bottom: 8px;
}
.org-tier-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.org-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.org-box {
  background: var(--parchment-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  flex: 1 1 220px;
  border-radius: var(--radius);
}
.org-box .name { font-weight: 700; font-size: 0.98rem; }
.org-box .role { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }

/* ---------- Galeri ---------- */
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.post-item {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.post-item .post-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  min-width: 110px;
}
.post-item h3 { font-size: 1.1rem; margin-bottom: 6px; }

/* ---------- Kontak ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { margin-bottom: 22px; }
.contact-item .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.form-field {
  margin-bottom: 18px;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--parchment-soft);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 24px;
}
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-green-dark);
  color: rgba(239,232,216,0.65);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--parchment);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-grid ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 22px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
