footer {
    background-color: var(--background-midnight);
    font-size: var(--footer-body-text);
}

.footer-socials {
    display: flex;
    gap: 2rem;
}

footer .footer > div {
    margin: auto;
    padding: 2.5rem;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

footer .footer p {
    margin: 0;
    font-weight: var(--text-regular);
}

.footer-avendra-logo > div > div > picture img {
    display: none;
}

.footer-description > div:first-child > div > h5,
.footer-description > div:first-child > div > h5 > strong {
    color: var(--text-inverse);
    font-weight: var(--text-regular);
    margin: 1rem 0;
}

.footer-copyright > div > div > p {
    color: var(--text-inverse);
    font-size: var(--link-text);
    font-weight: var(--text-medium);
    line-height: var(--line-height-120);
}

.footer-logos > div > div > p {
    display: flex;
    align-items: flex-start;
    margin: 2.5rem 0;
    width: 19.25rem;
    gap: 1rem;
}

.footer-logos > div > div > picture {
    display: flex;
    align-items: flex-start;
    margin: 2.5rem 0;
    width: 19.25rem;
}

.footer-description > div:last-child > div > p {
    font-weight: var(--text-regular);
    color: var(--text-inverse);
}

.footer-headquarters {
    margin: 2.5rem 0;
}

.footer-headquarters > div:nth-of-type(1) > div > p {
    color: var(--text-inverse);
    margin-bottom: 1rem;
    font-weight: var(--text-bold);
}

.footer-terms > div > div > p > a {
    color: var(--text-inverse);
    font-size: var(--link-text);
    font-weight: var(--text-medium);
    line-height: var(--line-height-120);
    text-decoration: none;
}

.footer-contact > div:nth-of-type(2) > div > p > a,
.footer-contact > div:nth-of-type(3) > div > p > a {
    color: var(--text-inverse);
    text-decoration: none;
    padding-left: 0.5rem;
}

.footer-terms > div > div > p > a:hover {
    text-decoration: underline;
}

.footer-headquarters > div:nth-of-type(3) > div > p a {
    color: var(--text-inverse);
    text-decoration: underline;
    padding-left: 0.5rem;
}

.footer-contact > div:nth-of-type(2) > div > p > a:hover,
.footer-contact > div:nth-of-type(3) > div > p > a:hover {
    text-decoration: underline;
}

.footer-contact > div:nth-of-type(1) > div > p {
    color: var(--text-inverse);
    font-weight: var(--text-bold);
    margin-bottom: 1rem;
}

.footer-headquarters > div:nth-of-type(3) > div > p {
    margin-top: 0.5rem;
    color: var(--text-inverse);
    text-decoration: underline;
}

.footer-headquarters > div:nth-of-type(2) > div > p:nth-of-type(1) {
    color: var(--text-sky-light);
}

.footer-headquarters > div:nth-of-type(2) > div > p:nth-of-type(2),
.footer-headquarters > div:nth-of-type(2) > div > p:nth-of-type(3) {
    color: var(--text-inverse);
}

.footer-headquarters > div:nth-of-type(3) {
    display: flex;
}

.footer-logos > div > div > picture img,
.footer-logos > div > div > p > picture img {
    width: auto;
    height: 2.41rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.footer-socials > div > div > p > a > span img {
    width: 2rem;
    height: 2rem;
}

.footer-headquarters .icon > img {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

.footer-contact .icon > img {
    width: 1.25rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

.footer-contact > div:nth-of-type(2),
.footer-contact > div:nth-of-type(3) {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.footer-logos-container {
    border-bottom: 0.125rem solid var(--border-sky);
    margin-bottom: 2.5rem;
}

.footer-terms {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

@media (width >= 992px) {
    .footer-socials {
        display: flex;
        gap: 2rem;
        justify-content: flex-end;
    }

    footer .footer > div {
        padding: 4.44rem 3.43rem;
    }

    .footer-avendra-logo > div > div > picture img {
        display: block;
        width: 1.77rem;
        height: 2.32rem;
    }

    .footer-logos > div > div > picture img {
        height: 4rem;
    }

    .footer-avendra-logo {
        margin: 0 0 1rem;
    }

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

    .footer-right {
        display: flex;
    }

    .footer-description {
        max-width: 22rem;
        width: 90%;
        margin: 0 1.75rem 0 0;
    }

    .footer-description > div:first-child > div > h5,
    .footer-description > div:first-child > div > h5 > strong {
        font-size: var(--header-heading-text);
        margin: 0 0 1rem;
    }

    .footer-logos > div > div > p {
        display: flex;
        align-items: flex-start;
        margin: 3.5rem 0 2rem;
        width: 24rem;
        gap: 2.22rem;
    }

    .footer-description > div:last-child > div > p {
        font-weight: var(--text-regular);
    }

    .footer-headquarters {
        margin: 0 1.75rem 0 0;
    }

    .footer-headquarters > div:nth-of-type(1) > div > p,
    .footer-contact > div:nth-of-type(1) > div > p {
        margin-bottom: 1.5rem;
    }

    .footer-logos-container {
        border-bottom: 0.125rem solid var(--border-sky);
        margin-bottom: 1.5rem;
    }

    .footer-terms {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .footer-terms-wrapper {
        align-items: flex-start;
    }

    .footer-copyright {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .footer-copyright > div:nth-child(2) {
        padding-left: 0.75rem;
        border-left: 0.0675rem solid var(--border-footer);
    }

    .footer-socials-container {
        position: relative;
    }

    .footer-socials-wrapper {
        position: absolute;
        top: 10%;
        left: 99%;
        transform: translateX(-95%);
    }

    .footer-socials > div > div > p > a > span img {
        width: 1.75rem;
        height: 1.75rem;
    }
}

@media (width >= 1120px) {
    footer {
        font-size: var(--body-text);
    }

    .footer-description {
        max-width: 32rem;
    }
}

@media (width >= 1280px) {
    footer .footer > div {
        padding: 4.44rem;
        max-width: 80rem;
        margin: 0 auto;
    }

    .footer-description {
        margin: 0 8.5rem 0 0;
    }

    .footer-right {
        display: flex;
    }

    .footer-headquarters {
        margin-right: 4rem;
    }

    .footer-logos > div > div > p {
        display: flex;
        align-items: flex-start;
        margin: 3.5rem 0 2rem;
        width: 24rem;
        gap: 2.22rem;
    }
}
