/* =========================================================
   Site Footer - Glassmorphism
   ========================================================= */

.site-footer {
    position: relative;
    width: min(1400px, calc(100% - 32px));
    margin: 28px auto 16px;
    padding: 0 28px;
    overflow: hidden;
    color: #334155;
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.64) );
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.site-footer__glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(45px);
    pointer-events: none;
    opacity: 0.16;
}

.site-footer__glow--one {
    top: -110px;
    right: 8%;
    background: #2563eb;
}

.site-footer__glow--two {
    bottom: -130px;
    left: 12%;
    background: #8b5cf6;
}

.site-footer__inner {
    position: relative;
    z-index: 1;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 230px;
}

.site-footer__brand-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
}

.site-footer__brand strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.site-footer__brand span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
}

.site-footer__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}

    .site-footer__links a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 11px;
        border-radius: 11px;
        color: #475569;
        text-decoration: none;
        font-size: 11px;
        font-weight: 600;
        transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
    }

        .site-footer__links a:hover {
            color: #2563eb;
            background: rgba(255, 255, 255, 0.62);
            transform: translateY(-1px);
        }

    .site-footer__links i {
        font-size: 11px;
    }

.site-footer__disabled {
    opacity: 0.52;
    cursor: default;
}

    .site-footer__disabled:hover {
        color: #475569 !important;
        background: transparent !important;
        transform: none !important;
    }

.site-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    color: #64748b;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

    .site-footer__contact span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }

    .site-footer__contact i {
        width: 14px;
        text-align: center;
        color: #64748b;
    }

.site-footer__bottom {
    position: relative;
    z-index: 1;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
}

.site-footer__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .site-footer__status i {
        color: #10b981;
        font-size: 7px;
    }

/* Tablet */
@media (max-width: 900px) {
    .site-footer__inner {
        flex-wrap: wrap;
        padding: 20px 0;
    }

    .site-footer__brand {
        flex: 1 1 220px;
    }

    .site-footer__links {
        flex: 1 1 320px;
    }

    .site-footer__contact {
        flex: 1 1 100%;
        flex-direction: row;
        justify-content: center;
        gap: 22px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .site-footer {
        width: calc(100% - 20px);
        margin: 20px auto 10px;
        padding: 0 17px;
        border-radius: 20px;
    }

    .site-footer__inner {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px 0 14px;
    }

    .site-footer__brand {
        justify-content: center;
    }

    .site-footer__links {
        gap: 3px;
    }

        .site-footer__links a {
            padding: 7px 8px;
            font-size: 10px;
        }

    .site-footer__contact {
        align-items: center;
        flex-direction: column;
        gap: 5px;
        font-size: 9px;
    }

    .site-footer__bottom {
        min-height: 38px;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 8px 0;
        text-align: center;
    }
}

/* Accessibility / reduced motion */
@media (prefers-reduced-motion: reduce) {
    .site-footer__links a {
        transition: none;
    }
}


/* =========================================================
   Compact mobile footer
   ========================================================= */

.site-footer--mobile {
    display: none;
}

@media (max-width: 600px) {
    /* Hide the detailed footer on mobile */
    .site-footer:not(.site-footer--mobile) {
        display: none;
    }

    .site-footer--mobile {
        display: block;
        width: calc(100% - 20px);
        margin: 12px auto 10px;
        padding: 0 14px;
        border-radius: 16px;
    }

    .site-footer--mobile__content {
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: relative;
        z-index: 1;
        color: #64748b;
        font-size: 9px;
        font-weight: 500;
    }

        .site-footer--mobile__content > span:first-child {
            white-space: nowrap;
        }

    .site-footer--mobile .site-footer__status {
        white-space: nowrap;
        color: #64748b;
    }

        .site-footer--mobile .site-footer__status i {
            color: #10b981;
            font-size: 6px;
        }
}

@media (max-width: 380px) {
    .site-footer--mobile {
        width: calc(100% - 16px);
        padding: 0 10px;
    }

    .site-footer--mobile__content {
        font-size: 8px;
        gap: 8px;
    }
}
