/* =========================
   VARIABLES & THEME
========================= */
:root {
    --primary: #1e3a8a;
    --primary-dark: #0f172a;
    --accent: #22c55e;
    --text-dark: #1e293b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #020617;
    --bg-light: #0f172a;
    --text-dark: #f1f5f9;
    --white: #1e293b;
}

/* =========================
   GLOBAL STYLES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

.text-center {
    text-align: center;
}

/* =========================
   NAVBAR
========================= */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    background: transparent;
}

#navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

#navbar.scrolled .logo {
    color: var(--primary);
}

.logo span {
    color: #60a5fa;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

#navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

#dark-mode-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

#navbar.scrolled #dark-mode-toggle {
    color: var(--text-dark);
}

/* =========================
   HERO
========================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-sub {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.price-badge {
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    margin: 20px 0;
    font-weight: bold;
}

/* =========================
   HERO BUTTONS RESPONSIVE
========================= */
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-outline {
    margin-left: 0;
}

/* =========================
   BUTTONS
========================= */
.btn {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* =========================
   SPLIT GRID (ABOUT & RULES)
========================= */
.split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.rules-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
    transition: var(--transition);
}

.rules-list-modern {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.rules-list-modern li {
    display: flex;
    align-items: center;
    background: var(--white);
    margin-bottom: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Efek Hover */
.rules-list-modern li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

/* Gaya Badge Angka */
.rules-list-modern .badge {
    background: var(--primary);
    color: white;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 15px;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0; /* Mencegah angka gepeng di layar kecil */
}
/* =========================
   SLIDER
========================= */
.slider-container {
    margin-top: 20px;
    overflow: hidden;
    border-radius: 12px;
}

.slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* =========================
   FACILITY & PRICE
========================= */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.f-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.f-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.p-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    position: relative;
}

.p-card.premium {
    border: 2px solid var(--primary);
}

.best-value {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* =========================
   FLOATING WHATSAPP BUTTON
========================= */
.floating-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.floating-wa:hover {
    background: #16a34a;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #0f172a;
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

.footer p {
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-link {
    display: inline-block;
    margin-top: 10px;
    color: #38bdf8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    color: #0ea5e9;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #94a3b8;
}

.footer .logo span {
    color: #38bdf8;
}

/* =========================
   MEDIA QUERIES RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .split-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .price-badge {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    /* --- PERBAIKAN HERO (FOTO LANDSCAPE) --- */
    .hero {
        height: auto; 
        min-height: 450px; /* Tinggi minimal supaya teks tidak sesak */
        aspect-ratio: 4 / 5; /* Ratio ideal di HP agar foto tetap terlihat luas tapi muat teks */
        padding: 100px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-img {
        position: absolute; /* Harus absolute agar teks bisa di atas foto */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Foto tetap penuh tanpa gepeng */
        object-position: center; 
        z-index: -2;
    }

    /* --- TYPOGRAPHY & BUTTONS --- */
    .hero h1 {
        font-size: 2rem; /* Ukuran pas untuk HP */
        line-height: 1.2;
    }

    .hero-sub {
        font-size: 0.9rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    /* --- ELEMEN LAINNYA (JANGAN DIHAPUS) --- */
    .nav-links {
        display: none;
    }

    .slider-container .slide img {
        height: 200px;
    }

    .floating-wa {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .p-card {
        padding: 30px;
    }
   
   .facility-grid {
        /* 1. Perkecil kolom menjadi minimal 90px agar bisa muat 3 box ke samping */
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); 
        gap: 8px; /* Jarak antar box dipersempit */
    }

    .f-card {
        /* 2. Perkecil padding dalam box */
        padding: 12px 5px; 
        border-radius: 8px;
    }

    .f-card i {
        /* 3. Perkecil ukuran icon */
        font-size: 1.2rem; 
        margin-bottom: 5px;
    }

    .f-card h3 {
        /* 4. Perkecil ukuran teks agar tidak berantakan */
        font-size: 0.7rem; 
        line-height: 1.1;
    }
}


@media (min-width: 769px) and (max-width: 1024px) {
    .hero-btns {
        gap: 15px;
    }

    .btn {
        padding: 12px 20px;
    }
}
