/* ==========================================================================
            VARIABLES & BASE STYLES
            ========================================================================== */

:root {
    --color-black: #0d0d0d;
    --color-gold: #c5a059;
    --color-gold-hover: #b08d46;
    --color-dark-brown: #2a1b12;
    --color-ivory: #fdfbf7;
    --color-white: #ffffff;
    --color-gray-light: #d1d1d1;

    --font-serif: "Playfair Display", Georgia, serif;
    --font-body: "Lora", serif;
}

html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-gray-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: var(--font-serif);
}

/* Warna Teks Kustom */
.text-gold {
    color: var(--color-gold) !important;
}

.text-ivory {
    color: var(--color-ivory) !important;
}

.text-dark-brown {
    color: var(--color-dark-brown) !important;
}

/* Tombol Kustom dengan Interaksi Press & Hover */
.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-black);
    border: 1px solid var(--color-gold);
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-gold:hover {
    background-color: var(--color-dark-brown);
    color: var(--color-gold);
    border-color: var(--color-gold);
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.2);
}

.btn-gold:active,
.btn-gold.pressed {
    transform: scale(0.96) !important;
    box-shadow:
        inset 0 4px 8px rgba(0, 0, 0, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.btn-border-gold {
    background-color: var(--color-dark-brown);
    color: var(--color-gold);
    border-color: var(--color-gold);
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.2);
}
.btn-border-gold:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
    border: 1px solid var(--color-gold);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
/* ==========================================================================
            1. HEADER / NAVBAR
            ========================================================================== */
/* ==========================================================================
   1. NAVBAR - DESKTOP & MOBILE FULLSCREEN
   ========================================================================== */

/* Navbar Container Utama */
.navbar {
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    z-index: 1050;
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Base Styling Link Navigasi */
.nav-link {
    color: #ffffff !important; /* Memastikan teks berwarna putih terang di semua ukuran layar */
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Efek Garis Bawah (Underline Hover) */
.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #c5a059; /* Warna Emas */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%; /* Garis emas memanjang saat di-hover */
}

.nav-link:hover {
    color: #c5a059 !important; /* Warna teks berubah emas saat di-hover */
}

.nav-link-active {
    color: #c5a059 !important; /* Warna teks berubah emas saat di-hover */
}
.nav-link-active::after {
    width: 80% !important;
}

/* --------------------------------------------------------------------------
   A. TAMPILAN DESKTOP (Min-Width: 992px)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .hamburger-icon {
        display: none !important; /* Sembunyikan ikon hamburger di laptop */
    }

    .navbar-collapse-overlay {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
    }

    .navbar-nav {
        flex-direction: row;
    }

    .navbar-nav .nav-link {
        margin: 0 15px; /* Jarak antar menu di laptop */
    }
}

/* --------------------------------------------------------------------------
   B. TAMPILAN MOBILE FULLSCREEN (Max-Width: 991.88px)
   -------------------------------------------------------------------------- */
#navToggler {
    position: relative;
    z-index: 1060 !important; /* Tombol selalu di atas overlay */
    background: transparent;
    border: none;
    outline: none;
}

.hamburger-icon {
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #c5a059;
    border-radius: 2px;
    transition: all 0.35s ease-in-out;
}

/* Animasi Morphing Hamburger ke 'X' */
.hamburger-icon.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-icon.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 991.88px) {
    .navbar-collapse-overlay {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 100vw;
        height: 100vh;
        background-color: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1040;
    }

    .navbar-collapse-overlay.active {
        right: 0;
    }

    .navbar-nav .nav-link {
        font-size: 1.8rem;
        font-weight: 500;
        padding: 15px 0;
        margin: 10px 0;
    }

    body.menu-open {
        overflow: hidden;
    }
    . {
        display: none !important;
    }
}
/* ==========================================================================
            2. HERO SECTION
            ========================================================================== */
/* ==========================================================================
   HERO SECTION SLIDESHOW
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px 0;
}

/* Background Slider Wrapper */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Gambar Slide */
.hero-bg-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05); /* Efek zoom tipis */
    transition:
        opacity 1.5s ease-in-out,
        transform 6s ease-out; /* Smooth transition */
}

/* Slide Aktif */
.hero-bg-slider .slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Overlay Gelap Transparan */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(13, 13, 13, 0.7) 0%,
        rgba(13, 13, 13, 0.85) 100%
    );
    z-index: 3;
}

/* Memastikan Konten Teks Berada di Atas Background */
.hero-section .z-index-2 {
    position: relative;
    z-index: 4;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
            3. KOLEKSI UNGGULAN
            ========================================================================== */
/* ==========================================================================
   KOLEKSI PRODUK - STYLING KLASIK ELEGAN
   ========================================================================== */

.koleksi-section {
    background-color: #080808;
}

/* Divider Hiasan Emas */
.gold-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c5a059, transparent);
}

.tracking-widest {
    letter-spacing: 3px;
}

/* Card Produk */
.product-card {
    background: #111111;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(197, 160, 89, 0.6);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(197, 160, 89, 0.15);
}

/* Badge Edisi Terbatas / Terfavorit */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(13, 13, 13, 0.85);
    color: #c5a059;
    border: 1px solid #c5a059;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 3;
    backdrop-filter: blur(4px);
}

/* Area Foto Produk & Hover Overlay */
.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Ratio 1:1 Square */
    overflow: hidden;
    background: #0d0d0d;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08); /* Slow Zoom Efek Mewah */
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 13, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* Detail Teks Produk */
.product-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category {
    font-size: 0.8rem;
    color: #c5a059;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.product-title {
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.product-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    display: block;
}

/* Tombol Checkout & Detail */
.btn-gold-checkout {
    background: linear-gradient(135deg, #c5a059 0%, #9e7d3b 100%);
    color: #0d0d0d !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-gold-checkout:hover {
    background: linear-gradient(135deg, #d4af66 0%, #b38e46 100%);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
    transform: scale(1.03);
}

.btn-gold-sm {
    border: 1px solid #c5a059;
    color: #c5a059;
    background: rgba(13, 13, 13, 0.8);
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-gold-sm:hover {
    background: #c5a059;
    color: #0d0d0d;
}

/* .custom-scroll-container {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.custom-scroll-container > div {
    scroll-snap-align: start;
}

.custom-scroll-container::-webkit-scrollbar {
    display: none;
}
.custom-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
} */

/* Custom Scroll Container (Hanya Aktif di Mobile) */
@media (max-width: 767.98px) {
    .custom-scroll-container {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.75rem !important; /* Gap di mobile diperkecil agar pas */
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .custom-scroll-container > div {
        scroll-snap-align: start;
    }

    /* Penyesuaian Ukuran Card & Teks Khusus Mobile */
    .product-details {
        padding: 12px !important; /* Padding dalam card dipangkas dari 20px ke 12px */
    }

    .product-category {
        font-size: 0.68rem !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 2px !important;
    }

    .product-title {
        font-size: 1rem !important; /* Ukuran judul diturunkan dari 1.35rem ke 1rem */
        margin-bottom: 8px !important;
        line-height: 1.3;
    }

    .price-label {
        font-size: 0.65rem !important;
    }

    .product-price {
        font-size: 0.95rem !important; /* Ukuran harga diturunkan dari 1.15rem ke 0.95rem */
    }

    .btn-gold-checkout {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
    }
}

/* Sembunyikan scrollbar bawaan di semua platform */
.custom-scroll-container::-webkit-scrollbar {
    display: none;
}
.custom-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
            4. CERITA KAMI
            ========================================================================== */
.section-story {
    padding: 80px 0;
    background-color: #0b0b0b;
    /* Sesuaikan warna latar gelap kamu */
    color: #e0e0e0;
}

/* Frame Gambar Mewah */
.story-img-wrapper {
    position: relative;
    padding: 15px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 4px;
}

.story-img-wrapper::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    width: 40px;
    height: 40px;
    border-top: 2px solid #c5a059;
    border-left: 2px solid #c5a059;
}

.story-img-wrapper::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid #c5a059;
    border-right: 2px solid #c5a059;
}

.story-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.story-feature-icon {
    width: 42px;
    height: 42px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5a059;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.quote-box {
    border-left: 2px solid #c5a059;
    padding-left: 15px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
            5. TESTIMONI PELANGGAN
            ========================================================================== */
/* .section-testimonials {
    background-color: var(--color-ivory);
    color: var(--color-dark-brown);
    padding: 100px 0;
}

.testimonial-card {
    background-color: var(--color-white);
    border: 1px solid rgba(42, 27, 18, 0.1);
    border-radius: 4px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(42, 27, 18, 0.12);
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gold);
} */

/* Styling Slider Testimoni */
.testimonial-slider {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Sembunyikan scrollbar bawaan agar tampak bersih */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-item {
    scroll-snap-align: start;
}

/* Style Dasar Card */
.section-testimonials {
    background-color: var(--color-ivory);
    color: var(--color-dark-brown);
    padding: 100px 0;
}

.testimonial-card {
    background-color: var(--color-white);
    border: 1px solid rgba(42, 27, 18, 0.1);
    border-radius: 4px;
    padding: 30px;
    height: 100%; /* Memastikan tinggi semua card presisi seragam */
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(42, 27, 18, 0.12);
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gold);
}

/* Optimasi Khusus Layar Mobile (<576px) */
@media (max-width: 575.98px) {
    .section-testimonials {
        padding: 60px 0; /* Padding section dirampingkan */
    }

    .testimonial-card {
        padding: 20px; /* Padding dalam card dipangkas agar teks muat pas */
    }

    .testimonial-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem !important;
    }

    .testimonial-avatar {
        width: 45px;
        height: 45px;
    }
}
/* ==========================================================================
            6. FORMULIR KONTAK
            ========================================================================== */
.section-contact {
    background-color: var(--color-black);
    padding: 100px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--color-ivory);
    padding: 12px 16px;
    border-radius: 2px;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--color-gold);
    color: var(--color-ivory);
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.3);
}

.form-control::placeholder {
    color: #777;
}

/* ==========================================================================
            7. FOOTER
            ========================================================================== */
footer {
    background-color: #050505;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
}

.social-icon {
    color: var(--color-gold);
    font-size: 1.3rem;
    margin: 0 12px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    color: var(--color-ivory);
    transform: translateY(-3px);
}

/* Utility divider Line */
.gold-divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 20px auto;
}

/* ==========================================
   GLOBAL FULLSCREEN LOADER & OVERLAY
=========================================== */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(13, 13, 13, 0.85); /* Semi transparan gelap */
    backdrop-filter: blur(5px); /* Efek blur background */
    z-index: 99999; /* Memastikan overlay di atas seluruh elemen */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    pointer-events: all; /* Mengunci semua klik mouse */
}

/* Tampilkan loader saat class 'show' ditambahkan */
#global-loader.show {
    opacity: 1;
    visibility: visible;
}

/* Spinner Emas Kustom */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(197, 160, 89, 0.2);
    border-top: 4px solid #c5a059; /* Warna Emas */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
