/* =====================================================
   FOOTER WEBSITE SMKN 10
   ===================================================== */

.public-footer {
    margin-top: 0;
    color: #cbd5e1;
    background: #071f33;
}

.footer-main {
    padding:
        58px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns:
        1.35fr
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 42px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #ffffff;
    text-decoration: none;
}

.footer-brand img,
.footer-logo-fallback {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 14px;
}

.footer-brand img {
    padding: 4px;
    object-fit: contain;
    background: #ffffff;
}

.footer-logo-fallback {
    display: grid;
    place-items: center;
    color: #082f49;
    background: var(--secondary);
    font-size: 20px;
    font-weight: 900;
}

.footer-brand strong,
.footer-brand small {
    display: block;
}

.footer-brand strong {
    font-size: 17px;
    line-height: 1.35;
}

.footer-brand small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
}

.footer-tagline {
    max-width: 360px;
    margin:
        19px 0 0;
    color: #94a3b8;
    line-height: 1.75;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 9px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .15
        );
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background:
        rgba(
            255,
            255,
            255,
            .05
        );
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.footer-social a:hover {
    border-color:
        var(--secondary);
    color: #082f49;
    background:
        var(--secondary);
    transform:
        translateY(-2px);
}

.footer-column h2 {
    margin:
        2px 0 19px;
    color: #ffffff;
    font-size: 15px;
    letter-spacing: .15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.footer-links a {
    position: relative;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    transition:
        color .2s ease,
        padding-left .2s ease;
}

.footer-links a::before {
    content: "›";
    margin-right: 7px;
    color:
        var(--secondary);
}

.footer-links a:hover {
    padding-left: 3px;
    color: #ffffff;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: grid;
    grid-template-columns:
        32px 1fr;
    gap: 10px;
    align-items: flex-start;
}

.footer-contact-icon {
    width: 30px;
    height: 30px;
    margin-top: 1px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color:
        var(--secondary);
    background:
        rgba(
            255,
            255,
            255,
            .06
        );
    font-size: 13px;
}

.footer-contact-item small {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.footer-contact-item p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}

.footer-contact-item a {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.55;
    text-decoration: none;
    word-break: break-word;
}

.footer-contact-item a:hover {
    color:
        var(--secondary);
}

.footer-empty-contact {
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
}

.footer-bottom {
    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            .08
        );
    background:
        rgba(
            0,
            0,
            0,
            .13
        );
}

.footer-bottom-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content:
        space-between;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 11px;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}


/* =====================================================
   BACK TO TOP
   ===================================================== */

.back-to-top {
    width: 44px;
    height: 44px;
    padding: 0;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    border: 0;
    border-radius: 12px;
    color: #082f49;
    background:
        var(--secondary);
    box-shadow:
        0 12px 28px
        rgba(
            15,
            23,
            42,
            .22
        );
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    opacity: 0;
    visibility: hidden;
    transform:
        translateY(10px);
    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform:
        translateY(0);
}

.back-to-top:hover {
    transform:
        translateY(-2px);
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (
    max-width: 1050px
) {

    .footer-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

}

@media (
    max-width: 650px
) {

    .footer-main {
        padding:
            45px 0 35px;
    }

    .footer-grid {
        grid-template-columns:
            1fr;
        gap: 34px;
    }

    .footer-bottom-inner {
        padding-top: 18px;
        padding-bottom: 18px;
        align-items:
            flex-start;
        flex-direction: column;
        justify-content:
            center;
        gap: 8px;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
    }

}
