/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --primary: #2D6A4F;
    --primary-hover: #1B4332;
    --secondary: #52B788;
    --secondary-light: #D8F3DC;
    --light-bg: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-color: #212529;
    --text-muted: #6C757D;
    --border-color: #E9ECEF;
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: #FFF;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* ==========================================================================
   2. HELPER UTILITIES
   ========================================================================== */
.margin-auto, .mx-auto { margin-left: auto; margin-right: auto; }
.p-4 { padding: 2rem !important; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.align-center { align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.py-4 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1.5rem; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.grid-full { grid-column: 1 / -1; }

/* ==========================================================================
   3. NAVBAR 
   ========================================================================== */
.navbar-sticky {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    z-index: 1000;
    padding: 0.875rem 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}


.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary, #2D6A4F);
}

.brand-icon { 
    width: 32px; 
    height: 32px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-title { 
    font-size: 1.25rem; 
    font-weight: 700; 
    display: block; 
    line-height: 1.1; 
}

.brand-sub { 
    font-size: 0.75rem; 
    color: var(--text-muted, #6b7280); 
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-color, #374151);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active { 
    color: var(--primary, #2D6A4F); 
    font-weight: 700; 
}


.menu-toggle { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--primary, #2D6A4F);
    padding: 0.25rem;
}

.menu-toggle svg,
.menu-toggle i {
    width: 28px;
    height: 28px;
}


@media (max-width: 768px) {
    /* Tampilkan tombol hamburger di HP */
    .menu-toggle { 
        display: block !important; 
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.875rem);
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
        gap: 0.75rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }

    .nav-links.active,
    .nav-links.is-active {
        display: flex !important;
    }

    .nav-item {
        padding: 0.625rem 0;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-links .btn {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, #E8F5E9 0%, #FFFFFF 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.75rem;
    color: var(--primary);
    margin: 0.5rem 0 1rem;
    line-height: 1.25;
    font-weight: 700;
}

.subheadline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-box {
    background: #FFF;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    text-align: center;
}

.hero-box-icon {
    width: 64px;
    height: 64px;
    background-color: var(--secondary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.hero-box-icon i { width: 32px; height: 32px; }

.hero-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ==========================================================================
   5. BUTTONS, BADGES & ICONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.btn-lg { padding: 0.875rem 1.75rem; font-size: 1.05rem; }
.btn-primary { background-color: var(--primary); color: #FFF; border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); }
.btn-secondary { background-color: var(--secondary); color: #FFF; }
.btn-secondary:hover { background-color: #40916C; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background-color: var(--primary); color: #FFF; }

/* Perbaikan agar tombol full width tetap mempertahankan format flex */
.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background-color: var(--secondary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-hero { background-color: #E8F5E9; color: var(--primary); border: 1px solid #C8E6C9; }

.badge-icon-circle {
    width: 56px;
    height: 56px;
    background-color: var(--secondary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon-circle i, .badge-icon-circle svg {
    width: 28px;
    height: 28px;
}

/* ==========================================================================
   6. SECTIONS & GRID
   ========================================================================== */
.section { padding: 4.5rem 0; }
.bg-light { background-color: var(--light-bg); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.lead-text { font-size: 1.2rem; color: var(--primary); line-height: 1.6; }

.feature-card {
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: var(--secondary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.feature-icon i { width: 24px; height: 24px; }

/* ==========================================================================
   7. PRODUCTS
   ========================================================================== */

/* BREADCRUMB & TITLE */
.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-title {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* FILTER BAR PRODUK */
.product-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background-color: var(--light-bg);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.filter-label {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.btn-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: #F8FAF6;
}

.btn-filter.active {
    background-color: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* KARTU PRODUK (PRODUCT CARD) */
.product-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* GAMBAR PRODUK */
.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 210px;
    background-color: #EFEFEF;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.04);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    letter-spacing: 0.3px;
}

/* ISI KARTU PRODUK */
.product-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.product-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.product-meta svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
    width: 100%;
    box-sizing: border-box;
    background-color: #112A1D;
    color: #FFFFFF;
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
    clear: both;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1.5fr; 
    gap: 2.5rem; 
    margin-bottom: 2rem; 
    width: 100%;
    box-sizing: border-box;
}

.footer-brand { 
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #FFFFFF; 
    margin-bottom: 1rem; 
}

.footer-brand .brand-icon {
    width: 28px;
    height: 28px;
    color: var(--secondary, #52B788);
}

.footer-brand .brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
}

.footer-about .tagline {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-about .address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-about .address svg,
.footer-about .address i {
    width: 18px;
    height: 18px;
    color: var(--secondary, #52B788);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.footer-nav h4, 
.footer-program h4 { 
    color: #FFFFFF; 
    margin-bottom: 1rem; 
    font-size: 1.1rem; 
    font-weight: 600;
}

/* Links Navigasi */
.footer-nav ul { 
    list-style: none; 
    padding: 0; 
    margin: 0;
}

.footer-nav ul li { 
    margin-bottom: 0.5rem; 
}

.footer-nav ul li a { 
    color: rgba(255, 255, 255, 0.8); 
    text-decoration: none; 
    font-size: 0.95rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-nav ul li a:hover { 
    color: var(--secondary, #52B788); 
    padding-left: 0.25rem;
}

.footer-program p { 
    color: rgba(255, 255, 255, 0.8); 
    font-size: 0.95rem; 
    margin-bottom: 0.35rem; 
    line-height: 1.4;
}

.footer-bottom { 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    padding-top: 1.5rem; 
    font-size: 0.85rem; 
    color: rgba(255, 255, 255, 0.6); 
}

/* Penyesuaian Responsif Layar Handphone & Tablet */
@media (max-width: 768px) {
    .site-footer {
        padding: 2.5rem 0 1.25rem;
        margin-top: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 1.5rem;
    }
}

/* ==========================================================================
   9. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
    .hero-grid, .qr-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .link-more {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    
    
    .product-filter-bar { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 0.75rem;
    }
    
    .filter-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    .btn-filter {
        flex: 1 1 calc(50% - 0.5rem);
        text-align: center;
    }
}

/* ==========================================
   10. STYLE LINK MORE / LIHAT SEMUA FORMULASI
   ========================================== */
.link-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #198754; 
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}

.link-more:visited,
.link-more:active,
.link-more:focus {
    color: #198754;
    text-decoration: none;
}

.link-more:hover {
    color: #146c43;
    text-decoration: underline;
}

.link-more:hover [data-lucide="arrow-right"],
.link-more:hover svg {
    transform: translateX(4px);
    transition: transform 0.25s ease-in-out;
}

.link-more [data-lucide="arrow-right"],
.link-more svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease-in-out;
}
/* ===== FAQ ACCORDION ===== */
.faq-item {
    background-color: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius, 12px);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    margin-left: auto;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item .faq-answer {
    padding: 0 1.5rem 1.25rem 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-item summary .icon-lg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}