/* ─── SITE FOOTER ─── */
.site-footer {
    background-color: var(--pb-navy);
    color: var(--pb-gray-300);
    padding-top: var(--pb-space-24);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─── FOOTER TOP GRID ─── */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--pb-space-12);
    padding-bottom: var(--pb-space-16);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ─── BRAND COLUMN ─── */
.footer-brand .custom-logo,
.footer-brand .footer-site-name {
    margin-bottom: var(--pb-space-6);
    filter: brightness(0) invert(1);
}

.footer-brand .footer-site-name {
    filter: none;
    font-family: var(--pb-font-display);
    font-size: var(--pb-text-xl);
    font-weight: var(--pb-weight-black);
    color: var(--pb-white);
    text-transform: uppercase;
}

/* Footer logo image (set in Site Info → Footer Logo URL). No invert filter —
   supply an already white/transparent PNG. */
.footer-brand .footer-logo-img {
    display: block;
    height: 104px;
    width: auto;
    max-width: 360px;
    margin-bottom: var(--pb-space-6);
    filter: none;
}

@media (min-width: 768px) {
    .footer-brand .footer-logo-img {
        height: 132px;
    }
}

.footer-brand p {
    font-size: var(--pb-text-sm);
    line-height: var(--pb-leading-relaxed);
    color: var(--pb-gray-500);
    margin-bottom: var(--pb-space-6);
    max-width: 280px;
}

/* ─── SOCIAL ICONS ─── */
.footer-social {
    display: flex;
    gap: var(--pb-space-3);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--pb-radius-md);
    color: var(--pb-gray-500);
    transition: border-color var(--pb-transition-fast),
                color var(--pb-transition-fast),
                background-color var(--pb-transition-fast);
}

.footer-social a:focus-visible {
    outline: 2px solid var(--pb-blue);
    outline-offset: 2px;
}

.footer-social a:hover {
    border-color: var(--pb-blue);
    color: var(--pb-white);
    background-color: var(--pb-blue);
}

/* ─── NAV COLUMNS ─── */
.footer-nav-title {
    font-family: var(--pb-font-display);
    font-size: var(--pb-text-sm);
    font-weight: var(--pb-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pb-white);
    margin-bottom: var(--pb-space-6);
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--pb-space-1);
}

.footer-nav-list a {
    display: inline-block;
    min-height: 32px;
    padding-block: var(--pb-space-1);
    font-size: var(--pb-text-sm);
    color: var(--pb-gray-500);
    transition: color var(--pb-transition-fast);
    line-height: var(--pb-leading-snug);
}

.footer-nav-list a:hover { color: var(--pb-blue); }

.footer-nav-list a:focus-visible {
    outline: 2px solid var(--pb-blue);
    outline-offset: 2px;
    border-radius: 2px;
    color: var(--pb-blue);
}

/* ─── CONTACT ─── */
.footer-contact-item {
    display: flex;
    gap: var(--pb-space-3);
    margin-bottom: var(--pb-space-4);
    font-size: var(--pb-text-sm);
    color: var(--pb-gray-500);
    align-items: flex-start;
}

.footer-contact-item svg {
    flex-shrink: 0;
    color: var(--pb-blue);
    margin-top: 2px;
}

.footer-contact-item a {
    color: var(--pb-gray-500);
    transition: color var(--pb-transition-fast);
}

.footer-contact-item a:hover { color: var(--pb-blue); }

.footer-contact-item a:focus-visible {
    outline: 2px solid var(--pb-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ─── FOOTER BOTTOM ─── */
.footer-bottom {
    padding: var(--pb-space-6) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pb-space-6);
    flex-wrap: wrap;
}

.footer-bottom p,
.footer-bottom a {
    font-size: var(--pb-text-xs);
    color: var(--pb-gray-500);
}

.footer-bottom a:hover { color: var(--pb-blue); }

.footer-bottom a:focus-visible {
    outline: 2px solid var(--pb-blue);
    outline-offset: 2px;
    border-radius: 2px;
    color: var(--pb-blue);
}

.footer-legal-links {
    display: flex;
    gap: var(--pb-space-6);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--pb-space-8);
    }

    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .footer-top { grid-template-columns: 1fr; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
