/* === VARIABEL & RESET === */
:root {
    --primary-green: #2C4C3B;
    --accent-gold: #C5A059;
    --cream: #FDFBF7;
    --dark-text: #333333;
    --light-text: #666666;
    --white: #FFFFFF;
}

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

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

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; color: var(--primary-green); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }

/* === PRELOADER === */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--cream);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 1s ease-out, visibility 1s ease-out;
}
#preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-content { text-align: center; animation: fadeInUp 1.5s ease-out forwards; }
.preloader-logo {
    font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700;
    color: var(--primary-green); letter-spacing: 2px; margin-bottom: 15px;
    opacity: 0; animation: fadeInScale 1.5s ease-out 0.3s forwards;
}
.preloader-tagline {
    font-family: 'Lato', sans-serif; font-size: 1rem; color: var(--accent-gold);
    letter-spacing: 3px; text-transform: uppercase;
    opacity: 0; animation: fadeIn 1s ease-out 0.8s forwards;
}
.preloader-line {
    width: 0; height: 2px; background: var(--accent-gold); margin: 20px auto;
    animation: expandLine 1.2s ease-out 0.5s forwards;
}
@keyframes fadeInScale { 0% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes expandLine { 0% { width: 0; } 100% { width: 100px; } }

/* === NAVBAR (LAYOUT BARU: KIRI - TENGAH - KANAN) === */
.navbar {
    position: fixed; top: 0; width: 100%;
    padding: 20px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: transparent; box-shadow: none;
    z-index: 1000; transition: all 0.4s ease;
}
.navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 5%;
}

.navbar-left, .navbar-right {
    flex: 1;
    display: flex;
    align-items: center;
}
.navbar-left { gap: 30px; }
.navbar-right { justify-content: flex-end; }

.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Menu Trigger */
.menu-trigger {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 6px; padding: 10px;
}
.menu-trigger span {
    display: block; width: 30px; height: 2px;
    background: white; transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.navbar.scrolled .menu-trigger span {
    background: var(--primary-green); box-shadow: none;
}

/* Nav Links */
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a {
    font-size: 14px; /* Ukuran pas untuk Laptop */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: white;
    font-family: 'Lato', sans-serif;
}
.navbar.scrolled .nav-links a { color: var(--dark-text); }
.nav-links a:hover, .nav-links a.active { color: var(--accent-gold); }

/* Logo Tengah */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px; /* Diperkecil dari 28px */
    font-weight: bold; 
    color: white;
    transition: color 0.4s ease;
    letter-spacing: 1px; /* Memberi jarak antar huruf agar lebih mudah dibaca */
}
.navbar.scrolled .logo { color: var(--primary-green); }

/* Tombol Book Your Stay */
.btn-book {
    padding: 10px 28px; /* Padding disesuaikan agar proporsional */
    background: var(--accent-gold);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px; /* Membuat tombol bulat memanjang (Pill shape) */
    border: 2px solid var(--accent-gold);
    transition: all 0.3s ease;
}
.btn-book:hover { background: transparent; color: var(--accent-gold); }
.navbar.scrolled .btn-book { background: var(--primary-green); border-color: var(--primary-green); }
.navbar.scrolled .btn-book:hover { background: transparent; color: var(--primary-green); }

/* === HERO SECTION === */
.hero {
    height: 100vh; min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1516026672322-bc52d61a55d5?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); padding-top: 110px; margin-top: 0;
}
.hero h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; font-weight: 300; text-shadow: 1px 1px 2px rgba(0,0,0,0.3); }

/* === TOMBOL & LAYOUT UMUM === */
.btn {
    display: inline-block; padding: 12px 30px; background: var(--accent-gold);
    color: var(--white); text-transform: uppercase; letter-spacing: 2px;
    font-size: 14px; font-weight: bold; border-radius: 2px;
}
.btn:hover { background: #b08d4b; }
.section { padding: 80px 5%; max-width: 1400px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.card {
    background: var(--white); border-radius: 4px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 250px; object-fit: cover; }
.card-content { padding: 25px; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card-content p { color: var(--light-text); margin-bottom: 20px; font-size: 0.95rem; }

/* === FOOTER === */
footer { background: var(--primary-green); color: var(--white); padding: 60px 5%; text-align: center; }
footer h2 { color: var(--white); margin-bottom: 20px; }
footer p { opacity: 0.8; margin-bottom: 10px; }
.copyright { margin-top: 40px; font-size: 0.85rem; opacity: 0.5; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; }

/* === ANIMASI SCROLL === */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === MENU OVERLAY === */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 1001; opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.menu-overlay.active { opacity: 1; visibility: visible; }
.menu-panel {
    position: fixed; top: 0; left: 0; width: 40%; min-width: 400px; max-width: 600px; height: 100vh;
    background: #F4F7F2; z-index: 1002; transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; flex-direction: column; padding: 40px 50px; overflow-y: auto;
}
.menu-panel.active { transform: translateX(0); }
.menu-close {
    position: absolute; top: 25px; left: 25px; background: none; border: none;
    font-size: 28px; color: var(--primary-green); cursor: pointer;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s;
}
.menu-close:hover { transform: rotate(90deg); }
.menu-label { font-family: 'Lato', sans-serif; font-size: 12px; letter-spacing: 3px; color: #999; text-transform: uppercase; margin-top: 60px; margin-bottom: 20px; }
.menu-items { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
.menu-items li { margin-bottom: 10px; }
.menu-items li a {
    font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--primary-green);
    display: inline-block; transition: all 0.3s ease; line-height: 1.2;
}
.menu-items li a:hover { color: var(--accent-gold); padding-left: 15px; }
.menu-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 30px; border-top: 1px solid #ddd; margin-top: 30px; }
.menu-bottom-col h5 { font-family: 'Lato', sans-serif; font-size: 11px; letter-spacing: 2px; color: #999; text-transform: uppercase; margin-bottom: 15px; font-weight: 700; }
.menu-bottom-col ul { list-style: none; padding: 0; margin: 0; }
.menu-bottom-col ul li { margin-bottom: 8px; }
.menu-bottom-col ul li a { font-family: 'Lato', sans-serif; font-size: 14px; color: var(--dark-text); transition: color 0.3s; }
.menu-bottom-col ul li a:hover { color: var(--accent-gold); }

/* === WHATSAPP & HELP BUTTON === */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; background: white; color: var(--dark-text);
    padding: 15px 20px; border-radius: 50px; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); z-index: 1000; transition: all 0.3s ease; max-width: 280px;
}
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0,0,0,0.2); }
.whatsapp-float .wa-icon { width: 35px; height: 35px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.whatsapp-float .wa-text { display: flex; flex-direction: column; line-height: 1.3; }
.whatsapp-float .wa-text small { font-size: 11px; color: #666; }
.whatsapp-float .wa-text strong { font-size: 14px; color: var(--dark-text); }

.help-button {
    position: fixed; bottom: 110px; right: 30px; width: 50px; height: 50px;
    background: var(--primary-green); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: bold; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 1001; transition: transform 0.3s; border: none;
}
.help-button:hover { transform: scale(1.1); }
.help-tooltip {
    position: fixed; bottom: 170px; right: 30px; background: white; padding: 20px;
    border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); max-width: 280px;
    z-index: 1001; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease;
}
.help-tooltip.active { opacity: 1; visibility: visible; transform: translateY(0); }
.help-tooltip p { font-size: 13px; color: var(--dark-text); margin-bottom: 15px; line-height: 1.5; }
.help-tooltip .wa-btn { display: flex; align-items: center; gap: 10px; background: #f5f5f5; padding: 10px 15px; border-radius: 8px; color: var(--dark-text); font-weight: 600; font-size: 14px; }
.help-tooltip .wa-btn:hover { background: #eee; }

/* === CONTACT PAGE === */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 15px; margin-top: 30px; }
.contact-info p { color: var(--light-text); margin-bottom: 10px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 4px; font-family: 'Lato', sans-serif; background: var(--white); }
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form button { width: 100%; padding: 15px; background: var(--primary-green); color: white; border: none; border-radius: 4px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.contact-form button:hover { background: var(--accent-gold); }
.map-container { width: 100%; height: 300px; background: #eee; border-radius: 4px; overflow: hidden; margin-top: 30px; }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .nav-links { display: none; } /* Sembunyikan menu teks di tablet, biarkan hamburger & overlay bekerja */
}
@media (max-width: 768px) {
    .navbar { padding: 15px 5%; }
    .navbar.scrolled { padding: 12px 5%; }
    .navbar-left { gap: 15px; }
    .menu-trigger span { width: 25px; }
    .logo { 
        font-size: 15px; /* Diperkecil dari 22px */ 
        letter-spacing: 0.5px; 
    }
    .btn-book { padding: 8px 15px; font-size: 11px; }
    .hero h1 { font-size: 2.2rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .menu-panel { width: 100%; min-width: 100%; max-width: 100%; padding: 30px 25px; }
    .menu-items li a { font-size: 2rem; }
    .menu-bottom { grid-template-columns: 1fr; gap: 20px; }
    .whatsapp-float { max-width: 220px; padding: 12px 15px; }
    .whatsapp-float .wa-text strong { font-size: 12px; }
    .help-button { bottom: 100px; }
    .help-tooltip { bottom: 160px; }
}