/* =========================================================
   DYNAMOS FOOTER
========================================================= */

.site-footer {
    position: relative;
    background: #111111;
    color: #ffffff;
    overflow: hidden;
}


/* =========================================================
   MAIN FOOTER
========================================================= */

.footer-main {
    position: relative;
    padding: 80px 0 70px;
    background:
        linear-gradient(
            135deg,
            #111111 0%,
            #151515 55%,
            #101010 100%
        );
}

.footer-main::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 420px;
    height: 420px;
    background: rgba(237, 28, 36, 0.05);
    border-radius: 50%;
    transform: translate(35%, -40%);
    pointer-events: none;
}

.footer-main::after {
    content: "";
    position: absolute;
    bottom: -180px;
    left: -180px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}


/* =========================================================
   FOOTER GRID
========================================================= */

.footer-grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        1.5fr
        0.8fr
        1fr
        1.2fr;

    gap: 60px;
}


/* =========================================================
   BRAND
========================================================= */

.footer-brand-column {
    max-width: 400px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 25px;
}

.footer-logo {
    display: block;

    width: auto;
    max-width: 190px;
    height: 62px;

    object-fit: contain;

    background: #ffffff;
    padding: 7px 12px;
}


.footer-description {
    margin: 0;

    max-width: 390px;

    color: #b9b9b9;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   SOCIAL ICONS
========================================================= */

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 28px;
}

.footer-social {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.18);

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.footer-social:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}


/* =========================================================
   FOOTER TITLES
========================================================= */

.footer-title {
    position: relative;

    margin: 0 0 27px;

    color: #ffffff;

    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: "";

    display: block;

    width: 35px;
    height: 3px;

    margin-top: 10px;

    background: var(--primary);
}


/* =========================================================
   FOOTER LINKS
========================================================= */

.footer-links {
    display: flex;
    flex-direction: column;

    gap: 13px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links a {
    position: relative;

    display: inline-block;

    color: #bdbdbd;

    font-size: 14px;
    line-height: 1.5;

    transition:
        color 0.3s ease,
        padding-left 0.3s ease;
}

.footer-links a::before {
    content: "→";

    position: absolute;
    left: -18px;

    opacity: 0;

    color: var(--primary);

    transition:
        opacity 0.3s ease,
        left 0.3s ease;
}

.footer-links a:hover {
    padding-left: 18px;
    color: #ffffff;
}

.footer-links a:hover::before {
    left: 0;
    opacity: 1;
}


/* =========================================================
   CONTACT
========================================================= */

.footer-contact-list {
    display: flex;
    flex-direction: column;

    gap: 22px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;

    gap: 15px;
}

.footer-contact-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.18);

    color: var(--primary);

    font-size: 14px;
    font-weight: 700;
}

.footer-contact-item > div {
    min-width: 0;
}

.footer-contact-label {
    display: block;

    margin-bottom: 5px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-contact-item a,
.footer-contact-item p {
    margin: 0;

    color: #bdbdbd;

    font-size: 14px;
    line-height: 1.6;

    word-break: break-word;

    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--primary);
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);

    background: #0b0b0b;
}

.footer-bottom-inner {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.copyright {
    margin: 0;

    color: #858585;

    font-size: 13px;
    line-height: 1.6;
}

.footer-bottom-links {
    display: flex;
    align-items: center;

    gap: 25px;
}

.footer-bottom-links a {
    color: #858585;

    font-size: 13px;

    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    background: var(--primary);
    color: #ffffff;

    font-size: 21px;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;

    z-index: 1000;
}

.back-to-top:hover {
    background: var(--primary-dark);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .footer-main {
        padding: 70px 0 60px;
    }

    .footer-grid {
        grid-template-columns:
            1.4fr
            1fr
            1fr;

        gap: 50px 40px;
    }

    .footer-brand-column {
        max-width: 100%;
    }

    .footer-contact-column {
        grid-column: span 2;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .footer-main {
        padding: 55px 0 45px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 42px;
    }

    .footer-contact-column {
        grid-column: auto;
    }

    .footer-brand-column {
        max-width: 100%;
    }

    .footer-logo {
        max-width: 175px;
        height: 56px;
    }

    .footer-description {
        max-width: 100%;

        font-size: 14px;
        line-height: 1.75;
    }

    .footer-title {
        margin-bottom: 22px;
        font-size: 21px;
    }

    .footer-bottom-inner {
        min-height: auto;

        padding-top: 22px;
        padding-bottom: 22px;

        flex-direction: column;
        align-items: flex-start;

        gap: 15px;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        gap: 10px 20px;
    }

    .back-to-top {
        right: 18px;
        bottom: 18px;

        width: 44px;
        height: 44px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .footer-social {
        width: 38px;
        height: 38px;
    }

    .footer-contact-item {
        gap: 12px;
    }

    .footer-contact-icon {
        width: 35px;
        height: 35px;

        flex-basis: 35px;
    }
}