/**
 * Footer layout — three fixed columns (logo / menu / socials) rendered by
 * template-parts/footer/columns.php, plus the bottom copyright bar.
 *
 * Divi's base CSS used to provide .container sizing and #footer-widgets flex
 * layout; those are replicated here so the standalone bonjour-nyc theme
 * renders the footer correctly without Divi. Loaded after bonjour-core.css
 * so it can override the legacy mobile rules that assumed a 4-column Divi
 * layout (e.g. hiding .footer-widget:last-child).
 */

/* Centered container for #footer-widgets and #footer-bottom. */
#main-footer .container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

/* Three columns, side-by-side, centered on the page. */
#footer-widgets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 54px 0;
}

#footer-widgets .footer-widget {
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
    margin: 0;
}

/* Column 1 — logo */
.footer-widget--logo .custom-logo-link {
    display: inline-block;
}

.footer-widget--logo img,
.footer-widget--logo .custom-logo {
    max-width: 220px;
    height: auto;
    display: inline-block;
}

.footer-widget--logo .footer-site-title {
    color: #fff;
    font-family: Oswald, Impact, Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    text-decoration: none;
}

/* Column 2 — footer menu */
.footer-widget--menu .footer-menu-container {
    display: block;
}

.footer-widget--menu .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-widget--menu .footer-menu a {
    color: var(--bonjour-secondary-color);
    font-family: Mulish, Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-widget--menu .footer-menu a:hover {
    color: var(--bonjour-tiercary-color);
}

/* Column 3 — social intro + icons */
.footer-widget--socials .footer-socials-title {
    color: #fff;
    font-family: Mulish, Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 1rem;
}

.footer-widget--socials .bonjour-socials {
    justify-content: flex-start;
}

/* Responsive — stack columns on tablet/mobile. Overrides the legacy
   bonjour-core.css rules that targeted a 4-column Divi layout (including
   `.footer-widget:last-child { display: none }` which would hide col 3). */
@media (max-width: 981px) {
    #footer-widgets {
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 24px;
    }

    #footer-widgets .footer-widget {
        flex: 0 0 auto;
        width: 100%;
        display: block;
    }

    #footer-widgets .footer-widget:last-child {
        display: block;
    }
}
