/**
 * Footer Section Block Styles
 *
 * Full-width white footer with three columns (logo, link columns, contact
 * info) and a bottom row holding the copyright notice and legal links.
 *
 * Reference design: child-theme-sections-screenshots/footer-section.png
 *
 * @package ACF Child Theme
 */

:root {
    --color-grey: #f3f3f3;
    --color-navy: #0d1e3b;
    --color-teal: #17abc1;
    --color-text: #252525;
    --color-blue: #004e95;
    --color-white: #ffffff;
    --font-primary: 'Montserrat', sans-serif;
}

/* Section wrapper - full-width white background
   ========================================================================== */
.footer-section {
    width: 100%;
    margin: 0;
    padding: 60px 0 30px;
    background-color: var(--color-white, #ffffff);
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    color: var(--color-text, #252525);
}

.footer-section__container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

/* Columns layout
   ========================================================================== */
.footer-section__columns {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.footer-section__col {
    min-width: 0;
}

/* Column 1: Logo
   ========================================================================== */
.footer-section__col--logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-section__logo {
    display: inline-block;
    width: 100%;
}

.footer-section__logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* Shared column heading with teal underline
   ========================================================================== */
.footer-section__heading {
    margin: 0 0 22px 0;
    padding-bottom: 16px;
    border-bottom: 4px solid var(--color-teal, #17abc1);
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-navy, #0d1e3b);
}

/* Column 2: Links
   ========================================================================== */
.footer-section__link-columns {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 30px;
}

.footer-section__link-column-title {
    margin: 0 0 14px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-navy, #0d1e3b);
}

.footer-section__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section__links-item {
    margin-bottom: 14px;
}

.footer-section__links-item:last-child {
    margin-bottom: 0;
}

.footer-section__links-item a {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-navy, #0d1e3b);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section__links-item a:hover,
.footer-section__links-item a:focus-visible {
    color: var(--color-teal, #17abc1);
    outline: none;
}

/* Column 3: Contact info
   ========================================================================== */
.footer-section__contact {
    list-style: none;
    margin: 0 0 26px 0;
    padding: 0;
}

.footer-section__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-section__contact-item:last-child {
    margin-bottom: 0;
}

.footer-section__contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--color-teal, #17abc1);
}

.footer-section__contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-section__contact-link {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-navy, #0d1e3b);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section__contact-link:hover,
.footer-section__contact-link:focus-visible {
    color: var(--color-teal, #17abc1);
    outline: none;
}

/* Social links
   ========================================================================== */
.footer-section__social {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 40px;
    padding: 0;
}

.footer-section__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--color-navy, #0d1e3b);
    transition: color 0.3s ease;
}

.footer-section__social-link svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-section__social-link:hover,
.footer-section__social-link:focus-visible {
    color: var(--color-teal, #17abc1);
    outline: none;
}

/* Bottom row: copyright + legal links
   ========================================================================== */
.footer-section__bottom {
    margin-top: 36px;
    display: flex;
    justify-content: flex-end;
}

.footer-section__legal {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text, #252525);
}

.footer-section__sep {
    margin: 0 10px;
    color: #b5b5b5;
}

.footer-section__legal-link {
    color: var(--color-text, #252525);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section__legal-link:hover,
.footer-section__legal-link:focus-visible {
    color: var(--color-teal, #17abc1);
    outline: none;
}

/* Responsive - Tablet
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
    .footer-section {
        padding: 50px 0 28px;
    }

    .footer-section__columns {
        grid-template-columns: 1fr 1fr;
        gap: 36px 30px;
    }

    /* Logo spans the full row above the two info columns. */
    .footer-section__col--logo {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .footer-section__heading {
        font-size: 20px;
    }
}

/* Responsive - Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 24px;
    }

    .footer-section__columns {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-section__col--logo {
        justify-content: flex-start;
    }

    .footer-section__logo {
        max-width: 200px;
    }

    .footer-section__heading {
        font-size: 20px;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .footer-section__link-columns {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-section__bottom {
        justify-content: flex-start;
        margin-top: 30px;
    }

    .footer-section__social {  
        margin-top: 20px;
    }

    .footer-section__legal {
        font-size: 12px;
    }
}
