/**
 * Media Queries for Footer
 * Fixes fixed margin percentages and layout issues
 * Breakpoints: 320px, 480px, 768px, 1024px
 */

/* ============================================
   TABLET & BELOW (768px and down)
   ============================================ */
@media (max-width: 768px) {
    /* Fix fixed margin percentages */
    footer {
        margin-left: 5% !important;
        margin-right: 5% !important;
        padding: 1.5rem 1rem;
        flex-direction: column;
        text-align: center;
    }

    /* Footer container */
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    /* Footer sections */
    .footer-section {
        width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }

    /* Footer links */
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .footer-link {
        display: block;
        padding: 0.5rem 0;
    }

    /* Footer social icons */
    .footer-social {
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .footer-social a {
        font-size: 1.5rem;
    }

    /* Footer copyright */
    .footer-copyright {
        margin-top: 1.5rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
    }

    /* Footer logo */
    .footer-logo {
        margin: 0 auto 1rem;
        max-width: 150px;
    }

    /* Footer text */
    .footer-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Footer nav */
    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-nav-item {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   MOBILE (480px and down)
   ============================================ */
@media (max-width: 480px) {
    footer {
        margin-left: 2% !important;
        margin-right: 2% !important;
        padding: 1rem 0.5rem;
    }

    .footer-section {
        margin-bottom: 0.75rem;
    }

    .footer-text {
        font-size: 0.85rem;
    }

    .footer-social a {
        font-size: 1.25rem;
    }

    .footer-link {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    .footer-logo {
        max-width: 120px;
    }
}

/* ============================================
   VERY SMALL PHONES (320px and down)
   ============================================ */
@media (max-width: 320px) {
    footer {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0.75rem 0.5rem;
    }

    .footer-text {
        font-size: 0.8rem;
    }

    .footer-social a {
        font-size: 1.1rem;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    .footer-logo {
        max-width: 100px;
    }
}

/* ============================================
   DESKTOP OPTIMIZATION (1024px and up)
   ============================================ */
@media (min-width: 1024px) {
    footer {
        margin-left: 8.5%;
        margin-right: 11.5%;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-section {
        flex: 1;
        text-align: left;
    }

    .footer-links {
        flex-direction: row;
        gap: 1.5rem;
    }
}
