/* =========================================================
   CNCTASPHR FOOTER
   Used by: /layout/footer.php
========================================================= */

/* =========================================================
   DESKTOP FOOTER
========================================================= */

.footer {
    display: block;
    flex: 0 0 auto;

    width: 100%;
    padding: 48px 20px;

    background: #0b1220;
    border-top: 1px solid rgba(255, 255, 255, 0.06);

    color: #cbd5e1;
}

.footer-container {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(200px, 1fr)
        );

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
    gap: 40px;
}

.footer-title {
    color: #ffffff;

    font-size: 1rem;
    font-weight: 600;
}

.footer-subtitle {
    margin-top: 4px;

    color: #64748b;

    font-size: 0.85rem;
}

.footer-meta {
    max-width: 260px;
    margin-top: 10px;

    color: #64748b;

    font-size: 0.8rem;
}

.footer-group {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    margin-bottom: 10px;

    color: #e2e8f0;

    font-size: 0.9rem;
    font-weight: 600;
}

.footer-group a {
    margin-bottom: 8px;

    color: #94a3b8;

    font-size: 0.85rem;
    text-decoration: none;
}

.footer-group a:hover,
.footer-group a:focus-visible {
    color: #ffffff;
}

.footer-right {
    font-size: 0.85rem;
}

.footer-ip {
    max-width: 240px;
    margin-top: 8px;

    color: #64748b;

    font-size: 12px;
}

/* =========================================================
   MOBILE FOOTER
========================================================= */

.mobile-footer {
    display: none;
}

/* =========================================================
   BACK TO TOP
========================================================= */

#backToTop {
    position: fixed;
    right: 20px;
    bottom: 90px;

    display: none;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    background: #2563eb;
    border: 0;
    border-radius: 50%;

    color: #ffffff;

    cursor: pointer;
    z-index: 999;
}

#backToTop:hover,
#backToTop:focus-visible {
    background: #1d4ed8;
}

#backToTop:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    body {
        padding-bottom: 70px;
    }

    .footer {
        display: none;
    }

    .mobile-footer {
        position: fixed;
        bottom: 0;
        left: 0;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        width: 100%;
        padding: 10px 8px;

        background: #020617;
        border-top: 1px solid rgba(255, 255, 255, 0.08);

        z-index: 999;
    }

    .mobile-footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;

        gap: 14px;
    }

    .mobile-footer-links a {
        color: #94a3b8;

        font-size: 12px;
        text-decoration: none;
    }

    .mobile-footer-links a:hover,
    .mobile-footer-links a:focus-visible {
        color: #ffffff;
    }

    .mobile-footer-copy {
        margin-top: 6px;

        color: #64748b;

        font-size: 11px;
    }
}