/* Tema sekolah: hangat, berwarna, ramah anak (meniru karakter sekolah swasta bilingual, bukan landing page produk). */
:root {
  --sun: #ffb400;
  --sun-tint: #fff4d6;
  --red: #e2231a;
  --red-dark: #b5170f;
  --orange: #f26522;
  --orange-tint: #ffe6d8;
  --navy: #1d3461;
  --navy-tint: #e6edf8;
  --cream: #fffaf0;
  --tint: #f6f8fc;
  --bg: #ffffff;
  --ink: #1f2937;
  --muted: #5b6474;
  --accent: #e2231a;
  --accent-ink: #ffffff;
  --font: "Nunito", "Segoe UI", Arial, sans-serif;
  --display: "Baloo 2", "Nunito", sans-serif;
  --r: 18px;
}
body { font-family: var(--font); font-size: 17px; letter-spacing: 0; color: var(--ink); background: var(--bg); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; line-height: 1.12; font-weight: 800; }
.wrap, .frame { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.demo-bar { background: var(--navy); text-align: center; font-size: 13px; padding: 6px 16px; }
.ico { flex: none; }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }

/* tombol: membulat, ramah */
.btn { border-radius: 999px; font-weight: 800; min-height: 50px; padding: 0 26px; font-family: var(--font); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-red, .btn-primary { background: var(--red); color: #fff; }
.btn-red:hover, .btn-primary:hover { background: var(--red-dark); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--sun-tint); }
.btn-line { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-line:hover { background: var(--navy-tint); }
.btn-plain { background: var(--tint); }
.btn-ink { background: var(--navy); color: #fff; }

/* header sekolah */
.site-head { position: sticky; top: 0; z-index: 30; background: #fff; box-shadow: 0 2px 10px rgba(29, 52, 97, .08); } /* taste-skill-ignore: sticky bar */
.topstrip { background: var(--red); color: #fff; font-size: 14px; }
.topstrip-in { display: flex; gap: 22px; align-items: center; min-height: 40px; flex-wrap: wrap; }
.topstrip-in span { display: inline-flex; gap: 6px; align-items: center; }
.topstrip .push { margin-left: auto; }
.topstrip .lang button { background: rgba(255, 255, 255, .18); color: #fff; min-height: 30px; padding: 4px 10px; font-size: 13px; }
.topstrip .lang button[aria-pressed="true"] { background: #fff; color: var(--red); }
.topstrip .lang button:first-child { border-radius: 999px 0 0 999px; } .topstrip .lang button:last-child { border-radius: 0 999px 999px 0; }
.mainbar-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo b { display: block; font-family: var(--display); font-size: 21px; line-height: 1; color: var(--red); }
.logo small { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--navy); }
.logo-inv b { color: var(--sun); } .logo-inv small { color: #fff; }
.mainbar .nav { margin-left: auto; display: flex; gap: 4px; white-space: nowrap; }
.mainbar .nav a { text-decoration: none; font-weight: 700; color: var(--ink); padding: 10px 12px; border-radius: 10px; font-size: 16px; }
.mainbar .nav a:hover { background: var(--sun-tint); text-decoration: none; }
.mainbar .nav a[aria-current="page"] { color: var(--red-dark); background: var(--sun-tint); text-decoration: none; }
.menu-btn { margin-left: auto; border-radius: 999px; background: var(--sun-tint); }
@media (max-width: 1000px) {
  .hide-sm { display: none !important; }
  .menu-btn { display: block; }
  .mainbar-in { flex-wrap: wrap; min-height: 68px; }
  .mainbar .nav { display: none; width: 100%; flex-direction: column; margin: 0 0 12px; }
  .mainbar .nav.open { display: flex; }
}

/* hero */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: rgba(15, 25, 50, .42); }
.hero-in { position: relative; width: 100%; padding-top: 56px; padding-bottom: 96px; }
.hero-card { max-width: 560px; color: #fff; }
.ribbon { display: inline-block; background: var(--sun); color: var(--navy); font-weight: 800; padding: 6px 16px; border-radius: 999px; font-size: 15px; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem); margin: 18px 0 14px; color: #fff; }
.hero p { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 760px) { .hero { min-height: 540px; } .hero-img::after { background: rgba(15, 25, 50, .55); } }

/* akses cepat */
.quick { position: relative; margin-top: -56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 12px 30px rgba(29, 52, 97, .14); } /* taste-skill-ignore: floating quick-access card */
.quick a { display: flex; gap: 14px; align-items: center; padding: 22px 20px; text-decoration: none; color: var(--ink); transition: background-color .2s; }
.quick a:nth-child(1) { color: var(--red); } .quick a:nth-child(2) { color: var(--orange); } .quick a:nth-child(3) { color: #b07a00; } .quick a:nth-child(4) { color: var(--navy); }
.quick a span { display: grid; color: var(--ink); font-size: 14px; }
.quick a b { font-family: var(--display); font-size: 19px; line-height: 1.1; }
.quick a:hover { background: var(--cream); }
.quick a + a { box-shadow: inset 1px 0 0 #eef0f4; }
@media (max-width: 860px) { .quick { grid-template-columns: 1fr 1fr; margin-top: -40px; } }

/* bagian umum */
.sec { padding: 88px 0; }
.sec-tint { background: var(--tint); }
.sec-cream { background: var(--cream); }
.sec-title { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.7rem); color: var(--navy); }
.sec-title::after { content: ""; display: block; width: 64px; height: 6px; border-radius: 6px; background: var(--sun); margin-top: 12px; }
.sec-head-c { text-align: center; margin-bottom: 40px; }
.sec-head-c .sec-title::after, .sec-title.center::after { margin-left: auto; margin-right: auto; }
.sec-head-c p { color: var(--muted); margin: 12px auto 0; font-size: 1.1rem; max-width: 60ch; }
.sec-head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.more { font-weight: 800; color: var(--red-dark); text-decoration: none; }
.more:hover { text-decoration: underline; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 14px 0 20px; }

/* sambutan */
.welcome { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.welcome-photo { position: relative; }
.welcome-photo img { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.welcome-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--r); background: var(--sun); z-index: -1; }
.welcome blockquote { max-width: 60ch; margin: 24px 0 18px; font-size: 1.2rem; line-height: 1.6; padding-left: 20px; box-shadow: inset 4px 0 0 var(--red); }
.sign { display: grid; } .sign b { font-family: var(--display); font-size: 1.2rem; color: var(--navy); } .sign span { color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.facts li { background: var(--tint); border-radius: 14px; padding: 14px; text-align: center; font-weight: 700; color: var(--muted); }
.facts b { display: block; font-family: var(--display); font-size: 2rem; color: var(--red); line-height: 1.1; }
@media (max-width: 860px) { .welcome { grid-template-columns: 1fr; gap: 40px; } .welcome-photo { max-width: 420px; } .facts { grid-template-columns: repeat(2, 1fr); } }

/* kartu jenjang */
.units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.unit { background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 0 rgba(0,0,0,.02); transition: transform .25s var(--ease); } /* taste-skill-ignore: card lift */
.unit:hover { transform: translateY(-4px); }
.unit-img { position: relative; aspect-ratio: 4 / 3; }
.unit-img img { width: 100%; height: 100%; object-fit: cover; }
.unit-badge { position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--navy); font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.unit-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; border-top: 6px solid; }
.unit h3 { font-size: 1.6rem; }
.unit-age { font-weight: 800; }
.unit-grades { color: var(--muted); font-size: 15px; margin-top: auto; }
.unit-link { font-weight: 800; text-decoration: none; }
.u-orange h3, .u-orange .unit-age, .u-orange .unit-link { color: #b23a08; }
.unit-link:hover { text-decoration: underline; }
.u-sun .unit-body { border-color: var(--sun); } .u-sun h3, .u-sun .unit-age, .u-sun .unit-link { color: #8a5a00; }
.u-orange .unit-body { border-color: var(--orange); } .u-orange h3, .u-orange .unit-age, .u-orange .unit-link { color: #c2410c; }
.u-red .unit-body { border-color: var(--red); } .u-red h3, .u-red .unit-age, .u-red .unit-link { color: var(--red-dark); }
.u-navy .unit-body { border-color: var(--navy); } .u-navy h3, .u-navy .unit-age, .u-navy .unit-link { color: var(--navy); }
@media (max-width: 1000px) { .units { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .units { grid-template-columns: 1fr; } }

/* pencari kelas */
.finder-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: start; }
.finder { position: sticky; top: 140px; }
.finder label.f input { border: 2px solid var(--navy); border-radius: 14px; max-width: 320px; }
.finder-out { margin-top: 18px; background: var(--navy); color: #fff; border-radius: var(--r); padding: 22px; display: grid; gap: 8px; justify-items: start; }
.finder-out b { font-family: var(--display); font-size: 1.5rem; line-height: 1.15; color: var(--sun); }
.ladder { list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: var(--r); display: grid; gap: 4px; }
.ladder li { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 9px 14px; border-radius: 12px; font-size: 16px; transition: background-color .3s, transform .3s; }
.ladder li .k { color: var(--muted); font-size: 14px; }
.ladder li .g { font-weight: 700; }
.ladder li .v { font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.ladder .u-sun .v { background: var(--sun-tint); color: #8a5a00; } .ladder .u-orange .v { background: var(--orange-tint); color: #b13d0a; }
.ladder .u-red .v { background: #fde2e1; color: var(--red-dark); } .ladder .u-navy .v { background: var(--navy-tint); color: var(--navy); }
.ladder li.hit { background: var(--sun); transform: scale(1.02); }
.ladder li.hit .k { color: var(--ink); }
.ladder li.past { opacity: .55; }
@media (max-width: 860px) { .finder-grid { grid-template-columns: 1fr; } .finder { position: static; } }

/* keunggulan */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { text-align: center; padding: 28px 22px; border-radius: var(--r); background: var(--tint); }
.why-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; color: #fff; }
.w0 .why-ico { background: var(--sun); } .w1 .why-ico { background: var(--red); } .w2 .why-ico { background: var(--orange); } .w3 .why-ico { background: var(--navy); }
.why-item h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: 8px; }
.why-item p { color: var(--muted); }
@media (max-width: 1000px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* poster kegiatan, gaya feed Instagram sekolah */
.posters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.poster { background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.poster-img { position: relative; aspect-ratio: 1; overflow: hidden; }
.poster-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.poster:hover .poster-img img { transform: scale(1.05); }
.poster-tag { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0 auto; width: max-content; max-width: 90%; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.05; padding: 6px 14px; border-radius: 10px; text-align: center; }
.p-red .poster-tag { background: var(--red); color: var(--sun); } .p-sun .poster-tag { background: var(--sun); color: var(--red-dark); }
.p-orange .poster-tag { background: var(--orange); color: #fff; } .p-navy .poster-tag { background: var(--navy); color: var(--sun); }
.poster-body { padding: 16px 18px 20px; display: grid; gap: 6px; }
.poster-body .date { font-size: 14px; color: var(--muted); font-weight: 700; }
.poster-body h3 { font-size: 1.2rem; color: var(--navy); }
.poster-body p { font-size: 15px; color: var(--muted); }
@media (max-width: 1000px) { .posters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .posters { grid-template-columns: 1fr; } }

/* agenda & pengumuman */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.agenda, .notices, .docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.agenda li { display: flex; gap: 16px; align-items: center; background: var(--tint); border-radius: 14px; padding: 12px 16px; }
.agenda li div { display: grid; } .agenda li span { color: var(--muted); font-size: 15px; }
.agenda li b { font-size: 17px; }
.dchip { flex: none; width: 58px; text-align: center; background: #fff; border-radius: 12px; padding: 6px 0; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.dchip b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--navy); }
.agenda li.hl { background: var(--sun-tint); } .agenda li.hl .dchip b { color: var(--red); }
.sec-tint .agenda li { background: #fff; }
.notices li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: inset 4px 0 0 var(--orange); }
.sec .notices li { background: var(--tint); }
.docs li { display: flex; gap: 10px; align-items: center; background: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.docs li svg { color: var(--red); }

/* alur pendaftaran */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; background: #fff; border-radius: var(--r); padding: 26px 18px 22px; text-align: center; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; top: 12px; left: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.step-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--sun-tint); color: var(--red); }
.steps h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* pita PPDB */
.ppdb-band { background: var(--red); color: #fff; padding: 48px 0; }
.ppdb-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.ppdb-band h2 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); color: var(--sun); }
.ppdb-band p { margin-top: 6px; font-size: 1.1rem; }
.ppdb-band .hero-actions { margin-top: 0; }
.ppdb-band .btn-red { background: var(--navy); }

/* footer */
.site-foot { background: var(--navy); color: #dfe6f3; padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 40px; }
.foot-grid h3 { color: #fff; font-size: 1.2rem; margin-bottom: 14px; }
.foot-grid p { display: flex; gap: 8px; align-items: start; margin-bottom: 10px; }
.foot-brand p { display: block; margin: 16px 0; max-width: 40ch; }
.foot-grid a { color: #fff; text-decoration: none; }
.foot-grid > div > a { display: block; padding: 4px 0; }
.foot-grid a:hover { color: var(--sun); }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.foot-legal { display: grid; gap: 8px; margin-top: 40px; padding-top: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); font-size: 13px; color: #b9c4d8; }
.foot-legal .credits { max-width: 75ch; }
.foot-legal .credits a { color: #fff; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* halaman dalam */
.page-head { background: var(--navy); color: #fff; padding: 48px 0 52px; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: #fff; margin: 6px 0 8px; }
.page-head p { color: #dfe6f3; max-width: 60ch; }
.crumb { font-size: 14px; } .crumb a { color: var(--sun); }
.axis-body { max-width: 780px; margin: 40px auto 0; }
.form-card { border-radius: var(--r); background: var(--tint); }
label.f input, label.f select, label.f textarea { border-radius: 12px; }
.choice label { border-radius: 14px; }
.choice label:has(input:checked) { background: var(--sun-tint); box-shadow: inset 0 0 0 2px var(--sun); }
.timeline li { border-radius: 12px; }
.timeline .now { background: var(--sun-tint); }
.next-box { background: var(--navy); border-radius: 14px; }
.pill { border-radius: 999px; }
.pill.ok { background: #d9f5dc; color: #14642a; }
.code-big { font-family: var(--display); color: var(--red); }

/* admin tetap aplikasi, hanya warna brand */
body.is-admin { background: #f3f5f9; }
.stat.attn { background: var(--sun-tint); } .stat.attn b { color: var(--red-dark); }
.bar-row.top .bar i { background: var(--red); }
.app-card:hover { outline-color: var(--navy); }

/* gerak masuk per bagian */
.reveal > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in > * { opacity: 1; transform: none; }
.reveal.in > *:nth-child(2) { transition-delay: .08s; } .reveal.in > *:nth-child(3) { transition-delay: .16s; } .reveal.in > *:nth-child(4) { transition-delay: .24s; } .reveal.in > *:nth-child(n+5) { transition-delay: .32s; }
.hero-card > * { animation: fadeUp .8s var(--ease) both; } .hero-card > *:nth-child(2) { animation-delay: .1s; } .hero-card > *:nth-child(3) { animation-delay: .2s; } .hero-card > *:nth-child(4) { animation-delay: .3s; }
.hero-img img { animation: drift 20s var(--ease) forwards; transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .reveal > * { opacity: 1; transform: none; } .hero-img img { transform: none; } }

/* HP: header ringkas, akses cepat rapat */
@media (max-width: 760px) {
  .topstrip-in { gap: 12px; min-height: 36px; font-size: 13px; flex-wrap: nowrap; }
  .topstrip-in > span:first-child { display: none; }
  .logo b { font-size: 18px; } .logo small { font-size: 13px; } .logo svg { width: 36px; height: 36px; }
  .mainbar-in { min-height: 60px; gap: 10px; }
  .quick a { padding: 14px 12px; gap: 10px; }
  .quick a b { font-size: 16px; }
  .quick a svg { width: 22px; height: 22px; }
  .sec { padding: 64px 0; }
}
