/* 
-----------------------------------------
FOOTER
-----------------------------------------
*/

footer {
    background-color: var(--primary-color);
    background-position: right;
    background-size: auto calc(100% - 2rem);
    background-repeat: no-repeat;
}

    footer h2,
    footer p,
    footer li,
    footer a {
        color: var(--text-white) !important;
        text-decoration: none;
    }

    footer p,
    footer li,
    footer a {
        font-size: 1rem;
    }

        footer a:hover {
            color: var(--neutral-color-dark) !important;
        }


    footer .footer-bottom p,
    footer .footer-bottom a {
        color: var(--text-white) !important;
        text-decoration: none;
        font-size: .875rem;
    }

    footer h2.h3 {
        border-top: 1px solid var(--neutral-color-dark);
        padding-top: 1rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    footer h2:not(:first-child) {
        margin-top: 1rem;
    }

    footer ul {
        list-style: none;
        padding: 0;
        margin-bottom: 0;
    }

/* ------- Top footer ------- */

.footer-top {
    width: 100%;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

    .footer-top > div {
        flex: 0 0 100%;
    }

@media screen and (min-width: 576px) {

    .footer-top {
        gap: 2rem;
    }

        .footer-top > div {
            flex-basis: calc(50% - 1rem);
        }

            .footer-top > div.footer-bottom-row {
                flex-basis: 100%;
            }
}

@media screen and (min-width: 768px) {

    .footer-top > div {
        flex-basis: calc(25% - 2rem);
    }
}

ul.footer-address li {
    margin-top: 0.25rem;
}

ul.footer-links-list li + li {
    margin-top: 1rem;
}

ul.footer-contact-info-list li + li {
    margin-top: 0.5rem;
}

.sm-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

    .sm-icons a {
        display: inline-flex;
        height: 2.25rem;
        width: 2.25rem;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        border: 1px solid #FFFFFF;
    }

        .sm-icons a:hover {
            border-color: var(--neutral-color-dark);
        }

    .sm-icons svg {
        font-size: 1.125rem;
    }

/* Bottom row */

.footer-bottom-row {
    border-top: 1px solid var(--neutral-color-dark);
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

    .footer-bottom-row > div {
        flex: 0 0 100%;
    }

        .footer-bottom-row > div.footer-copyright-text {
            margin-top: 1.25rem;
            order: 2;
        }

@media screen and (min-width: 768px) {

    .footer-bottom-row > div {
        flex: 0 0 auto;
    }

        .footer-bottom-row > div.footer-copyright-text {
            margin-top: 0;
            order: 1;
        }

        .footer-bottom-row > div.footer-bottom-links {
            order: 2;
        }
}


div.footer-copyright-text p {
    font-size: 0.875rem;
    margin-bottom: 0;
}


ul.footer-bottom-links-list {
    display: flex;
    gap: 1rem;
}

    ul.footer-bottom-links-list li a {
        font-size: 0.875rem;
    }

/* ------- Company group footer ------- */

.footer-company-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 2.125rem;
    padding-bottom: 2.125rem;
    border-top: 1px solid var(--neutral-color-dark)
}

    .footer-company-group > div {
        flex: 0 0 100%;
    }

@media screen and (min-width: 576px) {

    .footer-company-group {
        gap: 2rem;
    }

        .footer-company-group > div.footer-company-group-logo {
            flex-basis: 256px;
        }

        .footer-company-group > div.footer-company-group-text {
            flex-basis: calc(100% - 256px - 2rem);
            max-width: 1120px;
            flex-grow: 1;
        }
}

.footer-company-group > div.footer-company-group-logo img {
    width: 200px;
}


@media screen and (min-width: 576px) {

    .footer-company-group > div.footer-company-group-logo img {
        width: 256px;
    }
}
