﻿/* =========================================
   1. GLOBAL STYLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1c1c1e;
    color: #f5f5f5;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =========================================
   2. NAVBAR (DESKTOP DEFAULT)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

    .navbar.scrolled {
        background-color: rgba(28, 28, 30, 0.95);
        padding: 15px 50px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

.logo img {
    height: 70px;
    width: auto;
}

/* Desktop Menu Layout */
.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end; /* Pastikan ikon User/Heart kekal di kanan */
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    /* --- TAMBAHAN BARU UNTUK CENTER --- */
    position: absolute; /* Bebaskan dari flow biasa */
    left: 50%; /* Tolak ke separuh skrin */
    transform: translateX(-50%); /* Tarik balik supaya betul-betul tengah */
    padding-bottom: 0;
    margin: 0;
}

    .nav-links a {
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        color: #f5f5f5;
        letter-spacing: 1px;
        padding-bottom: 5px;
        position: relative;
    }

        /* Hover Effect Line */
        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 50%;
            background-color: #c2a45d;
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-links a:hover {
            color: #c2a45d;
        }

/* Right Icons Desktop */
.nav-right-desktop {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    font-size: 18px;
    color: #f5f5f5;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

    /* Apabila pautan di-hover */
    .nav-icon:hover {
        color: #c2a45d; /* Warna Emas Artisan */
        transform: scale(1.2); /* Sedikit kesan 'pop' */
    }

        /* Teknik menukar ikon kepada Solid (Filled) */
        .nav-icon:hover i {
            font-weight: 900; /* Ini akan menukar Font Awesome daripada Regular ke Solid */
            font-family: "Font Awesome 5 Free"; /* Pastikan font-family betul */
        }

    /* Tambahan: Kesan Glow yang halus */
    .nav-icon:hover {
        text-shadow: 0 0 10px rgba(194, 164, 93, 0.6);
    }

/* Desktop Contact Button */
.btn-contact-desktop {
    border: 1px solid #f5f5f5;
    padding: 8px 25px;
    border-radius: 50px;
    color: #f5f5f5;
    font-size: 14px;
}

    .btn-contact-desktop:hover {
        background-color: #c2a45d;
        border-color: #c2a45d;
        color: #f5f5f5;
    }

/* Sembunyikan Elemen Mobile di Desktop */
.mobile-controls,
.mobile-only-btn,
.mobile-only-text,
.mobile-only-link {
    display: none;
}

/* =========================================
   3. FOOTER
   ========================================= */
.site-footer {
    background-color: #18181a;
    color: #b0b0b0;
    padding: 60px 50px 20px;
    border-top: 1px solid #333;
    font-size: 14px;
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Socials & Logo */
.footer-brand {
    display: flex;
    flex-direction: column; /* Susun Logo (atas) dan Icon (bawah) */
    align-items: center; /* PENTING: Ini yang buat dia center sesama sendiri */
    justify-content: center;
    text-align: center; /* Pastikan teks (jika ada) pun center */
}

.footer-logo {
    height: 120px;
    margin-bottom: 20px;
    display: block; /* Pastikan imej bersifat blok */
}

.footer-socials {
    display: flex;
    gap: 15px;
    font-size: 24px;
    justify-content: center; /* Centerkan ikon dalam barisnya */
}

    .footer-socials a:hover {
        color: #c2a45d;
    }

/*Contact info*/

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* PENTING: Ini letakkan semua blok ke tengah */
}

    .footer-col h3 {
        color: #f5f5f5;
        font-family: 'Playfair Display', serif;
        font-size: 20px;
        margin-bottom: 25px;
        width: 100%; /* Pastikan ia ambil ruang */
        max-width: 350px; /* Hadkan lebar sama dengan contact-item supaya selari */
        text-align: left; /* Tajuk "Contact Info" center */
    }

/* 2. Setup Item Contact supaya nampak kemas */
.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start; /* Pastikan icon selari dengan baris pertama teks */
    /* TRICK: Tetapkan lebar maksimum supaya ia jadi blok yang kemas di tengah */
    width: 100%;
    max-width: 350px; /* Lebar yang sesuai supaya tak terlalu panjang atau pendek */

    text-align: left; /* PENTING: Teks kekal align kiri */
}

    .contact-item i {
        color: #c2a45d;
        font-size: 18px;
        margin-top: 4px;
        flex-shrink: 0; /* Pastikan icon tak kemek */
    }

/* Teks dan Alamat */
.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-item h4 {
    color: #c2a45d;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
    text-align: left; /* Pastikan tajuk ini kiri */
}

.contact-item p {
    color: #b0b0b0;
    margin: 0;
    text-align: left; /* Pastikan alamat ini kiri */
}

/* Quick Links */

.footer-col2 {
    display: flex;
    flex-direction: column;
}

    .footer-col2 h3 {
        color: #f5f5f5;
        font-family: 'Playfair Display', serif;
        font-size: 20px;
        margin-bottom: 25px;
    }

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: #c2a45d;
    padding-left: 5px;
}

/* Book Now Button (Footer) */
.btn-book-footer {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    /* Default: Outline */
    background-color: transparent;
    border: 1px solid #f5f5f5;
    color: #f5f5f5;
    padding: 10px 20px;
    border-radius: 50px;
    width: 160px;
    font-weight: 500;
    transition: all 0.3s;
}

/* Circle Arrow Default */
.arrow-circle {
    background: #fff;
    color: #000;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s;
}

/* Book Now Hover */
.btn-book-footer:hover {
    background-color: #c2a45d;
    border-color: #c2a45d;
    color: #fff;
    transform: translateY(-3px);
}

    .btn-book-footer:hover .arrow-circle {
        background: #000;
        color: #c2a45d;
    }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 12px;
    color: #777;
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
#btnBackToTop {
    display: none; /* Pastikan ini adalah 'none' secara default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    background-color: #c2a45d;
    color: #1c1c1e;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    /* Guna flex untuk center icon, tetapi display kawalan utama tetap none */
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
}

    #btnBackToTop:hover {
        background-color: #a3894b;
        transform: translateY(-5px);
    }

/* =========================================
   4. RESPONSIVE (MOBILE VIEW)
   ========================================= */
@media (max-width: 900px) {
    .navbar {
        padding: 15px 20px;
        background-color: #1c1c1e; /* Gelap ikut gambar */
    }

    /* Sembunyikan Desktop Elements */
    .nav-right-desktop {
        display: none;
    }

    /* Paparkan Mobile Controls */
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .mobile-user-icon {
        font-size: 24px;
        color: #f5f5f5;
    }

        .mobile-user-icon:hover {
            color: #c2a45d;
        }

    .menu-toggle {
        display: block;
        font-size: 28px;
        color: #f5f5f5;
        cursor: pointer;
    }

        .menu-toggle:hover {
            color: #c2a45d;
        }

    /* Paparkan Mobile Links (Home, Testimonials) */
    .mobile-only-link {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* MENU DROPDOWN */
    .nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #383838; /* Kelabu gelap */
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        border-top: 1px solid #555;
        display: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

        .nav-container.active {
            display: flex;
            opacity: 1;
            transform: translateY(0);
            box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 20px;
        /* --- TAMBAHAN PENTING (RESET) --- */
        position: static; /* Matikan absolute positioning */
        transform: none; /* Matikan transform center */
        left: auto;
    }

        .nav-links a {
            font-size: 16px;
            color: #d1d1d1;
            display: block;
        }

            .nav-links a:hover {
                color: #c2a45d;
            }

    /* Mobile Buttons */
    .mobile-only-btn, .mobile-only-text {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    /* Mobile Contact Button (Outline, No Underline) */
    .btn-contact-mobile {
        border: 2px solid #fff;
        padding: 10px 30px;
        border-radius: 50px;
        color: #fff;
        font-size: 16px;
        display: inline-block;
        position: relative;
    }
    /* Buang garis bawah hover */
    .nav-links .btn-contact-mobile::after {
        display: none !important;
    }

    .btn-contact-mobile:hover {
        background-color: #fff;
        color: #1c1c1e;
    }

    .mobile-only-text a {
        font-size: 14px;
        color: #999;
    }

    /* Footer Responsive */
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-socials {
        justify-content: center;
        margin-top: 10px;
    }

    .footer-col h3 {
        width: 100%; /* Pastikan ia ambil ruang */
        max-width: 350px; /* Hadkan lebar sama dengan contact-item supaya selari */
        text-align: center;
    }

    .contact-item {
        justify-content: center;
        text-align: center;
    }

    .btn-book-footer {
        margin: 20px auto 0;
    }
}

/* --- CSS UNTUK LOGOUT MODAL (POPUP) --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Gelap transparent */
    justify-content: center;
    align-items: center;
}

    .modal-overlay.show {
        display: flex; /* Paparkan bila class 'show' ditambah */
        animation: fadeIn 0.3s;
    }

.modal-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

    .modal-box i {
        font-size: 3rem;
        color: #c2a45d; /* Warna tema Artisan */
        margin-bottom: 15px;
    }

    .modal-box h3 {
        margin-bottom: 10px;
        color: #333;
    }

    .modal-box p {
        margin-bottom: 25px;
        color: #666;
    }

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-modal-cancel {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background: #f8f9fa;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

    .btn-modal-cancel:hover {
        background: #be2323;
    }

/* Style untuk butang Logout sebenar */
.btn-modal-confirm {
    padding: 10px 20px;
    border: none;
    background: #c2a45d; /* Warna tema */
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

    .btn-modal-confirm:hover {
        background: #a3894b;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}