/* Główne ustawienia footera */
footer.site-footer {
    background: linear-gradient(180deg, var(--bg-surface), var(--bg-main));
    color: var(--text-muted);
    width: 100%;
}

/* Kontener ograniczający szerokość do 2500px */
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Górna sekcja - Flexbox */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 5rem 0 3rem;
}

/* Kolumny */
.footer-column {
    flex: 1 1 200px;
}

.footer-brand-wrapper {
    flex: 1.5 1 250px;
}

.footer-brand {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Dane kontaktowe */
.footer-contact-info {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact-info p {
    margin-bottom: 0.8rem;
}

.footer-contact-info a {
    color: inherit;
    text-decoration: none;
}
.footer-contact-info a:hover {
    color: var(--text-secondary);
}
.footer-contact-info  a:focus-visible {
    outline: 3px solid #ffcc00; /* Jaskrawy kolor fokusu */
    outline-offset: 4px;
    border-radius: 2px;
}

.footer-contact-info .small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.footer-title {
    color: var(--text-primary);
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* Linki w stopce */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: .6rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

.footer-links a:focus-visible,
.social a:focus-visible {
    outline: 3px solid #ffcc00; /* Jaskrawy kolor fokusu */
    outline-offset: 4px;
    border-radius: 2px;
}

/* Sekcja Dofinansowania UE */
.footer-eu-grant {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.eu-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Wyśrodkowanie logotypów UE */
    text-align: center;
}

.eu-logo-wrapper {
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 1rem;
}
.eu-logo-wrapper:focus-visible {
    outline: 3px solid #ffcc00; /* Jaskrawy kolor fokusu */
    outline-offset: 4px;
    border-radius: 2px;
}

.eu-full-banner {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 60px;
    mix-blend-mode: multiply; /* Usuwa białe tło z obrazka, jeśli tło kontenera jest białe */
}

.eu-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Dolna sekcja (Copyright i Social) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    font-size: .85rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Social Media */
.social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 13%);
    transition: background .25s ease, transform .25s ease;
    color: var(--text-muted);
    text-decoration: none;
}

.social a:hover {
    background: var(--brand);
    transform: translateY(-3px);
    color: #fff;
}

/* Obsługa ikony Facebook (obrazek) */
.social-img-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: filter .25s ease;
}

/* Sprawia, że czarna ikona FB staje się biała na hover */
.social a:hover .social-img-icon {
    filter: brightness(0) invert(1);
}

/* Media Queries */
@media (max-width: 768px) {
    .footer-top {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

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

    .eu-full-banner {
        max-height: 45px;
    }
}