/*----------------------------------------*/
/*  FOOTER                                 */
/*  Figma: Frame 592 (node 482-17870)      */
/*----------------------------------------*/

footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    background-color: var(--rd-dark);
    font-family: var(--rd-ff);
    color: var(--rd-txt-on-dark);
}

.footer__main {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 60px var(--rd-gutter);
    background-color: var(--rd-dark);
    background-image: url("../../img/redesign/footer-bg.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
}

.footer__main::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../../img/redesign/footer-bg-glow.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    opacity: .9;
    pointer-events: none;
}

.footer__main > * {
    position: relative;
    z-index: 1;
}


/*--------------------*/
/* - BRAND COLUMN     */
/*--------------------*/
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 60px;
    flex: 0 0 293px;
    max-width: 293px;
}

.footer__brand-top {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer__logo {
    display: block;
    line-height: 0;
}

.footer__logo img {
    display: block;
    width: 248px;
    max-width: 100%;
    height: auto;
}

.footer__intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 18px;
}

.footer__intro p {
    line-height: 1.28;
    color: var(--rd-txt-muted);
}

.footer__intro-link {
    font-weight: 500;
    line-height: normal;
    color: var(--rd-white);
    text-decoration: underline;
    transition: color var(--rd-transition);
}

.footer__social-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__social-title {
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: .08px;
    color: var(--rd-white);
    text-transform: uppercase;
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__social a {
    display: block;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    line-height: 0;
    transition: opacity var(--rd-transition);
}

.footer__social img {
    display: block;
    width: 100%;
    height: 100%;
}

.footer__address {
    max-width: 222px;
    font-size: 13px;
    line-height: normal;
    color: var(--rd-txt-muted);
}


/*--------------------*/
/* - LINK COLUMNS     */
/*--------------------*/
.footer__nav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 1461px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 0 1 245px;
    min-width: 0;
}

.footer__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--rd-white);
}

.footer__link {
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--rd-txt-muted);
    text-transform: capitalize;
    transition: color var(--rd-transition);
}

.footer__link.active {
    color: var(--rd-accent);
}

@media (min-width: 1200px) {
    .footer__link:hover,
    .footer__intro-link:hover {
        color: var(--rd-accent);
    }

    .footer__social a:hover {
        opacity: .75;
    }
}


/*--------------------*/
/* - BACK TO TOP      */
/*--------------------*/
.footer__top-btn {
    position: absolute;
    right: var(--rd-gutter);
    bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background-color: var(--rd-white);
    border-radius: var(--rd-radius);
    transition: background-color var(--rd-transition);
}

.footer__top-btn img {
    display: block;
    width: 20px;
    height: 20px;
}

@media (min-width: 1200px) {
    .footer__top-btn:hover {
        background-color: var(--rd-accent);
    }
}


/*--------------------*/
/* - BOTTOM BAR       */
/*--------------------*/
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 32px;
    padding: 8px var(--rd-gutter);
    background-color: var(--rd-dark);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    color: var(--rd-txt-muted);
}

.footer__legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 24px;
}

.footer__legal a {
    color: inherit;
    transition: color var(--rd-transition);
}

.footer__by {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.footer__by img {
    display: block;
    width: 37px;
    height: 19px;
    object-fit: contain;
}

@media (min-width: 1200px) {
    .footer__legal a:hover {
        color: var(--rd-white);
    }
}


/*--------------------*/
/* - TABLET (<1200px) */
/*--------------------*/
@media (max-width: 1199px) {
    .footer__main {
        flex-direction: column;
        gap: 50px;
        padding: 50px var(--rd-gutter);
    }

    .footer__brand {
        flex: 0 0 auto;
        max-width: none;
        gap: 40px;
    }

    .footer__nav {
        flex-wrap: wrap;
        gap: 40px 30px;
        max-width: none;
        width: 100%;
    }

    .footer__col {
        flex: 0 1 calc(50% - 15px);
    }

    .footer__top-btn {
        position: static;
        margin-left: auto;
    }
}


/*--------------------*/
/* - PHONE (<768px)   */
/*--------------------*/
@media (max-width: 767px) {
    .footer__col {
        flex: 0 0 100%;
    }

    .footer__logo img {
        width: 200px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px var(--rd-gutter);
    }
}
