/* =========================================
   1. IMPORT & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800;900&family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rowdies:wght@300;400;700&display=swap');

:root {
    /* Brand Colors */
    --primary-blue: #4178B8;
    --primary: #4178B8;      /* Fixed: Added missing primary variable */
    --dark-blue: #1A2844;
    --accent-gold: #E8A331;
    
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-soft: #fafafa;
    --glass: rgba(26, 40, 68, 0.95); /* Fixed: Darker glass for better visibility */
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --text-heading: #1A2844;
    --text-main: #475569;   /* Slightly darker for better readability */
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html { 
    scroll-behavior: smooth;
    overflow-x: hidden; 
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: var(--accent-gold);
    color: var(--bg-white);
}


/* =========================================
   REVISI TOTAL NAVIGASI & ANTI-BABIK
   ========================================= */

/* --- 1. SETTING GLOBAL (Desktop) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: var(--dark-blue);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: top 0.4s ease-in-out;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    height: 75px; /* Paksa tinggi nav biar stabil */
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* FIX LOGO: Anti Melar & Gepeng */
/* Styling untuk Logo Container */
.logo-container.jbj-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%; /* Sesuai tinggi navbar */
    padding: 0 10px;
}

/* Styling untuk SVG Logo agar responsif */
.main-logo-svg {
    height: 40px; /* Atur tinggi logo sesuai selera navbar lo */
    width: auto; /* Biar aspect ratio-nya nggak hancur */
    max-width: 250px; /* Batasi lebar maksimal */
    transition: transform 0.3s ease;
}

/* Efek Hover minimalis */
.logo-container.jbj-logo-link:hover .main-logo-svg {
    transform: scale(1.05); /* Sedikit membesar pas di-hover */
}

/* Menu Links Desktop */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
    transition: 0.3s;
}

.nav-links a:hover { 
    opacity: 1; 
    color: var(--accent-gold); 
}

/* Tombol Booking Kanan (Desktop Only) */
.nav-right .btn-booking {
    background: transparent;
    color: #0d5c56 !important;
    border: 2px solid #0d5c56;
    text-decoration: none;
    padding: 8px 20px; /* Padding dikurangi 2px untuk kompensasi ketebalan border */
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.nav-right .btn-booking:hover {
    background: #0d5c56;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* SEMBUNYIIN ELEMEN MOBILE DI DESKTOP */
.hamburger, .mobile-only, .btn-booking-mobile {
    display: none !important;
}

header.nav-hidden { top: -100px !important; }

/* =========================================
   2. MODE MOBILE (HP) - ANTI GAGAL
   ========================================= */
@media (max-width: 768px) {
    
    /* Tombol Kanan Desktop MINGGAT! */
    .nav-right, .desktop-only {
        display: none !important;
    }

    /* Logo Paksa di Tengah */
    nav {
        justify-content: center !important;
    }

    .main-logo {
        height: 35px;
    }

    /* FIX HAMBURGER: Anti Rata & Anti Gepeng */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px; /* Kasih jarak antar garis biar gak rata */
        cursor: pointer;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10001;
        width: 30px;
        height: 30px;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px; /* Tebal garis */
        background: #ffffff;
        border-radius: 10px;
        transition: 0.3s;
    }

    /* Munculin Tombol Booking khusus di dalem Slide */
    .mobile-only {
        display: block !important;
    }

    /* Menu Slide Mobile */
    .nav-links {
        display: none; /* Default ngumpet */
    }

    .nav-links.slide-active {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 75%;
        height: 100vh;
        background: var(--dark-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 10000;
        box-shadow: 10px 0 40px rgba(0,0,0,0.6);
    }

    .nav-links.slide-active a {
        font-size: 1.2rem;
        font-weight: 700;
    }

    .btn-booking-mobile {
        background: transparent;
        color: #ffffff !important;
        border: 2px solid #ffffff;
        padding: 13px 33px; /* Dikurangi 2px sebagai kompensasi ketebalan border */
        border-radius: 12px;
        font-weight: 800;
        text-decoration: none;
        margin-top: 20px;
        display: flex !important;
        transition: 0.3s;
    }

    .btn-booking-mobile:hover {
        background: #ffffff;
        color: var(--dark-blue) !important;
    }

    /* Animasi Silang (X) */
    .hamburger.toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}


/* =========================================
   4. DETAIL PAGE CONTENT LAYOUT
   ========================================= */
.detail-section { 
    padding: 120px 0 80px; /* Top padding to avoid header overlap */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-header { margin-bottom: 35px; }
.detail-header h1 { 
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem; 
    color: var(--dark-blue); 
    margin: 10px 0;
    font-weight: 900;
}

.detail-meta { 
    display: flex; 
    gap: 25px; 
    color: var(--text-main); 
    font-weight: 700;
    font-size: 0.95rem;
}

.detail-meta i { color: var(--accent-gold); }

/* =========================================
   5. MODERN SLIDER (HERO GALLERY)
   ========================================= */
.detail-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 25px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #eee;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;       /* Fixed: Higher z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.slide-btn:hover { background: var(--accent-gold); color: var(--dark-blue); }
.slide-btn.prev { left: 25px; }
.slide-btn.next { right: 25px; }

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--accent-gold);
    width: 35px;
    border-radius: 10px;
}

/* =========================================
   6. GRID & SIDEBAR (STICKY)
   ========================================= */
.detail-content-grid { 
    display: grid; 
    grid-template-columns: 1.6fr 1fr; 
    gap: 60px; 
}

.content-left h3 {
    font-size: 1.6rem;
    color: var(--dark-blue);
    margin: 35px 0 15px;
    font-weight: 800;
    border-left: 5px solid var(--accent-gold);
    padding-left: 15px;
}

.detail-list { list-style: none; margin-bottom: 30px; }
.detail-list li { 
    margin-bottom: 15px; 
    color: var(--text-main); 
    display: flex; 
    align-items: flex-start; 
    gap: 12px; 
    font-weight: 600;
}

.detail-list i { color: var(--accent-gold); margin-top: 5px; }

.sticky-box { 
    background: #fff; 
    padding: 35px; 
    border-radius: 25px; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 100px;
}

.btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 18px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 800;
    margin-top: 25px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-wa:hover { background: #128c7e; transform: translateY(-3px); }

/* --- FORM BOOKING SIDEBAR --- */
.action-box p {
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--dark-blue);
    font-size: 0.95rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.booking-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.booking-form label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-form input,
.booking-form textarea {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
    background: #fafafa;
    width: 100%;
}

.booking-form input:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(65, 120, 184, 0.1);
}

/* =========================================
   7. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .detail-content-grid { grid-template-columns: 1fr; }
    .detail-slider-container { height: 350px; }
    .nav-links { display: none; } /* Use Hamburger for Mobile */
}

@media (max-width: 768px) {
    /* Rapihin Judul & Meta Detail di Mobile */
    .detail-header {
        margin-bottom: 25px;
    }
    .detail-header h1 { 
        font-size: clamp(1.8rem, 6vw, 2.4rem); /* Teks dinamis gak bakal pecah di layar kecil */
        line-height: 1.3;
    }
    .detail-meta {
        flex-wrap: wrap; /* Biar barisnya rapi kalo layarnya kekecilan */
        gap: 15px;
        font-size: 0.9rem;
    }
    /* Kunci Gambar biar 16:9 di semua layar HP */
    .detail-slider-container {
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 15px;
        margin-bottom: 30px;
    }

    /* Rapihkan Tombol Slider di HP */
    .slide-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    .slide-btn.prev { left: 10px; }
    .slide-btn.next { right: 10px; }

    /* Rapihkan Indikator Titik (Dots) di HP */
    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    .dot {
        width: 8px;
        height: 8px;
    }
    .dot.active {
        width: 25px;
    }
    .hamburger { display: flex; }
    
    /* Bikin Grid Konten & Form Booking Rapi di HP */
    .detail-content-grid {
        gap: 35px; /* Kurangi jarak kosong super lebar antar bagian deskripsi dan form */
    }

    .content-left h3 {
        font-size: 1.35rem; /* Sesuaikan ukuran sub-judul agar proporsional */
        margin: 20px 0 15px;
    }

    .sticky-box {
        padding: 25px 20px; /* Tipisin padding kotak form biar gak terlalu memakan tempat */
        border-radius: 20px;
        position: relative; /* Gak perlu nempel/sticky di layar HP biar enak di-scroll */
        top: 0;
        margin-bottom: 20px;
    }

    /* Rapihkan form input (termasuk tanggal) biar gampang diklik & seragam di semua HP */
    .booking-form input,
    .booking-form textarea {
        padding: 14px 15px; /* Besarkan area sentuh untuk jari */
        font-size: 16px; /* Mencegah auto-zoom otomatis di iOS/iPhone */
        border-radius: 12px;
        -webkit-appearance: none; /* Menghilangkan style default aneh bawaan browser HP */
        appearance: none;
    }

    /* Khusus kotak tanggal, paksa tinggi dan bentuk agar sejajar dengan kolom lainnya */
    .booking-form input[type="date"] {
        min-height: 50px; 
        background-color: #fafafa;
    }
    
    /* Sesuaikan Tombol Kirim WA di HP */
    .btn-wa {
        padding: 15px; /* Sedikit dirampingkan tapi tetap ramah jempol */
        font-size: 0.95rem; /* Ukuran teks dioptimalkan agar tidak pecah/turun baris di HP kecil */
        margin-top: 15px; /* Jarak ke kolom input sedikit dirapatkan */
        border-radius: 12px; /* Disamakan dengan lengkungan input form */
    }

    .nav-links.slide-active {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 80%;
        background: var(--dark-blue);
        flex-direction: column;
        padding: 100px 40px;
        transform: none;
        z-index: 1000;
    }
}

/* Hamburger spans (Always white for contrast) */
.hamburger span {
    width: 28px;
    height: 3px;
    background: #ffffff !important;
    border-radius: 5px;
}



/* --- FOOTER LOGO TEXT --- */
.footer-logo-text {
    font-family: 'Rowdies', sans-serif;
    font-size: clamp(4rem, 15vw, 15rem); /* Teks Raksasa! Mengambil proporsi besar dari layar */
    font-weight: 900;
    text-align: center;
    color: #fafafa;
    letter-spacing: 5px; /* Spasi direnggangkan biar seimbang dengan ukuran besar */
    margin-bottom: 40px; /* Jarak ke bawah dilegakan */
    line-height: 1; /* Biar tinggi teks gak kelebihan */
    background: transparent !important; /* Paksa hilangin kotak warna (kuning/lainnya) di belakang logo */
}

/* --- FOOTER BAWAH (AREA GELAP: TAGLINE, SOSMED, MENU, CR) --- */

/* 1. Bungkus paling luar kita paksa PUTIH biar nutupin background body yang ijo */
.bottom-footer {
    background-color: #ffffff !important; /* Latar dasar dibikin putih */
    width: 100%;
    padding: 120px 20px 60px !important; /* Padding digedein biar kotaknya muat buat teks raksasa */
    margin-bottom: 0 !important; 
    display: flex;
    justify-content: center;
    position: relative; /* WAJIB ada biar layernya gak kabur */
    z-index: 1; 
}

/* 2. Ini triknya! Kita bikin layer ijo gelap melengkung di dalemnya */
.bottom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-blue); /* Warna ijo super gelap */
    
    /* Lengkungan ditaruh di layer ini */
    border-top-left-radius: 80px !important;
    border-top-right-radius: 80px !important;
    
    z-index: -1; /* Posisinya kita dorong ke paling belakang (di bawah teks) */
}

/* 3. Area container biarin transparan aja */
.bottom-footer .container {
    background-color: transparent !important; 
    width: 100%;
    max-width: 1200px !important; 
    padding: 0 !important; 
    margin: 0 auto;
    border-radius: 0 !important; 
    box-shadow: none !important; 
}

/* Responsif buat di HP */
@media (max-width: 768px) {
    .bottom-footer {
        padding: 80px 20px 40px !important; /* Kotak di HP juga dilebarin */
    }
    .bottom-footer::before {
        border-top-left-radius: 40px !important; /* Lengkungan dikecilin dikit di HP */
        border-top-right-radius: 40px !important;
    }
}

/* Tagline di Area Ijo (Warnanya dibikin putih transparan) */
.footer-tagline-ijo {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.8); 
    line-height: 1.6;
    margin: 0 auto 25px;
    font-size: 1rem;
}

/* =========================================
    FOOTER AREA - ROYAL BORNEO (TRUE NAVY)
   ========================================= */

/* Latar Belakang Utama Footer - FIXED NAVY */
.bottom-footer {
    padding: 60px 0 30px;
    color: #ffffff;
}

/* Sosmed Area */
.footer-social-ijo {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 35px;
}

.footer-social-ijo a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05); 
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-ijo a:hover {
    background: #d4a017; /* Emas Royal */
    color: #ffffff;
    transform: translateY(-5px);
    border-color: #d4a017;
    box-shadow: 0 5px 15px rgba(212, 160, 23, 0.4);
}

/* Navigasi Link */
.footer-nav-rapi {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0 auto 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav-rapi a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.footer-nav-rapi a:hover {
    color: #d4a017; /* Hover Emas */
}

/* Garis Pembatas Tipis */
.footer-divider-rapi {
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
    margin: 0 auto 25px;
}

/* Copyright Area */
.footer-copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-copyright .highlight-orange {
    color: #d4a017; /* Brand jadi Emas */
    font-weight: 800;
}

.dev-signature {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.2) !important;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .footer-nav-rapi {
        gap: 15px;
    }
    .footer-nav-rapi a {
        font-size: 0.8rem;
    }
    .bottom-footer {
        padding: 40px 0 20px;
    }
}





/* === RESPONSIVE FIX (MOBILE) === */
@media (max-width: 768px) {
    /* 1. Benerin Hero & Kotak Biru (Brand Story) */
    .hero-section {
        min-height: 750px; /* Bikin background hero lebih panjang */
    }

    .brand-story-stats {
        padding-top: 250px; /* Dorong teks ke bawah biar gak nabrak kotak pencarian */
        padding-bottom: 80px;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }

    .philosophy-text h2 {
        margin-bottom: 60px;
    }

    /* 2. Benerin Grid Angka Statistik */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 10px;
    }

    .stat-item:nth-child(3) {
        grid-column: span 2;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }
}