@charset "utf-8";
/* CSS Document */
/* style.css */

/* ======================================= */
/* 1. Reset dan Variabel Dasar             */
/* ======================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Palet Warna Koperasi */
    --primary-color: #004d40;     /* Hijau Tua */
    --secondary-color: #00897b;   /* Hijau Sedang */
    --accent-color: #ffb300;      /* Kuning/Emas Aksen */
    --text-color: #333333;
    --background-light: #f4f4f4;
    --card-background: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

.container {
    width: 90%; /* Default untuk HP/Mobile */
    margin: auto;
}

/* ======================================= */
/* 2. Gaya Dasar Komponen (Mobile First)   */
/* ======================================= */

/* Header & Navigasi */
header {
    background-color: var(--primary-color);
    color: white;
	padding: 10px 0;
}

.menu-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hamburger-menu {
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    display: block; /* Default: Tampilkan di HP */
    padding: 5px;
}

/* Navigasi Utama (Default untuk Mobile) */
.main-nav {
    position: absolute;
    top: 60px; /* Jarak dari header */
    left: 0;
    width: 100%;
    background-color: var(--secondary-color, #00897b); /* Warna background saat terbuka */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    /* Secara default, menu disembunyikan */
    display: none; 
    flex-direction: column;
    z-index: 10;
}

/* Tampilkan menu saat kelas 'active' ditambahkan oleh JS */
.main-nav.active {
    display: flex;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav a:hover {
    background-color: var(--primary-color);
}

.main-nav .btn-login {
    background-color: var(--accent-color);
    color: #333;
    font-weight: bold;
    margin: 10px 20px;
    text-align: center;
    border-radius: 4px;
    border-bottom: none; /* Hilangkan garis bawah untuk tombol */
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: bold;
    display: block; /* Agar logo bisa di-tap penuh di HP */
    text-align: center;
    padding: 0 0 0 50px;
	background:url(../images/logo.png) no-repeat;
	background-size:60px 60px;
}

nav {
    /* Di HP, navigasi akan di bawah logo (tampilan stack) */
    text-align: center;
    padding-bottom: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    display: block; /* Setiap link menjadi satu baris */
    padding: 10px 0;
    margin: 5px 0;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    opacity: 0.8;
}

/* Kartu & Box */
.card {
    background: var(--card-background);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Form */
label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    background: url('hero-bg.jpg') no-repeat center center/cover; /* Ganti dengan path gambar Anda */
    color: #666;
    padding: 40px 15px;
    text-align: center;
    margin-bottom: 20px;
}

/* Statistik Section */
.statistik-grid, .produk-grid {
    /* Di HP, tata letak akan stack (default) atau 1 kolom */
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.data-number {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

/* ======================================= */
/* 3. Media Queries (Adaptasi ke Desktop)  */
/* ======================================= */

@media (min-width: 768px) {
    /* Untuk Tablet dan Desktop */

    .container {
        width: 85%; /* Lebih lebar di desktop */
    }

    /* Header & Navigasi Desktop */
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

	.hamburger-menu {
        display: none;
    }

    /* Tampilkan Navigasi Utama di Desktop secara Inline */
    .main-nav {
        position: static; /* Hilangkan posisi absolute */
        display: flex !important; /* Timpa 'display: none' */
        flex-direction: row;
        width: auto;
        background-color: transparent;
        box-shadow: none;
    }

    .main-nav a {
        padding: 8px 12px;
        margin-left: 10px;
        border-bottom: none;
        border-radius: 4px;
    }
    
    .main-nav a:hover {
        background-color: #006655; /* Warna hover lebih terang */
    }
    
    .main-nav .btn-login {
        margin: 0;
        margin-left: 15px;
    }
    .logo a {
        padding: 0 0 0 50px;
		background:url(../images/logo.png) no-repeat;
		background-size:70px 70px;
    }
	
    nav {
        text-align: right;
        padding-bottom: 0;
    }

    nav a {
        display: inline-block; /* Link sejajar */
        margin: 0 5px;
        padding: 8px 12px;
    }

    /* Hero Section */
    .hero {
        padding: 80px 50px; /* Padding lebih besar */
        text-align: left;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }

    /* Statistik Section Grid (3 Kolom) */
    .statistik-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Produk Section Grid (2 atau 3 Kolom) */
    .produk-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Kontak Layout (Sisi-sisi) */
    .kontak-layout {
        display: flex;
        gap: 30px;
    }
    
    .kontak-layout .card {
        flex: 1; /* Agar kedua kolom sama lebar */
    }

}

/* ======================================= */
/* 4. Utility Classes (Opsional)           */
/* ======================================= */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}
