/*
Theme Name: SIHATI Kaltim Style
Author: SIHATI Team
Description: Tema portal biodiversitas terinspirasi dari SIHATI Kaltim.
Version: 4.0
*/

:root {
    --primary-green: #064e3b;
    --accent-green: #10b981;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
}

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header & Nav Base */
.header-site {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-green);
    text-decoration: none;
}

.nav-menu .menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 10px;
    display: block;
}

.nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    list-style: none;
    border: 1px solid #e2e8f0;
}

.nav-menu li:hover .dropdown-menu {
    display: block;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: #ffffff;
    padding: 50px 20px;
    text-align: center;
}
.hero-title { font-size: 2.2rem; margin-bottom: 12px; font-weight: 800; }
.hero-subtitle { font-size: 1rem; max-width: 700px; margin: 0 auto 20px; opacity: 0.9; }

/* Stats Grid */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: -30px auto 40px;
    padding: 0 20px;
}
.stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    text-align: center;
}
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary-green); }
.stat-label { font-size: 0.85rem; color: #64748b; font-weight: 600; }

.main-container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* Dynamic Species Cards */
.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.species-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.species-img { width: 100%; height: 180px; object-fit: cover; }
.species-body { padding: 16px; }

/* Footer Styling */
.site-footer {
    background-color: #043927;
    color: #e2e8f0;
    margin-top: 60px;
    border-top: 4px solid #10b981;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.footer-brand { color: #ffffff; font-size: 1.4rem; margin-top: 0; }
.footer-heading { color: #ffffff; margin-top: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-bottom { background-color: #022c1e; padding: 15px 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: #94a3b8; }

/* Hamburger Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

/* ==========================================
   CSS RESPANSIF KHUSUS HP (MAX-WIDTH: 900PX)
   ========================================== */
@media screen and (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .nav-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        border-bottom: 3px solid var(--accent-green);
    }

    .nav-menu.active {
        display: block !important;
    }

    .nav-menu .menu-list {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 10px 0 !important;
    }

    .nav-menu a {
        padding: 12px 20px !important;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-menu .dropdown-menu {
        position: static !important;
        display: block !important;
        box-shadow: none !important;
        border: none !important;
        background: #f8fafc;
        padding-left: 20px !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .stats-container {
        grid-template-columns: 1fr !important;
        margin-top: -15px;
    }
}