/* Shared footer untuk seluruh halaman publik Patriot Mahalona. */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.public-page-shell {
    width: 100%;
    min-width: 0;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.site-footer,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

.site-footer {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    background: #073f31;
    color: #f3f8f6;
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-footer__inner {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.site-footer__main {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(145px, .65fr)
        minmax(220px, 1fr);
    align-items: start;
    column-gap: clamp(28px, 3.5vw, 48px);
    padding: 46px 0 34px;
}

.site-footer__brand,
.site-footer__column {
    min-width: 0;
}

.site-footer__brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    color: #ffffff;
    text-decoration: none;
}

.site-footer__brand-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.015em;
}

.site-footer__brand-subtitle {
    margin-top: 5px;
    color: rgba(243, 248, 246, .78);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.site-footer__description {
    max-width: 480px;
    margin: 15px 0 0;
    color: rgba(243, 248, 246, .7);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}

.site-footer__column h2 {
    margin: 1px 0 13px;
    color: rgba(255, 255, 255, .92);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.site-footer__links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links li {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.site-footer__links a {
    width: fit-content;
    max-width: 100%;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    color: rgba(243, 248, 246, .84);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition:
        color 160ms ease,
        text-decoration-color 160ms ease;
}

.site-footer__links a:hover {
    color: #ffffff;
    text-decoration-color: rgba(142, 217, 189, .85);
}

.site-footer__links a[aria-current="page"] {
    color: #ffffff;
    font-weight: 600;
    text-decoration-color: rgba(142, 217, 189, .72);
}

.site-footer__brand-link:focus-visible,
.site-footer__links a:focus-visible {
    outline: 2px solid #8ed9bd;
    outline-offset: 4px;
    border-radius: 2px;
}

.site-footer__bottom {
    padding: 18px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.site-footer__bottom small {
    display: block;
    color: rgba(243, 248, 246, .66);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .site-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 48px;
        row-gap: 30px;
        padding: 40px 0 32px;
    }

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

    .site-footer__description {
        max-width: 560px;
    }
}

@media (max-width: 640px) {
    .site-footer__inner {
        width: min(1200px, calc(100% - 32px));
    }

    .site-footer__main {
        column-gap: 24px;
        row-gap: 26px;
        padding: 34px 0 28px;
    }

    .site-footer__column h2 {
        margin-bottom: 10px;
    }

    .site-footer__links {
        gap: 2px;
    }

    .site-footer__links a {
        width: 100%;
        min-height: 40px;
        align-items: center;
        font-size: 13px;
    }

    .site-footer__bottom {
        padding: 16px 0 20px;
    }
}

@media (max-width: 390px) {
    .site-footer__main {
        grid-template-columns: 1fr;
        row-gap: 24px;
        padding-top: 32px;
    }

    .site-footer__brand {
        grid-column: auto;
    }

    .site-footer__links a {
        min-height: 38px;
    }
}

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