:root {
    --bg: #ffffff;
    --bg-ivory: #f8f6f0;
    --emerald: #0f3d2e;
    --emerald-mid: #175440;
    --gold: #b8862d;
    --gold-bright: #d4a343;
    --wa: #25d366;
    --wa-dark: #128c7e;
    --text: #15221d;
    --text-muted: #4f615a;
    --border: #dfe5e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.66;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.01em;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--emerald);
}

.brand-crest {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.brand-text strong {
    display: block;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.brand-text small {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.61rem;
    color: var(--gold);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 9px 18px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--emerald);
    background: var(--bg-ivory);
}

.nav-link.active {
    background: var(--emerald);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--emerald);
}

/* Sections */
.section {
    padding: 94px 0;
}

.bg-ivory {
    background-color: var(--bg-ivory);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.bg-emerald-dark {
    background-color: var(--emerald);
}

.text-cream {
    color: #f7f5ef;
}

.sec-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 52px;
}

.sec-kicker {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 10px;
}

.sec-kicker.light {
    color: #f3d078;
}

.sec-head h2 {
    font-size: 2.3rem;
    line-height: 1.18;
    margin-bottom: 12px;
}

.sec-head p {
    color: var(--text-muted);
}

.bg-emerald-dark .sec-head p {
    color: #d4e0db;
}

/* =========================================================
   MENU 1: HOME
   ========================================================= */
.hero-sarung {
    padding: 132px 0 84px;
    background: radial-gradient(circle at top right, #eef5f1 0%, #ffffff 58%);
}

.hero-split {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 56px;
}

.pt-seal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f5f0e2;
    border: 1px solid #e3d3a5;
    color: #7c5816;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.gold-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.hero-info h1 {
    font-size: 2.85rem;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--emerald);
}

.gold-shimmer {
    color: var(--gold);
}

.hero-copy {
    font-size: 1.03rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(184, 134, 45, 0.3);
}

.btn-cream-outline {
    background: var(--bg-ivory);
    border: 1.5px solid var(--border);
    color: var(--emerald);
}

.full-width {
    width: 100%;
}

/* Social Strip */
.social-strip {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.soc-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.soc-icons {
    display: flex;
    gap: 10px;
}

.soc-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-ivory);
    border: 1px solid var(--border);
    color: var(--emerald);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.soc-btn:hover {
    background: var(--emerald);
    color: #ffffff;
    border-color: var(--emerald);
    transform: translateY(-3px);
}

/* Hero Visual Card */
.sarung-card {
    border-radius: 22px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    box-shadow: 0 24px 48px rgba(15, 61, 46, 0.12);
    background: #ffffff;
}

.sarung-card > img {
    width: 100%;
    height: 315px;
    object-fit: cover;
    display: block;
}

.pt-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
}

.pt-badge-box {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    background: var(--emerald);
    color: #f3d078;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mono-gold {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 2px;
}

.pt-strip h3 {
    font-size: 1.22rem;
    margin-bottom: 2px;
}

.pt-strip p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* 4 Metric Grid */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.metric-box {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 24px 20px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.metric-box:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.m-val {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--emerald);
    line-height: 1.1;
    margin-bottom: 6px;
}

.metric-box strong {
    display: block;
    font-size: 0.96rem;
    margin-bottom: 6px;
}

.metric-box p {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* =========================================================
   MENU 2: TENTANG (4 SUB-SECTIONS)
   ========================================================= */
.about-split {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: center;
}

.photo-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ps-main,
.ps-sub div {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid var(--border);
}

.ps-main {
    height: 245px;
}

.ps-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ps-sub div {
    height: 175px;
}

.photo-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.ps-main:hover img,
.ps-sub div:hover img {
    transform: scale(1.06);
}

.photo-stack span {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(15, 61, 46, 0.92));
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 16px 12px 9px;
}

.about-desc h2 {
    font-size: 2.25rem;
    line-height: 1.18;
    margin-bottom: 16px;
}

.about-desc p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pt-legal-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 22px;
}

.pt-legal-box small {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 2px;
}

.pt-legal-box strong {
    font-size: 0.87rem;
    color: var(--emerald);
}

/* Zig-Zag Alternating Showcase */
.zigzag-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.zz-row {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 36px;
    align-items: center;
    background: var(--bg-ivory);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}

.zz-row.reverse {
    grid-template-columns: 1.15fr 0.85fr;
}

.zz-row.reverse .zz-img {
    order: 2;
}

.zz-row.reverse .zz-text {
    order: 1;
}

.zz-img img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.zz-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 6px;
}

.zz-text h3 {
    font-size: 1.45rem;
    line-height: 1.22;
    margin-bottom: 10px;
}

.zz-text p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Spec Table */
.spec-table-wrap {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px solid var(--border);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 720px;
}

.spec-table th {
    background: var(--emerald);
    color: #f3d078;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    padding: 16px 20px;
}

.spec-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.spec-table td strong {
    color: var(--emerald);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

/* Milestones */
.milestone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ms-card {
    background: var(--bg-ivory);
    border: 1.5px solid var(--border);
    border-top: 4px solid var(--gold);
    border-radius: 18px;
    padding: 26px 22px;
}

.ms-year {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.ms-card h3 {
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.ms-card p {
    font-size: 0.89rem;
    color: var(--text-muted);
}

/* =========================================================
   MENU 3: LAYANAN & KALKULATOR KODI
   ========================================================= */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.f-btn {
    background: #ffffff;
    border: 1.5px solid var(--border);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.f-btn:hover,
.f-btn.active {
    background: var(--emerald);
    color: #ffffff;
    border-color: var(--emerald);
}

.srv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 48px;
}

.srv-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.srv-card.hide {
    display: none;
}

.srv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(15, 61, 46, 0.1);
}

.srv-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.srv-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.srv-card:hover .srv-img img {
    transform: scale(1.06);
}

.srv-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--emerald);
    color: #f3d078;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
}

.srv-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.srv-body h3 {
    font-size: 1.32rem;
    line-height: 1.22;
    margin-bottom: 10px;
}

.srv-body p {
    font-size: 0.91rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex-grow: 1;
}

.btn-detail {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--gold);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-detail:hover {
    text-decoration: underline;
}

/* Sarung Calculator */
.sarung-calc-box {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
    color: #ffffff;
    border-radius: 22px;
    padding: 38px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 36px;
    align-items: center;
}

.sc-left h3 {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.sc-left p {
    color: #d4e0db;
    font-size: 0.94rem;
}

.sc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.sc-inputs label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #f3d078;
}

.sc-inputs input,
.sc-inputs select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

.sc-inputs select option {
    color: var(--emerald);
}

.sc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 14px;
    padding: 16px 20px;
}

.sc-results small {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: #f3d078;
    margin-bottom: 4px;
}

.sc-results strong {
    font-size: 1.3rem;
    color: #ffffff;
}

/* =========================================================
   MENU 4: KONTAK + GOOGLE MAPS + SOSMED
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 36px;
    align-items: start;
}

.mill-map-card {
    background: var(--emerald-mid);
    border: 1px solid rgba(243, 208, 120, 0.25);
    border-radius: 22px;
    overflow: hidden;
}

.mm-pad {
    padding: 28px;
}

.mm-pad h3 {
    font-size: 1.48rem;
    margin-bottom: 8px;
}

.mm-addr {
    color: #e2ebe7;
    font-size: 0.94rem;
    margin-bottom: 22px;
}

.mm-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mm-meta small {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: #f3d078;
    margin-bottom: 4px;
}

.mm-meta strong {
    font-size: 0.9rem;
}

.mm-socials {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.mm-socials a {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.mm-socials a:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.mm-map iframe {
    display: block;
    width: 100%;
    height: 250px;
}

.btn-map-ext {
    display: block;
    text-align: center;
    background: #08241b;
    color: #f3d078;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 12px;
    transition: background 0.2s ease;
}

.btn-map-ext:hover {
    background: var(--gold);
    color: #ffffff;
}

/* Form Kontak */
.sarung-form {
    background: #ffffff;
    color: var(--text);
    border-radius: 22px;
    padding: 32px;
}

.sarung-form h3 {
    font-size: 1.45rem;
    margin-bottom: 18px;
}

.sf-group {
    margin-bottom: 15px;
}

.sf-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.sf-group input,
.sf-group select,
.sf-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.93rem;
}

.sf-group input:focus,
.sf-group select:focus,
.sf-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.sf-msg {
    margin-top: 12px;
    text-align: center;
    font-weight: 700;
    color: #15803d;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #08241b;
    color: #a7bdb4;
    padding: 26px 0;
    font-size: 0.88rem;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.back-top {
    color: #f3d078 !important;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 61, 46, 0.78);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}

.modal-backdrop.open {
    display: flex;
}

.modal-card {
    background: #ffffff;
    max-width: 500px;
    width: 100%;
    border-radius: 20px;
    padding: 32px;
    position: relative;
}

.modal-x {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg-ivory);
    font-weight: 800;
    cursor: pointer;
}

.modal-card h3 {
    font-size: 1.45rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.info-pill {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 800;
    font-size: 0.84rem;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.modal-card p {
    color: var(--text-muted);
    margin-bottom: 22px;
}

.modal-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-wa-modal {
    background: #ecfdf5;
    border: 1.5px solid var(--wa);
    color: #065f46;
}

/* Floating WhatsApp Button di Pojok Kanan Bawah */
.floating-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--wa), var(--wa-dark));
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.94rem;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.42);
    z-index: 1500;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-wa:hover {
    transform: translateY(-4px) scale(1.03);
}

.wa-pulse {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 2px solid var(--wa);
    animation: waRipple 2s infinite;
    pointer-events: none;
}

@keyframes waRipple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.22); opacity: 0; }
}

/* Reveal */
.reveal-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
    .hero-split,
    .about-split,
    .zz-row,
    .zz-row.reverse,
    .sarung-calc-box,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .zz-row.reverse .zz-img,
    .zz-row.reverse .zz-text {
        order: unset;
    }

    .metric-grid,
    .milestone-grid,
    .srv-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .hero-info h1 {
        font-size: 2.1rem;
    }

    .pt-legal-box,
    .ps-sub,
    .sc-inputs,
    .sc-results,
    .mm-meta {
        grid-template-columns: 1fr;
    }

    .footer-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .floating-wa {
        bottom: 16px;
        right: 16px;
        padding: 12px 16px;
    }
}
