/* -------------------------- ALL -------------------------- */

.footer {
    overflow: hidden;
}

.footer__top {
    background-image: url(../img/backgrounds/footerBackground.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    margin-inline: -20px;
}

.footer .description {
    background-color: var(--black);
    padding: 20px;
}

.footer .description .content {
    color: var(--white);
    margin-bottom: 16px
    ;
}

.footer .description__title {
    font-family: var(--ffMXBo);
    font-size: 1.5rem;
    line-height: 1.75rem;
    color: var(--white);
    margin-bottom: 4px;
}

.footer .description__subtitle {
    font-family: var(--ffMMe);
    font-size: 1.25rem;
    line-height: 1.5rem;
    margin-bottom: 20px;
}

.footer .logoContainer > .logo {
    display: none;
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 48px;
    border-top: 1px solid var(--white);
    padding-top: 24px;
}

.footer__bottom > * {
    padding-block: 20px;
    border-bottom: 1px solid var(--white);
    width: 100%;
}

.footer__bottom > *:first-child {
    padding-top: unset;
}

.footer__bottom > *:last-child {
    border-bottom: unset;
}

.cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.cta > div {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cta > div > .logo {
    display: block;
    width: 50px;
    height: auto;
    aspect-ratio: 1/1;
}

.cta__title {
    font-family: var(--ffMMe);
    font-size: 1.25rem;
    line-height: 1.5rem;
}

.cta .btn,
.footer__top .btn {
    font-family: var(--ffMXBo);
    font-size: .9375rem;
}

.footer .navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer .navigation > div > ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer .navigation > div > ul > li {
    white-space: nowrap;
}

.footer .navigation > div > ul > li > a {
    font-family: var(--ffMXBo);
    font-size: .875rem;
    line-height: 1.1875rem;
    text-transform: uppercase;
    color: var(--white);
}

.soLogo {
    width: 100%;
    max-width: 195px;
    display: block;
    aspect-ratio: 259 / 50;
}

.soLogo--second {
    display: none;
}

.seoWorlds {
    color: var(--white);
    font-family: var(--ffMXBo);
    text-transform: uppercase;
    font-size: .75rem;
    line-height: 1.25rem;
    text-align: center;
}

.footer__bottom > .copyrights,
.footer__bottom > .copyrights a {
    font-size: .75rem;
    line-height: 1rem;
    color: var(--white);
    text-align: center;
    font-family: var(--ffMRe);
}

.footer .networks {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.footer .networks .icon {
    aspect-ratio: 1/1;
    width: 32px;
    filter: invert(1);
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (width > 575px) {
    .footer .navigation {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer .navigation > div > ul {
        flex-direction: row;
    }

    .footer__top {
        padding: 120px 40px 40px 40px;
        margin-inline: -40px;
    }
}

@media (width > 767px) {
    .footer__top {
        padding: 20% 60px 60px 60px;
        margin-inline: -30px;
    }
    
    .footer .logoContainer > .logo {
        display: block;
    }

    .footer .description {
        display: grid;
        grid-template-columns: 0.7fr 0.3fr;
        gap: 0% 8%;
        padding: 24px;
    }

    .footer .description > .description__title {
        grid-area: 1/1/2/2;
        margin-bottom: unset;
    }

    .footer .description > .description__subtitle {
        grid-area: 1/1/2/2;
        margin-block: 40px 0px;
    }

    .footer .description > .content {
        grid-area: 2/1/3/2;
        margin-block: 24px 0px;
    }

    .footer .description > .logoContainer {
        grid-area: 1/2/3/3;
        align-self: end;
        margin-bottom: 24px;
    }


    .footer .networks {
        grid-area: 3/2/4/3;
        justify-content: center;
        gap: 32px;
    }

    .footer .networks .icon {
        width: 28px;
    }

    .footer .description > .link {
        grid-area: 1/2/3/3;
        align-self: self-end;
        white-space: nowrap;
        font-size: .875rem;
        line-height: 1.1875rem;
        transition: all .3s ease;
    }

    .footer .navigation {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    /* .cta > div {
        flex-direction: column;
    } */

    .cta__title {
        width: 45%;
    }

    .footer__top .btn {
        margin-top: 16px;
    }
}

@media (width > 991px) {
    .footer .description {
        gap: 0% 14%;
        padding: 44px 69px 66px 69px;
    }

    .footer .logoContainer > .logo {
        max-width: 166px;
        width: 100%;
    }

    .footer .description > .logoContainer {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .footer .description > .link {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    .footer__bottom {
        margin-top: 48px;
    }

    .footer .navigation {
        padding-block: 14px;
    }

    .footer__bottom > .copyrights {
        padding-block: 9px 13px;
    }

    .cta .btn {
        padding: 16px 20px;
        overflow: hidden;
    }

    .footer .navigation > div > ul {
        gap: 73px;
    }
}

@media (width > 1199px) {
    .footer .description > .description__title {
        font-size: 2.8125rem;
        line-height: 3.125rem;
    }

    .footer .description > .description__subtitle {
         font-size: 1.875rem;
         line-height: 3.125rem;
    }

    .footer .description {
        padding-inline: 138px;
    }

    .cta__title {
        font-size: 1.875rem;
        line-height: 2.5rem;
        width: 55%;
    }

    .soLogo {
        max-width: 259px;
    }
}

@media (width > 1439px) {
    .footer .navigation > div > ul {
        gap: 98px;
    }
    
    .footer .description > .description__subtitle {
        margin-top: 55px;
    }

    body > .footer {
        max-width: unset;
        margin-inline: unset;
    }

    .footer__top {
        padding: 299px 0 80px 0;
    }

    .footer__top > .description {
        max-width: 1300px;
        margin-inline: auto;
        position: relative;
        left: 35px;
    }

    .footer__bottom {
        max-width: 1440px;
        margin-inline: auto;
    }

    .cta__title {
        width: 100%;
        max-width: 670px;
    }

    .footer .description > .description__title {
        margin-top: 13px;
    }

    .footer .description > .description__subtitle {
        margin-top: 68px;
    }
}

@media (pointer: fine) {
    .footer .description > .link:hover {
        gap: 10px;
        padding-right: 10px;
    }
    
    .footer .description > .link:hover::after {
        width: 31px;
        margin-right: -3px;
        transition: all .3s ease;
    }

    .navigation > a:has(.soLogo):hover .soLogo {
        display: none;
    }

    .navigation > a:has(.soLogo):hover .soLogo--second {
        display: block;
    }
}