/* ==========================================================================
   SITE FOOTER (Dark Mode - Stabil & Rapi)
   ========================================================================== */

/* --- Border Top Gradient --- */
.footer-border-top {
    height: 4px;
    background: linear-gradient(90deg, #1e88e5 0%, #0d47a1 50%, #1e88e5 100%);
}

/* --- Footer Wrapper --- */
.site-footer {
    background: #111111; /* Background Gelap */
    margin-top: 40px;
    width: 100%;
}

.footer-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* --- Grid Layout: Brand + 4 Menu Columns --- */
.footer-grid {
    display: grid;
    grid-template-columns: 220px repeat(4, 1fr);
    gap: 30px;
    align-items: flex-start;
}

/* ==========================================================================
   BRAND COLUMN (Kiri)
   ========================================================================== */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 160px;
    height: auto;
    display: block;
}

.footer-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #ffffff; /* Putih agar terbaca di background gelap */
    text-decoration: none;
    display: inline-block;
}

.footer-logo-com {
    color: #e55225;
    font-weight: 700;
}

.footer-logo-text:hover {
    color: #ff4d4d; /* Merah lebih terang untuk kontras di mode gelap */
}

/* Network label */
.footer-network {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    color: #999999; /* Abu-abu terang */
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.footer-network-name {
    color: #4da3ff; /* Biru lebih terang agar kontras di background gelap */
    font-weight: 600;
}

/* --- Social Media --- */
.footer-social {
    margin-bottom: 24px;
}

.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social-icons li {
    display: inline-flex;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

/* Brand Colors (Tetap sama karena sudah kontras) */
.social-whatsapp  { background: #25D366; }
.social-facebook  { background: #1877F2; }
.social-x         { background: #333333; } /* Diubah sedikit agar tidak menyatu total dengan bg */
.social-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-linkedin  { background: #0A66C2; }
.social-youtube   { background: #FF0000; }
.social-tiktok    { background: #333333; }

/* --- App Download (Desktop: Hidden) --- */
.footer-app-download {
    display: none;
    margin-bottom: 24px;
}

.footer-app-label {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff; /* Putih */
    margin-bottom: 12px;
}

.footer-app-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000000;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 10px;
    line-height: 1.2;
    transition: transform 0.2s ease, background 0.2s ease;
    border: 1px solid #333333; /* Border halus agar terlihat di bg gelap */
}

.app-badge:hover {
    transform: translateY(-2px);
    background: #222222; /* Lebih terang dari hitam agar terlihat hover-nya */
    color: #ffffff;
}

.app-badge i {
    font-size: 20px;
}

.app-badge strong {
    font-size: 12px;
    font-weight: 700;
}

/* --- Copyright --- */
.footer-copyright {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    color: #888888; /* Abu-abu terang */
    line-height: 1.6;
    text-align: center;
    margin-bottom: 24px;
}

.footer-copyright p {
    margin: 0;
}

/* ==========================================================================
   MENU COLUMNS (Base Desktop)
   ========================================================================== */
.footer-menu-group {
    display: flex;
    flex-direction: column;
}

.footer-menu-group-title {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff; /* Putih */
    margin: 0 0 14px 0;
    line-height: 1.2;
}

/* Default: List bersusun 1 kolom ke bawah */
.footer-menu-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu-group-list li {
    line-height: 1;
}

.footer-menu-group-list a {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #b0b0b0; /* Abu-abu terang agar nyaman dibaca */
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-menu-group-list a:hover {
    color: #ff3333; /* Merah terang agar kontras dan terlihat jelas saat hover di mode gelap */
}

/* KHUSUS KATEGORI: Grid 2 Kolom di Desktop */
.footer-menu-group--grid-2 .footer-menu-group-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

/* ==========================================================================
   RESPONSIVE: TABLET (768px - 999px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 999px) {
    .footer-wrapper {
        padding: 30px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        align-items: flex-start;
        text-align: left;
        padding-bottom: 20px;
        border-bottom: 1px solid #333333; /* Border gelap */
        margin-bottom: 8px;
    }

    .footer-network {
        justify-content: flex-start;
    }

    .footer-social-icons {
        justify-content: flex-start;
    }

    .footer-copyright {
        text-align: left;
    }
}
/* ==========================================================================
   RESPONSIVE: MOBILE (max-width: 767px)
   Murni CSS Only (HTML Tidak Berubah, Desktop Aman)
   ========================================================================== */
@media (max-width: 767px) {
    .footer-wrapper {
        padding: 30px 16px 24px;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        align-items: center; /* Penting: Mengatur semua anak agar rata tengah */
        gap: 0;
    }

    /* TRICK: Melebur .footer-brand agar anak-anaknya bisa di-order bersama Menu */
    .footer-brand {
        display: contents; 
    }

    /* === ATURAN ORDER (Urutan dari Atas ke Bawah) === */
    
    /* 1. Logo */
    .footer-logo {
        order: 1;
        margin-bottom: 8px;
    }
    .footer-logo img { max-width: 200px; }
    .footer-logo-text { font-size: 32px; }

    /* 2. Menu Informasi (Tepat di bawah Logo) */
    .footer-menu-group--mobile-only {
        order: 2;
        padding: 16px 0;
        width: 100%;
    }
    .footer-menu-group--mobile-only .footer-menu-group-title { display: none; }
    .footer-menu-group--mobile-only .footer-menu-group-list {
        display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0;
    }
    .footer-menu-group--mobile-only .footer-menu-group-list li { display: inline; }
    .footer-menu-group--mobile-only .footer-menu-group-list li:not(:last-child)::after {
        content: ' · '; color: #555555; margin: 0 4px; white-space: nowrap;
    }
    .footer-menu-group--mobile-only .footer-menu-group-list a {
        font-size: 13px; color: #cccccc; padding: 2px 0;
    }
    .footer-menu-group--mobile-only .footer-menu-group-list a:hover { color: #ff3333; }

    /* 3. Network Label */
    .footer-network {
        order: 3;
        font-size: 12px;
        margin-top: 4px;
    }

    /* 4. Social Icons */
    .footer-social {
        order: 4;
        margin: 20px 0;
    }
    .footer-social-icons { gap: 12px; }
    .social-icon { width: 40px; height: 40px; font-size: 18px; }

    /* 5. App Download */
    .footer-app-download {
        order: 5;
        display: block;
        margin: 20px 0;
    }
    .footer-app-label { font-size: 13px; margin-bottom: 12px; }
    .footer-app-badges { gap: 10px; }
    .app-badge { padding: 10px 16px; }

    /* 6. Copyright (Paling Bawah) */
    .footer-copyright {
        order: 6;
        margin: 20px 0 0;
        padding-top: 20px;
        border-top: 1px solid #333333;
        font-size: 12px;
    }

    /* Sembunyikan kolom desktop-only */
    .footer-menu-group--desktop-only {
        display: none !important;
    }
}