/* --- RESET & VARIABLES --- */
:root {
    --primary-green: #1C542D;
    --secondary-green: #042F11;
    --light-green: #EAFFF0;
    --accent-gold: #FFD322;
    --font-heading: 'Amarante', serif;
    --font-body: 'Poppins', sans-serif;
    --font-serif: 'Palatino Linotype', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scroll bawaan */
}

body {
    font-family: var(--font-body);
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }
.bg-light { background-color: #f9f9f9; }
.bg-pale-green { background-color: var(--light-green); }
.text-green { color: var(--primary-green); }
.text-white { color: #fff; }

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 50px;
}

/* --- NAVBAR --- */
.navbar {
    background-color: var(--primary-green);
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.8rem;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.logo span img{
    width: 50px;
    margin-top: 20px;
    
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent-gold); }

/* Hamburger Menu (Mobile) */
.hamburger { display: none; cursor: pointer; }
.hamburger span {
    display: block; width: 25px; height: 3px; 
    background: #fff; margin: 5px 0;
    transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    /* Ganti link gambar di bawah ini dengan gambar hero Anda */
    background-image: url('assets/home22.png'); 
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative; z-index: 2; max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* --- LITPAM / ABOUT --- */
.litpam-box {
    display: flex;
    align-items: center;
    background: var(--primary-green);
    border-radius: 35px;
    padding: 40px;
    gap: 40px;
    color: #fff;
}

.litpam-img {
    flex: 1;
}

.litpam-img img {
    width: 100%;
    border-radius: 100px; /* Bentuk lonjong sesuai desain */
    border: 5px solid var(--accent-gold);
    object-fit: cover;
    height: 300px;
}

.litpam-text {
    flex: 1.5;
}

.litpam-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.litpam-text h3 {
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.litpam-text p {
     font-family: var(--font-body);
     line-height: 1.8;
}

/* --- VISI MISI GRID --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card-visi, .card-misi {
    background: var(--primary-green);
    color: var(--accent-gold);
    padding: 50px;
    border-radius: 50px; /* Lengkungan besar sesuai desain */
    position: relative;
    overflow: hidden;
}

.card-visi h3, .card-misi h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.card-visi p, .card-misi ul {
    font-family: var(--font-serif);
    color: #fff;
    font-size: 1.2rem;
}

.card-misi ul li {
    margin-bottom: 10px;
    list-style-type: disc;
    margin-left: 20px;
}

/* --- ARTIKEL --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.article-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: #fff;
}

.article-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0;
    text-transform: uppercase;
}

/* --- PRODUK --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--primary-green);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: #fff;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card:hover { transform: translateY(-10px); }

.prod-img {
    width: 140px; height: 140px;
    background: #fff; border-radius: 50%;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    border: 3px solid #fff;
}

/* Gambar Placeholder untuk Produk (Ganti url nanti) */
.prod-img.sabun { background-image: url('assets/produk1.png'); }
.prod-img.briket { background-image: url('assets/produk2biobriket.png'); }
.prod-img.lotion { background-image: url('assets/productpupuk.png'); }
.prod-img.pupuk { background-image: url('assets/produkpupuk2.png'); }

.product-card h4 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.product-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-read {
    display: inline-block;
    color: var(--accent-gold);
    font-family: 'Amiri', serif; 
    /* Fallback font jika Amiri tidak load, pakai serif biasa */
    font-family: var(--font-heading); 
    font-size: 1.1rem;
    border-bottom: 1px solid transparent;
    cursor: pointer;
}
.btn-read:hover { border-bottom: 1px solid var(--accent-gold); }

/* --- FOOTER --- */
.footer {
    background: var(--secondary-green);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-item {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 15px;
}
        
.contact-icon {
    font-size: 2rem;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: var(--primary-green);
}

.modal-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.modal-content p {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #333;
}

/* --- RESPONSIVE CSS (HP) --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 80px; left: 0; width: 100%;
        background: var(--primary-green);
        text-align: center;
        padding: 20px 0;
    }

    .nav-links.active { display: flex; }
    .hamburger { display: block; }

    .hero-content h1 { font-size: 2.2rem; }
    
    .litpam-box { flex-direction: column; text-align: center; padding: 30px; }
    .litpam-img img { width: 200px; height: 200px; }
    
    .grid-2 { grid-template-columns: 1fr; }
    
    .contact-item { flex-direction: column; font-size: 1.1rem; }

    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}
