/* =====================================================
   DESIGN SYSTEM - Minimalist / Elegan / Modern
   Palet: Putih, Abu-abu, Hitam (dengan aksen halus)
   ===================================================== */

:root {
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-400: #a1a1aa;
  --gray-600: #52525b;
  --accent: #18181b;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 32px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.text-brand { color: var(--ink); }

a { text-decoration: none; transition: color .2s ease; }

/* ---------- Navbar ---------- */
.navbar { padding: 0.9rem 0; transition: box-shadow .2s ease, padding .2s ease; }
.navbar .nav-link {
  font-weight: 600;
  color: var(--gray-600);
  padding: .5rem 1rem !important;
  position: relative;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--ink); }
.navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem; bottom: .1rem;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.navbar .nav-link:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--gray-50) 0%, #ffffff 100%);
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: .4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.hero p.lead { color: var(--gray-600); font-size: 1.15rem; max-width: 640px; }
.hero-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Buttons ---------- */
.btn-dark-elegant {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .8rem 1.8rem;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-dark-elegant:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline-elegant {
  border: 1.5px solid var(--gray-200);
  color: var(--ink);
  border-radius: 999px;
  padding: .8rem 1.8rem;
  font-weight: 600;
  transition: all .2s ease;
}
.btn-outline-elegant:hover { border-color: var(--ink); background: var(--gray-50); color: var(--ink); }

/* ---------- Cards ---------- */
.card-elegant {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
  height: 100%;
}
.card-elegant:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.card-elegant .card-img-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.card-elegant .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-elegant:hover .card-img-wrap img { transform: scale(1.06); }

/* ---------- Section ---------- */
.section { padding: 5rem 0; }
.section-title-eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .75rem; }
.section-subtitle { color: var(--gray-600); max-width: 620px; }

/* ---------- Stats ---------- */
.stat-box {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}
.stat-box .stat-number { font-size: 2.4rem; font-weight: 800; }
.stat-box .stat-label { color: var(--gray-600); font-weight: 600; font-size: .9rem; }

/* ---------- Section gelap (Sambutan / CTA) ---------- */
.section-dark {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
}
.section-dark .section-subtitle, .section-dark p { color: var(--gray-400); }

/* ---------- Struktur / Person Card ---------- */
.person-card { text-align: center; }
.person-photo {
  width: 140px; height: 140px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 1.25rem;
  border: 4px solid var(--gray-100);
}

/* ---------- Table (Admin & Siswa list) ---------- */
.table-elegant thead { background: var(--gray-50); }
.table-elegant th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-600); }

/* ---------- Pagination ---------- */
.pagination .page-link {
  border: none; color: var(--gray-600); border-radius: 999px !important; margin: 0 3px;
}
.pagination .page-item.active .page-link { background: var(--ink); color: #fff; }

/* ---------- Footer ---------- */
footer a { color: var(--gray-400); }
footer a:hover { color: #fff; }
.footer-links li { margin-bottom: .6rem; }

/* ---------- Lightbox (Album) ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
  z-index: 2000; padding: 2rem;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox-close, .lightbox-nav {
  position: absolute; color: #fff; background: rgba(255,255,255,.1);
  border: none; width: 46px; height: 46px; border-radius: 50%; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Skeleton (lazy load placeholder) ---------- */
img.lazy { opacity: 0; transition: opacity .3s ease; background: var(--gray-100); }
img.lazy.loaded { opacity: 1; }

/* ---------- Forms ---------- */
.form-elegant .form-control, .form-elegant .form-select {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200);
  padding: .75rem 1rem;
}
.form-elegant .form-control:focus, .form-elegant .form-select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.form-elegant label { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }

/* ---------- Utility ---------- */
.rounded-elegant { border-radius: var(--radius-lg) !important; }
.shadow-elegant { box-shadow: var(--shadow-soft) !important; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal-active { opacity: 1; transform: translateY(0); }

@media (max-width: 991px) {
  .section-dark { padding: 2.5rem 1.5rem; }
  .hero { padding: 3.5rem 0 4rem; }
}
