/* =========================================
   Diniyyah Al-Azhar — Landing Page
   ========================================= */

:root {
  --green-900: #0d3527;
  --green-800: #124633;
  --green-600: #1c7a4a;
  --green-500: #23955a;
  --green-100: #e6f3ea;
  --orange: #f18a1c;
  --orange-600: #d8730a;
  --sky: #2aa6dc;
  --navy: #1d3f8f;
  --cream: #fbf8f1;
  --ink: #17231d;
  --ink-soft: #4b5a52;
  --line: #e3e0d6;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(13, 53, 39, .18);
  --container: 1160px;

  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .85em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .55em 1.1em; font-size: .9rem; }
.btn--accent { background: var(--orange); color: var(--white); }
.btn--accent:hover { background: var(--orange-600); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--light { background: var(--white); color: var(--green-800); }
.btn--light:hover { background: var(--green-100); }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: .9em;
}
.eyebrow--light { color: #9fe0b8; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(241,138,28,.25); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; background: var(--white); padding: 2px; border: 1px solid var(--line); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.05rem; color: var(--green-800); }
.brand__text small { font-size: .72rem; color: var(--ink-soft); letter-spacing: .03em; }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-soft); }
.nav__links a:not(.btn):hover { color: var(--green-600); }

.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--green-800); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, #1f6b47 0%, var(--green-900) 55%, #0a2a1f 100%);
  color: var(--white);
  padding: 96px 0 72px;
}
.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: .09;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2'%3E%3Cpath d='M40 4 L52 28 L76 40 L52 52 L40 76 L28 52 L4 40 L28 28 Z'/%3E%3Crect x='26' y='26' width='28' height='28' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  mask-image: linear-gradient(to left, #000 20%, transparent 85%);
  -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 85%);
}
.hero__inner { position: relative; }
.hero__copy { max-width: 720px; }
.hero h1 em { font-style: italic; color: #ffc27a; }
.lead { font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.stats {
  list-style: none;
  padding: 0;
  margin: 64px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.15);
}
.stats li { padding: 24px 20px 0 0; }
.stats li + li { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.15); }
.stats strong { display: block; font-family: var(--font-display); font-size: 2.4rem; color: #ffc27a; line-height: 1.1; }
.stats span { display: block; font-size: .9rem; color: rgba(255,255,255,.75); margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--green-100); }
.section--dark { background: var(--green-900); color: var(--white); }
.section__head { max-width: 640px; margin-bottom: 44px; }
.muted-light { color: rgba(255,255,255,.75); }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.split--top { align-items: start; }
.prose p { font-size: 1.06rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(13,53,39,.06);
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-100);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--green-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(2) .card__icon { background: #fff1e2; }
.card:nth-child(2) .card__icon svg { stroke: var(--orange-600); }
.card:nth-child(3) .card__icon { background: #e3f3fb; }
.card:nth-child(3) .card__icon svg { stroke: var(--sky); }
.card:nth-child(4) .card__icon { background: #e7ecf8; }
.card:nth-child(4) .card__icon svg { stroke: var(--navy); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 39px; top: 8px; bottom: 8px; width: 2px; background: rgba(255,255,255,.15); }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding-bottom: 32px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__year {
  position: relative;
  z-index: 1;
  display: grid; place-items: center;
  width: 80px; height: 36px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
}
.timeline h3 { margin-top: 6px; }
.timeline p { color: rgba(255,255,255,.72); margin: 0; }

/* ---------- Units / Campus ---------- */
.campus-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.campus-tabs button {
  font: inherit;
  font-weight: 600;
  padding: .6em 1.2em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s ease;
}
.campus-tabs button:hover { border-color: var(--green-500); color: var(--green-600); }
.campus-tabs button[aria-selected="true"] { background: var(--green-600); border-color: var(--green-600); color: var(--white); }

.units {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.units li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-weight: 600;
  display: flex; flex-direction: column; gap: 8px;
}
.lvl {
  align-self: flex-start;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .25em .7em;
  border-radius: 999px;
}
.lvl--dini { background: #fff1e2; color: var(--orange-600); }
.lvl--dasar { background: #e3f3fb; color: #1b7fae; }
.lvl--menengah { background: var(--green-100); color: var(--green-600); }
.lvl--atas { background: #e7ecf8; color: var(--navy); }
.campus__addr { margin-top: 18px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- PSB ---------- */
.psb {
  background: linear-gradient(120deg, var(--orange) 0%, #f5a542 100%);
  color: var(--white);
  padding: 72px 0;
}
.psb__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.psb h2 { color: var(--white); }
.psb p { color: rgba(255,255,255,.92); max-width: 560px; }
.psb .eyebrow--light { color: rgba(255,255,255,.85); }
.psb__actions { justify-self: end; text-align: center; }
.psb__phone { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 14px 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(255,255,255,.78); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 12px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.brand--footer strong { color: var(--white); }
.brand--footer small { color: rgba(255,255,255,.6); }
.brand--footer img { border-color: transparent; }
.footer__desc { margin-top: 16px; max-width: 360px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 20px; padding-bottom: 24px; font-size: .85rem; }
.footer__bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .units { grid-template-columns: repeat(2, 1fr); }
  .psb__inner { grid-template-columns: 1fr; }
  .psb__actions { justify-self: start; text-align: left; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 14px; justify-content: center; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .stats { margin-top: 44px; }
  .stats strong { font-size: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 64px 1fr; gap: 16px; }
  .timeline::before { left: 31px; }
  .timeline__year { width: 64px; font-size: .85rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .units { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Tombol daftar online di bagian PSB beranda */
.btn--accent-dark { background: var(--green-900); color: var(--white); margin-bottom: 10px; }
.btn--accent-dark:hover { background: var(--green-800); }
.psb__actions .btn { width: 100%; justify-content: center; }
