/* --- Modern Footer Redesign --- */

.site-footer {
    background: #111 !important;
    color: #eee !important;
    padding-top: 60px !important;
    padding-bottom: 20px !important;
    font-family: 'Inter', sans-serif;
}

/* Footer Widgets Titles */
.site-footer .widget-title,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
    font-family: 'Playfair Display', serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 25px !important;
    position: relative;
    padding-bottom: 10px;
}

.site-footer .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #8A9A5B;
    /* Accent color */
}

/* Footer Links */
.site-footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 15px !important;
    display: inline-block;
}

.site-footer a:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

/* Social Icons Modernization */
.site-footer .ast-footer-social-1-wrap .footer-social-inner-wrap,
.site-footer .footer-social-inner-wrap,
.footer-widget-area .ast-builder-social-element {
    display: flex !important;
    flex-direction: row !important;
    /* Force horizontal */
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    margin-top: 25px !important;
}

.site-footer .ast-builder-social-element .ast-social-color-type-custom {
    margin: 0 !important;
    display: flex !important;
}

.site-footer .ast-builder-social-element a {
    background: rgba(255, 255, 255, 0.05) !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.site-footer .ast-builder-social-element a:hover {
    background: #8A9A5B !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    border-color: transparent !important;
}

.site-footer .ast-builder-social-element a i,
.site-footer .ast-builder-social-element a svg {
    font-size: 18px !important;
}

/* Copyright Section */
.site-primary-footer-wrap {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 40px !important;
}

.site-below-footer-wrap {
    background: transparent !important;
    padding: 30px 0 !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.site-below-footer-wrap a {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Logo Fixes */
.site-footer .footer-widget-area[data-section="section-fb-html-1"] img {
    max-width: 200px !important;
    height: auto !important;
    margin-bottom: 20px !important;
}

/* Spacing and Layout */
.ast-builder-grid-row {
    display: flex !important;
    gap: 40px !important;
}

@media (max-width: 921px) {
    .site-footer {
        text-align: center !important;
        padding-top: 40px !important;
    }

    /* Force all grid containers to stack vertically */
    .site-footer .ast-builder-grid-row,
    .site-footer .site-primary-footer-inner-wrap,
    .site-footer .ast-builder-footer-grid-columns,
    .site-footer .footer-widget-area {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 30px !important;
        overflow: hidden !important;
    }

    /* Ensure all direct children are full width and centered */
    .site-footer .ast-builder-grid-row>div,
    .site-footer .ast-builder-footer-grid-columns>div,
    .site-footer .site-footer-section,
    .site-footer .footer-widget-area>div,
    .site-footer .widget-area {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-bottom: 20px !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Fix social icon alignment on mobile */
    .site-footer .ast-footer-social-1-wrap .footer-social-inner-wrap,
    .site-footer .footer-social-inner-wrap,
    .footer-widget-area .ast-builder-social-element {
        justify-content: center !important;
        margin-top: 15px !important;
    }

    .site-footer .widget-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .site-footer a:hover {
        transform: none !important;
    }

    /* Logo scaling on mobile */
    .site-footer img {
        max-width: 180px !important;
        height: auto !important;
        margin: 0 auto 15px !important;
    }
}