/* ==========================================================================
   Yayasan As Zalika — frontend.css
   Ringan (< 12 KB), tanpa framework CSS, mobile-first, siap Core Web Vitals.
   ========================================================================== */

:root {
    --green-900: #0b3d2e;
    --green-800: #0f5138;
    --green-700: #14724c;
    --green-600: #16855a;
    --green-500: #1ca36e;
    --green-100: #e6f6ee;
    --amber-500: #e9a13b;
    --amber-100: #fdf3e2;
    --ink: #16211d;
    --muted: #5b6b64;
    --line: #e2e9e5;
    --bg: #ffffff;
    --bg-soft: #f6faf8;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(11, 61, 46, .06), 0 8px 24px -12px rgba(11, 61, 46, .18);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wrap: 1140px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 18px; }
.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--green-900); color: #fff;
    padding: .6rem 1rem; z-index: 99; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- HEADER */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: #fff; border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 18px -12px rgba(11, 61, 46, .4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--green-900); }
.brand:hover { text-decoration: none; }
.brand img, .brand svg { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.02rem; }
.brand-tag { font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

.nav-toggle {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--green-100); color: var(--green-800); border: 0;
    padding: .5rem .8rem; border-radius: 999px; font: inherit; font-size: .9rem; cursor: pointer;
}
.site-nav ul { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
    display: inline-block; padding: .5rem .75rem; border-radius: 999px;
    color: var(--ink); font-size: .95rem; font-weight: 550;
}
.site-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.site-nav a.is-active { background: var(--green-100); color: var(--green-800); }
.nav-cta { background: var(--green-700) !important; color: #fff !important; }
.nav-cta:hover { background: var(--green-800) !important; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 18px 1rem;
        box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav a { display: block; padding: .7rem .5rem; border-radius: var(--radius-sm); }
}
@media (min-width: 901px) { .nav-toggle { display: none; } }

/* ---------------------------------------------------------------- HERO */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-600) 100%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
    background-size: 26px 26px;
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 2rem; padding: clamp(2.2rem, 6vw, 4.2rem) 0; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .45rem; background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22); padding: .35rem .8rem; border-radius: 999px;
    font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem;
}
.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.05rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 860px) { .hero-inner { grid-template-columns: 1.15fr .85fr; } }

/* ---------------------------------------------------------------- BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .7rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 650; font-size: .95rem; cursor: pointer; text-decoration: none;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-amber { background: var(--amber-500); color: #241503; }
.btn-amber:hover { background: #f0ad4e; color: #241503; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-outline { background: #fff; color: var(--green-800); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green-500); color: var(--green-900); }

/* ---------------------------------------------------------------- SECTION */
.section { padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.section-head p { margin: .2rem 0 0; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--green-600); }

/* ---------------------------------------------------------------- CARDS / GRID */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3d9; }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-title { font-size: 1.06rem; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--green-800); text-decoration: none; }
.card-meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .78rem; color: var(--muted); }
.card-text { color: var(--muted); font-size: .92rem; margin: 0; }
.card-foot { margin-top: auto; padding-top: .6rem; }

.tag {
    display: inline-block; background: var(--green-100); color: var(--green-800);
    padding: .16rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 650;
    text-transform: capitalize;
}
.tag-warn { background: var(--amber-100); color: #8a5406; }

/* ---------------------------------------------------------------- STATS */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem 1.2rem; text-align: center;
}
.stat b { display: block; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--green-800); line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--muted); }

/* ---------------------------------------------------------------- PROSE */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius-sm); margin: 1.2rem 0; }
.prose blockquote {
    margin: 1.4rem 0; padding: .9rem 1.2rem; border-left: 4px solid var(--green-500);
    background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.prose th { background: var(--bg-soft); }

/* ---------------------------------------------------------------- ARTICLE */
.article-head { max-width: 780px; margin-inline: auto; text-align: center; }
.article-head h1 { margin-bottom: .5rem; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; color: var(--muted); font-size: .86rem; }
.article-cover { margin: 1.6rem auto; max-width: 900px; border-radius: var(--radius); overflow: hidden; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 .35rem; }

/* ---------------------------------------------------------------- GALLERY */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------- LIST / AGENDA */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.timeline li {
    display: grid; grid-template-columns: 74px 1fr; gap: 1rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem;
}
.timeline .date {
    background: var(--green-100); color: var(--green-800); border-radius: var(--radius-sm);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-weight: 750; line-height: 1.1; padding: .5rem;
}
.timeline .date small { font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.timeline h3 { margin: 0 0 .2rem; font-size: 1rem; }
.timeline p { margin: 0; font-size: .88rem; color: var(--muted); }

.notice {
    display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem;
    background: var(--amber-100); border: 1px solid #f2d9ae; border-radius: var(--radius); color: #6b4406;
}
.notice strong { display: block; }

/* ---------------------------------------------------------------- ADS */
.ad-slot { margin: 1.6rem auto; text-align: center; min-height: 90px; overflow: hidden; }
.ad-slot::before {
    content: "Iklan"; display: block; font-size: .66rem; letter-spacing: .18em;
    text-transform: uppercase; color: #9aa8a1; margin-bottom: .3rem;
}
.ad-sidebar { margin-bottom: 1.4rem; }

/* ---------------------------------------------------------------- SIDEBAR LAYOUT */
.layout-with-sidebar { display: grid; gap: 2rem; }
@media (min-width: 940px) { .layout-with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; } }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; }
.sidebar-card h3 { margin-top: 0; font-size: 1rem; }
.sidebar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.sidebar-list a { color: var(--ink); font-size: .92rem; }
.sidebar-list small { color: var(--muted); display: block; }

/* ---------------------------------------------------------------- FORM */
.form-grid { display: grid; gap: .9rem; }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: .3rem; }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; font-size: .95rem; padding: .65rem .8rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green-500); outline: none; box-shadow: 0 0 0 3px var(--green-100); }
.field-hint { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem; }
.alert-success { background: var(--green-100); color: #0d5b3d; border: 1px solid #bfe6d2; }
.alert-error { background: #fdecec; color: #8c1d1d; border: 1px solid #f5c9c9; }
.alert-info { background: #eef4fb; color: #22466e; border: 1px solid #cfe0f3; }
.alert ul { margin: .3rem 0 0; padding-left: 1.1rem; }

/* ---------------------------------------------------------------- PAGINATION */
.pager ul { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.pager a, .pager span {
    display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 .6rem; color: var(--ink); font-size: .9rem;
}
.pager a:hover { border-color: var(--green-500); text-decoration: none; }
.pager .is-current span { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pager .is-dots { border: 0; color: var(--muted); }

/* ---------------------------------------------------------------- FOOTER */
.site-footer { background: var(--green-900); color: #dceae3; margin-top: 3rem; font-size: .92rem; }
.footer-grid { display: grid; gap: 2rem; padding: 2.6rem 0 1.6rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #dceae3; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 0; font-size: .82rem; color: #a9c3b7; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; }
.socials { display: flex; gap: .6rem; margin-top: .8rem; }
.socials a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; background: rgba(255,255,255,.1); border-radius: 50%; }
.socials a:hover { background: rgba(255,255,255,.2); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------------------------------------------------------------- UTIL */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.2rem; }
.mb-2 { margin-bottom: 1.2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

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