/* --- style.css --- */
/* 1. VARIABEL WARNA */
:root {
    --primary-color: #2E7D32; /* Hijau Daun Tua */
    --secondary-color: #D4A017; /* Emas Jahe */
    --accent-color: #8D6E63; /* Cokelat Kayu */
    --bg-light: #F9F9F9;
    --white: #ffffff;
    --text-dark: #333333;
    --text-grey: #666666;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 2. RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: var(--text-dark); line-height: 1.6; background-color: var(--bg-light); }
h1, h2, h3, h4 { font-family: 'Merriweather', serif; color: var(--primary-color); margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: 8px; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section-padding { padding: 60px 0; }
.text-center { text-align: center; }

/* 3. BUTTONS */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 600; cursor: pointer; text-align: center; border: 2px solid transparent; }
.btn-primary { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.btn-primary:hover { background-color: var(--white); color: var(--primary-color); }
.btn-secondary { background-color: var(--secondary-color); color: var(--white); border-color: var(--secondary-color); }

/* 4. HEADER & NAV */
header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; padding: 15px 0; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; font-family: 'Merriweather', serif; color: var(--primary-color); }
    /* --- STYLE UNTUK LOGO GAMBAR --- */

    /* 1. Mengatur wadah (tag <a>) */
    a.logo {
        display: flex;          /* Menggunakan flexbox agar Gambar mudah ditengah-kan */
        align-items: center;    /* Memastikan gambar di tengah secara vertikal */
        text-decoration: none;  /* Menghapus garis bawah default pada link */
        height: 100%;           /* Mengikuti tinggi navbar */
    }

    /* 2. Mengatur Gambar Logonya */
    .logo img {
        /* --- Bagian PENTING --- */
        height: 50px; /* KUNCI: Atur ketinggian logo di sini. */
        width: auto;  /* Biarkan lebar menyesuaikan otomatis agar proporsional */
        
        /* Tambahan agar rapi */
        display: block; /* Menghilangkan jarak baris kosong di bawah gambar */
        object-fit: contain; /* Memastikan seluruh gambar terlihat dalam kotaknya */
    }

    /* --- RESPONSIF UNTUK HP (Opsional) --- */
    /* Jika di HP logonya dirasa masih terlalu besar, kecilkan sedikit di sini */
    @media (max-width: 768px) {
        .logo img {
            height: 40px; /* Ukuran lebih kecil untuk layar HP */
        }
    }

.nav-links { display: flex; gap: 20px; }
.nav-links a:hover { color: var(--secondary-color); }

/* 5. PAGE HEADER (BANNER KECIL DI TIAP HALAMAN) */
.page-header {
    background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(46, 125, 50, 0.8)), url('https://images.unsplash.com/photo-1599423602164-9a710202871f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center; padding: 60px 0; text-align: center; color: var(--white);
}

/* 6. DETAIL PRODUK */
.product-detail-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.pd-info h2 { font-size: 2.5rem; margin-bottom: 10px; }
.pd-price { font-size: 1.5rem; color: var(--secondary-color); font-weight: 700; margin-bottom: 20px; }
.pd-meta { margin-top: 20px; border-top: 1px solid #ddd; padding-top: 20px; }
.pd-meta h4 { font-size: 1.1rem; margin-bottom: 5px; }

/* 7. TIMELINE (TENTANG KAMI) */
.timeline { position: relative; max-width: 800px; margin: 40px auto; border-left: 3px solid var(--primary-color); padding-left: 30px; }
.timeline-item { margin-bottom: 40px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -39px; top: 0; width: 15px; height: 15px; background: var(--secondary-color); border-radius: 50%; border: 3px solid #fff; }

/* 8. GRID UMUM (BLOG, TIM) */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 20px; border-radius: 10px; box-shadow: var(--shadow); }

/* 9. FORM KONTAK */
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }
textarea.form-control { height: 150px; }

/* 10. FOOTER */
footer { background: #222; color: #ccc; padding: 60px 0 20px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Sederhana untuk demo */
    .product-detail-wrapper { grid-template-columns: 1fr; }
}

 
/* --- PERBAIKAN JUDUL HALAMAN (Agar terlihat jelas) --- */

.container h1 {
    color: #ffffff !important;       /* Ubah warna teks jadi Putih */
    text-shadow: 0 2px 4px rgba(0,0,0,0.6); /* Beri bayangan hitam di belakang huruf */
}