/* =========================================================
   1. VARIABLES & RESET
   ========================================================= */
:root {
    --bg-color: #F9F7F2;
    --text-dark: #1B2A39;
    --text-body: #333333;
    --accent: #B39A6A;
    --white: #ffffff; /* Putih Mutlak */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.7;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
    --bg-color: #0f1720;
    --text-dark: #ffffff;  /* Teks utama jadi putih */
    --text-body: #e0e0e0;
    /* PENTING: Jangan ubah var(--white) jadi gelap di sini! 
       Biarkan --white tetap putih. */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }



.theme-toggle {
    background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-dark);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1400px; margin: auto; padding: 0 5%; }

/* =========================================================
   2. NAVBAR & MENU (STANDARD)
   ========================================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: var(--bg-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transform: translateY(-100%); opacity: 0;
    transition: transform 0.5s ease, opacity 0.4s ease;
}
.navbar.nav-visible { transform: translateY(0); opacity: 1; }

.nav-container {
    height: 80px; display: flex; width: 100%; max-width: none;
    margin: 0 auto; padding: 0 24px; align-items: center; gap: 40px;
}

.nav-logo { font-family: var(--font-heading); font-weight: 700; display: flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; transition: transform 0.3s ease; }
.nav-logo:hover img { transform: scale(1.05); }

/* --- [FIX] LOGO NAVBAR DARK MODE --- */
body.dark .nav-logo img {
    /* Mengubah logo gelap menjadi putih mutlak saat dark mode */
    filter: brightness(0) invert(1);
}

.nav-menu { display: flex; list-style: none; gap: 25px; margin-left: auto; align-items: center; }
.nav-link { font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; padding: 10px 0; }
.nav-link:hover { color: var(--accent); }

.has-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: -20px;
    background: var(--white); min-width: 220px; padding: 15px 0;
    list-style: none; box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-top: 3px solid var(--accent);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s;
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 10px 25px; font-size: 0.75rem; text-transform: uppercase; }
.dropdown-menu li a:hover { background: #f4f4f4; color: var(--accent); padding-left: 30px; }

.nav-extras { display: flex; gap: 20px; align-items: center; }
.btn-get-product { background: var(--accent); color: var(--white); padding: 10px 25px; font-size: 0.75rem; text-transform: uppercase; }


    /* Wajib: Munculkan Hamburger yang hidden di desktop */
    .hamburger {
        display: flex;       /* Ubah dari none ke flex */
        flex-direction: column;
        justify-content: center;
        gap: 6px;            /* Jarak antar garis (pengganti margin) */
        cursor: pointer;
        width: 35px;         /* Lebarkan sedikit area sentuh */
        height: 35px;
        z-index: 1100;       /* Pastikan di atas layer menu */
        background: transparent; /* Pastikan tidak tertutup background */
        padding: 0;
        border: none;
    }

    /* Garis Hamburger */
    .bar {
        width: 100%;
        height: 2px; /* Ketebalan garis */
        background: var(--text-dark); /* Gunakan 'background' (bukan background-color) agar override sempurna */
        transition: 0.3s;
        margin: 0 !important; /* PENTING: Hapus margin bawaan desktop agar tidak berantakan */
        border-radius: 2px;   /* Sedikit melengkung biar elegan */
    }

    /* Animasi Hamburger menjadi 'X' saat aktif (Opsional, biar keren) */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }



/* =========================================================
   3. CONTACT HEADER (REVISED)
   ========================================================= */

.contact-header {
    position: relative;
    height: 60vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* [FIX] Paksa warna teks PUTIH, jangan pakai var(--white) yang berubah gelap */
    color: #ffffff; 
    
    overflow: hidden; 
    background: var(--bg-color);
    margin-top: 0; 
    padding-top: 80px; 
}

/* --- Marquee Logic --- */
.marquee-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
}

.marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: scrollMarquee 45s linear infinite;
}

.marquee-track img {
    height: 60vh;
    width: auto;  
    object-fit: cover;
    opacity: 0.6; 
    filter: grayscale(100%) contrast(1.1);
    transition: 0.3s;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Gradient & Content --- */
.overlay-gradient {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
    /* Gradasi: Fade ke warna background di bawah */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 50%, var(--bg-color) 100%),
                radial-gradient(circle, transparent 50%, rgba(0,0,0,0.8) 100%);
}

.header-content {
    position: relative;
    z-index: 3;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 0 20px;
}

.header-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-top: 10px;
    color: #ffffff; /* [FIX] Paksa Putih */
}

.header-content .subtitle {
    font-family: var(--font-body); 
    text-transform: uppercase;
    letter-spacing: 3px; 
    font-size: 0.8rem; 
    color: var(--accent);
}

/* Responsif Header Mobile */
@media (max-width: 768px) {
    .contact-header, 
    .marquee-track img {
        height: 50vh;
    }
    .marquee-track {
        animation-duration: 25s;
    }
}

/* =========================================================
   4. CONTACT FORM SECTION (MAIN CONTENT)
   ========================================================= */

.contact-section {
    padding: 80px 0 120px;
    background: var(--bg-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

/* --- Left Column: Info --- */
.contact-info-col h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem; 
    color: var(--text-dark); 
    margin-bottom: 30px;
}

.contact-desc {
    margin-bottom: 50px; 
    opacity: 0.8; 
    max-width: 400px;
}

.info-block { margin-bottom: 40px; }

.info-block .label {
    display: block; 
    font-size: 0.7rem; 
    text-transform: uppercase;
    letter-spacing: 2px; 
    color: var(--accent); 
    margin-bottom: 10px;
}

.luxury-text-link {
    font-family: var(--font-heading); 
    font-size: 1.5rem;
    color: var(--text-dark); 
    position: relative;
    display: inline-block;
}

.luxury-text-link::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 0%; height: 1px; background: var(--accent); transition: 0.4s;
}
.luxury-text-link:hover::after { width: 100%; }

/* --- Right Column: Form --- */
.luxury-form {
    background: var(--white);
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.03);
}

body.dark .luxury-form {
    background: #151f2b; 
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-row { margin-bottom: 40px; }
.input-group { position: relative; }

.input-group input, 
.input-group textarea, 
.input-group select {
    width: 100%; border: none; background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 10px 0; font-family: var(--font-body);
    font-size: 1rem; color: var(--text-dark); outline: none;
    border-radius: 0;
}

body.dark .input-group input,
body.dark .input-group textarea,
body.dark .input-group select {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.input-group textarea { min-height: 100px; resize: vertical; }

/* Floating Label Animation */
.input-group label {
    position: absolute; top: 10px; left: 0;
    font-family: var(--font-heading); font-size: 1.1rem;
    color: var(--text-body); opacity: 0.5;
    pointer-events: none; transition: 0.3s ease;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label,
.input-group select:focus ~ label,
.input-group select:valid ~ label {
    top: -20px; font-size: 0.7rem; color: var(--accent);
    opacity: 1; font-family: var(--font-body);
    text-transform: uppercase; letter-spacing: 1px;
}

/* Underline Animation */
.input-group .underline {
    position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
    background: var(--accent); transition: 0.4s;
}
.input-group input:focus ~ .underline,
.input-group textarea:focus ~ .underline,
.input-group select:focus ~ .underline {
    width: 100%;
}

/* Submit Button */
.btn-submit-luxury {
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; gap: 20px;
    font-family: var(--font-body); text-transform: uppercase;
    letter-spacing: 2px; font-size: 0.8rem; color: var(--text-dark);
    padding: 0; margin-top: 20px; group;
}
.btn-line {
    width: 40px; height: 1px; background: var(--text-dark);
    transition: 0.4s;
}
.btn-submit-luxury:hover .btn-line {
    width: 80px; background: var(--accent);
}
.btn-submit-luxury:hover { color: var(--accent); }

/* --- Responsive Contact --- */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .luxury-form { padding: 30px; }
}

/* =========================================================
   5. LUXURY FEATURES (RUNNING BORDER, BUTTON, MAPS)
   ========================================================= */

/* --- A. RUNNING LIGHT BORDER --- */
.luxury-border-wrapper {
    position: relative;
    border-radius: 2px;
    padding: 1px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.luxury-border-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg, 
        transparent 0%, 
        transparent 80%, 
        var(--accent) 100%
    );
    animation: rotateBorder 4s linear infinite;
    z-index: 0;
}

@keyframes rotateBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.luxury-border-inner {
    position: relative;
    background: var(--white);
    z-index: 1;
    height: 100%;
    width: 100%;
}
body.dark .luxury-border-inner { background: #151f2b; }

.luxury-form {
    box-shadow: none !important;
    border: none !important;
    position: relative;
    z-index: 2;
}

/* --- B. ROLLING TEXT BUTTON --- */
.btn-submit-luxury {
    position: relative;
    overflow: hidden;
    height: 50px;
    padding: 0 10px;
    margin-top: 30px;
    background: transparent;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 200px;
    transition: 0.3s;
}

.btn-text-wrapper {
    position: relative;
    height: 20px;
    overflow: hidden;
    display: block;
    width: 100%;
    text-align: left;
    margin-left: 15px;
}

.btn-text-primary,
.btn-text-secondary {
    display: block;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.btn-text-secondary {
    transform: translateY(100%); 
    position: absolute;
    top: 0; left: 0;
    color: var(--white);
}

.btn-submit-luxury:hover {
    background: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-submit-luxury:hover .btn-text-primary {
    transform: translateY(-150%);
}
.btn-submit-luxury:hover .btn-text-secondary {
    transform: translateY(0);
}

.btn-arrow {
    margin-right: 15px;
    font-size: 1.2rem;
    transition: 0.3s;
}
.btn-submit-luxury:hover .btn-arrow {
    transform: translateX(5px) rotate(-45deg);
    color: var(--white);
}

/* Dark Mode Adjustments for Button */
body.dark .btn-submit-luxury {
    border-color: #ffffff; /* Paksa Putih Mutlak */
    color: #ffffff;        /* Paksa Putih Mutlak */
}

body.dark .btn-submit-luxury:hover {
    background: #ffffff;   /* Background jadi Putih saat hover */
    color: #0f1720;        /* Teks jadi Gelap saat hover */
}

body.dark .btn-text-secondary {
    color: #0f1720;        /* Teks sekunder (rolling) jadi gelap */
}

body.dark .btn-submit-luxury:hover .btn-arrow {
    color: #0f1720;        /* Panah jadi gelap */
}
/* --- C. CINEMATIC MAPS --- */
.map-section {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-top: 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
}

.map-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(179, 154, 106, 0.1);
    pointer-events: none;
    mix-blend-mode: multiply;
}

.map-section:hover iframe {
    filter: grayscale(80%) contrast(1);
}

body.dark .map-section iframe {
    filter: grayscale(100%) invert(90%) hue-rotate(180deg) contrast(1.2);
}
body.dark .map-section:hover iframe {
    filter: grayscale(100%) invert(90%) hue-rotate(180deg) contrast(1.1);
}

/* =========================================================
   6. RESPONSIVE MOBILE (FIXED HAMBURGER & LAYOUT)
   ========================================================= */

@media (max-width: 968px) {

    /* --- 1. NAVBAR LAYOUT --- */
    .nav-container {
        padding: 0 24px;
        justify-content: flex-start; /* Logo di kiri */
    }

    /* Logo: Dorong elemen lain ke kanan */
    .nav-logo {
        margin-right: auto; 
        z-index: 1100;
    }

    /* Theme Toggle: Urutan ke-2 */
    .theme-toggle {
        order: 2;         
        margin-right: 20px; /* Jarak ke hamburger */
        font-size: 1.3rem;
        display: block;   
        z-index: 1100;    
    }

    /* Hamburger Container: Urutan ke-3 */
    .nav-extras {
        order: 3;
        margin-left: 0;
        gap: 0;
        z-index: 1100;
        display: flex; /* Pastikan flex agar anak elemennya muncul */
        align-items: center;
    }

    /* Wajib: Munculkan Hamburger yang hidden di desktop */
    .hamburger {
        display: flex;       /* Ubah dari none ke flex */
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        width: 30px;
        height: 30px;
    }

    /* Garis Hamburger */
    .bar {
        width: 100%;
        height: 2px;
        background-color: var(--text-dark); /* Otomatis Hitam di Light, Putih di Dark */
        transition: 0.3s;
    }

    /* Sembunyikan tombol 'Get Product' */
    .btn-get-product { display: none; }

    /* --- 2. MENU DRAWER --- */
    .nav-menu {
        position: fixed; 
        top: 0; left: -100%; 
        width: 100%; height: 100vh;
        background: var(--bg-color); 
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1050; 
        padding-top: 60px;
    }
    
    .nav-menu.active { left: 0; }

    .nav-link {
        font-size: 1.5rem; 
        font-family: var(--font-heading);
        margin: 15px 0;
        opacity: 0; 
        transform: translateY(20px);
        transition: 0.4s;
        color: var(--text-dark); /* Pastikan warna teks menu benar */
    }

    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }

    /* --- 3. GLOBAL ADJUSTMENTS --- */
    .container { padding: 0 6%; }
    .contact-header { height: 50vh; margin-top: 0; }
    .marquee-track img { height: 50vh; }
    .header-content h1 { font-size: 2.5rem; margin-bottom: 15px; }

    .contact-section { padding: 60px 0 80px; }
    .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    
    .contact-info-col { text-align: left; padding-right: 0; }
    .luxury-border-wrapper { margin: 0 -10px; width: calc(100% + 20px); }
    .luxury-form { padding: 40px 25px; }
    
    /* Tombol Full Width di HP */
    .btn-submit-luxury { width: 100%; height: 55px; margin-top: 10px; padding: 0 20px; }
    .btn-text-wrapper { margin-left: 0; text-align: center; }
    .btn-arrow { display: none; } 
    
    .map-section { height: 350px; }
}

