/* ==========================================================
   Zhafira Villa — Design System "PETA BATU"
   Lokasi jadi bintang. Hijau highland + kabut + amber.
   File ini dimuat TERAKHIR → jadi sumber kebenaran tampilan.
   ========================================================== */

:root {
    /* palet Peta Batu */
    --green-900: #10241C;
    --green: #1B3B2F;
    --green-600: #2F5A48;
    --mist: #E8EDE9;
    --paper: #FBFCFB;
    --amber: #D99A2B;
    --amber-700: #A8741A;
    --ink: #14201B;
    --muted: #5C6B63;
    --line: #DCE5DF;

    --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

    --radius: 14px;
    --shadow: 0 10px 30px rgba(16, 36, 28, .08);

    /* override variabel template lama (site.css) */
    --color-primary: #1B3B2F;
    --color-secondary: #2F5A48;
    --color-accent: #D99A2B;
    --color-gold: #D99A2B;
    --color-text: #14201B;
    --color-light-bg: #E8EDE9;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --green: #1B3B2F;
    --gold: #D99A2B;
}

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

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

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--green);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* label kecil berjarak — dipakai di seluruh situs */
.eyebrow {
    font-family: var(--font-display);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--amber-700);
    margin: 0 0 8px;
}

/* ================= NAV ================= */
/* header gelap → logo emas + teks putih tampil maksimal */
.site-nav {
    display: flex; align-items: center; gap: 18px;
    padding: 14px 24px;
    background: rgba(16, 36, 28, .93);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    position: sticky; top: 0; z-index: 50; flex-wrap: wrap;
}
.site-nav__brand { display: flex; align-items: center; margin-right: auto; }
.site-nav__logo { height: 40px; width: auto; display: block; }
.site-nav__toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: #fff; }
.site-nav__menu { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav__menu a {
    color: rgba(255, 255, 255, .74); font-size: 14.5px; font-weight: 500;
    padding-bottom: 2px; border-bottom: 2px solid transparent; transition: .18s;
}
.site-nav__menu a.active, .site-nav__menu a:hover { color: #fff; border-bottom-color: var(--amber); }
.site-nav__wa {
    background: var(--amber); color: var(--green-900);
    padding: 9px 18px; border-radius: 999px;
    font-weight: 700; font-size: 14px; white-space: nowrap;
    font-family: var(--font-display); transition: .18s;
}
.site-nav__wa:hover { background: var(--amber-700); color: #fff; }

/* FLOAT WA */
.wa-float {
    position: fixed; right: 18px; bottom: 18px;
    background: #1FA855; color: #fff;
    padding: 12px 20px; border-radius: 999px;
    font-weight: 600; font-size: 14.5px;
    box-shadow: 0 10px 28px rgba(16, 36, 28, .28); z-index: 60;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-block; padding: 14px 28px; border-radius: 999px;
    font-family: var(--font-display); font-weight: 700; font-size: 15px;
    border: none; cursor: pointer; transition: .18s; text-align: center;
}
.btn--primary { background: var(--amber); color: var(--green-900); }
.btn--primary:hover { background: var(--amber-700); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--wa { background: #1FA855; color: #fff; }

/* ================= HERO ================= */
.hero {
    position: relative; color: #fff; overflow: hidden;
    min-height: 560px; display: flex; align-items: flex-end;
    padding: 0 0 56px;
}
.hero__media {
    position: absolute; inset: 0;
    background-position: center; background-size: cover;
    transform: scale(1.02);
}
/* scrim sinematik: gelap di kiri (tempat teks) — villa di kanan tetap jernih */
.hero::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(to right,
            rgba(16, 36, 28, .88) 0%,
            rgba(16, 36, 28, .62) 38%,
            rgba(16, 36, 28, .18) 70%,
            rgba(16, 36, 28, .04) 100%),
        linear-gradient(to bottom,
            rgba(16, 36, 28, .34) 0%,
            rgba(16, 36, 28, .06) 32%,
            rgba(16, 36, 28, .58) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--amber);
    color: var(--green-900);
    font-family: var(--font-display); font-weight: 700;
    font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    padding: 8px 16px; border-radius: 999px; margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(16, 36, 28, .3);
}
.hero__badge::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--green-900);
}
.hero h1, .hero__title {
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    color: #fff; max-width: 20ch; margin: 0 0 18px; font-weight: 700;
    text-shadow: 0 2px 24px rgba(16, 36, 28, .35);
}
/* jaga "1 menit" tetap satu baris — jangan pernah kepotong */
.hero__title em { font-style: normal; color: var(--amber); white-space: nowrap; }
.hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255,255,255,.88); max-width: 46ch; margin: 0 0 28px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__coord {
    position: absolute; right: 24px; top: 24px; z-index: 2;
    font-family: var(--font-display); font-size: 11px; letter-spacing: .14em;
    color: rgba(255,255,255,.65); text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; border-radius: 999px;
}

/* ================= SECTIONS ================= */
.page-section { padding: 76px 0; }
.page-section h1, .section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 10px; }
.lead { font-size: 1.0625rem; color: var(--muted); margin: 0 0 28px; max-width: 62ch; }
.section-alt { background: var(--mist); }

/* ================= STAT / CARD / GRID ================= */
.stat {
    text-align: center; padding: 22px 18px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.stat__num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--green); margin: 0; }
.stat__label { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow); transition: .2s;
}
.card:hover { transform: translateY(-2px); border-color: rgba(217,154,43,.5); }
.card h3 { font-size: 1.125rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

/* kartu angka besar (potensi income) */
.figure-card {
    background: var(--green); color: #fff; border-radius: 20px;
    padding: 36px 32px; text-align: center; max-width: 560px; margin: 0 auto;
    box-shadow: 0 18px 40px rgba(16,36,28,.18);
}
.figure-card .eyebrow { color: rgba(255,255,255,.6); }
.figure-card__num {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; margin: 6px 0 8px;
    color: var(--amber);
}
.figure-card__note { font-size: 13px; color: rgba(255,255,255,.65); margin: 0; }

/* ================= SIGNATURE: ORBIT PETA ================= */
.orbit {
    position: relative; width: min(620px, 100%); aspect-ratio: 1;
    margin: 40px auto 8px;
}
.orbit__rings { position: absolute; inset: 0; }
.orbit__rings span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    border: 1px dashed rgba(47, 90, 72, .28); border-radius: 50%;
}
.orbit__rings span:nth-child(1) { width: 42%; height: 42%; }
.orbit__rings span:nth-child(2) { width: 68%; height: 68%; }
.orbit__rings span:nth-child(3) { width: 94%; height: 94%; border-style: solid; border-color: rgba(47,90,72,.14); }

.orbit__center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 34%; aspect-ratio: 1; border-radius: 50%;
    background: var(--green); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; box-shadow: 0 14px 34px rgba(16,36,28,.28); z-index: 3;
}
.orbit__center span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.orbit__center strong { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15; }

.orbit__node {
    position: absolute; transform: translate(-50%, -50%); z-index: 2;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 16px; text-align: center; min-width: 108px;
    box-shadow: 0 6px 18px rgba(16,36,28,.08); transition: .2s;
}
.orbit__node b { font-family: var(--font-display); font-size: 1.15rem; color: var(--green); display: block; line-height: 1; }
.orbit__node b i { font-style: normal; font-size: .6em; font-weight: 600; color: var(--muted); margin-left: 2px; }
.orbit__node em { font-style: normal; display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.orbit__node:hover { transform: translate(-50%, -50%) scale(1.05); border-color: var(--amber); }
/* yang terdekat ditonjolkan */
.orbit__node--hi { background: var(--amber); border-color: var(--amber); }
.orbit__node--hi b, .orbit__node--hi b i, .orbit__node--hi em { color: var(--green-900); }

.orbit__node--1 { top: 7%;  left: 50%; }
.orbit__node--2 { top: 27%; left: 87%; }
.orbit__node--3 { top: 73%; left: 87%; }
.orbit__node--4 { top: 93%; left: 50%; }
.orbit__node--5 { top: 73%; left: 13%; }
.orbit__node--6 { top: 27%; left: 13%; }

/* ================= CTA BAND ================= */
.cta-band {
    background: var(--green-900); color: #fff; text-align: center; padding: 76px 24px;
    background-image: radial-gradient(circle at 50% 0%, rgba(217,154,43,.16), transparent 60%);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; margin: 0 0 10px; }

/* ================= FASILITAS (ikon emas) ================= */
.facilities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 36px; }
.facility {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 14px; transition: .2s;
}
.facility:hover { transform: translateY(-2px); border-color: rgba(217, 154, 43, .55); box-shadow: var(--shadow); }
.facility__icon { display: block; width: 46px; height: 46px; margin: 0 auto 14px; color: var(--amber); }
.facility__icon svg { width: 100%; height: 100%; display: block; }
.facility__label {
    margin: 0; font-family: var(--font-display); font-weight: 600;
    font-size: 14.5px; color: var(--green);
}

/* ================= FORM ================= */
.form { display: grid; gap: 14px; max-width: 520px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
    width: 100%; padding: 13px 15px;
    font-family: var(--font-body); font-size: 15px; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    outline: none; transition: .18s;
}
.field input:focus, .field textarea:focus {
    border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217, 154, 43, .18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field__error { display: block; color: #C0392B; font-size: 12.5px; margin-top: 5px; }
.alert-success {
    background: #E7F4EC; color: #1B5E36; border: 1px solid #BFE3CD;
    padding: 14px 16px; border-radius: 12px; margin: 18px 0; max-width: 520px;
}

/* ================= GALLERY ================= */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); }
.gallery-item figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ================= FOOTER ================= */
/* padding bawah ekstra → konten tidak tertutup tombol WA mengambang */
.site-footer { background: var(--green-900); color: #fff; padding: 56px 24px 92px; margin-top: 0; }
.site-footer__inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0; }
.site-footer__tag { opacity: .7; font-size: 13.5px; margin: 6px 0 0; }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; }
.site-footer__links a { color: #fff; opacity: .8; font-size: 14px; }
.site-footer__links a:hover { opacity: 1; color: var(--amber); }
.site-footer__logo { height: 46px; width: auto; margin-bottom: 12px; }

/* baris bawah: copyright + kredit developer */
.site-footer__bottom {
    max-width: 1120px; margin: 36px auto 0; padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.site-footer__copy { opacity: .5; font-size: 12.5px; margin: 0; text-align: left; }
.credit { display: inline-flex; align-items: center; gap: 10px; opacity: .8; transition: .18s; }
.credit:hover { opacity: 1; }
.credit__label { font-size: 12px; color: rgba(255, 255, 255, .6); }
.credit__logo { width: 26px; height: 26px; border-radius: 50%; display: block; }
.credit__name { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: #fff; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .facilities { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
    .site-nav { padding: 12px 18px; gap: 12px; }
    .site-nav__toggle { display: block; order: 2; }
    .site-nav__wa { order: 3; padding: 8px 14px; font-size: 13px; }
    .site-nav__menu { display: none; order: 4; width: 100%; flex-direction: column; gap: 12px; padding-top: 6px; }
    .site-nav.is-open .site-nav__menu { display: flex; }

    .hero { min-height: 480px; padding-bottom: 40px; }
    .hero__coord { display: none; }
    .hero__actions .btn { width: 100%; }

    .page-section { padding: 56px 0; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .facilities { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .facility { padding: 22px 12px; }
    .site-footer__inner { flex-direction: column; gap: 24px; }
    .site-nav__logo { height: 34px; }
    .site-footer__bottom { flex-direction: column; text-align: center; gap: 14px; }
    .site-footer__copy { text-align: center; }

    /* orbit → daftar jarak vertikal (tetap menarik, tanpa scroll samping) */
    .orbit { aspect-ratio: auto; width: 100%; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
    .orbit__rings { display: none; }
    .orbit__center {
        position: static; transform: none; width: 100%; aspect-ratio: auto;
        border-radius: var(--radius); padding: 16px; flex-direction: row; gap: 10px; justify-content: center;
    }
    .orbit__center span { opacity: .75; }
    .orbit__node {
        position: static; transform: none; min-width: 0; width: 100%;
        display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 16px;
        border-radius: 12px;
    }
    .orbit__node:hover { transform: none; }
    .orbit__node b { min-width: 62px; }
    .orbit__node em { margin-top: 0; font-size: 13px; }
}
