/* ==========================================================================
   SIMWAR — Footer
   ========================================================================== */

.site-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--navy-950);
    color: var(--white);
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -280px;
    left: 50%;
    width: 720px;
    height: 420px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.14);
    filter: blur(110px);
    transform: translateX(-50%);
    pointer-events: none;
}

.site-footer > .container {
    position: relative;
    z-index: 1;
}

.footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 56px);
    padding-block: clamp(48px, 7vw, 76px);
}

/* Kolom kontak disembunyikan bila data resmi belum diisi. */
@media (min-width: 961px) {
    .footer__top--compact {
        grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, 1fr));
    }
}

.footer__brand {
    max-width: 380px;
}

.brand--footer .brand__mark {
    width: 40px;
    height: 40px;
}

.footer__description {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer__download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 8px 14px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: var(--radius-pill);
    background: rgba(34, 211, 238, 0.06);
    color: var(--cyan-300);
    font-size: 0.76rem;
    font-weight: 600;
    transition:
        border-color 0.25s var(--ease),
        background-color 0.25s var(--ease);
}

.footer__download:hover {
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(34, 211, 238, 0.1);
}

.footer__title {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer__links,
.footer__contact {
    display: grid;
    gap: 11px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.84rem;
    line-height: 1.5;
    transition: color 0.2s var(--ease);
}

.footer__links a:hover {
    color: var(--white);
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer__contact li .icon {
    margin-top: 3px;
    color: var(--cyan-400);
    opacity: 0.8;
}

.footer__contact a {
    transition: color 0.2s var(--ease);
    word-break: break-word;
}

.footer__contact a:hover {
    color: var(--white);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.72rem;
}

.footer__note {
    color: rgba(255, 255, 255, 0.26);
}

/* Tautan khusus pengelola; dibuat lebih menonjol dari tautan navigasi biasa. */
.footer__links a.footer__admin-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--cyan-300);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.footer__links a.footer__admin-link::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan-400);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.footer__links a.footer__admin-link:hover {
    color: var(--cyan-100);
}

@media (max-width: 960px) {
    .footer__top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer__brand {
        grid-column: 1 / -1;
        max-width: 520px;
    }
}

@media (max-width: 720px) {
    .footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .footer__top {
        grid-template-columns: 1fr;
    }

    .footer__brand {
        grid-column: auto;
    }
}
