/* =========================================================
   CanCham Cambodia
   Footer
   File: /assets/css/footer.css
   ========================================================= */

.site-footer {
    --footer-bg: #0f1c2a;
    --footer-bg-soft: #15283c;
    --footer-surface-line: rgba(255, 255, 255, 0.08);
    --footer-text: rgba(255, 255, 255, 0.88);
    --footer-text-soft: rgba(255, 255, 255, 0.62);
    --footer-link: rgba(255, 255, 255, 0.82);
    --footer-link-hover: #ffffff;
    --footer-accent: #7eb6e6;

    margin-top: 3rem;
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(126, 182, 230, 0.08), transparent 22%),
        radial-gradient(circle at bottom left, rgba(126, 182, 230, 0.05), transparent 20%),
        linear-gradient(180deg, var(--footer-bg-soft) 0%, var(--footer-bg) 100%);
    color: var(--footer-text);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.site-footer .site-shell {
    width: min(100% - 2rem, 1240px);
    margin-inline: auto;
}

.site-footer__main {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 0 1rem;
}

.site-footer__brand {
    min-width: 0;
}

.site-footer__brand-title {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.site-footer__brand-text {
    margin: 0.35rem 0 0;
    color: var(--footer-text-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

.site-footer__nav {
    min-width: 0;
}

.site-footer__nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.85rem 1.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__nav-item {
    margin: 0;
    padding: 0;
}

.site-footer__nav-link {
    color: var(--footer-link);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer__nav-link:hover,
.site-footer__nav-link:focus-visible {
    color: var(--footer-link-hover);
}

.site-footer__access {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.site-footer__portal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-footer__portal:hover,
.site-footer__portal:focus-visible {
    color: var(--footer-accent);
    border-color: rgba(126, 182, 230, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.site-footer__bottom {
    padding: 0.9rem 0 1rem;
    border-top: 1px solid var(--footer-surface-line);
}

.site-footer__copyright {
    margin: 0;
    color: var(--footer-text-soft);
    font-size: 0.8rem;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .site-footer__main {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1rem;
    }

    .site-footer__nav-list {
        justify-content: flex-start;
    }

    .site-footer__access {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .site-footer {
        margin-top: 2.25rem;
    }

    .site-footer .site-shell {
        width: min(100% - 1rem, 1240px);
    }

    .site-footer__main {
        padding: 1.1rem 0 0.9rem;
    }

    .site-footer__nav-list {
        gap: 0.7rem 1rem;
    }

    .site-footer__nav-link {
        font-size: 0.88rem;
    }

    .site-footer__brand-text,
    .site-footer__copyright {
        font-size: 0.82rem;
    }
}