/**
 * Hardcoded Footer Styles
 * Matches the Astra Footer Builder output pixel-for-pixel.
 */

/* ============ ABOVE FOOTER ============ */
.site-above-footer-wrap {
    color: #ffffff;
}

.site-above-footer-wrap .ast-builder-grid-row-4-equal {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: flex-start;
}

/* Column 1: Logo */
.site-footer-above-section-1 {
    display: flex;
    align-items: flex-start;
}

.site-footer-above-section-1 .main-logo img {
    max-width: 180px;
    height: auto;
    display: block;
}

/* Column 4: App Downloads */
.site-footer-above-section-4 .app-heading {
    margin-bottom: 12px;
}

.site-footer-above-section-4 .app-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.site-footer-above-section-4 .app-icon img {
    width: 90px;
    height: auto;
    border-radius: 18px;
    display: block;
}

.site-footer-above-section-4 .app-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.site-footer-above-section-4 .app-buttons a {
    display: block;
    line-height: 0;
    position: relative;
    z-index: 2;
}

/* Override Astra's pointer-events:none on footer section links */
.site-footer-above-section-4.site-footer-section.site-footer-section-4 a {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.site-footer .site-footer-section a {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.site-footer-above-section-4 .app-buttons img {
    width: 140px;
    height: auto;
    display: block;
}

/* Columns 2 & 3: Widget Navigation */
.site-footer .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.4;
}

.site-footer .footer-widget-area ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .footer-widget-area ul.menu li {
    margin-bottom: 4px;
    padding: 0;
}

.site-footer .footer-widget-area ul.menu li a {
    color: #bcbcbc;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.site-footer .footer-widget-area ul.menu li a:hover {
    color: #ababab;
}

/* ============ BELOW FOOTER ============ */
.site-below-footer-wrap {
    color: #ffffff;
}

.site-below-footer-wrap .ast-builder-grid-row-2-rheavy {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
}

/* Social Icons */
.site-footer-below-section-1 {
    display: flex;
    align-items: center;
}

.ast-footer-social-1-wrap a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    transition: opacity 0.2s ease;
}

.ast-footer-social-1-wrap a:hover {
    opacity: 0.7;
}

.ahfb-svg-iconset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ahfb-svg-iconset svg {
    width: 24px;
    height: 24px;
}

/* Copyright / Legal links */
.site-footer-below-section-2 .footer-links a:hover {
    color: #ffffff !important;
}

/* ============ RESPONSIVE: Mobile (< 544px) ============ */
@media (max-width: 544px) {
    .site-above-footer-wrap .ast-builder-grid-row-4-equal {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .site-footer-above-section-1 {
        justify-content: center;
    }

    .site-footer-above-section-1 .main-logo img {
        margin: 0 auto;
    }

    .site-footer-above-section-4 .app-heading {
        text-align: center;
    }

    .site-footer-above-section-4 .app-section {
        justify-content: flex-start;
    }

}

/* ============ BELOW FOOTER RESPONSIVE (< 768px) ============ */
@media (max-width: 768px) {
    .site-below-footer-wrap .ast-builder-grid-row-2-rheavy {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ast-footer-social-1-wrap {
        justify-content: center !important;
    }

    .site-footer-below-section-1 {
        border-bottom: 2px solid #ffffff;
        padding-bottom: 12px;
    }

    .site-footer-below-section-2 .footer-links {
        flex-direction: column !important;
        gap: 8px !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

/* Copyright text must be white */
.site-footer-below-section-2 .footer-links span {
    color: #ffffff !important;
}
