/* =========================================================
   1. RESET, VARIABLES & TYPOGRAPHY
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@300;400;500&display=swap');

: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;
}

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

html { font-size: 16px; overflow-x: hidden; }

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;
}

/* --- DARK MODE VARIABLES --- */
body.dark {
    --bg-color: #0f1720;
    --text-dark: #ffffff;
    --text-body: #e0e0e0;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 600;
}

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

/* =========================================================
   2. NAVBAR (SINKRONISASI)
   ========================================================= */
.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;
    justify-content: flex-start; gap: 40px;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img {
    height: 40px; width: auto; object-fit: contain;
    transition: transform 0.3s ease;
}
.nav-logo:hover img { transform: scale(1.05); }
/* Logo Putih di Dark Mode */
body.dark .nav-logo img { 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); }

/* Dropdown */
.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; letter-spacing: 1px; text-transform: uppercase;
}
.btn-get-product:hover { background: #967d4d; }

.hamburger { display: none; cursor: pointer; } /* Hidden Desktop */

/* =========================================================
   3. ABOUT HEADER (CINEMATIC)
   ========================================================= */
.about-header {
    height: 100vh; min-height: 600px;
    animation: bgSlide 30s infinite;
    background: linear-gradient(rgb(0, 0, 0), rgba(0,0,0,0.45)), url('/assets/images/background/IMG_0732.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
    text-align: center; color: var(--white);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 0 8%;
}

@keyframes bgSlide {
    0%   { background-image: url('/assets/images/background/IMG_0723.jpg'); }
    33%  { background-image: url('/assets/images/background/IMG_8986.jpg'); }
    66%  { background-image: url('/assets/images/background/IMG_8991.jpg'); }
    100% { background-image: url('/assets/images/background/IMG_0723.jpg'); }
}

.about-header p {
    font-size: 0.9rem; letter-spacing: 4px; text-transform: uppercase;
    opacity: 0.85; margin-bottom: 20px; color: #fff !important;
}

.about-header h1 {
    font-size: clamp(3rem, 8vw, 5rem); /* Ukuran disesuaikan */
    font-weight: 700; line-height: 1.1; max-width: 1000px;
    color: #fff !important;
}

.btn-primary {
    background: var(--accent); color: var(--white);
    padding: 14px 35px; letter-spacing: 2px; text-transform: uppercase;
    margin-top: 30px; display: inline-block; font-size: 0.8rem;
    transition: 0.3s; cursor: pointer;
}
.btn-primary:hover { background: var(--white); color: var(--text-dark); }

/* =========================================================
   4. WELCOME & STORY SECTION
   ========================================================= */
.welcome-section {
    padding: 100px 5%;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}

.welcome-text h2 { font-size: 3rem; margin-bottom: 15px; }
.subtitle {
    font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 25px; display: block;
}
.naratif { max-width: 520px; color: var(--text-body); }

/* --- VISUAL IMAGE (STYLE KARTU) --- */
.visual-image {
    width: 100%; max-width: 450px;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    position: relative; margin: 0 auto;
    transform: translateY(20px); opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
}
.welcome-section.show .visual-image { transform: translateY(0); opacity: 1; }

.visual-image img {
    width: 100%; height: auto; display: block;
    object-fit: cover; filter: contrast(1.05) saturate(1.05);
}

.visual-caption {
    font-size: 0.75rem; color: #888; text-align: center;
    letter-spacing: 0.5px; margin-top: 15px;
}

/* =========================================================
   5. STORY SECTION (FULL BLEED)
   ========================================================= */
.story-section { width: 100%; text-align: center; margin: 100px 0; gap: 0 }

.story-content {
    max-width: 800px; margin: 60px auto 0; padding: 0 20px;
}
.story-title { font-size: 2.2rem; margin-bottom: 20px; }
.story-description { font-size: 1rem; line-height: 1.8; color: var(--text-body); }



/* Full Width Images */
.story-image, .story-image01 {
    width: 100vw; height: 100vh;
    margin-left: calc(50% - 50vw); /* Teknik keluar container */
    overflow: hidden;
}
.story-image img, .story-image01 img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.story-image02 {
    width: 100vw; height: 100vh;
    margin-left: calc(50% - 50vw); /* Teknik keluar container */
    overflow: hidden;
}
.story-image02 img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.story-image-02 {
    width: 50%; height: relative;
    margin-left: calc(50% - 50vw); /* Teknik keluar container */
    overflow: hidden;
    position: relative;
    
}

/* Container utama */
.story-section-02 {
    display: flex;             /* Mengaktifkan mode flexbox */
    align-items: center;       /* Membuat konten rata tengah secara vertikal */
    justify-content: space-between; /* Memberi jarak antar elemen */
    gap: 20px;                 /* Jarak (spasi) antara gambar dan teks */
    padding: 0;        /* Padding atas/bawah dan kiri/kanan */
    max-width: 5000px;         /* Lebar maksimum agar tidak terlalu lebar di layar besar */
    margin: 0 auto;            /* Posisi tengah halaman */
}

/* Bagian Gambar (Kiri) */
.story-image-02 {
    flex: 1;                   /* Mengambil proporsi 1 bagian ruang (50%) */
    width: 50%;               /* Memastikan wadah selebar mungkin */
}

.story-image-02 img {
    width: 100%;               /* Gambar responsif mengikuti wadahnya */
    height: 100%;              /* Menjaga rasio aspek gambar */
    display: block;            /* Menghilangkan gap kecil di bawah gambar */
    border-radius: 0;       /* Opsi: melengkungkan sudut gambar sedikit */
}


/* Styling Teks (Opsional untuk kerapihan) */
.story-title-02 {
    font-size: 2.2rem; 
    margin-bottom: 20px;
}
    
.subtitle-02 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.subtitle-02 {
    font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 25px; display: block;
}

.story-description-02 {
    line-height: 1.6;
}

/* --- RESPONSIVE (Untuk Tampilan Mobile) --- */
@media (max-width: 768px) {
    .story-section {
        flex-direction: column; /* Mengubah susunan menjadi atas-bawah */
        text-align: center;     /* Opsi: teks rata tengah di HP */
    }
    
    .story-image-02, 
    .story-content {
        flex: none;             /* Reset flex agar lebar penuh */
        width: 100%;
    }
}
.story-image img { object-position: 50% 20%; }
.story-image01 img { object-position: 50% 40%; }
.story-image-02 img { object-position: 50% 30%; }

/* =========================================================
   6. GET IN TOUCH (LUXURY FORM STYLE)
   ========================================================= */
.git-section {
    padding: 100px 5%;
    background: var(--white); /* Kartu putih di light mode */
    text-align: center; border-top: 1px solid rgba(0,0,0,0.05);
}
body.dark .git-section { background: var(--bg-color); border-color: rgba(255,255,255,0.05); }

.git-section h2 { font-size: 2.5rem; margin-bottom: 10px; }
.git-form { max-width: 600px; margin: 50px auto 0; text-align: left; }

.form-group { margin-bottom: 35px; position: relative; }

/* Label Mewah */
.form-group label {
    font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
    display: block; margin-bottom: 8px; color: var(--accent); font-weight: 600;
}

/* Input Underline Style (Seperti Contact Page) */
.form-group input,
.form-group textarea {
    width: 100%; padding: 10px 0;
    border: none; border-bottom: 1px solid rgba(0,0,0,0.15);
    background: transparent;
    font-family: var(--font-heading); font-size: 1.2rem;
    color: var(--text-dark); outline: none; border-radius: 0;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent);
}

body.dark .form-group input,
body.dark .form-group textarea {
    color: var(--white); border-bottom-color: rgba(255,255,255,0.2);
}
body.dark .form-group input:focus,
body.dark .form-group textarea:focus {
    border-bottom-color: var(--accent);
}

/* =========================================================
   7. RESPONSIVE MOBILE
   ========================================================= */
@media (max-width: 968px) {
    /* Navbar Mobile Layout */
    .nav-container { padding: 0 24px; justify-content: flex-start; }
    .nav-logo { margin-right: auto; z-index: 1100; }
    
    /* Theme Toggle & Hamburger */
    .theme-toggle { order: 2; margin-right: 20px; font-size: 1.3rem; display: block; z-index: 1100; }
    .nav-extras { order: 3; margin-left: 0; gap: 0; z-index: 1100; display: flex; align-items: center; }

    .hamburger {
        display: flex; flex-direction: column; justify-content: center;
        gap: 6px; cursor: pointer; width: 35px; height: 35px;
        z-index: 1100; background: transparent; padding: 0; border: none;
    }
    .bar {
        width: 100%; height: 2px; background: var(--text-dark);
        transition: 0.3s; margin: 0 !important; border-radius: 2px;
    }
    .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); }

    .btn-get-product { display: none; }

    /* 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; }

    /* Content Adjustment */
    .welcome-section { grid-template-columns: 1fr; gap: 40px; padding: 60px 5%; }
    .welcome-text { text-align: center; }
    .naratif { margin: 0 auto; }
    .visual-image { max-width: 100%; }

    .about-header h1 { font-size: 3rem; }
    .story-image, .story-image01 { height: 40vh; }
    .story-title { font-size: 1.8rem; }
}

/* Scroll Reveal Util */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.show { opacity: 1; transform: translateY(0); }