/**
 * Footer CSS - Core Blocks
 * 
 * Simplified footer styling that works with WordPress core blocks.
 * Maintains visual design from original theme.
 * 
 * Features:
 * - Responsive column layout
 * - Social media links with icons
 * - Partners/sponsors section
 * - Newsletter section
 * - Footer navigation menu
 * - Mission statement and disclaimer
 * 
 * Compatible with: WordPress 6.0+ core blocks (Group, Columns, Social Links, etc.)
 */

/* ========================================
   FOOTER CONTAINER
   ======================================== */

.theme-footer,
.wp-block-group.is-layout-constrained.footer-group {
    font-size: .85rem;
    line-height: 1.15rem;
}

.theme-footer li,
.theme-footer p {
    font-size: .85rem;
    line-height: 1.15rem;
}

.theme-footer > .theme-container,
.theme-footer .wp-block-group__inner-container {
    flex-direction: column;
}


/* ========================================
   FOOTER COLUMNS LAYOUT
   ======================================== */

.footer-columns-container,
.wp-block-columns.footer-columns {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

@media screen and (min-width:991px) {
    .footer-columns-container,
    .wp-block-columns.footer-columns {
        flex-direction: row;
    }
}

/* Individual column */
.footer-column,
.wp-block-column.footer-column {
    flex: 1 1 auto;
    min-width: 1px;
}

.footer-column + .footer-column,
.wp-block-column.footer-column + .wp-block-column.footer-column {
    margin-top: 48px;
}

@media screen and (min-width:991px) {
    .footer-column + .footer-column,
    .wp-block-column.footer-column + .wp-block-column.footer-column {
        margin-left: 48px;
        margin-top: 0;
    }

    .footer-column:first-of-type,
    .wp-block-column.footer-column:first-of-type {
        max-width: 45%;
    }

    .footer-column:last-of-type,
    .wp-block-column.footer-column:last-of-type {
        max-width: calc(55% - 48px);
    }
}

/* Footer headings */
.footer-column h6,
.wp-block-column.footer-column h6 {
    text-transform: uppercase;
    font-size: inherit;
}

/* Logo in footer */
.footer-columns-container .theme-logo,
.footer-columns-container .wp-block-site-logo {
    width: 15rem;
}


/* ========================================
   SOCIAL MEDIA LINKS
   ======================================== */

.footer-social {
    margin: 1rem 0;
}

/* Core Social Links block */
.wp-block-social-links.footer-social-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}

.wp-block-social-links.footer-social-links .wp-block-social-link {
    margin: 0;
}

.wp-block-social-links.footer-social-links .wp-block-social-link a {
    align-items: center;
    display: flex;
    flex-flow: row nowrap;
}

.wp-block-social-links.footer-social-links .wp-social-link svg {
    fill: #7ab5b0;
    fill: var(--theme-primary-color);
}

/* Legacy social media list */
.social-media-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.social-media-list > li {
    margin-bottom: 16px;
}

.social-media-list > li:not(:last-of-type) {
    margin-right: 16px;
}

.social-media-list > li > a {
    align-items: center;
    display: flex;
    flex-flow: row nowrap;
}

.social-media-list span {
    display: none;
}

.social-media-list [class^=icon-] {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 4px;
}

.social-media-list [class^=icon-]:before {
    color: #7ab5b0;
    color: var(--theme-primary-color);
}

@media screen and (min-width:991px) {
    .social-media-list span {
        display: inline-block;
    }
}


/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.footer-newsletter,
.wp-block-group.footer-newsletter {
    border-radius: 16px;
    padding: 20px;
}

.footer-newsletter p {
    margin-bottom: 0;
    margin-top: 0;
}

.footer-newsletter p + p {
    margin-top: 4px;
}

.footer-newsletter a,
.footer-newsletter .wp-block-button__link {
    background-color: #7ab5b0;
    background-color: var(--theme-primary-color);
    border: none;
    border-radius: 2rem;
    color: #fff !important;
    color: var(--theme-white-color) !important;
    display: inline-block;
    margin-top: 1rem !important;
    padding: .5rem 1.5rem;
    text-decoration: none !important;
}

@media screen and (min-width:991px) {
    .footer-newsletter,
    .wp-block-group.footer-newsletter {
        padding: 40px;
    }
}


/* ========================================
   PARTNERS / SPONSORS SECTION
   ======================================== */

.footer-partners-container,
.wp-block-group.footer-partners {
    margin-top: 32px;
    text-align: center;
}

@media screen and (min-width:991px) {
    .footer-partners-container,
    .wp-block-group.footer-partners {
        margin-top: 42px;
    }
}

.footer-partners-container h6,
.wp-block-group.footer-partners h6 {
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

/* Partners list */
.partners-list,
.wp-block-group.footer-partners .wp-block-gallery,
.wp-block-group.footer-partners .wp-block-columns {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    justify-content: center;
    width: 100%;
}

.partners-list > li:not(:last-of-type) {
    margin-right: 0;
}

.partners-list > li img,
.wp-block-group.footer-partners img {
    max-width: 5rem;
    height: auto;
}


/* ========================================
   FOOTER NAVIGATION MENU
   ======================================== */

.footer-navigation-container,
.wp-block-navigation.footer-navigation {
    margin-top: 40px;
    font-size: .75rem;
    line-height: 1.5rem;
    text-align: center;
}

@media screen and (min-width:991px) {
    .footer-navigation-container,
    .wp-block-navigation.footer-navigation {
        margin-top: 50px;
    }
}

/* Footer menu list */
.footer-navigation-container .footer-menu,
.wp-block-navigation.footer-navigation .wp-block-navigation__container {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-transform: uppercase;
}

.footer-navigation-container .footer-menu > li:first-of-type,
.wp-block-navigation.footer-navigation .wp-block-navigation-item:first-of-type {
    flex: 1 1 100%;
}

.footer-navigation-container .footer-menu > li:not(:last-of-type),
.wp-block-navigation.footer-navigation .wp-block-navigation-item:not(:last-of-type) {
    margin-right: 16px;
}

@media screen and (min-width:991px) {
    .footer-navigation-container .footer-menu,
    .wp-block-navigation.footer-navigation .wp-block-navigation__container {
        flex-wrap: nowrap;
    }

    .footer-navigation-container .footer-menu > li:first-of-type,
    .wp-block-navigation.footer-navigation .wp-block-navigation-item:first-of-type {
        flex: initial;
    }
}

.footer-navigation-container > p {
    font-size: inherit;
    line-height: 1rem;
}

.footer-navigation-container > * + * {
    margin-top: 16px;
}


/* ========================================
   FOOTER MISSION & DISCLAIMER
   ======================================== */

.footer-mission > .theme-logo + *,
.footer-mission > .wp-block-site-logo + * {
    margin-top: 24px;
}

.footer-disclaimer,
.wp-block-group.footer-disclaimer {
    margin-top: 2.5rem;
}

@media screen and (min-width:991px) {
    .footer-disclaimer,
    .wp-block-group.footer-disclaimer {
        margin-top: 5rem;
    }
}


/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Spacing utilities for footer sections */
.footer-section + .footer-section {
    margin-top: 40px;
}

@media screen and (min-width:991px) {
    .footer-section + .footer-section {
        margin-top: 50px;
    }
}
