/* NMCA Premium Footer Design System */
:root {
    --footer-bg-main: #000000;
    --footer-bg-dark: #131315;
    --footer-text-primary: #FFFFFF;
    --footer-text-secondary: #A1A1A6;
    --footer-text-tertiary: #6E6E73;
    --footer-divider: rgba(255, 255, 255, 0.08);
    --online-green: #00C951;
}

.site-footer-premium {
    font-family: 'Poppins', 'Inter', sans-serif;
    background: var(--footer-bg-main);
    color: var(--footer-text-primary);
    overflow: hidden;
}

/* 1. Footer Top Section */
.footer-top-section {
    padding: 3rem 0;
}

.footer-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-social-links {
    display: flex;
    gap: 1.25rem;
}

.footer-social-links a {
    color: var(--footer-text-tertiary);
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--footer-text-primary);
}

/* 2. Main Link Grid */
.footer-main-section {
    padding: 1rem 0 4rem;

}

.footer-link-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-link-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.footer-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--footer-text-primary);
    margin-bottom: 1.25rem;
}

.footer-label-active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.online-indicator {
    width: 6px;
    height: 6px;
    background: var(--online-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--online-green);
}

.footer-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-list a {
    color: var(--footer-text-tertiary);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s;
}

.footer-list a:hover {
    color: var(--footer-text-primary);
}

.footer-address p {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--footer-text-tertiary);
    margin-top: 0.5rem;
}

/* 3. Newsletter Section */
.footer-newsletter-section {
    background: var(--footer-bg-dark);
    padding: 4rem 0;
}

.newsletter-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.newsletter-info h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.newsletter-perks {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8125rem;
    color: var(--footer-text-secondary);
}

.footer-input {
    background: #1A1A1C;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    color: #FFF;
    width: 280px;
    margin-right: 1rem;
}

.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid #ffffff3e;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* 4. Disclaimer & Bottom Bar */
.footer-disclaimer {
    color: var(--footer-text-tertiary);
    font-size: 0.75rem;
    line-height: 1.8;
}

.footer-divider {
    height: 1px;
    background: var(--footer-divider);
    width: 100%;
    margin: 2rem auto;
}

.payment-apps-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.payment-group,
.crypto-group {
    display: flex;
    gap: 0.75rem;
}

.payment-group img,
.crypto-group img {
    height: 1.5rem;
    opacity: 0.8;
}

.pay-divider {
    width: 1px;
    height: 20px;
    background: var(--footer-divider);
}

.app-links {
    display: flex;
    gap: 1rem;
}

.app-links img {
    height: 2.5rem;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.bottom-legal-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    padding: 0;
}

.bottom-legal-links li,
.bottom-legal-links a {
    color: var(--footer-text-tertiary);
    font-size: 0.75rem;
    text-decoration: none;
}

.bottom-branding {
    font-size: 0.75rem;
    color: var(--footer-text-tertiary);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.region-selector {
    color: var(--footer-text-secondary);
}

/* ============================================================
   FOOTER — MOBILE RESPONSIVE FIXES
   All rules use max-width. Large-screen design is untouched.
   ============================================================ */

/* ---------- TOP SECTION (Logo + Social) ---------- */
@media (max-width: 767px) {
    .footer-top-section {
        padding: 2rem 0 1.5rem;
    }

    .footer-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
}

/* ---------- LINK GRID ---------- */
@media (max-width: 767px) {
    .footer-main-section {
        padding: 0.75rem 0 2.5rem;
    }

    .footer-link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }

    /* Address column spans full width on mobile */
    .footer-address-container {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }

    .footer-label,
    .footer-label-active {
        font-size: 0.8125rem;
        margin-bottom: 0.875rem;
    }

    .footer-list a {
        font-size: 0.75rem;
    }

    .footer-list {
        gap: 0.5rem;
    }
}

/* ---------- NEWSLETTER SECTION ---------- */
@media (max-width: 767px) {
    .footer-newsletter-section {
        padding: 2rem 0;
    }

    .newsletter-flex {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .newsletter-info h5 {
        font-size: 1.0625rem;
        margin-bottom: 0.5rem;
    }

    /* Perks: wrap into 2 per row */
    .newsletter-perks {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Newsletter form: stack vertically, full width */
    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
        width: 100%;
    }

    .footer-input {
        width: 100%;
        margin-right: 0;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }

    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* ---------- PAYMENT METHODS + APP LINKS ---------- */
@media (max-width: 767px) {
    .payment-apps-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .payment-methods {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    /* Payment and crypto icons: two rows, smaller size */
    .payment-group,
    .crypto-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .payment-group img,
    .crypto-group img {
        height: 1.25rem;
    }

    .pay-divider {
        display: none;
    }

    /* App store badges side by side, scaled */
    .app-links {
        gap: 0.75rem;
    }

    .app-links img {
        height: 2rem;
    }
}

@media (max-width: 480px) {

    .payment-group img,
    .crypto-group img {
        height: 1.125rem;
    }
}

/* ---------- BOTTOM BAR (legal links) ---------- */
@media (max-width: 767px) {
    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.875rem;
        padding: 1.25rem;
    }

    /* Legal links: wrap into a 3-per-row grid instead of single overflow row */
    .bottom-legal-links {
        display: grid;
        grid-template-columns: repeat(3, auto);
        gap: 0.5rem 1rem;
        padding: 0;
    }

    .bottom-legal-links li,
    .bottom-legal-links a {
        font-size: 0.6875rem;
    }

    .bottom-branding {
        font-size: 0.6875rem;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .bottom-legal-links {
        grid-template-columns: repeat(2, auto);
        gap: 0.5rem 0.875rem;
    }
}

/* ---------- DISCLAIMER ---------- */
@media (max-width: 767px) {
    .footer-disclaimer {
        font-size: 0.6875rem;
        line-height: 1.6;
    }
}

/* ---------- FOOTER DIVIDERS (tighter on mobile) ---------- */
@media (max-width: 767px) {
    .footer-divider {
        margin: 1.25rem auto;
    }
}

/* ---------- OVERFLOW GUARD ---------- */
.site-footer-premium {
    overflow-x: hidden;
}