/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* -------------------------------------------------------------------------- */
/* GLOBAL STYLES & LAYOUT */
/* -------------------------------------------------------------------------- */
html, body {
    /* Mencegah overflow horizontal yang tidak diinginkan di mobile */
    overflow-x: hidden; 
    width: 100%; 
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #4A4A4A;
    background-color: #F8F5F1; /* Soft cream background */
    /* Padding untuk mengakomodasi header fixed (90px logo + padding) */
    padding-top: 120px; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------------------------- */
/* HEADER & NAVIGATION (DESKTOP) */
/* ---------------------------------- */
.main-header {
    background-color: #FFFFFF;
    padding: 1.5rem 2rem; /* Padding vertikal ditingkatkan untuk logo besar */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1); 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    display: flex; 
    align-items: center;
    height: 100%; 
}

/* GAMBAR LOGO (Desktop) */
.logo img {
    height: 90px; 
    width: auto;
    display: block;
    max-height: none !important; 
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 2.5rem;
}

.main-nav a {
    text-decoration: none;
    color: #4A4A4A;
    font-weight: 400;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #556B2F; /* Hover color: Sage Green */
}

/* Navigasi Hover Line Effect */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background: #556B2F;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Tombol hamburger disembunyikan di desktop */
.nav-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; 
}

/* Animasi Ikon Hamburger */
.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    content: '';
    width: 25px;
    height: 3px;
    background: #4A4A4A;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(5px);
}

/* Animasi 'X' saat menu terbuka */
.main-nav.open + .nav-toggle .hamburger {
    transform: rotate(45deg);
}
.main-nav.open + .nav-toggle .hamburger::before {
    opacity: 0;
}
.main-nav.open + .nav-toggle .hamburger::after {
    transform: rotate(-90deg) translate(7px, -7px);
}

/* ---------------------------------- */
/* HERO SECTION */
/* ---------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('background.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: #FFFFFF;
    padding: 60px 0;
    /* Kompensasi padding-top body agar hero full screen */
    margin-top: calc(-1 * 120px); 
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8); 
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #F0F0F0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.cta-button {
    text-decoration: none;
    background-color: #556B2F; /* Sage Green */
    color: #FFFFFF;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #3C4A21;
    transform: translateY(-2px);
}

/* ---------------------------------- */
/* SECTIONS & HEADINGS */
/* ---------------------------------- */
section {
    padding: 5rem 0; 
}

.about-section {
    background-color: #FFFFFF;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem; 
    text-align: center;
    margin-bottom: 3rem;
    color: #556B2F;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #556B2F; 
}

/* ---------------------------------- */
/* PRODUCT GRID */
/* ---------------------------------- */
.products-section {
    background-color: #F8F5F1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: center;
}

.product-item {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product-item img {
    max-width: 100%;
    height: 280px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid #E0E0E0;
}

.product-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #3C3C3C;
    margin-bottom: 0.5rem;
}

/* WhatsApp Button */
.whatsapp-button {
    display: inline-block;
    background-color: #25D366; 
    color: #FFFFFF;
    padding: 0.9rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.whatsapp-button i {
    margin-right: 8px;
}

/* ---------------------------------- */
/* PROCESS SECTION */
/* ---------------------------------- */
.how-to-use-section {
    background-color: #E8E5DF; 
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.use-case-item img {
    max-width: 100%;
    height: 250px; 
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.use-case-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #556B2F;
    margin-bottom: 1rem;
}


/* ---------------------------------- */
/* CONTACT SECTION & FORM */
/* ---------------------------------- */
.contact-section {
    background-color: #FFFFFF;
}

.contact-intro {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #4A4A4A;
}

.contact-details {
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
    background-color: #F8F5F1;
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid #E0E0E0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-details p i {
    margin-right: 10px;
    color: #556B2F;
    font-size: 1.2rem;
}

.contact-whatsapp {
    color: #25D366 !important;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.contact-whatsapp:hover {
    color: #128C7E !important;
}

/* Social Media */
.social-media {
    text-align: center;
    margin-bottom: 3rem;
}

.social-media h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #556B2F;
    margin-bottom: 1.5rem;
}

.social-media a {
    color: #4A4A4A;
    font-size: 2.8rem;
    margin: 0 18px;
    transition: color 0.3s ease, transform 0.2s;
    display: inline-block;
}

.social-media .fa-instagram { color: #E1306C; }
.social-media .fa-tiktok { color: #000000; }

/* Contact Form */
#contactForm {
    max-width: 600px;
    margin: 0 auto;
    background-color: #F8F5F1;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

#contactForm label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #556B2F;
    margin-top: 1rem;
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D1D1;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background-color: #FFFFFF;
}

#contactForm button[type="submit"] {
    display: block;
    width: 100%;
    background-color: #556B2F; 
    color: #FFFFFF;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

#contactForm button[type="submit"]:hover {
    background-color: #3C4A21;
}

/* ---------------------------------- */
/* FOOTER */
/* ---------------------------------- */
footer {
    background-color: #333333;
    color: #E0E0E0;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE DESIGN (MOBILE - MAX 768px) */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Header & Body adjustments for mobile */
    body {
        padding-top: 65px; /* Padding lebih kecil untuk header mobile */
    }
    .main-header {
        padding: 0.8rem 1rem; 
        /* Pastikan elemen flexbox rata tengah secara vertikal */
        align-items: center; 
    }
    
    /* LOGO PADA MOBILE */
    .logo {
        order: 1; /* Posisikan logo di kiri */
    }
    .logo img {
        height: 45px; /* Ukuran logo yang sesuai untuk mobile */
        max-height: none !important;
    }
    
    /* TAMPILKAN TOMBOL HAMBURGER DI MOBILE */
    .nav-toggle {
        display: block; 
        order: 3; /* Posisikan tombol di kanan (terakhir) */
    }

    /* NAVIGASI MENU UTAMA (Disembunyikan di Mobile) */
    .main-nav {
        order: 2; /* Walaupun disembunyikan, ini membantu tata letak */
        position: absolute;
        top: 65px; /* Posisikan di bawah header mobile */
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        /* Efek meluncur: Sembunyikan dengan memindahkannya ke atas */
        transform: translateY(-100%); 
        transition: transform 0.3s ease-in-out;
    }

    /* TAMPILKAN MENU KETIKA CLASS 'open' ADA */
    .main-nav.open {
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column; /* Ubah list item menjadi vertikal */
        text-align: center;
        padding: 1rem 0;
    }

    .main-nav li {
        margin: 1rem 0; /* Tambah jarak vertikal antar menu */
    }
    
    /* KONTEN MOBILE */
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.1rem; }
    h2 { font-size: 2rem; margin-bottom: 2rem; }
    section { padding: 3rem 0; }
    .product-grid { grid-template-columns: 1fr; gap: 2rem; }
    .use-cases-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-details, #contactForm { padding: 1.5rem; }
    .social-media a { font-size: 2.2rem; margin: 0 10px; }
}