/* ================= VARIABEL ROOT ================= */
:root {
    --primary-color: #3b2f27; /* Cokelat Gelap */
    --secondary-color: #8D7B68; /* Cokelat Keemasan */
    --bg-color: #F4F0EB; /* Krem */
    --text-dark: #222222;
    --text-light: #666666;
    --white: #FFFFFF;
}

/* ================= RESET & DASAR ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%; 
    max-width: 1100px; 
    margin: 0 auto;
    padding: 0; 
}

/* ================= GLOBAL BUTTON ================= */
.btn-primary {
    display: inline-block;
    text-align: center;
    padding: 16px 35px;
    background-color: var(--primary-color);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-outline-white {
    display: inline-block;
    padding: 14px 35px;
    border: 1px solid var(--white);
    color: var(--white);
    background-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ================= HEADER & NAVIGASI ================= */
header {
    position: fixed;
    top: 25px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0; 
    transition: all 0.4s ease;
    display: flex;
    justify-content: center; 
}

header.scrolled {
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
    top: 15px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(253, 251, 249, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 90%;
    max-width: 1100px;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
}

.logo, .logo-footer {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span, .logo-footer span {
    color: var(--secondary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
    color: var(--primary-color);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* ================= HERO SECTION ================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.hero-image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background-color: #000000;
}

.hero-image-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: smoothCrossfade 18s linear infinite; 
}

.hero-image-slider .slide:nth-child(1) { animation-delay: 0s; }
.hero-image-slider .slide:nth-child(2) { animation-delay: 6s; }
.hero-image-slider .slide:nth-child(3) { animation-delay: 12s; }

@keyframes smoothCrossfade {
    0% { opacity: 0; transform: scale(1); }
    11% { opacity: 1; }
    33% { opacity: 1; }
    44% { opacity: 0; }
    100% { opacity: 0; transform: scale(1.1); }
}

.hero-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%; 
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 0 50px 0;
}

.hero-bar-col {
    padding: 0 30px;
}

.title-col { flex: 0 0 28%; padding-left: 0; }
.desc-col { flex: 1; text-align: left; padding: 0 40px; }
.btn-col { flex: 0 0 auto; padding-right: 0; display: flex; justify-content: flex-end; }

.hero-bar-divider {
    width: 1px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.4); 
}

.hero-bottom-bar h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    color: var(--white); 
    margin: 0;
    font-weight: 500;
}

.hero-bottom-bar p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 300;
    max-width: 95%;
}

/* ================= KATEGORI PRODUK ================= */
.categories { padding: 60px 0; 40px}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(59, 47, 39, 0.1);
    padding-bottom: 20px;
}

.section-title {
    text-align: left;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0;
    font-weight: 300;
    flex: 1;
}

.section-desc {
    flex: 1;
    text-align: right;
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 400px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    position: relative;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: transparent;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out !important;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
    pointer-events: none;
}

.card.fade-in.visible:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s ease;
}

.card:hover .card-img {
    transform: scale(1.08);
}

.card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 35px 30px;
    z-index: 3;
    text-align: left;
}

.card-body h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-body p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.center-cta {
    text-align: center;
    margin: 60px auto 0;
    max-width: 500px;
    border-top: 1px solid rgba(59, 47, 39, 0.15); 
    border-bottom: 1px solid rgba(59, 47, 39, 0.15); 
    padding: 20px 0 30px; 
}

.center-cta p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 15px;
    font-style: italic;
}

/* ================= ABOUT OVERLAP ================= */
.about-snippet {
    padding: 10px 0 80px; 
    background-color: var(--bg-color);
    overflow: hidden;
}

.overlap-layout {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 1000px;
}

.overlap-image-wrapper {
    flex: 0 0 55%;
    position: relative;
    z-index: 1;
}

.overlap-image {
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    border-radius: 4px 60px 4px 4px;
    box-shadow: 15px 20px 40px rgba(0,0,0,0.08);
}

.image-accent {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--secondary-color);
    z-index: -1;
}

.overlap-text-card {
    flex: 0 0 50%;
    background-color: var(--white);
    padding: 60px 50px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(59, 47, 39, 0.08);
    position: relative;
    z-index: 2;
    margin-left: -10%;
}

.subtitle-accent {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.overlap-text-card h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

.overlap-text-card p {
    color: var(--text-light);
    margin-bottom: 35px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.link-arrow span {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.link-arrow:hover { color: var(--secondary-color); }
.link-arrow:hover span { transform: translateX(5px); }

/* ================= FOOTER ================= */
footer {
    background-color: #1A1512;
    color: #DDDDDD;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.logo-footer {
    color: var(--white);
    display: block;
    margin-bottom: 20px;
}

.footer-desc {
    max-width: 300px;
    color: #999999;
}

.footer-col h4 {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.footer-col address, .footer-col p {
    font-style: normal;
    color: #AAAAAA;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-col a:hover { color: var(--white); }
.mt-1 { margin-top: 20px; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #777777;
}

/* ================= ANIMASI UTAMA ================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================= RESPONSIVE MOBILE (<900px) ================= */
@media (max-width: 900px) {
    
    /* Mobile Header & Nav */
    .nav-container {
        width: 92%;
        padding: 10px 20px;
        border-radius: 40px;
        position: relative;
    }
    
    .logo { font-size: 1.1rem; }
    
    .hamburger { display: flex; gap: 4px; }
    .hamburger span { width: 20px; height: 2px; }
    
    .hamburger.toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    
    .nav-links { 
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background-color: rgba(253, 251, 249, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
        border-radius: 25px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.5);
        gap: 20px;
        display: flex;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Mobile Hero Section */
    .hero { justify-content: center; text-align: center; }
    
    .hero-bottom-bar {
        bottom: 0;
        top: auto;
        height: auto;
        display: flex;
        padding: 100px 0 60px 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0) 100%);
    }
    
    .hero-bottom-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 5%;
    }
    
    .hero-bar-col { padding: 0; flex: none; }
    
    .title-col { 
        flex: 0 0 30%;
        padding-right: 15px;
        text-align: left;
    }
    
    .desc-col {
        flex: 1;
        padding-left: 10px;
        text-align: left;
    }
    
    .hero-bar-divider { 
        display: block; 
        height: 60px; 
        width: 1px;
        margin: 0 10px; 
    }
    
    /* Helper class menyembunyikan elemen spesifik di mobile */
    .hide-on-mobile { display: none !important; }
    
    .btn-col {
        width: 100%;
        margin-top: 25px;
        justify-content: center;
    }
    
    .btn-outline-white { width: 100%; text-align: center; }
    
    .hero-bottom-bar h1 { font-size: 1.6rem; }
    .hero-bottom-bar p { font-size: 0.75rem; margin: 0; }
    
    /* Mobile Kategori & Layout */
    .section-title { line-height: 1.2; }
    .grid-3 { grid-template-columns: 1fr; }
    
    .teks-cta {
        max-width: 250px;
        margin: 0 auto 15px auto !important;
        line-height: 1.4;
    }
    
    /* Mobile About Overlap */
    .about-snippet { padding: 10px 0 80px; }
    .overlap-layout { flex-direction: column; padding: 0; }
    
    .overlap-image-wrapper { width: 100%; margin-bottom: -50px; }
    .overlap-image { height: 400px; border-radius: 4px 40px 4px 4px; }
    .image-accent { display: none; }
    
    .overlap-text-card {
        width: 90%;
        margin-left: 0;
        padding: 40px 30px;
    }
    .overlap-text-card h2 { font-size: 2rem; }
    
    /* Mobile Footer */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-desc { margin: 0 auto; }
}