/* ==========================================================================
   Educational Snacks – compact footer (2026-11-24)
   Loaded automatically by Helix Ultimate from templates/shaper_helixultimate/css/custom.css
   ========================================================================== */

/* Footer section: footer2 (card + badges) on top, copyright row underneath */
#sp-footer { padding: 40px 0 24px; }
#sp-footer #sp-footer1,
#sp-footer #sp-footer2 { flex: 0 0 100%; max-width: 100%; }
#sp-footer #sp-footer2 { order: 1; }
#sp-footer #sp-footer1 { order: 2; margin-top: 24px; }
#sp-footer #sp-footer1 .sp-column { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
#sp-footer .sp-copyright { font-size: 14px; line-height: 1.5; }
#sp-footer #sp-footer2 .sppb-row-container,
#sp-footer #sp-footer2 .sppb-section { padding: 0 !important; margin: 0 !important; }

/* The white card: logo | address | contact | social */
#sp-footer #footer-card {
    float: none;
    max-width: none;
    width: 100%;
    background: #fff;
    color: #000;
    border-radius: 24px;
    padding: 28px 40px;
    display: grid;
    grid-template-columns: 220px 1fr 1.2fr auto;
    grid-template-areas:
        "logo title   phone social"
        "logo address phone social";
    column-gap: 48px;
    align-items: center;
}
#sp-footer #footer-card .logo { grid-area: logo; display: block; }
#sp-footer #footer-card .logo img { width: 100%; height: auto; display: block; }
#sp-footer #footer-card ul { list-style: none; margin: 0; padding: 0; font-size: 17px; line-height: 1.45; text-align: left; }
#sp-footer #footer-card ul.address-title { grid-area: title; margin: 0; align-self: end; }
#sp-footer #footer-card ul.address { grid-area: address; align-self: start; }
#sp-footer #footer-card ul.phone { grid-area: phone; }
#sp-footer #footer-card ul.social { grid-area: social; display: flex; gap: 12px; }

/* Social icons: Joomla 5 ships Font Awesome 6, not 5 */
#sp-footer #footer-card ul.social a {
    width: 44px; height: 44px; margin: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; font-size: 20px;
}
#sp-footer #footer-card ul.social a:before { font-family: "Font Awesome 6 Brands" !important; font-weight: 400 !important; }
#sp-footer #footer-card ul.social a.fa.fa-twitter:before { font-family: inherit !important; content: "𝕏"; font-size: 22px; }
#sp-footer #footer-card ul.social a:hover { opacity: .85; }

/* Badges row under the card */
#sp-footer2 .es-footer-badges .sppb-row { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; margin: 0; }
#sp-footer2 .es-footer-badges .sppb-row > div { flex: 0 0 auto; width: auto; max-width: none; padding: 0; }
#sp-footer2 .es-footer-badges .sppb-column-addons { display: flex; align-items: center; gap: 40px; }
#sp-footer2 .es-footer-badges .sppb-addon-wrapper,
#sp-footer2 .es-footer-badges .sppb-addon-image-wrapper { margin: 0 !important; }
#sp-footer2 .es-footer-badges img { max-height: 80px; width: auto; }
#sp-footer2 .es-footer-badges .sppb-row:not(:empty) { padding-top: 28px; }
#sp-footer2 .es-footer-badges .sppb-row:empty { display: none; }

/* Copyright: drop the broken BBB seal (1x1 image) and the blank lines after it */
#sp-footer .sp-copyright a[href*="bbb.org"],
#sp-footer .sp-copyright a br { display: none; }

/* Tablet: two columns */
@media (max-width: 1199.98px) {
    #sp-footer #footer-card {
        grid-template-columns: 200px 1fr;
        grid-template-areas:
            "logo title"
            "logo address"
            "logo phone"
            "logo social";
        row-gap: 10px;
    }
    #sp-footer #footer-card ul.phone, #sp-footer #footer-card ul.social { margin-top: 6px; }
}

/* Phone: one centred column */
@media (max-width: 767.98px) {
    #sp-footer { padding: 28px 0 20px; }
    #sp-footer #footer-card {
        padding: 24px;
        grid-template-columns: 1fr;
        grid-template-areas: "logo" "title" "address" "phone" "social";
        justify-items: center;
        text-align: center;
    }
    #sp-footer #footer-card .logo { max-width: 220px; margin-bottom: 12px; }
    #sp-footer #footer-card ul { text-align: center; font-size: 16px; }
    #sp-footer #footer-card ul.social { justify-content: center; margin-top: 12px; }
    #sp-footer2 .es-footer-badges .sppb-row,
    #sp-footer2 .es-footer-badges .sppb-column-addons { gap: 24px; }
    #sp-footer2 .es-footer-badges img { max-height: 60px; }
    #sp-footer #sp-footer1 .sp-column { justify-content: center; text-align: center; }
}
