/* --- 1. VARIABEL & RESET --- */
:root {
    --primary: #1b4332;      /* Hijau Tua */
    --secondary: #2d6a4f;    /* Hijau Daun */
    --accent: #25d366;       /* Hijau WA */
    --light-bg: #f8fbf9;
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

/* --- 2. NAVIGASI (Sticky & Clean) --- */
nav {
    background: var(--white);
    height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-list li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: 0.3s;
}

.nav-list li a:hover {
    color: var(--secondary);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 4px 0;
    transition: 0.4s;
}

/* --- 3. HERO SECTION (Layout 2 Kolom) --- */
#home {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('/img-Asset/Hero-background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 70px 10% 0; /* Padding atas untuk kompensasi Nav Bar */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left; /* Teks rata kiri */
}

.hero-text h1 { 
    font-size: 3.5rem; 
    margin-bottom: 10px; 
    color: var(--white);
}

.hero-text h2 { 
    font-size: 1.6rem; 
    font-weight: 300; 
    margin-bottom: 25px; 
    opacity: 0.9; 
}

.hero-text p { 
    max-width: 550px; 
    font-size: 1.1rem; 
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    /* Memberikan efek bayangan agar produk terlihat menonjol di atas background */
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
    animation: float 4s ease-in-out infinite; /* Animasi melayang opsional */
}

/* Animasi Melayang untuk Produk */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Responsive Mode (Mobile) --- */
@media (max-width: 992px) {
    #home {
        height: auto;
        padding: 120px 5% 80px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        text-align: center;
        order: 2; /* Teks pindah ke bawah gambar di mobile */
    }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-image {
        order: 1;
        margin-bottom: 40px;
    }
    .hero-image img {
        max-width: 70%; /* Mengecilkan sedikit gambar di mobile */
    }
}

/* --- 4. KOMPOSISI & MANFAAT (GRID 3x2 FIX) --- */
section { padding: 100px 10%; }
.section-title { text-align: center; margin-bottom: 50px; color: var(--primary); font-size: 2.2rem; }

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 5px solid var(--secondary);
}

.card.highlight { border-color: #ffbc00; background: #fffdf5; }
.percentage { font-size: 3rem; font-weight: 800; color: var(--secondary); margin-bottom: 10px; }

/* Nutrisi Tambahan - Desktop 3x2 */
.extra-info {
    margin-top: 60px;
    background: #daffe6;
    padding: 50px;
    border-radius: 25px;
    border: 1px solid #eee;
}

.extra-info h4 { text-align: center; margin-bottom: 40px; font-size: 1.6rem; color: var(--primary); }

.nutrient-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* FIX: Menjadi 3 kolom di desktop */
    gap: 25px;
}

.nutrient-item {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.nutrient-item strong { display: block; color: var(--primary); margin-bottom: 8px; font-size: 1.1rem; }

/* --- 5. ATURAN PAKAI & DOSIS --- */
.method-box { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.method { flex: 1; min-width: 280px; background: #daffe6; padding: 25px; border-radius: 15px; }
.note { background: #fff3cd; padding: 20px; border-radius: 10px; text-align: center; font-weight: 600; }

.table-container { overflow-x: auto; margin-top: 30px; }
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 15px; overflow: hidden; }
table thead { background: #2cd46b; color: var(--white); }
table th, table td { padding: 20px; text-align: left; border-bottom: 1px solid #eee; }


/* --- 6. KONTAK (Personal Card 3:4) --- */
.contact-card {
    background: var(--white);
    max-width: 1050px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
}

.card-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tagline {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
    font-style: italic;
}

.owner-name { font-size: 2rem; color: var(--primary); font-weight: 700; margin-bottom: 5px; }
.owner-title { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; }

/* Wadah untuk menampung tombol socmed di dalam owner-profile */
.social-btns-container.profile-socmed {
    display: flex;
    gap: 10px;        /* Jarak antar tombol */
    margin-top: 5px; /* Jarak dari tulisan 'Distributor Resmi' di atasnya */
    margin-bottom: 20px;
    width: fit-content;
}

/* Gaya dasar tombol Social Media (Ganti padding agar lebih compact) */
.socmed-btn {
    text-decoration: none;
    color: white !important;
    border-radius: 6px; /* Lebih kecil dari button utama */
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* Jarak ikon ke teks */
    transition: all 0.3s ease;
    
    /* Ukuran disesuaikan agar compact dan rapi di bawah teks */
    padding: 8px 15px; 
    font-size: 0.85rem;  /* Sedikit lebih kecil agar hierarki pas */
    width: auto;
}

/* Penyesuaian ikon agar compact */
.socmed-btn i {
    font-size: 1rem;
}

/* --- Warna Resmi Tetap Sama --- */
.socmed-btn.facebook { background-color: #1877F2; }
.socmed-btn.facebook:hover { background-color: #166fe5; transform: translateY(-2px); }

.socmed-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}
.socmed-btn.instagram:hover { opacity: 0.9; transform: translateY(-2px); }


/* --- Penyesuaian Mobile (HP) --- */
@media (max-width: 768px) {
    /* Wadah profil rata tengah di mobile, jadi socmed juga rata tengah */
    .social-btns-container.profile-socmed {
        width: 100%;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }

    /* Tombol membesar di mobile tapi tidak full width */
    .socmed-btn {
        flex: 0 1 auto; /* Mengikuti isi */
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

.product-details-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 35px;
}

.order-btn {
    background: #2cd46b;
    color: var(--white);
    padding: 20px 45px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    width: fit-content;
    transition: 0.3s;
}

.order-btn:hover { background: #32be67;
    transform: translateY(-5px); }

/* Foto 3:4 Desktop */
.card-photo {
    flex: 0 0 400px;
    background: #eee;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    transition: 0.6s ease;
    display: block;
}

.contact-card:hover .card-photo img { filter: grayscale(0%); transform: scale(1.03); }

/* --- 7. RESPONSIVE (MOBILE) --- */
@media (max-width: 992px) {
    .nutrient-grid { grid-template-columns: repeat(2, 1fr); } /* 2 kolom untuk tablet */
    .contact-card { flex-direction: column; max-width: 500px; }
    .card-photo { flex: none; width: 100%; height: 500px; }
}

@media (max-width: 768px) {
    nav { padding: 0 5%; }
    .menu-toggle { display: flex; }
    .nav-list {
        position: fixed;
        top: 75px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 40px 0;
        text-align: center;
        transition: 0.4s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-list.active { left: 0; }
    .nav-list li { padding: 15px 0; }

    /* Animasi Hamburger */
    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

    /* Nutrisi & Hero Mobile */
    .nutrient-grid { grid-template-columns: 1fr; } /* Balik ke 1 kolom di HP */
    #home h1 { font-size: 2.3rem; }
    section { padding: 70px 6%; }
    .card-photo { height: 400px; }
}

/* --- 8. SCROLL REVEAL ANIMATION --- */

/* Kondisi Awal (Sembunyi) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Kondisi Saat Muncul (Aktif) */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Variasi: Muncul dari kiri (opsional untuk foto/teks) */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* --- 8. SECTION SCROLL REVEAL --- */

/* Kondisi awal section: transparan dan agak turun */
.reveal-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s ease-out;
    visibility: hidden; /* Mencegah elemen bisa diklik sebelum muncul */
}

/* Kondisi saat section sudah masuk area scroll */
.reveal-section.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* --- Styling Button Kontak di Nav Bar --- */
.nav-list li a.nav-cta {
    background-color: #25d366; /* Warna Hijau WA */
    color: white !important;   /* Memaksa teks jadi putih */
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px; /* Jarak antara ikon dan teks */
    transition: 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.nav-list li a.nav-cta i {
    font-size: 1.1rem;
}

.nav-list li a.nav-cta:hover {
    background-color: #128c7e; /* Warna hijau lebih gelap saat hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

/* Penyesuaian untuk Tampilan Mobile */
@media (max-width: 768px) {
    .nav-list li {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .nav-list li a.nav-cta {
        margin-top: 10px;
        width: 80%; /* Button lebar di menu mobile agar mudah diklik */
        justify-content: center;
    }
}

/* Update Responsive untuk Kartu Kontak di Mobile */
@media (max-width: 768px) {
    .contact-card {
        flex-direction: column; /* Mengatur arah tumpukan secara vertikal */
    }

    .card-photo {
        order: 1; /* Memindahkan foto ke urutan pertama (paling atas) */
        width: 100%;
        height: 350px; /* Sesuaikan tinggi foto agar tidak terlalu panjang di HP */
    }

    .card-content {
        order: 2; /* Memindahkan detail isi ke urutan kedua (di bawah foto) */
        padding: 30px 20px;
        text-align: center; /* Meratakan teks ke tengah agar lebih rapi di HP */
    }

    /* Menghilangkan teks quotes/tagline khusus di tampilan mobile */
    .tagline {
        display: none;
    }
    
    /* Memastikan tombol pesan mengambil lebar penuh di mobile */
    .order-btn {
        width: 100%;
    }
}

footer { text-align: center; padding: 30px; background: #111; color: #555; font-size: 0.85rem; }