/**
 * A2Z Elementor Footer Styles
 * Responsive footer design matching specifications
 */

/* Base Styles */
#contact-section,
.a2z-footer-wrapper {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #111111 !important;
}

/* Base grid layout - flexible columns */
.a2z-footer-main {
    display: grid !important;
    grid-template-columns: minmax(0, 5fr) repeat(4, minmax(0, 2fr)) !important;
    gap: 24px !important;
    box-sizing: border-box !important;
}

/* Flexible gap instead of fixed margin */
.a2z-brand-section {
    margin-right: 0 !important;
}

/* Hide mobile sections on desktop */
.a2z-mobile-find-us,
.a2z-mobile-whatsapp {
    display: none !important;
}

/* Link hover and focus styles */
#contact-section a,
.a2z-footer-wrapper a {
    text-decoration: none;
    transition: all 150ms ease-out;
}

#contact-section a:hover,
.a2z-footer-wrapper a:hover {
    color: #FFFFFF !important;
    text-decoration: underline;
}

#contact-section a:focus,
.a2z-footer-wrapper a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}

/* Social icons hover */
#contact-section .a2z-social-icons a:hover,
.a2z-footer-wrapper .a2z-social-icons a:hover {
    opacity: 0.8;
}

/* Desktop Layout (1025px and up) - 5 columns side-by-side */
@media (min-width: 1025px) {
    .a2z-footer-main {
        display: grid !important;
        grid-template-columns: minmax(0, 5fr) repeat(4, minmax(0, 2fr)) !important;
        gap: 24px !important;
    }

    /* Responsive gap */
    .a2z-brand-section {
        margin-right: 0 !important;
    }

    /* Logo vertical centering */
    .a2z-brand-section {
        align-items: center !important;
    }

    .a2z-logo {
        align-self: center !important;
    }

    .a2z-logo img {
        width: 140px !important;
        height: 140px !important;
    }

    .a2z-social-section {
        align-items: flex-start !important;
    }

    .a2z-social-icons {
        justify-content: flex-start !important;
    }
}

/* Tablet Layout (768px to 1024px) - 2 rows with 5 columns */
@media (min-width: 768px) and (max-width: 1024px) {
    .a2z-footer-main {
        display: grid !important;
        grid-template-columns: repeat(10, 1fr) !important;
        grid-template-rows: auto auto !important;
        gap: 24px 20px !important;
    }

    /* Top Row: Brand (left) + Portfolio (right) */
    .a2z-brand-section {
        grid-column: 1 / 5 !important;
        grid-row: 1 !important;
    }

    .a2z-portfolio-section {
        grid-column: 5 / 11 !important;
        grid-row: 1 !important;
    }

    /* Bottom Row: Capabilities + About Us + Find Us On */
    .a2z-capabilities-section {
        grid-column: 1 / 4 !important;
        grid-row: 2 !important;
    }

    .a2z-about-us-section {
        grid-column: 4 / 7 !important;
        grid-row: 2 !important;
    }

    .a2z-social-section {
        grid-column: 7 / 11 !important;
        grid-row: 2 !important;
        align-items: center !important;
    }

    .a2z-social-icons {
        justify-content: center !important;
    }

    .a2z-logo img {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Mobile Layout (767px and below) - Brand full width, then 2 columns */
@media (max-width: 767px) {
    .a2z-footer-wrapper {
        padding: 40px 16px 32px !important;
    }

    .a2z-footer-main {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 24px !important;
    }

    /* Brand section - full width row at top */
    .a2z-brand-section {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        align-items: center !important;
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        width: 100% !important;
    }

    .a2z-logo img {
        width: 64px !important;
        height: 96px !important;
    }

    /* Hide Capabilities and main Social sections on mobile */
    .a2z-capabilities-section,
    .a2z-social-section {
        display: none !important;
    }

    /* Portfolio and About Us in 2 columns on row 2 */
    .a2z-portfolio-section {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .a2z-about-us-section {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    /* Show mobile sections only on mobile */
    .a2z-mobile-find-us,
    .a2z-mobile-whatsapp {
        display: block !important;
    }

    /* Portfolio links in single column on mobile */
    .a2z-portfolio-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Mobile social icons */
    .a2z-mobile-social-icons {
        display: flex !important;
        gap: 12px !important;
        align-items: center !important;
    }
}

/* Brand section typography */
.a2z-brand-content h2 {
    font-family: Inter, sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 26px !important;
    color: #FFFFFF !important;
    letter-spacing: 0.02em !important;
}

.a2z-brand-content p {
    font-family: Inter, sans-serif !important;
    font-size: 14px !important;
    line-height: 22px !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

.a2z-contact-list {
    font-family: Inter, sans-serif !important;
    font-size: 14px !important;
    line-height: 22px !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

/* Section headers */
.a2z-portfolio-section h3,
.a2z-capabilities-section h3,
.a2z-about-us-section h3,
.a2z-social-section h3 {
    font-family: Inter, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    color: #FFFFFF !important;
}

/* Links styling */
.a2z-portfolio-links a,
.a2z-capabilities-links a,
.a2z-about-us-links a {
    font-family: Inter, sans-serif !important;
    font-size: 14px !important;
    line-height: 22px !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

/* WhatsApp link */
.a2z-whatsapp-link {
    font-family: Inter, sans-serif !important;
    font-size: 14px !important;
    line-height: 22px !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

/* Copyright text */
.a2z-sub-footer p {
    font-family: Inter, sans-serif !important;
    font-size: 13px !important;
    line-height: 20px !important;
    color: rgba(255, 255, 255, 0.65) !important;
}

.a2z-sub-footer a {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Ensure proper container width */
.a2z-footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}