/* =====================================================================
   SIMRA — Halaman depan publik RA Al Ihsan II
   [AUDIT FRONTPAGE] Pengganti aset template "KIDS" (assets_home/*).
   Tanpa font/CDN eksternal. Palet mengikuti SIMRA (logo).
   ===================================================================== */
:root {
    --fp-navy: #133260;
    --fp-navy-2: #0d2447;
    --fp-teal: #3badb7;
    --fp-primary: #1e748b;
    --fp-sun: #f5b841;
    --fp-coral: #ef8a6a;
    --fp-cream: #fff8ec;
    --fp-soft: #f3f8f9;
    --fp-ink: #1d2a3a;
    --fp-muted: #5b6878;
    --fp-line: #e3e9ee;
    --fp-white: #ffffff;
    --fp-radius: 18px;
    --fp-shadow: 0 10px 30px rgba(19, 50, 96, .10);
    --fp-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --fp-font-head: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.fp {
    margin: 0;
    font-family: var(--fp-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--fp-ink);
    background: var(--fp-white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fp-primary); }
h1, h2, h3 { font-family: var(--fp-font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--fp-navy); }
p { margin: 0 0 1em; }

.fp-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.fp-center { text-align: center; }
.fp-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fp-navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.fp-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--fp-sun); outline-offset: 2px; }

/* ---------- Tombol ---------- */
.fp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
    font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    cursor: pointer; white-space: nowrap;
}
.fp-btn:hover { transform: translateY(-1px); }
.fp-btn i { font-size: 18px; }
.fp-btn-sm { padding: 9px 16px; font-size: 14px; }
.fp-btn-primary { background: var(--fp-primary); color: #fff; box-shadow: 0 6px 16px rgba(30, 116, 139, .28); }
.fp-btn-primary:hover { background: #185f72; }
.fp-btn-accent { background: var(--fp-sun); color: var(--fp-navy-2); box-shadow: 0 6px 16px rgba(245, 184, 65, .35); }
.fp-btn-accent:hover { background: #f0aa22; }
.fp-btn-ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.fp-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.fp-btn-ghost-dark { border-color: var(--fp-navy); color: var(--fp-navy); }
.fp-btn-ghost-dark:hover { background: rgba(19, 50, 96, .06); }
.fp-btn-light { background: #fff; color: var(--fp-navy); }
.fp-btn-wa { background: #1faa59; color: #fff; box-shadow: 0 6px 16px rgba(31, 170, 89, .28); }
.fp-btn-wa:hover { background: #178e49; }
.fp-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Topbar ---------- */
.fp-topbar { background: var(--fp-navy); color: rgba(255, 255, 255, .85); font-size: 13.5px; }
.fp-topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.fp-topbar-info { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.fp-topbar-info li { display: inline-flex; align-items: center; gap: 6px; }
.fp-topbar-info i { color: var(--fp-teal); }
.fp-topbar a { color: inherit; text-decoration: none; }
.fp-topbar a:hover { color: #fff; text-decoration: underline; }

/* ---------- Header ---------- */
.fp-header {
    position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease;
}
.fp-header.is-scrolled { box-shadow: 0 6px 20px rgba(19, 50, 96, .08); border-color: var(--fp-line); }
.fp-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.fp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.fp-brand img { width: 44px; height: 44px; object-fit: contain; }
.fp-brand span { display: flex; flex-direction: column; min-width: 0; }
.fp-brand strong { font-family: var(--fp-font-head); font-size: 19px; color: var(--fp-navy); letter-spacing: .01em; }
.fp-brand small { font-size: 12.5px; color: var(--fp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-nav { display: flex; align-items: center; gap: 6px; }
.fp-nav a:not(.fp-btn) {
    padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--fp-ink); font-weight: 600; font-size: 15px;
}
.fp-nav a:not(.fp-btn):hover { background: var(--fp-soft); color: var(--fp-primary); }
.fp-nav .fp-btn { margin-left: 8px; }
.fp-nav-toggle {
    display: none; border: 0; background: var(--fp-soft); color: var(--fp-navy); width: 44px; height: 44px;
    border-radius: 12px; font-size: 24px; cursor: pointer;
}

/* ---------- Hero ---------- */
.fp-hero { position: relative; background: var(--fp-navy); }
.fp-slider { position: relative; height: clamp(440px, 74vh, 640px); overflow: hidden; }
.fp-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.fp-slide.is-active { opacity: 1; }
.fp-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.fp-hero-shade {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(13, 36, 71, .88) 0%, rgba(13, 36, 71, .62) 42%, rgba(13, 36, 71, .10) 78%),
        linear-gradient(0deg, rgba(13, 36, 71, .55) 0%, rgba(13, 36, 71, 0) 40%);
}
.fp-hero-caption {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
    color: #fff; padding-bottom: 60px; left: 0; right: 0;
}
.fp-hero-caption > * { max-width: 580px; }
.fp-pill {
    display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); font-size: 13.5px; font-weight: 600; margin-bottom: 18px;
}
.fp-pill i { color: var(--fp-sun); }
.fp-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.fp-hero h1 span { display: block; color: var(--fp-sun); }
.fp-hero p { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .9); margin-bottom: 26px; }
.fp-slider-nav {
    position: absolute; left: 0; right: 0; bottom: 84px; display: flex; justify-content: center; align-items: center; gap: 14px; z-index: 2;
}
.fp-slider-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(13, 36, 71, .35); color: #fff; font-size: 22px; cursor: pointer; display: grid; place-items: center;
}
.fp-slider-btn:hover { background: rgba(13, 36, 71, .6); }
.fp-dots { display: flex; gap: 8px; }
.fp-dot { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .25s ease, background .25s ease; }
.fp-dot.is-active { width: 28px; background: var(--fp-sun); }

/* ---------- Kartu layanan ---------- */
.fp-quick { position: relative; z-index: 3; margin-top: -64px; }
.fp-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fp-quick-card {
    position: relative; display: flex; flex-direction: column; padding: 26px 26px 22px; border-radius: var(--fp-radius);
    background: #fff; box-shadow: var(--fp-shadow); text-decoration: none; color: var(--fp-ink);
    border-top: 5px solid var(--c); transition: transform .2s ease, box-shadow .2s ease;
}
a.fp-quick-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(19, 50, 96, .16); }
.fp-quick-card > i {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px;
    background: color-mix(in srgb, var(--c) 16%, white); color: var(--c-ink, var(--c)); margin-bottom: 14px;
}
.fp-quick-card h2 { font-size: 19px; margin-bottom: 6px; }
.fp-quick-card p { color: var(--fp-muted); font-size: 15px; flex: 1; }
.fp-more { font-weight: 700; color: var(--fp-primary); display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }
.fp-badge { align-self: flex-start; background: var(--fp-cream); color: #9a6a00; border: 1px solid #f3dca8; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.fp-c-teal { --c: var(--fp-teal); --c-ink: var(--fp-primary); }
.fp-c-sun { --c: var(--fp-sun); --c-ink: #a86f00; }
.fp-c-navy { --c: var(--fp-navy); }
.fp-c-coral { --c: var(--fp-coral); --c-ink: #c2502c; }

/* ---------- Seksi umum ---------- */
.fp-section { padding: 88px 0; }
.fp-section-soft { background: var(--fp-soft); }
.fp-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--fp-teal); margin-bottom: 8px; }
.fp-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin-bottom: 18px; }

/* ---------- Profil ---------- */
.fp-profil { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fp-profil-media { position: relative; }
.fp-profil-media::before {
    content: ""; position: absolute; inset: 24px -18px -18px 24px; border-radius: 28px;
    background: repeating-linear-gradient(45deg, rgba(59, 173, 183, .18) 0 10px, transparent 10px 20px);
}
.fp-profil-media img { position: relative; border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--fp-shadow); width: 100%; }
.fp-sticker {
    position: absolute; left: -14px; bottom: 26px; background: var(--fp-sun); color: var(--fp-navy-2); border-radius: 16px;
    padding: 12px 18px; box-shadow: 0 10px 24px rgba(245, 184, 65, .4); display: flex; flex-direction: column; line-height: 1.2;
}
.fp-sticker small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.fp-sticker strong { font-family: var(--fp-font-head); font-size: 20px; }
.fp-identitas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; }
.fp-identitas div { background: var(--fp-soft); border-radius: 12px; padding: 10px 14px; border-left: 4px solid var(--fp-teal); }
.fp-identitas dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--fp-muted); font-weight: 700; }
.fp-identitas dd { margin: 2px 0 0; font-weight: 600; color: var(--fp-navy); overflow-wrap: anywhere; }

/* ---------- Angka ---------- */
.fp-stats { background: linear-gradient(120deg, var(--fp-navy) 0%, var(--fp-primary) 60%, var(--fp-teal) 100%); color: #fff; padding: 56px 0; }
.fp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fp-stats-grid.fp-cols-1 { grid-template-columns: 1fr; }
.fp-stats-grid.fp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fp-stats-grid.fp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.fp-stat { text-align: center; padding: 10px; }
.fp-stat i { font-size: 30px; color: var(--fp-sun); }
.fp-stat strong { display: block; font-family: var(--fp-font-head); font-size: clamp(34px, 4vw, 46px); font-weight: 800; line-height: 1.1; margin: 6px 0 4px; }
.fp-stat span { color: rgba(255, 255, 255, .85); font-size: 15px; }

/* ---------- Program ---------- */
.fp-program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.fp-program { background: #fff; border-radius: var(--fp-radius); padding: 26px 22px; box-shadow: 0 4px 14px rgba(19, 50, 96, .06); border: 1px solid var(--fp-line); }
.fp-icon {
    width: 56px; height: 56px; border-radius: 50% 50% 50% 14px; display: grid; place-items: center; font-size: 26px;
    background: color-mix(in srgb, var(--c) 18%, white); color: var(--c-ink, var(--c)); margin-bottom: 16px;
}
.fp-program h3 { font-size: 18px; margin-bottom: 6px; }
.fp-program p { color: var(--fp-muted); font-size: 15px; margin: 0; }

/* ---------- PPDB ---------- */
.fp-cta {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
    background: var(--fp-cream); border: 1px solid #f3e2bf; border-radius: 28px; padding: 48px;
}
.fp-cta::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 184, 65, .55) 0 40%, rgba(245, 184, 65, 0) 41%),
                repeating-conic-gradient(from 0deg, rgba(245, 184, 65, .35) 0 8deg, transparent 8deg 22deg);
    pointer-events: none;
}
.fp-cta p { color: var(--fp-muted); margin: 0; }
.fp-cta .fp-actions { position: relative; z-index: 1; justify-content: flex-end; }

/* ---------- Kontak ---------- */
.fp-kontak { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.fp-kontak-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.fp-kontak-list li { display: flex; gap: 14px; align-items: flex-start; }
.fp-kontak-list i {
    flex: 0 0 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--fp-primary); display: grid; place-items: center;
    font-size: 21px; box-shadow: 0 4px 12px rgba(19, 50, 96, .08);
}
.fp-kontak-list strong { display: block; color: var(--fp-navy); }
.fp-kontak-list span { color: var(--fp-muted); overflow-wrap: anywhere; }
.fp-map-card {
    background: #fff; border-radius: 24px; padding: 36px; text-align: center; box-shadow: var(--fp-shadow);
    background-image: radial-gradient(rgba(59, 173, 183, .16) 1.5px, transparent 1.5px); background-size: 18px 18px;
}
.fp-map-card > i { font-size: 44px; color: var(--fp-teal); }
.fp-map-card h3 { font-size: 22px; margin: 8px 0 2px; }
.fp-map-card p { color: var(--fp-muted); }

/* ---------- Footer ---------- */
.fp-footer { background: var(--fp-navy-2); color: rgba(255, 255, 255, .78); font-size: 15px; }
.fp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.fp-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fp-footer-brand img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.fp-footer-brand strong { color: #fff; font-family: var(--fp-font-head); font-size: 19px; }
.fp-footer-title { color: #fff; font-size: 16px; margin-bottom: 12px; }
.fp-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fp-footer a:not(.fp-btn) { color: rgba(255, 255, 255, .78); text-decoration: none; }
.fp-footer a:not(.fp-btn):hover { color: #fff; text-decoration: underline; }
.fp-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: 13.5px; color: rgba(255, 255, 255, .6); }

/* ---------- Responsif ---------- */
@media (max-width: 991px) {
    .fp-quick-grid { grid-template-columns: 1fr; }
    .fp-quick { margin-top: -48px; }
    .fp-profil, .fp-kontak, .fp-cta { grid-template-columns: 1fr; }
    .fp-cta .fp-actions { justify-content: flex-start; }
    .fp-program-grid { grid-template-columns: repeat(2, 1fr); }
    .fp-stats-grid, .fp-stats-grid.fp-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .fp-footer-grid { grid-template-columns: 1fr 1fr; }
    .fp-section { padding: 64px 0; }
    .fp-cta { padding: 32px 26px; }

    .fp-nav-toggle { display: grid; place-items: center; }
    .fp-nav {
        position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px;
        background: #fff; padding: 10px 20px 18px; border-bottom: 1px solid var(--fp-line); box-shadow: 0 12px 24px rgba(19, 50, 96, .1);
        display: none;
    }
    .fp-nav.is-open { display: flex; }
    .fp-nav a:not(.fp-btn) { padding: 12px 10px; border-radius: 10px; }
    .fp-nav .fp-btn { margin: 8px 0 0; }
}
@media (max-width: 575px) {
    .fp-hide-sm { display: none !important; }
    .fp-program-grid, .fp-identitas, .fp-footer-grid { grid-template-columns: 1fr; }
    .fp-brand strong { font-size: 17px; }
    .fp-brand small { font-size: 11.5px; }
    .fp-hero-caption { padding-bottom: 90px; }
    .fp-slider-nav { bottom: 76px; }
    .fp-profil-media::before { inset: 16px -8px -10px 16px; }
    .fp-sticker { left: 8px; }
}
@media (max-width: 380px) {
    .fp-hide-xs { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fp-slide, .fp-btn, .fp-quick-card, .fp-dot { transition: none; }
}
@media print {
    .fp-topbar, .fp-nav, .fp-nav-toggle, .fp-slider-nav, .fp-actions { display: none !important; }
    .fp-header { position: static; }
}
