/* ============================================
   MOBILE FOOTER GRID - COMPACT SPACING
   Reduced margins and spacing for mobile view
   ============================================ */

@media (max-width: 767px) {
    
    /* Footer Grid Container - Reduced Margins */
    .footer-grid {
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 20px 15px !important; /* Reduced padding: 20px (was 40px) */
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        gap: 20px !important; /* Reduced gap: 20px (was 40px) */
        max-width: 100% !important;
    }
    
    /* Footer Columns - Reduced Spacing */
    .footer-col {
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 15px !important; /* Reduced from default */
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .footer-col:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Footer Column Headings - Reduced Spacing */
    .footer-col h3 {
        margin: 0 !important;
        margin-bottom: 12px !important; /* Reduced from 25px */
        padding: 0 !important;
        padding-bottom: 8px !important; /* Reduced from 15px */
        font-size: 16px !important; /* Slightly smaller for mobile */
    }
    
    /* Footer Paragraphs - Reduced Spacing */
    .footer-col p {
        margin: 0 !important;
        margin-bottom: 15px !important; /* Reduced spacing */
        padding: 0 !important;
        line-height: 1.6 !important;
    }
    
    /* Footer Links List - Reduced Spacing */
    .footer-links,
    .footer-col ul:not(.contact-list) {
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Footer List Items - Reduced Spacing */
    .footer-links li,
    .footer-col ul:not(.contact-list) li {
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Contact List - Reduced Spacing */
    .footer-col:last-child .contact-list,
    .contact-list {
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        gap: 12px !important; /* Reduced gap */
    }
    
    .contact-list li {
        margin: 0 !important;
        margin-bottom: 12px !important; /* Reduced from 15px */
        padding: 0 !important;
    }
    
    .contact-list li:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Reduce spacing after social icons in footer */
    .footer-col:last-child > div[style*="margin-top: 20px"],
    .footer-col:last-child > div[style*="border-top"] {
        margin-bottom: clamp(5px, 1.5vw, 10px) !important;
    }
    
    /* Reduce spacing before copyright section */
    .footer-grid + .copyright,
    footer > .copyright {
        margin-top: clamp(5px, 1.5vw, 10px) !important;
        padding-top: clamp(8px, 2vw, 12px) !important;
    }
}

/* ============================================
   VERY SMALL SCREENS (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
    .footer-grid {
        padding: 15px 12px !important; /* Further reduced padding */
        gap: 15px !important; /* Further reduced gap */
    }
    
    .footer-col {
        margin-bottom: 12px !important;
    }
    
    .footer-col h3 {
        margin-bottom: 10px !important;
        padding-bottom: 6px !important;
        font-size: 15px !important;
    }
    
    .footer-col p {
        margin-bottom: 12px !important;
    }
    
    .contact-list {
        gap: 10px !important;
    }
    
    .contact-list li {
        margin-bottom: 10px !important;
    }
    
    /* Further reduce spacing after social icons (small screens) */
    .footer-col:last-child > div[style*="margin-top: 20px"],
    .footer-col:last-child > div[style*="border-top"] {
        margin-bottom: clamp(3px, 1vw, 6px) !important;
    }
    
    /* Further reduce spacing before copyright (small screens) */
    .footer-grid + .copyright,
    footer > .copyright {
        margin-top: clamp(3px, 1vw, 6px) !important;
        padding-top: clamp(6px, 1.5vw, 10px) !important;
    }
}
