/**
 * footer.css - V 4.1.0 (Color Locked & Isolated)
 */

/* --- 1. Root Footer Structure --- */
#custom-site-footer {
    width: 100%;
    /* یہاں ہم نے براہ راست رنگ کو لاک کر دیا ہے تاکہ ہیڈر متاثر نہ ہو */
    background-color: #064e3b !important; 
    color: #ffffff !important;
    padding: 40px 0 20px;
    margin-top: 40px;
    direction: rtl;
    font-family: 'Mehr', sans-serif;
    position: relative;
    contain: layout style; 
    border: none !important;
    min-height: 200px; 
    transition: background-color 0.3s ease; 
}

/* --- Mobile View (1024px) --- */
@media (max-width: 1024px) {
    #custom-site-footer { 
        margin: 1.5rem 12px 10px; 
        padding: 2rem 15px 20px; 
        border-radius: 2rem;
        width: auto;
    }
}

/* --- 2. Dark Mode Fix (Specificity Optimized) --- */
/* صرف فوٹر کو ڈارک موڈ میں تبدیل کرے گا */
.dark-mode #custom-site-footer,
.dark #custom-site-footer,
body.dark-mode #custom-site-footer {
    background-color: #1e293b !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}

/* --- 3. Navigation Links (Menu Locked) --- */
#custom-site-footer .nav-group a { 
    color: #ffffff !important; /* مینو لنکس ہمیشہ سفید رہیں گے */
    font-size: 16px; 
    opacity: 0.9 !important; 
    transition: opacity 0.2s ease;
    text-decoration: none;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

#custom-site-footer .nav-group a:hover { 
    opacity: 1 !important; 
    border-color: rgba(255,255,255,0.5) !important; 
}

/* --- 4. Content & Typography --- */
#custom-site-footer .footer-logo { 
    font-size: 28px; 
    font-weight: 800; 
    margin-bottom: 5px; 
    color: #ffffff !important; 
    line-height: 1.1;
}

#custom-site-footer .footer-tagline { 
    font-size: 14px; 
    opacity: 0.95 !important; 
    margin: 0; 
    color: #ffffff !important;
}

/* باقی گریڈ اور سوشل میڈیا کے اسٹائلز وہی رہیں گے */
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

#custom-site-footer .footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Social Icons (Keeping your original logic) */
.footer-social, .social-pills {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.social-pill {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateZ(0); 
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.social-pill.whatsapp { background-color: #25D366; }
.social-pill.facebook { background-color: #1877F2; }
.social-pill.instagram { background-color: #E4405F; }
.social-pill.youtube { background-color: #FF0000; }
.social-pill.x-twitter { background-color: #000000; }

.footer-social svg { width: 22px; height: 22px; fill: #ffffff; pointer-events: none; }
.social-pill:hover { transform: translateY(-4px); }

@media (max-width: 768px) {
    #custom-site-footer { 
        padding: 2.5rem 15px 90px; 
        margin-bottom: 10px;
    }
    #custom-site-footer .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .nav-group { flex-wrap: wrap; gap: 10px 20px; }
}