/* 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.8rem;
    opacity: 1;
}

.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;
}




/* ---------- FLOATING WHATSAPP BUTTON ---------- */
.whatsapp-float-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
}

.whatsapp-float {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

/* Pulsing background ripple effect */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    /* animation: whatsapp-pulse 2s infinite; */
    opacity: 0.6;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Hover effects */
.whatsapp-float:hover {
    background: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: scale(1.08);
}

.whatsapp-float:hover svg {
    transform: rotate(8deg);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Tooltip style */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #131315;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Poppins', 'Inter', sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #131315;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Online indicator inside tooltip */
.whatsapp-online-dot {
    width: 8px;
    height: 8px;
    background-color: #00C951;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #00C951;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .whatsapp-float-container {
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    /* Disable tooltip on mobile to avoid screen crowding */
    .whatsapp-tooltip {
        display: none !important;
    }
}