/* =========================================================
   DESA MALANGGA — Design System v2
   Terinspirasi portal layanan publik modern: bersih, ber-kartu,
   palet emerald + slate + amber, tipografi Plus Jakarta Sans.
   ========================================================= */

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --slate-950: #020617;

    --sky-50: #f0f9ff;
    --sky-600: #0284c7;
    --sky-700: #0369a1;

    --amber-50: #fffbeb;
    --amber-500: #f59e0b;
    --amber-600: #d97706;

    --rose-50: #fff1f2;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;

    --orange-600: #ea580c;
    --orange-700: #c2410c;

    --white: #ffffff;
    --ink: #0f172a;
    --ink-soft: #475569;
    --ink-mute: #94a3b8;

    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.06);
    --shadow-md: 0 10px 30px -12px rgba(15,23,42,0.18);
    --shadow-lg: 0 24px 48px -16px rgba(15,23,42,0.22);
    --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--emerald-700);
    display: inline-block;
    margin-bottom: 10px;
}
.eyebrow.c-blue { color: var(--sky-700); }
.eyebrow.c-amber { color: var(--orange-700); }

.section-head { max-width: 680px; margin-bottom: 36px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }

section { padding: 72px 0; scroll-margin-top: 90px; }
.section-tight { padding: 44px 0; }
.bg-slate { background: var(--slate-50); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
    border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--emerald-500); outline-offset: 2px; }
.btn-primary { background: var(--emerald-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(5,150,105,.55); }
.btn-primary:hover { background: var(--emerald-700); transform: translateY(-1px); }
.btn-outline { background: var(--emerald-50); border-color: var(--emerald-100); color: var(--emerald-700); }
.btn-outline:hover { background: var(--emerald-100); }
.btn-dark { background: var(--slate-900); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--slate-900); }
.btn-white:hover { background: var(--slate-100); }
.btn-blue { background: var(--sky-600); color: #fff; }
.btn-blue:hover { background: var(--sky-700); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Top utility bar ---------- */
.top-bar {
    background: var(--emerald-800);
    color: #d1fae5;
    font-size: 0.8rem;
    padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-bar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.top-bar .tb-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
    background: #fff; border-bottom: 1px solid var(--slate-200);
    position: sticky; top: 0; z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: auto; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.brand-text span { font-size: 0.72rem; color: var(--ink-mute); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { color: var(--ink-soft); font-size: 0.87rem; font-weight: 600; padding: 8px 10px; border-radius: 999px; transition: background .15s ease, color .15s ease; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { background: var(--slate-100); color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--slate-200); background: #fff; color: var(--ink); align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 620px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background: url('../images/desa-landscape.jpg') center/cover; z-index: 0; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(6,78,59,.97) 0%, rgba(6,78,59,.90) 32%, rgba(6,78,59,.55) 58%, rgba(6,78,59,.18) 78%, rgba(6,78,59,0) 92%);
}
.hero .container { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; }
.hero-text { max-width: 600px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #a7f3d0;
    font-size: 0.8rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.hero-title { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08; margin-bottom: 18px; color: #fff; }
.hero-title .accent { color: #6ee7b7; }
.hero-sub { font-size: 1.08rem; max-width: 46ch; margin-bottom: 26px; color: #d1fae5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero .btn-outline { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.18); }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.hero-stats .stat span { font-size: 0.82rem; color: #a7f3d0; }

.hero-kades-photo {
    position: absolute; z-index: 2; right: 4%; bottom: 0; height: 94%; max-width: 42%;
    object-fit: contain; object-position: bottom;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
}
.hero-float {
    position: absolute; z-index: 3; top: 8%; right: 5%; background: #fff; border-radius: 16px; box-shadow: var(--shadow-md);
    padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 0.85rem;
}
.hero-float .ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--emerald-50); color: var(--emerald-700); }
.hero-float strong { display: block; font-size: 0.98rem; color: var(--ink); }
.hero-float span { color: var(--ink-mute); font-size: 0.76rem; }
.hero-name-badge {
    position: absolute; z-index: 3; bottom: 6%; right: 5%;
    background: var(--slate-900); color: #fff; padding: 12px 22px; border-radius: 14px;
    display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-md); white-space: nowrap;
}
.hero-name-badge .bar { width: 3px; height: 30px; background: var(--emerald-500); border-radius: 2px; }
.hero-name-badge strong { display: block; font-size: 0.95rem; }
.hero-name-badge span { font-size: 0.76rem; color: #cbd5e1; }

/* ---------- Quick access ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quick-card {
    background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-md);
    padding: 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.quick-icn { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.quick-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.quick-card p { font-size: 0.86rem; margin-bottom: 14px; }
.quick-card .go { font-weight: 700; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 5px; }
.tone-emerald .quick-icn { background: var(--emerald-50); color: var(--emerald-700); }
.tone-emerald .go { color: var(--emerald-700); }
.tone-sky .quick-icn { background: var(--sky-50); color: var(--sky-700); }
.tone-sky .go { color: var(--sky-700); }
.tone-orange .quick-icn { background: #fff7ed; color: var(--orange-700); }
.tone-orange .go { color: var(--orange-700); }
.tone-amber .quick-icn { background: var(--amber-50); color: var(--amber-600); }
.tone-amber .go { color: var(--amber-600); }

/* ---------- Data desa banner ---------- */
.data-banner {
    background: linear-gradient(120deg, var(--emerald-700), var(--emerald-900) 120%);
    border-radius: var(--radius-lg); padding: 40px; color: #fff; position: relative; overflow: hidden;
}
.data-banner-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.data-banner .eyebrow { color: #a7f3d0; }
.data-banner h2 { color: #fff; margin-bottom: 0; }
.data-banner-note { font-size: 0.82rem; color: #d1fae5; max-width: 320px; text-align: right; }
.data-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.data-cell { background: rgba(255,255,255,0.12); border-radius: 14px; padding: 18px 16px; }
.data-cell strong { display: block; font-family: var(--font-display); font-size: 1.8rem; }
.data-cell span { font-size: 0.8rem; color: #d1fae5; }

/* ---------- Layanan cards ---------- */
.layanan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.layanan-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 26px; position: relative; transition: box-shadow .18s ease, transform .18s ease; }
.layanan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.layanan-card .num { position: absolute; top: 20px; right: 22px; font-family: var(--font-mono); color: var(--slate-200); font-size: 0.85rem; font-weight: 700; }
.layanan-icn { width: 46px; height: 46px; border-radius: 12px; background: var(--emerald-50); color: var(--emerald-700); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.layanan-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.layanan-card p { font-size: 0.86rem; margin-bottom: 16px; min-height: 2.6em; }
.layanan-foot { display: flex; align-items: center; justify-content: space-between; }
.pill-time { background: var(--slate-100); color: var(--ink-soft); font-size: 0.74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.layanan-foot .go { color: var(--emerald-700); font-weight: 700; font-size: 0.88rem; }
.layanan-note { text-align: center; color: var(--ink-mute); font-size: 0.85rem; margin-top: 20px; }

/* ---------- Cek status + form panel ---------- */
.status-panel { background: var(--slate-50); border-radius: var(--radius-lg); padding: 40px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.status-track-box { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 8px; display: flex; gap: 8px; margin-top: 22px; }
.status-track-box input { flex: 1; border: none; padding: 12px 14px; font-family: var(--font-mono); font-size: 0.9rem; text-transform: uppercase; }
.status-track-box input:focus { outline: none; }
.status-example { font-size: 0.8rem; color: var(--ink-mute); margin-top: 10px; }
.status-example b { color: var(--ink-soft); font-family: var(--font-mono); }
.tracker-result { margin-top: 18px; }

.quick-form { background: #fff; border-radius: var(--radius-md); padding: 30px; box-shadow: var(--shadow-md); }
.quick-form h3 { margin-bottom: 4px; }
.quick-form > p { font-size: 0.86rem; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
    padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--slate-200); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.field textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 0.78rem; color: var(--ink-mute); margin-top: 8px; }
.form-result { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 0.88rem; display: none; }
.form-result.show { display: block; }
.form-result.ok { background: var(--emerald-50); border: 1px solid var(--emerald-100); color: var(--emerald-800); }
.form-result.err { background: var(--rose-50); border: 1px solid #fecdd3; color: var(--rose-600); }
.form-result .kode { font-family: var(--font-mono); font-weight: 800; }

/* ---------- Anggaran (budget transparency) ---------- */
.anggaran-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.donut-wrap { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 30px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.donut-chart { position: relative; width: 180px; height: 180px; flex-shrink: 0; }
.donut-chart svg { transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); }
.donut-center span { font-size: 0.72rem; color: var(--ink-mute); }
.donut-legend { flex: 1; min-width: 200px; display: grid; gap: 12px; }
.donut-legend li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.88rem; }
.donut-legend .dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 8px; flex-shrink: 0; }
.donut-legend .name { display: flex; align-items: center; color: var(--ink-soft); }
.donut-legend .pct { font-weight: 800; color: var(--ink); }

.anggaran-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ang-cell { border-radius: 14px; padding: 18px; }
.ang-cell.pendapatan { background: var(--emerald-50); }
.ang-cell.belanja { background: var(--sky-50); }
.ang-cell.realisasi { background: var(--amber-50); }
.ang-cell.sisa { background: var(--slate-100); }
.ang-cell span { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 4px; font-weight: 600; }
.ang-cell strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }

.realisasi-panel { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 28px; margin-top: 20px; }
.realisasi-row { margin-bottom: 20px; }
.realisasi-row:last-child { margin-bottom: 0; }
.realisasi-row .rr-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 0.9rem; }
.realisasi-row .rr-head b { font-weight: 700; }
.realisasi-bar { height: 10px; border-radius: 6px; background: var(--slate-100); overflow: hidden; }
.realisasi-bar > div { height: 100%; border-radius: 6px; }

/* ---------- Kabar Desa (news) ---------- */
.kabar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.kabar-feature { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; border: 1px solid var(--slate-200); }
.kabar-feature .kf-media { aspect-ratio: 16/10; position: relative; }
.kabar-feature .kf-media img, .kabar-feature .kf-media svg { width: 100%; height: 100%; object-fit: cover; }
.kf-date { position: absolute; top: 16px; left: 16px; background: #fff; border-radius: 10px; padding: 8px 12px; text-align: center; box-shadow: var(--shadow-sm); }
.kf-date strong { display: block; font-family: var(--font-display); font-size: 1.1rem; line-height: 1; color: var(--ink); }
.kf-date span { font-size: 0.65rem; color: var(--ink-mute); text-transform: uppercase; }
.kabar-feature .kf-body { padding: 22px; }
.kf-tag { display: inline-block; background: var(--emerald-50); color: var(--emerald-700); font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.kabar-feature h4 { font-size: 1.15rem; margin-bottom: 8px; }
.kabar-feature p { font-size: 0.9rem; margin-bottom: 14px; }
.kabar-feature .go { color: var(--emerald-700); font-weight: 700; font-size: 0.88rem; }

.kabar-list { display: grid; gap: 4px; }
.kabar-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--slate-200); background: #fff; margin-bottom: 12px; transition: box-shadow .15s ease; }
.kabar-item:hover { box-shadow: var(--shadow-sm); }
.kabar-item .ki-thumb { flex-shrink: 0; width: 68px; height: 68px; border-radius: 10px; overflow: hidden; position: relative; background: var(--slate-100); }
.kabar-item .ki-thumb img, .kabar-item .ki-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.kabar-item .ki-date { font-size: 0.68rem; font-weight: 700; color: var(--emerald-700); text-transform: uppercase; letter-spacing: 0.02em; }
.kabar-item h5 { font-size: 0.96rem; margin: 2px 0 4px; font-weight: 700; }
.kabar-item p { font-size: 0.8rem; margin: 0; color: var(--ink-mute); }

/* ---------- Bantuan Sosial ---------- */
.bansos-panel { background: linear-gradient(120deg, var(--amber-50), #fff7ed); border-radius: var(--radius-lg); padding: 40px; }
.bansos-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.bansos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bansos-card { background: #fff; border-radius: var(--radius-md); padding: 22px; }
.bansos-icn { width: 44px; height: 44px; border-radius: 12px; background: var(--amber-50); color: var(--amber-600); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.bansos-card h4 { font-size: 1rem; margin-bottom: 4px; }
.bansos-card p { font-size: 0.84rem; margin: 0; color: var(--ink-mute); }

/* ---------- Wisata cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wisata-card { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; aspect-ratio: 3/3.6; }
.wisata-card .wc-media { position: absolute; inset: 0; }
.wisata-card .wc-media img, .wisata-card .wc-media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.wisata-card .wc-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 55%); }
.wc-tag { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 0.7rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.wc-body { position: absolute; left: 18px; right: 18px; bottom: 18px; color: #fff; }
.wc-body h4 { color: #fff; font-size: 1.05rem; margin-bottom: 2px; }
.wc-body span { font-size: 0.82rem; color: #e2e8f0; }

/* ---------- Homestay booking ---------- */
.homestay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.homestay-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-md); overflow: hidden; }
.hc-media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--emerald-100), var(--slate-100)); position: relative; }
.hc-media img { width: 100%; height: 100%; object-fit: cover; }
.hc-media .tag { position: absolute; top: 12px; left: 12px; background: #fff; font-size: 0.7rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.hc-body { padding: 20px; }
.hc-body h4 { font-size: 1.02rem; margin-bottom: 6px; }
.hc-body p { font-size: 0.85rem; margin-bottom: 12px; }
.hc-facilities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hc-facilities span { font-size: 0.72rem; background: var(--slate-100); padding: 4px 10px; border-radius: 999px; color: var(--ink-soft); }
.hc-price { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin-bottom: 12px; }
.hc-price span { font-size: 0.7rem; color: var(--ink-mute); font-weight: 400; font-family: var(--font-body); }

.booking-panel { background: var(--slate-50); border-radius: var(--radius-lg); padding: 40px; }
.booking-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.booking-grid > * { min-width: 0; }

/* ---------- Admin preview (marketing showcase) ---------- */
.admin-preview { background: var(--slate-900); border-radius: var(--radius-lg); padding: 40px; color: #fff; }
.admin-preview .eyebrow { color: #6ee7b7; }
.admin-preview h2 { color: #fff; }
.admin-preview > .container-inner > p { color: #cbd5e1; max-width: 55ch; }
.ap-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.ap-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.ap-stat { background: rgba(255,255,255,.06); border-radius: 14px; padding: 18px; }
.ap-stat span { font-size: 0.78rem; color: #94a3b8; }
.ap-stat strong { display: block; font-family: var(--font-display); font-size: 1.7rem; margin-top: 4px; }
.ap-stat.c1 strong { color: #fff; }
.ap-stat.c2 strong { color: #6ee7b7; }
.ap-stat.c3 strong { color: #fbbf24; }
.ap-stat.c4 strong { color: #fb7185; }

.ap-table-wrap { background: #fff; border-radius: var(--radius-md); padding: 24px; overflow-x: auto; }
.ap-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.ap-table th { text-align: left; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-mute); padding: 10px 12px; border-bottom: 1px solid var(--slate-200); }
.ap-table td { padding: 14px 12px; border-bottom: 1px solid var(--slate-100); font-size: 0.88rem; color: var(--ink); }
.ap-table tr:last-child td { border-bottom: none; }
.badge-status { font-size: 0.74rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.badge-status.warn { background: #fef3c7; color: #92400e; }
.badge-status.info { background: #dbeafe; color: #1e40af; }
.badge-status.danger { background: #fee2e2; color: #991b1b; }
.badge-status.done { background: var(--emerald-100); color: var(--emerald-800); }

.ap-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.ap-module { background: rgba(255,255,255,.06); border-radius: 14px; padding: 20px; }
.ap-module .mi { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: #6ee7b7; }
.ap-module h5 { color: #fff; font-size: 0.94rem; margin: 0 0 4px; }
.ap-module p { color: #94a3b8; font-size: 0.78rem; margin: 0; }

/* ---------- Kontak ---------- */
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.kontak-card { background: var(--slate-50); border-radius: var(--radius-lg); padding: 34px; }
.kontak-list { display: grid; gap: 18px; margin-top: 22px; }
.kontak-list li { display: flex; gap: 14px; align-items: flex-start; }
.kontak-list .ic { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--emerald-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.kontak-list span.lbl { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); font-weight: 700; }
.kontak-list strong { font-size: 0.96rem; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-50); padding: 56px 0 24px; border-top: 1px solid var(--slate-200); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h5 { font-size: 0.85rem; font-weight: 800; margin-bottom: 14px; }
.footer-grid ul { display: grid; gap: 9px; }
.footer-grid a { font-size: 0.86rem; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--emerald-700); }
.footer-brand p { font-size: 0.86rem; max-width: 32ch; margin: 14px 0 16px; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--slate-200); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; }
.social-row a:hover { background: var(--emerald-600); color: #fff; border-color: var(--emerald-600); }
.footer-bottom { border-top: 1px solid var(--slate-200); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: var(--ink-mute); }

/* ---------- Mobile bottom tab bar ---------- */
.mobile-tabbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95; background: #fff; border-top: 1px solid var(--slate-200); padding: 6px 4px calc(6px + env(safe-area-inset-bottom,0px)); box-shadow: 0 -8px 24px -14px rgba(15,23,42,0.2); }
.mobile-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-mute); padding: 6px 2px; border-radius: 12px; font-size: 0.62rem; font-weight: 700; }
.mobile-tabbar a.active, .mobile-tabbar a:hover { color: var(--emerald-700); background: var(--emerald-50); }

.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 24px -8px rgba(37,211,102,.6); }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15,23,42,.92); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(900px,90vw); max-height: 82vh; border-radius: 12px; }
.lightbox-close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; display: flex; align-items: center; justify-content: center; border: none; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Fix min-width:auto pada grid/flex agar tidak overflow di layar sempit */
.hero .container > *, .quick-grid > *, .data-grid > *, .layanan-grid > *, .status-panel > *,
.anggaran-grid > *, .kabar-grid > *, .bansos-grid > *, .card-grid > *, .homestay-grid > *,
.kontak-grid > *, .footer-grid > *, .ap-stats > *, .ap-modules > *, .form-grid > *, .donut-wrap > * {
    min-width: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
    .nav-links { display: none; }
    .site-header .header-cta .btn:not(.nav-toggle) { display: none; }
    .nav-toggle { display: flex; }
    .layanan-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .data-grid { grid-template-columns: repeat(3, 1fr); }
    .ap-stats, .ap-modules { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
    .hero-text { max-width: 480px; }
    .hero-kades-photo { max-width: 48%; }
    .status-panel, .anggaran-grid, .kabar-grid, .kontak-grid { grid-template-columns: 1fr; }
    .homestay-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .top-bar { display: none; }
    .nav-links { display: none; }
    .site-header .header-cta .btn:not(.nav-toggle) { display: none; }
    .nav-toggle { display: flex; }
    .brand-text span { display: none; }

    section { padding: 48px 0; }
    .section-tight { padding: 32px 0; }
    .hero { min-height: auto; }
    .hero-overlay { background: linear-gradient(160deg, rgba(6,78,59,.94), rgba(6,78,59,.90)); }
    .hero .container { padding-top: 0; padding-bottom: 34px; }
    .hero-text { max-width: 100%; padding-right: 0; padding-top: 300px; }
    .hero-title { font-size: 1.55rem; }
    .hero-sub { font-size: 0.92rem; }
    .hero-stats { gap: 16px; }
    .hero-stats .stat strong { font-size: 1.2rem; }
    .hero-float { display: none; }
    .hero-name-badge { display: none; }
    .hero-kades-photo { top: 0; left: 0; right: 0; bottom: auto; width: 100%; max-width: 100%; height: 300px; object-fit: cover; object-position: top center; border-radius: 0; filter: none; }

    .quick-grid, .data-grid, .layanan-grid, .card-grid, .homestay-grid, .bansos-grid, .ap-stats, .ap-modules { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .form-grid { grid-template-columns: 1fr; }
    .status-panel, .booking-panel, .bansos-panel, .admin-preview, .data-banner { padding: 20px; }
    .booking-grid { grid-template-columns: 1fr; gap: 20px; }
    .booking-grid form[style] { padding: 18px !important; }
    .donut-wrap { flex-direction: column; text-align: center; }
    .donut-legend { width: 100%; }
    .kf-media { aspect-ratio: 16/11; }

    body { padding-bottom: 66px; }
    .mobile-tabbar { display: flex; }
    .wa-float { bottom: 80px; }
}

@media (max-width: 420px) {
    .hero-title { font-size: 1.35rem; }
    .hero-text { padding-right: 145px; }
    .hero-kades-photo { top: 0; left: 0; right: 0; bottom: auto; width: 100%; max-width: 100%; height: 260px; object-fit: cover; object-position: top center; }
    .hero-text { padding-top: 260px; }
    .data-cell strong, .ap-stat strong { font-size: 1.4rem; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav-overlay { position: fixed; inset: 0; z-index: 199; background: rgba(15,23,42,.45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-nav { position: fixed; top: 0; right: 0; bottom: 0; width: 78%; max-width: 300px; z-index: 200; background: #fff; display: flex; flex-direction: column; padding: 18px; transform: translateX(100%); transition: transform .28s ease; box-shadow: -12px 0 32px -12px rgba(15,23,42,.25); }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mobile-nav-close { width: 36px; height: 36px; border-radius: 9px; border: 1.5px solid var(--slate-200); background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mobile-nav nav { overflow-y: auto; }
.mobile-nav nav a { display: block; padding: 12px 6px; font-family: var(--font-display); font-size: 0.98rem; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--slate-100); }
.mobile-nav .header-cta { flex-direction: column; margin-top: 16px; align-items: stretch; gap: 8px; }
.mobile-nav .header-cta .btn { padding: 11px 18px; font-size: 0.86rem; }

/* ---------- Perangkat Desa ---------- */
.perangkat-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 26px 18px; text-align: center; transition: box-shadow .18s ease, transform .18s ease; }
.perangkat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.perangkat-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; background: var(--emerald-50); color: var(--emerald-700); display: flex; align-items: center; justify-content: center; }
.perangkat-photo img { width: 100%; height: 100%; object-fit: cover; }
.perangkat-card h4 { font-size: 1rem; margin-bottom: 4px; }
.perangkat-card span { font-size: 0.84rem; color: var(--ink-mute); }

@media (max-width: 760px) {
    .perangkat-card { padding: 20px 14px; }
    .perangkat-photo { width: 76px; height: 76px; }
}
