/* =========================================================
   DESA MALANGGA — Design System
   Palet terinspirasi senja hutan Galang, atap Rumah Langko,
   dan gula merah/nira yang menjadi ciri khas desa.
   ========================================================= */

:root {
    /* Warna dasar — hutan Sulawesi Tengah menjelang malam */
    --forest-950: #0e1c17;
    --forest-900: #142e26;
    --forest-800: #1c4136;
    --forest-700: #275646;
    --forest-600: #386e59;

    /* Kertas / kartu hangat */
    --paper: #f4efdd;
    --paper-dim: #e9e0c4;
    --paper-line: #d8cca4;

    /* Aksen: gula merah / nira (emas) & atap tanah liat */
    --gold: #d9a22a;
    --gold-dark: #a9781a;
    --gold-light: #f0c568;
    --clay: #b0492c;
    --clay-dark: #833a24;
    --leaf: #8fb56a;

    /* Teks */
    --ink: #172219;
    --ink-soft: #47543a;
    --cream: #f4efdd;
    --cream-muted: #c3bd9d;

    /* Tipografi */
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Ritme */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 26px;
    --shadow-soft: 0 20px 45px -20px rgba(14, 28, 23, 0.45);
    --shadow-card: 0 12px 30px -14px rgba(14, 28, 23, 0.35);
    --container: 1180px;
}

* { 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(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { 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;
}

.eyebrow {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--gold);
    display: inline-block;
}
.on-dark .eyebrow { color: var(--gold-light); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    margin: 0.35em 0 0.5em;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark p, .on-dark span, .on-dark li { color: var(--cream); }

h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; color: var(--ink-soft); }
.on-dark p { color: var(--cream-muted); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

section { padding: 88px 0; position: relative; }
.section-alt { background: var(--forest-900); }
.section-tight { padding: 56px 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.btn-primary { background: var(--gold); color: var(--forest-950); box-shadow: 0 10px 24px -10px rgba(217, 162, 42, 0.65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(217, 162, 42, 0.75); }
.btn-outline { background: transparent; border-color: rgba(244, 239, 221, 0.55); color: var(--cream); }
.btn-outline:hover { background: rgba(244, 239, 221, 0.1); border-color: var(--cream); }
.btn-dark { background: var(--forest-900); color: var(--cream); }
.btn-dark:hover { background: var(--forest-800); transform: translateY(-2px); }
.btn-clay { background: var(--clay); color: var(--cream); }
.btn-clay:hover { background: var(--clay-dark); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 14px 0;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
    background: rgba(14, 28, 23, 0.92);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 8px 24px -14px rgba(0,0,0,0.5);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); font-family: var(--font-display); }
.brand-mark { width: auto; height: 46px; flex-shrink: 0; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; letter-spacing: 0.01em; }
.brand-text span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--gold-light); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    color: var(--cream-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); background: rgba(244,239,221,0.08); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1.5px solid rgba(244,239,221,0.4);
    background: transparent;
    color: var(--cream);
    align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    background: var(--forest-950);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 15%;
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(14,28,23,0.55) 0%, rgba(14,28,23,0.35) 32%, rgba(14,28,23,0.88) 88%, var(--forest-950) 100%),
        linear-gradient(90deg, rgba(14,28,23,0.75) 0%, rgba(14,28,23,0.15) 55%);
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 180px 0 120px;
    color: var(--cream);
}
.hero-content .eyebrow { color: var(--gold-light); margin-bottom: 18px; }
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    max-width: 15ch;
    margin: 0 0 20px;
    color: var(--cream);
}
.hero-title em { font-style: normal; color: var(--gold-light); }
.hero-sub { max-width: 46ch; font-size: 1.08rem; color: var(--cream-muted); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 0;
    border-top: 1px solid rgba(244,239,221,0.18);
    padding-top: 28px;
}
.hero-stats .stat { padding-right: 18px; border-right: 1px solid rgba(244,239,221,0.14); }
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .stat-value { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--gold-light); display: block; }
.hero-stats .stat-label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cream-muted); }

.scroll-cue {
    position: absolute;
    right: 32px; bottom: 120px;
    z-index: 2;
    writing-mode: vertical-rl;
    color: var(--cream-muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    display: flex;
    align-items: center;
    gap: 12px;
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--gold-light), transparent); }

/* ---------- Quick access (Layanan & Homestay unggulan) ---------- */
.quick-access { padding-top: 0; padding-bottom: 0; margin-top: -46px; position: relative; z-index: 4; }
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}
.quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    border-radius: var(--radius-md);
    background: var(--paper-dim);
    border: 1.5px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.quick-icn {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: var(--forest-900); color: var(--gold-light);
}
.quick-card-gold:hover { border-color: var(--gold); }
.quick-card-clay .quick-icn { background: var(--clay); color: var(--cream); }
.quick-card-clay:hover { border-color: var(--clay); }
.quick-card-forest .quick-icn { background: var(--forest-700); color: var(--cream); }
.quick-card-forest:hover { border-color: var(--forest-700); }
.quick-card-dark .quick-icn { background: var(--forest-950); color: var(--gold-light); }
.quick-card-dark:hover { border-color: var(--forest-950); }
.quick-txt { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.quick-txt strong { font-family: var(--font-display); font-size: 0.96rem; color: var(--ink); }
.quick-txt span { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.3; }
.quick-arrow { color: var(--ink-soft); flex-shrink: 0; opacity: 0.6; transition: transform 0.2s ease; }
.quick-card:hover .quick-arrow { transform: translateX(3px); opacity: 1; }

/* ---------- Illustration tiles (replace photo placeholders) ---------- */
.tile-illustration, .news-illustration, .article-illustration { width: 100%; height: 100%; display: block; }
.news-photo, .article-photo, .tile-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-media:has(.tile-illustration) { padding: 0; }

/* ---------- Fix: cegah grid/flex item menolak menyusut di layar sempit ---------- */
.booking-panel > *,
.quick-grid > *,
.card-grid > *,
.homestay-grid > *,
.layanan-grid > *,
.layanan-grid-light > *,
.news-grid > *,
.stat-strip > *,
.hero-stats > *,
.footer-grid > *,
.contact-grid > *,
.form-grid > *,
.form-row > *,
.tracker-card-body > *,
.gallery-grid > *,
.two-col > * {
    min-width: 0;
}
.tracker-form input { min-width: 0; }
img, svg, video, iframe { max-width: 100%; }

/* ---------- Roofline divider (signature motif) ---------- */
.roofline {
    display: block;
    width: 100%;
    line-height: 0;
    position: relative;
    z-index: 3;
}
.roofline svg { width: 100%; height: auto; display: block; }

/* ---------- Roof toggle — signature interactive icon ---------- */
.roof-toggle {
    width: 84px;
    height: 84px;
    margin-bottom: 18px;
    position: relative;
}
.roof-toggle svg { width: 100%; height: 100%; overflow: visible; }
.roof-toggle .panel-l, .roof-toggle .panel-r {
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
    transform-origin: 50% 100%;
}
.roof-toggle .sun-ray { opacity: 0; transition: opacity 0.4s ease 0.15s; }
.keunikan-card:hover .roof-toggle .panel-l,
.keunikan-card:focus-within .roof-toggle .panel-l { transform: rotate(-22deg) translate(-4px, -2px); }
.keunikan-card:hover .roof-toggle .panel-r,
.keunikan-card:focus-within .roof-toggle .panel-r { transform: rotate(22deg) translate(4px, -2px); }
.keunikan-card:hover .roof-toggle .sun-ray,
.keunikan-card:focus-within .roof-toggle .sun-ray { opacity: 1; }

.keunikan-icon {
    width: 84px;
    height: 84px;
    margin-bottom: 18px;
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.keunikan-icon svg { width: 100%; height: 100%; overflow: visible; }
.keunikan-card:hover .keunikan-icon,
.keunikan-card:focus-within .keunikan-icon { transform: scale(1.08) rotate(-2deg); }

/* ---------- Sambutan Kades ---------- */
.sambutan {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 56px;
    align-items: center;
}
.sambutan-figure { position: relative; }
.sambutan-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 1/1;
    border: 4px solid var(--forest-800);
}
.sambutan-photo img { width: 100%; height: 100%; object-fit: cover; }
.sambutan-badge {
    position: absolute;
    bottom: -18px; left: -18px;
    background: var(--gold);
    color: var(--forest-950);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 10px 20px -8px rgba(217,162,42,0.6);
}
.sambutan-quote {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--cream);
    line-height: 1.5;
    position: relative;
    padding-left: 28px;
    border-left: 3px solid var(--gold);
}
.sambutan-name { margin-top: 26px; }
.sambutan-name strong { display: block; color: var(--gold-light); font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.02em; }
.sambutan-name span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--cream-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Tentang / Keunikan ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge-pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--paper-dim);
    border: 1px solid var(--paper-line);
    color: var(--ink-soft);
    font-weight: 600;
}

.keunikan-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.keunikan-card {
    background: var(--paper-dim);
    border: 1px solid var(--paper-line);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.keunikan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--gold); }
.keunikan-card h4 { font-family: var(--font-display); margin: 0 0 4px; font-size: 0.92rem; line-height: 1.25; }
.keunikan-card p { margin: 0; font-size: 0.8rem; line-height: 1.45; }
.keunikan-card .roof-toggle,
.keunikan-card .keunikan-icon { width: 40px; height: 40px; margin-bottom: 0; flex-shrink: 0; }

/* ---------- Stat strip ---------- */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--paper-line);
    border: 1px solid var(--paper-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 56px;
}
.stat-strip .cell { background: var(--paper); padding: 26px 20px; text-align: center; }
.stat-strip .cell strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--clay-dark); }
.stat-strip .cell span { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

/* ---------- Section header with link ---------- */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }

/* ---------- Language toggle (ID/EN) ---------- */
.lang-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(244,239,221,0.08); border: 1.5px solid rgba(244,239,221,0.25);
    border-radius: 999px; padding: 8px 14px;
    font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
    flex-shrink: 0;
}
.lang-toggle .lang-opt { color: var(--cream-muted); padding: 2px 4px; transition: color 0.15s ease; }
.lang-toggle .lang-opt.active { color: var(--gold-light); }
.lang-toggle .lang-sep { color: rgba(244,239,221,0.25); }
/* Varian untuk dipakai di atas latar terang (mis. section-head pada bagian light) */
.on-light-bg .lang-toggle,
.homestay-lang .lang-toggle { background: var(--paper-dim); border-color: var(--paper-line); }
.on-light-bg .lang-toggle .lang-opt,
.homestay-lang .lang-toggle .lang-opt { color: var(--ink-soft); }
.on-light-bg .lang-toggle .lang-opt.active,
.homestay-lang .lang-toggle .lang-opt.active { color: var(--gold-dark); }
.on-light-bg .lang-toggle .lang-sep,
.homestay-lang .lang-toggle .lang-sep { color: var(--paper-line); }

/* ---------- Layanan (services) ---------- */
.layanan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.layanan-card {
    background: var(--forest-900);
    border: 1px solid var(--forest-700);
    border-radius: var(--radius-md);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.layanan-card:hover { transform: translateY(-5px); border-color: var(--gold); background: var(--forest-800); }
.layanan-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    background: rgba(217,162,42,0.15);
    color: var(--gold-light);
    display: flex; align-items: center; justify-content: center;
}
.layanan-card h4 { color: var(--cream); margin: 0; font-size: 1.05rem; }
.layanan-card p { font-size: 0.88rem; margin: 0; flex-grow: 1; }
.layanan-card .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Card grids: wisata / paket / suvenir ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile-card {
    background: var(--paper);
    border: 1px solid var(--paper-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease;
}
.tile-card:hover { transform: translateY(-5px); }
.tile-media {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--forest-800), var(--forest-600));
    position: relative;
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
    color: rgba(244,239,221,0.55);
}
.tile-media .ph-label { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(244,239,221,0.4); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-tag {
    position: absolute; top: 14px; left: 14px;
    background: var(--forest-950);
    color: var(--gold-light);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    border-radius: 999px;
}
.tile-price {
    position: absolute; bottom: 14px; right: 14px;
    background: var(--gold);
    color: var(--forest-950);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 999px;
}
.tile-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.tile-body h4 { margin: 0; font-size: 1.05rem; }
.tile-body p { margin: 0; font-size: 0.88rem; flex-grow: 1; }

/* ---------- Homestay ---------- */
.homestay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 50px; }
.homestay-card {
    background: var(--paper);
    border-radius: var(--radius-md);
    border: 1px solid var(--paper-line);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex; flex-direction: column;
}
.homestay-facilities { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.homestay-facilities span {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    background: var(--paper-dim);
    border: 1px solid var(--paper-line);
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--ink-soft);
}
.homestay-price { font-family: var(--font-display); font-size: 1.3rem; color: var(--clay-dark); }
.homestay-price span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); font-weight: 400; }

.booking-panel {
    background: var(--forest-900);
    border-radius: var(--radius-lg);
    padding: 44px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
}
.booking-info h3 { color: var(--cream); }
.booking-info ul { display: grid; gap: 12px; margin-top: 22px; }
.booking-info li { display: flex; gap: 12px; align-items: flex-start; color: var(--cream-muted); font-size: 0.92rem; }
.booking-info li svg { flex-shrink: 0; color: var(--gold-light); margin-top: 3px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--cream-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.on-light .field label { color: var(--ink-soft); }
.field input, .field select, .field textarea {
    padding: 13px 15px;
    border-radius: 10px;
    border: 1.5px solid rgba(244,239,221,0.25);
    background: rgba(244,239,221,0.06);
    color: var(--cream);
}
.on-light .field input, .on-light .field select, .on-light .field textarea {
    border-color: var(--paper-line);
    background: #fff;
    color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(244,239,221,0.35); }
.on-light .field input::placeholder { color: #a8a08a; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(217,162,42,0.25);
}
.field textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 0.8rem; color: var(--cream-muted); margin-top: 4px; }
.on-light .form-note { color: var(--ink-soft); }

.form-result {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    display: none;
}
.form-result.show { display: block; }
.form-result.ok { background: rgba(143,181,106,0.18); border: 1px solid var(--leaf); color: var(--leaf); }
.form-result.err { background: rgba(176,73,44,0.18); border: 1px solid var(--clay); color: #e79075; }
.form-result .kode { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.04em; }

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    gap: 12px;
}
.gallery-grid .g-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--forest-800);
}
.gallery-grid .g-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.06); }
.g-empty {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: var(--cream-muted);
    font-family: var(--font-mono); font-size: 0.75rem; text-align: center; padding: 10px;
}

.lightbox {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(14,28,23,0.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(244,239,221,0.12); color: var(--cream);
    display: flex; align-items: center; justify-content: center; border: none;
}

/* ---------- Map + contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card {
    background: var(--paper-dim);
    border: 1px solid var(--paper-line);
    border-radius: var(--radius-md);
    padding: 30px;
}
.contact-list { display: grid; gap: 16px; margin-top: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--forest-900); color: var(--gold-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-list strong { display: block; font-size: 0.95rem; }
.contact-list span { font-size: 0.88rem; color: var(--ink-soft); }
.map-frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--paper-line); box-shadow: var(--shadow-card); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; background: var(--forest-900); color: var(--cream); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, transform 0.2s ease; }
.social-row a:hover { background: var(--gold); color: var(--forest-950); transform: translateY(-3px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-950); color: var(--cream-muted); padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.footer-grid h5 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--gold-light); margin: 0 0 16px; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--cream); }
.footer-brand p { max-width: 32ch; font-size: 0.88rem; }
.footer-bottom {
    border-top: 1px solid rgba(244,239,221,0.12);
    padding-top: 22px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 0.8rem;
}

/* ---------- News / Berita ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-grid-listing { margin-top: 30px; }
.news-card {
    background: var(--paper);
    border: 1px solid var(--paper-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex; flex-direction: column;
    transition: transform 0.25s ease;
}
.section-alt .news-card { background: var(--forest-900); border-color: var(--forest-700); }
.news-card:hover { transform: translateY(-5px); }
.news-media { aspect-ratio: 16/10; overflow: hidden; }
.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.news-cat {
    align-self: flex-start;
    font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em;
    background: rgba(217,162,42,0.15); color: var(--gold-dark);
    padding: 5px 11px; border-radius: 999px;
}
.section-alt .news-cat { color: var(--gold-light); }
.news-body h4 { margin: 4px 0 0; font-size: 1.05rem; line-height: 1.3; }
.news-body p { margin: 0; font-size: 0.88rem; }
.news-date { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); margin-top: 4px; }
.section-alt .news-date { color: var(--cream-muted); }

.news-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
    padding: 9px 18px; border-radius: 999px;
    background: var(--paper-dim); border: 1.5px solid var(--paper-line); color: var(--ink-soft);
}
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--forest-900); border-color: var(--forest-900); color: var(--cream); }

/* ---------- Page hero (berita/artikel/layanan-digital) ---------- */
.page-hero { padding: 160px 0 60px; background: var(--forest-950); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 26ch; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--cream-muted); font-family: var(--font-mono); font-size: 0.8rem; margin-bottom: 16px; }
.back-link:hover { color: var(--gold-light); }

/* ---------- Article detail ---------- */
.article-media { aspect-ratio: 21/9; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow-card); }
.article-body { max-width: 720px; margin: 0 auto; }
.article-lead { font-size: 1.08rem; color: var(--ink); font-weight: 500; }
.article-body p { font-size: 1rem; line-height: 1.8; }
.article-share { max-width: 720px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--paper-line); display: flex; align-items: center; gap: 12px; }
.article-share span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.article-share a { width: 38px; height: 38px; border-radius: 50%; background: var(--paper-dim); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.article-share a:hover { background: var(--forest-900); color: var(--cream); }

/* ---------- Status tracker (Lacak Pengajuan) ---------- */
.tracker-box { max-width: 640px; margin: 0 auto; }
.tracker-form { display: flex; gap: 12px; flex-wrap: wrap; }
.tracker-form input {
    flex: 1 1 300px;
    padding: 15px 18px;
    border-radius: 12px;
    border: 1.5px solid rgba(244,239,221,0.25);
    background: rgba(244,239,221,0.07);
    color: var(--cream);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}
.tracker-form input::placeholder { color: rgba(244,239,221,0.4); }
.tracker-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,162,42,0.25); }
.tracker-result { margin-top: 20px; display: none; }
.tracker-result.show { display: block; }
.tracker-card { background: var(--forest-950); border: 1px solid rgba(217,162,42,0.3); border-radius: var(--radius-md); padding: 22px 24px; }
.tracker-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(244,239,221,0.12); }
.tracker-kode { font-family: var(--font-mono); font-weight: 700; color: var(--gold-light); letter-spacing: 0.03em; }
.tracker-badge { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; text-transform: uppercase; }
.tracker-badge.pending { background: rgba(217,162,42,0.2); color: var(--gold-light); }
.tracker-badge.processing { background: rgba(143,181,106,0.2); color: var(--leaf); }
.tracker-badge.done { background: rgba(143,181,106,0.3); color: var(--leaf); }
.tracker-badge.rejected { background: rgba(176,73,44,0.25); color: #e79075; }
.tracker-card-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tracker-card-body span { display: block; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cream-muted); margin-bottom: 4px; }
.tracker-card-body strong { color: var(--cream); font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; }
.tracker-empty { background: rgba(176,73,44,0.12); border: 1px solid rgba(176,73,44,0.4); border-radius: 12px; padding: 16px 18px; color: #e79075; font-size: 0.92rem; }

/* ---------- Layanan cards (light background variant for layanan-digital.php) ---------- */
.layanan-grid-light { grid-template-columns: repeat(3, 1fr); }
.layanan-card-light { background: var(--paper); border: 1px solid var(--paper-line); }
.layanan-card-light:hover { background: var(--paper-dim); border-color: var(--gold); }
.layanan-card-light h4 { color: var(--ink); }
.layanan-card-light .layanan-icon { background: rgba(217,162,42,0.14); color: var(--gold-dark); }
.syarat-list { display: grid; gap: 6px; margin: 2px 0 4px; }
.syarat-list li { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--ink-soft); }
.layanan-card-light .syarat-list li { color: var(--ink-soft); }
.section-alt .layanan-card .syarat-list li { color: var(--cream-muted); }
.syarat-list svg { color: var(--leaf); flex-shrink: 0; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 12px; max-width: 780px; }
.faq-item {
    background: var(--forest-900);
    border: 1px solid var(--forest-700);
    border-radius: var(--radius-md);
    padding: 4px 22px;
}
.faq-item summary {
    padding: 16px 0;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--cream);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--gold-light);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 18px; margin: 0; font-size: 0.9rem; }

/* ---------- Mobile bottom tab bar ---------- */
.mobile-tabbar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
    background: var(--forest-950);
    border-top: 1px solid rgba(244,239,221,0.1);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 30px -14px rgba(0,0,0,0.5);
}
.mobile-tabbar a {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--cream-muted);
    padding: 6px 2px;
    border-radius: 12px;
    font-size: 0.62rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.mobile-tabbar a.tabbar-highlight { color: var(--forest-950); background: var(--gold); border-radius: 14px; margin-top: -14px; padding-top: 10px; box-shadow: 0 8px 18px -8px rgba(217,162,42,0.7); }
.mobile-tabbar a.tabbar-highlight span { color: var(--forest-950); font-weight: 700; }

/* ---------- WhatsApp float ---------- */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 90;
    width: 58px; height: 58px; 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,0.6);
    transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Utility reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Admin-teaser CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--clay) 0%, var(--gold-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    color: var(--cream);
}
.cta-band h3 { color: var(--cream); margin: 0 0 8px; }
.cta-band p { color: rgba(244,239,221,0.85); margin: 0; max-width: 46ch; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .layanan-grid, .card-grid, .homestay-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .booking-panel { grid-template-columns: 1fr; padding: 32px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .layanan-grid-light { grid-template-columns: repeat(2, 1fr); }
    .tracker-card-body { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .nav-links, .site-header .header-cta .btn-outline, .site-header .header-cta .btn-primary { display: none; }
    .site-header .header-cta { gap: 8px; }
    .site-header .lang-toggle { padding: 7px 10px; gap: 3px; }
    .nav-toggle { display: flex; }
    .brand-text { max-width: 165px; }
    .brand-text strong { font-size: 0.92rem; }
    .brand-text span { display: none; }
    .hero-content { padding: 140px 0 90px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
    .hero-stats .stat:nth-child(2) { border-right: none; }
    .sambutan { grid-template-columns: 1fr; gap: 34px; }
    .sambutan-figure { max-width: 240px; margin: 0 auto; }
    .layanan-grid, .card-grid, .homestay-grid, .news-grid { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
    .gallery-grid .g-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 1; }
    section { padding: 64px 0; }
    .cta-band { padding: 34px; flex-direction: column; text-align: center; }
    .scroll-cue { display: none; }

    /* Akses cepat: jadi 1 kolom, ringkas untuk layar kecil */
    .quick-grid { grid-template-columns: 1fr; gap: 10px; padding: 14px; border-radius: var(--radius-md); }
    .quick-access { margin-top: -30px; }
    .quick-card { padding: 13px 12px; }

    .layanan-grid-light { grid-template-columns: 1fr; }
    .tracker-form { flex-direction: column; }
    .tracker-form button { width: 100%; }
    .tracker-card-body { grid-template-columns: 1fr; gap: 10px; }
    .faq-item { padding: 4px 16px; }

    /* Beri ruang bawah agar konten tak tertutup tab bar mobile */
    body { padding-bottom: 68px; }
    .mobile-tabbar { display: flex; }
    .wa-float { bottom: 82px; }

    .page-hero { padding: 130px 0 44px; }
    .article-share { flex-wrap: wrap; }
    .booking-panel { padding: 24px; }
}

@media (max-width: 420px) {
    .mobile-tabbar a span { font-size: 0.58rem; }
    .quick-txt strong { font-size: 0.9rem; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
    position: fixed; inset: 0; z-index: 200;
    background: var(--forest-950);
    display: flex; flex-direction: column;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav-close { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid rgba(244,239,221,0.3); background: transparent; color: var(--cream); display: flex; align-items: center; justify-content: center; }
.mobile-nav a { display: block; padding: 16px 4px; font-family: var(--font-display); font-size: 1.4rem; color: var(--cream); border-bottom: 1px solid rgba(244,239,221,0.1); }
.mobile-nav .header-cta { flex-direction: column; margin-top: 30px; align-items: stretch; }
