/*
 * PAC GP Ansor Haurgeulis — professional footer refinement v36
 * Keeps all text, links, villages, logo and social URLs controlled by admin.
 */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: 54px 0 22px;
    border-top: 1px solid rgba(245, 193, 70, .28);
    background:
        radial-gradient(circle at 8% 0%, rgba(9, 105, 59, .14), transparent 28%),
        linear-gradient(180deg, #101a30 0%, #0c1528 100%);
    color: #cbd5e1;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 193, 70, .78), transparent);
    pointer-events: none;
}

.site-footer > .max-w-7xl {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 40px));
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
}

.site-footer .footer-columns {
    display: grid;
    grid-template-columns:
        minmax(270px, 1.28fr)
        minmax(160px, .72fr)
        minmax(290px, 1.08fr)
        minmax(215px, .82fr);
    align-items: start;
    gap: 44px;
    padding-bottom: 42px;
}

.site-footer .footer-columns > * {
    min-width: 0;
}

.site-footer .footer-identity {
    max-width: 390px;
}

.site-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.015em;
    text-decoration: none;
}

.site-footer .footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 13px;
    background: rgba(255, 255, 255, .035);
    color: rgb(var(--ansor-gold));
}

.site-footer .footer-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-footer .footer-description {
    display: grid;
    gap: 11px;
    max-width: 37ch;
    margin-top: 18px;
    color: #aebbd0;
    font-size: 13.5px;
}

.site-footer .footer-description p {
    margin: 0;
    color: inherit;
    font: inherit;
    line-height: 1.82;
    text-align: left;
    white-space: normal;
    word-spacing: normal;
    letter-spacing: 0;
    overflow-wrap: break-word;
    hyphens: none;
}

.site-footer .footer-section h3 {
    display: block;
    min-height: 0;
    margin: 8px 0 22px;
    color: rgb(var(--ansor-gold));
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .075em;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.site-footer .footer-links,
.site-footer .footer-villages {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .footer-links {
    display: grid;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.55;
}

.site-footer .footer-links a {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #cbd5e1;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.site-footer .footer-links a::before {
    content: "";
    width: 0;
    height: 1px;
    margin-right: 0;
    background: rgb(var(--ansor-gold));
    transition: width .18s ease, margin-right .18s ease;
}

.site-footer .footer-links a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.site-footer .footer-links a:hover::before {
    width: 10px;
    margin-right: 7px;
}

.site-footer .footer-villages {
    display: grid;
    grid-template-columns: repeat(2, minmax(118px, 1fr));
    gap: 11px 26px;
    color: #aebbd0;
    font-size: 12.5px;
    line-height: 1.55;
}

.site-footer .footer-villages li {
    position: relative;
    min-width: 0;
    padding-left: 15px;
    overflow-wrap: break-word;
}

.site-footer .footer-villages li::before {
    content: "";
    position: absolute;
    top: .58em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgb(var(--ansor-gold));
    box-shadow: 0 0 0 3px rgba(245, 193, 70, .08);
}

.site-footer .footer-social-description {
    max-width: 26ch;
    margin: 0 0 18px;
    color: #aebbd0;
    font-size: 13px;
    line-height: 1.75;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
}

.site-footer .footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer .footer-social-links > a,
.site-footer .footer-social-links > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 10px;
    background: rgba(39, 52, 77, .78);
    color: #e2e8f0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.site-footer .footer-social-links > a {
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.site-footer .footer-social-links > a:hover {
    border-color: rgba(245, 193, 70, .35);
    background: rgb(var(--ansor-green));
    color: #ffffff;
    transform: translateY(-2px);
}

.site-footer .footer-meta {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, .18);
    color: #8f9db4;
    font-size: 12px;
    line-height: 1.7;
}

.site-footer .footer-meta p {
    margin: 0;
    white-space: normal;
    overflow-wrap: break-word;
}

.site-footer .footer-meta p:last-child {
    text-align: right;
}

.site-footer a:focus-visible {
    outline: 2px solid rgb(var(--ansor-gold));
    outline-offset: 5px;
    border-radius: 4px;
}

@media (max-width: 1099px) {
    .site-footer .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 54px;
    }

    .site-footer .footer-identity {
        max-width: 430px;
    }
}

@media (max-width: 639px) {
    .site-footer {
        padding: 44px 0 20px;
    }

    .site-footer > .max-w-7xl {
        width: min(100%, calc(100% - 30px));
    }

    .site-footer .footer-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-bottom: 30px;
    }

    .site-footer .footer-columns > * {
        padding: 26px 0;
        border-bottom: 1px solid rgba(148, 163, 184, .13);
    }

    .site-footer .footer-columns > *:first-child {
        padding-top: 0;
    }

    .site-footer .footer-columns > *:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .site-footer .footer-brand {
        font-size: 17px;
    }

    .site-footer .footer-section h3 {
        margin-top: 0;
        margin-bottom: 17px;
    }

    .site-footer .footer-villages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px 18px;
    }

    .site-footer .footer-meta {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        padding-top: 19px;
    }

    .site-footer .footer-meta p:last-child {
        text-align: left;
    }
}

@media (max-width: 390px) {
    .site-footer .footer-villages {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer a,
    .site-footer a::before {
        transition: none !important;
    }
}