/* =========================================================
   SMP Darul Muta'allimin — Prototipe Website
   Palet diambil dari logo: hijau, kuning emas, biru langit
   ========================================================= */
:root {
  --green-950: #062619;
  --green-900: #0a3a26;
  --green-800: #0d4d32;
  --green-700: #11663f;
  --green-600: #178a4f;
  --green-100: #e3f1e8;
  --gold: #f0cc3a;
  --gold-deep: #c9a21a;
  --gold-soft: #fbf1c7;
  --sky: #8ccbe9;
  --cream: #faf7ef;
  --paper: #ffffff;
  --ink: #12241b;
  --muted: #5b6b62;
  --line: #e4e0d3;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-arabic: "Amiri", serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(6, 38, 25, .25);
  --shadow-lg: 0 30px 60px -20px rgba(6, 38, 25, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255,255,255,.72); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-deep); }
.eyebrow--light { color: var(--gold); }
.eyebrow--light::before { background: var(--gold); }

.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head--split {
  max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 40px;
}
.section__head--split > p { max-width: 420px; color: var(--muted); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--green-950); box-shadow: 0 8px 22px -8px rgba(240,204,58,.7); }
.btn--gold:hover { background: #ffdb4d; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(0) scale(.98); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-700); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow svg { transition: transform .25s var(--ease); }

/* Topbar */
.topbar { background: var(--green-950); color: rgba(255,255,255,.8); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 40px; }
.topbar__info { display: flex; gap: 20px; white-space: nowrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar__info svg { color: var(--gold); }
.ticker { flex: 1; display: flex; align-items: center; gap: 12px; overflow: hidden; min-width: 0; }
.ticker__label { background: var(--gold); color: var(--green-950); font-weight: 700; padding: 2px 10px; border-radius: 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker__track p { margin: 0; white-space: nowrap; display: inline-block; padding-left: 100%; animation: ticker 32s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 239, .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(0,0,0,.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand strong { display: block; font-family: var(--font-display); font-size: 1.12rem; color: var(--green-900); line-height: 1.1; }
.brand small { color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink);
  position: relative; transition: color .2s, background .2s;
}
.nav a:not(.btn):hover { background: var(--green-100); color: var(--green-800); }
.nav a.active:not(.btn) { color: var(--green-700); }
.nav a.active:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-deep); transform: translateX(-50%);
}
.nav__cta { margin-left: 10px; padding: 11px 20px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--green-900); margin: 5px 0; transition: transform .3s, opacity .3s; border-radius: 2px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 40%, rgba(23,138,79,.55), transparent 60%),
    radial-gradient(600px 400px at 10% 100%, rgba(140,203,233,.15), transparent 60%),
    linear-gradient(160deg, var(--green-900), var(--green-950));
  padding: 70px 0 150px;
}
.hero__pattern, .visi__pattern, .ppdb__pattern, .map__pattern {
  position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; opacity: .06; pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.arabic { font-family: var(--font-arabic); font-size: 1.6rem; color: var(--gold); margin-bottom: 18px; direction: rtl; text-align: left; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); font-weight: 600; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero__lead { font-size: 1.12rem; color: rgba(255,255,255,.8); max-width: 540px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .88rem; color: rgba(255,255,255,.75); }
.hero__badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero__badges svg { color: var(--gold); font-size: .9rem; }

.hero__emblem { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.emblem__ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); animation: spin 40s linear infinite; }
.emblem__ring text { font-family: var(--font-body); font-size: 15.5px; font-weight: 700; letter-spacing: 4.5px; fill: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.emblem__logo {
  position: absolute; inset: 19%; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255,255,255,.08), 0 0 0 22px rgba(255,255,255,.04), var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.emblem__logo img { width: 78%; }
@keyframes float { 50% { transform: translateY(-10px); } }
.emblem__card {
  position: absolute; background: #fff; color: var(--ink); padding: 14px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-width: 190px; display: grid; gap: 2px;
}
.emblem__card strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--green-700); line-height: 1; }
.emblem__card span { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.emblem__card--a { left: -6%; bottom: 12%; }
.emblem__card--b { right: -4%; top: 8%; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; color: var(--cream); line-height: 0; }
.hero__wave svg { width: 100%; height: 80px; }

/* Stats */
.stats {
  position: relative; z-index: 2; margin-top: -90px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat { padding: 30px 26px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--green-800); line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--muted); font-weight: 500; }

/* Sambutan */
.sambutan__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.sambutan__photo { margin: 0; position: relative; }
.sambutan__photo::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--gold-deep); border-radius: var(--radius-lg); z-index: -1;
}
.sambutan__photo figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 20px; background: rgba(255,255,255,.95);
  padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.sambutan__photo figcaption strong { display: block; font-family: var(--font-display); color: var(--green-900); }
.sambutan__photo figcaption span { font-size: .85rem; color: var(--muted); }
.sambutan__text h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--green-900); }
.sambutan__text p { color: #3c4c43; }
.sambutan__text blockquote::before { content: ""; display: block; width: 48px; height: 2px; background: var(--gold-deep); margin-bottom: 14px; }
.sambutan__text blockquote {
  margin: 28px 0 0; padding: 0; background: none; border: 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.35; color: var(--green-900);
}

/* Photo placeholder */
.photo-ph {
  position: relative; width: 100%; height: 100%; min-height: 180px; border-radius: inherit;
  display: grid; place-items: center; align-content: center; gap: 10px; overflow: hidden;
  color: rgba(255,255,255,.85);
  background:
    radial-gradient(circle at 30% 20%, rgba(140,203,233,.35), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(240,204,58,.3), transparent 50%),
    linear-gradient(135deg, var(--green-700), var(--green-900));
}
.photo-ph::after {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 4 L37 23 L56 30 L37 37 L30 56 L23 37 L4 30 L23 23 Z' fill='none' stroke='white'/%3E%3C/svg%3E");
}
.photo-ph svg { width: 44px; height: 44px; position: relative; z-index: 1; }
.photo-ph span { font-size: .85rem; position: relative; z-index: 1; letter-spacing: .04em; }
.photo-ph--portrait { aspect-ratio: 4/5; border-radius: var(--radius-lg); }

/* Visi Misi */
.visi { background: var(--green-100); overflow: hidden; }
.visi__pattern { color: var(--green-700); opacity: .07; }
.visi .container { position: relative; }
.visi__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
.visi__card { background: var(--paper); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.visi__card--main {
  background: linear-gradient(160deg, var(--green-800), var(--green-950)); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.visi__card--main p { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.4; margin: 0; }
.visi__label {
  display: inline-block; font-weight: 700; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: #7d6200; margin-bottom: 18px;
}
.visi__card--main .visi__label { color: var(--gold); }
.misi { margin: 0; padding: 0; list-style: none; counter-reset: m; display: grid; gap: 16px; }
.misi li { counter-increment: m; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; color: #3c4c43; }
.misi li::before {
  content: counter(m, decimal-leading-zero); font-family: var(--font-display); font-weight: 600; color: var(--green-700);
  border-bottom: 2px solid var(--gold); padding-bottom: 2px; text-align: center;
}

/* Program */
.program__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; overflow: hidden;
}
.pcard::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--green-600), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard:hover::after { transform: scaleX(1); }
.pcard { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; align-content: start; }
.pcard__icon { color: var(--green-700); font-size: 1.7rem; display: flex; transition: color .3s, transform .35s var(--ease); }
.pcard:hover .pcard__icon { color: var(--gold-deep); transform: rotate(-8deg); }
.pcard h3 { margin: 0; }
.pcard p { grid-column: 1 / -1; margin-top: 12px !important; }
.pcard__tag { position: static !important; grid-column: 1 / -1; justify-self: start; margin-top: 18px; order: 9; }
.pcard p { color: var(--muted); margin: 0; font-size: .95rem; }
.pcard__tag {
  position: absolute; top: 24px; right: 24px; background: var(--gold); color: var(--green-950);
  font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase;
}

/* Fasilitas */
.fasilitas { background: var(--paper); }
.fasilitas__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 18px; }
.fcard { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.fcard--big { grid-column: span 2; grid-row: span 2; }
.fcard .photo-ph { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.fcard .photo-ph svg { width: 56px; height: 56px; opacity: .55; transform: translateY(-24px); }
.fcard--big .photo-ph svg { width: 90px; height: 90px; }
.fcard:hover .photo-ph { transform: scale(1.06); }
.fcard__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; color: #fff;
  background: linear-gradient(transparent, rgba(6,38,25,.9));
}
.fcard__body h3 { margin: 0 0 2px; }
.fcard__body p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.8); }
.fcard--big .fcard__body h3 { font-size: 1.7rem; }

/* Prestasi */
.prestasi { background: linear-gradient(160deg, var(--green-900), var(--green-950)); color: #fff; }
.prestasi__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.prestasi h2 { color: #fff; }
.prestasi__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.prestasi__list li {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .3s, transform .3s var(--ease);
}
.prestasi__list li:hover { background: rgba(255,255,255,.1); transform: translateX(6px); }
.prestasi__list svg { font-size: 1.8rem; color: var(--gold); }
.prestasi__list strong { display: block; font-weight: 600; }
.prestasi__list span { font-size: .85rem; color: rgba(255,255,255,.6); }

/* Berita */
.berita__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.berita__list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.news { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s var(--ease); }
.news:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news .photo-ph { height: 160px; min-height: 0; border-radius: 0; }
.news .photo-ph svg { opacity: .5; }
.news--featured { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.news--featured .photo-ph { height: 100%; min-height: 260px; }
.news__body { padding: 22px 24px 26px; }
.news__meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.chip { background: var(--green-100); color: var(--green-700); font-weight: 700; padding: 3px 10px; border-radius: 999px; font-size: .72rem; }
.news h3 { font-size: 1.1rem; margin: 0 0 8px; }
.news--featured h3 { font-size: 1.45rem; }
.news h3 a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.news:hover h3 a { background-size: 100% 2px; }
.news p { color: var(--muted); font-size: .94rem; margin: 0; }

.agenda { background: var(--paper); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); position: sticky; top: 100px; }
.agenda h3 { display: flex; align-items: center; gap: 10px; color: var(--green-900); margin-bottom: 18px; }
.agenda h3 svg { color: var(--gold-deep); }
.agenda ul { list-style: none; margin: 0; padding: 0; }
.agenda li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px dashed var(--line); }
.agenda__date {
  width: 58px; flex-shrink: 0; text-align: center; border-radius: 12px; background: var(--green-800); color: #fff; padding: 8px 0; line-height: 1.1;
}
.agenda__date strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); }
.agenda__date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.agenda li > div:last-child strong { display: block; font-size: .95rem; }
.agenda li > div:last-child span { font-size: .82rem; color: var(--muted); }

/* Galeri */
.galeri { background: var(--paper); }
.galeri__filter { display: flex; flex-wrap: wrap; gap: 10px; margin: -20px 0 32px; }
.galeri__filter button {
  font: inherit; font-weight: 600; font-size: .9rem; border: 1px solid var(--line); background: var(--cream);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; color: var(--ink); transition: all .25s;
}
.galeri__filter button:hover { border-color: var(--green-600); }
.galeri__filter button.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.galeri__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.g { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; transition: opacity .4s, transform .4s var(--ease); }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }
.g .photo-ph { position: absolute; inset: 0; }
.g .photo-ph svg { opacity: .45; }
.g figcaption {
  position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.95); color: var(--green-900);
  font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  transform: translateY(8px); opacity: 0; transition: all .3s var(--ease);
}
.g:hover figcaption { transform: none; opacity: 1; }
.g.hide { display: none; }

/* PPDB */
.ppdb { background: var(--green-950); color: #fff; overflow: hidden; }
.ppdb__pattern { opacity: .05; }
.ppdb__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.ppdb h2 { color: #fff; }
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: -18px; width: 2px; background: rgba(240,204,58,.3); }
.steps li > span {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--gold); color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.steps strong { display: block; font-size: 1.05rem; margin-top: 8px; }
.steps p { margin: 2px 0 0; color: rgba(255,255,255,.65); font-size: .93rem; }

.ppdb__form {
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg);
  display: grid; gap: 16px; position: relative;
}
.ppdb__form::before { content: ""; position: absolute; top: 0; left: 36px; right: 36px; height: 4px; background: var(--gold); border-radius: 0 0 4px 4px; }
.ppdb__form h3 { font-size: 1.5rem; color: var(--green-900); margin: 0; }
.form__note { margin: -8px 0 4px; color: var(--muted); font-size: .9rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ppdb__form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--green-900); }
.ppdb__form input, .ppdb__form select {
  font: inherit; font-weight: 400; font-size: .95rem; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.ppdb__form input:focus, .ppdb__form select:focus { outline: none; border-color: var(--green-600); background: #fff; box-shadow: 0 0 0 4px rgba(23,138,79,.15); }
.ppdb__form input.invalid { border-color: #c0392b; background: #fdf1ef; }

/* Testimoni */
.testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard { margin: 0; background: var(--paper); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--line); position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.tcard::before { content: "\201C"; position: absolute; top: 4px; right: 24px; font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--gold); opacity: .5; }
.tcard blockquote { margin: 0; font-size: 1.02rem; color: #33443a; position: relative; }
.tcard figcaption { display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--green-700); color: var(--gold); font-weight: 700; font-size: .9rem; }
.tcard figcaption strong { display: block; }
.tcard figcaption span { font-size: .84rem; color: var(--muted); }

/* FAQ */
.faq { background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); transition: background .3s, border-color .3s; }
.faq details[open] { background: #fff; border-color: var(--green-600); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--green-700); font-weight: 400; transition: transform .3s var(--ease); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Kontak */
.kontak__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: stretch; }
.kontak__info ul { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; }
.kontak__info li { display: flex; gap: 16px; align-items: flex-start; }
.kontak__info li svg { width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: var(--green-100); color: var(--green-700); }
.kontak__info strong { display: block; color: var(--green-900); }
.kontak__info span { color: var(--muted); }
.map {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px;
  background: linear-gradient(160deg, var(--green-100), #d4e9dc); display: grid; place-items: center; align-content: center; text-align: center; color: var(--green-800); font-weight: 600;
}
.map__pattern { color: var(--green-700); opacity: .12; }
.map__pin { width: 64px; height: 64px; border-radius: 50%; background: var(--green-700); color: var(--gold); display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 14px; box-shadow: 0 0 0 12px rgba(17,102,63,.15), 0 0 0 26px rgba(17,102,63,.08); animation: pulse 2.4s ease-out infinite; position: relative; }
.map p { position: relative; margin: 0; }
.map small { color: var(--muted); font-weight: 400; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(17,102,63,.1), 0 0 0 36px rgba(17,102,63,.04); } }

/* Footer */
.footer { background: var(--green-950); color: rgba(255,255,255,.75); padding-top: 70px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__brand img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; margin-bottom: 14px; }
.footer__brand strong { color: #fff; font-family: var(--font-display); font-size: 1.2rem; }
.footer h4 { color: var(--gold); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin: 6px 0 16px; }
.footer__grid > div:not(.footer__brand) a { display: block; padding: 5px 0; transition: color .2s, transform .2s; }
.footer__grid > div:not(.footer__brand) a:hover { color: var(--gold); transform: translateX(4px); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-size: .84rem; flex-wrap: wrap; }

/* Back to top & toast */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 50px; height: 50px; border-radius: 50%; z-index: 40;
  background: var(--gold); color: var(--green-950); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .3s var(--ease);
}
.to-top svg { transform: rotate(-90deg); font-size: 1.2rem; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--green-800); color: #fff; padding: 14px 22px; border-radius: 12px; box-shadow: var(--shadow-lg);
  transition: all .35s var(--ease); max-width: calc(100% - 40px); font-size: .95rem;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .nav { gap: 0; }
  .nav a:not(.btn) { padding: 8px 10px; font-size: .88rem; }
  .berita__grid { grid-template-columns: 1fr; }
  .agenda { position: static; }
}

@media (max-width: 920px) {
  .topbar__info span:last-child { display: none; }
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); padding: 16px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 12px 14px; font-size: 1rem; }
  .nav a.active:not(.btn)::after { display: none; }
  .nav__cta { margin: 10px 0 0; }

  .hero { padding: 50px 0 140px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__emblem { max-width: 300px; order: -1; }
  .emblem__card--a { left: -42%; bottom: 14%; }
  .emblem__card--b { right: -42%; top: 14%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .sambutan__grid, .visi__grid, .prestasi__grid, .ppdb__grid, .faq__grid, .kontak__grid { grid-template-columns: 1fr; }
  .sambutan__photo { max-width: 380px; }
  .section__head--split { flex-direction: column; align-items: start; gap: 16px; }
  .program__grid, .testi__grid { grid-template-columns: 1fr 1fr; }
  .fasilitas__grid, .galeri__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .topbar__info { display: none; }
  .brand strong { font-size: 1rem; }
  .brand img { width: 42px; height: 42px; }
  .emblem__card { display: none; }
  .hero__emblem { max-width: 260px; }
  .program__grid, .testi__grid, .berita__list { grid-template-columns: 1fr; }
  .news--featured { grid-column: auto; grid-template-columns: 1fr; }
  .news--featured .photo-ph { min-height: 180px; }
  .fasilitas__grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .fcard--big { grid-column: auto; grid-row: span 1; }
  .galeri__grid { grid-auto-rows: 150px; }
  .g--wide { grid-column: span 2; }
  .form__row { grid-template-columns: 1fr; }
  .ppdb__form, .visi__card { padding: 26px; }
  .footer__grid { grid-template-columns: 1fr; }
  .sambutan__photo::before { inset: 14px -10px -14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
