/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    color: rgba(255, 255, 255, 0.78);
}


/* =========================================================
   MAIN FOOTER
   ========================================================= */

.footer-main {
    padding: 70px 0 50px;

    background:
        var(--secondary-dark);
}


.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1.3fr;

    gap: 50px;
}


/* =========================================================
   FOOTER BRAND
   ========================================================= */

.footer-brand {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 20px;
}


.footer-brand img {
    width: 54px;
    height: 54px;

    object-fit: contain;
}


.footer-brand strong {
    display: block;

    color: var(--white);

    font-size: 1rem;
}


.footer-brand span {
    display: block;

    color: var(--primary);

    font-size: 0.72rem;

    margin-top: 3px;
}


.footer-about p {
    max-width: 400px;

    color:
        rgba(255, 255, 255, 0.68);

    font-size: 0.86rem;

    line-height: 1.8;
}


/* =========================================================
   FOOTER HEADINGS
   ========================================================= */

.footer-column h3 {
    color: var(--white);

    font-size: 1rem;

    margin-bottom: 20px;
}


.footer-column ul {
    list-style: none;
}


.footer-column li {
    margin-bottom: 10px;
}


.footer-column li a {
    color:
        rgba(255, 255, 255, 0.68);

    font-size: 0.84rem;

    transition:
        color var(--transition-fast),
        padding var(--transition-fast);
}


.footer-column li a:hover {
    color: var(--primary);

    padding-left: 4px;
}


/* =========================================================
   SOCIAL
   ========================================================= */

.footer-social {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 20px;
}


.footer-social a {
    width: 38px;
    height: 38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--white);

    background:
        rgba(255, 255, 255, 0.08);

    transition:
        background var(--transition),
        transform var(--transition);
}


.footer-social a:hover {
    background: var(--primary);

    transform:
        translateY(-3px);
}


/* =========================================================
   CONTACT
   ========================================================= */

.footer-contact-item {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 18px;

    font-size: 0.82rem;

    line-height: 1.6;
}


.footer-contact-item > i {
    flex-shrink: 0;

    width: 18px;

    margin-top: 4px;

    color: var(--primary);
}


.footer-contact-item a {
    color:
        rgba(255, 255, 255, 0.75);

    transition:
        color var(--transition-fast);
}


.footer-contact-item a:hover {
    color: var(--primary);
}


/* =========================================================
   BOTTOM
   ========================================================= */

.footer-bottom {
    padding: 18px 0;

    background:
        var(--secondary);
}


.footer-bottom-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.footer-bottom p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 0.74rem;
}


.footer-legal {
    display: flex;

    gap: 20px;
}


.footer-legal a {
    color:
        rgba(255, 255, 255, 0.55);

    font-size: 0.74rem;
}


.footer-legal a:hover {
    color: var(--primary);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 35px;
    }
}


@media (max-width: 600px) {

    .footer-main {
        padding:
            50px 0 35px;
    }


    .footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    .footer-bottom-inner {
        flex-direction: column;

        align-items: flex-start;
    }


    .footer-legal {
        flex-wrap: wrap;

        gap: 12px;
    }
}

.scroll-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;

    width: 46px;
    height: 46px;

    border: 0;
    border-radius: 12px;

    background: #ff6b00;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease,
        background .25s ease;

    z-index: 9999;

    box-shadow: 0 8px 25px rgba(18, 59, 99, .20);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #123b63;
    transform: translateY(-3px);
}

@media (max-width: 600px) {

    .scroll-to-top {
        width: 42px;
        height: 42px;
        right: 15px;
        bottom: 15px;
        border-radius: 10px;
    }

}

.footer-developer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-developer a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-developer a:hover {
    color: #ff6b00;
}