/**
 * Footer — assets/css/footer.css
 * Site footer with DEI4SME branding, EU co-funded disclaimer, social links, and bottom bar.
 *
 * @package  DEI4SME
 * @used-in  footer.php
 *
 * SELECTORS:
 *   .site-footer               — Footer wrapper (--color-bg-alt background)
 *   .footer-main               — Flex row: branding left, EU disclaimer right
 *   .footer-branding           — DEI4SME logo + description block (max-width 450px)
 *   .footer-branding__logo     — DEI4SME logo (80px, retina via srcset)
 *   .footer-branding__text     — Project description paragraph (15px)
 *   .footer-eu                 — EU co-funded logo + disclaimer (flex row, max-width 500px)
 *   .footer-eu__logo           — EU co-funded logo (50px, retina via srcset)
 *   .footer-eu__disclaimer     — EU disclaimer text (14px, --color-text-light)
 *   .footer-bottom             — Dark bottom bar (--color-primary-dark background)
 *   .footer-bottom__separator  — Pipe separators (opacity 0.5)
 *   .footer-social             — Social media icon links (Facebook, Instagram, LinkedIn, YouTube)
 *   .footer-social a           — Icon link (44x44px, white, SVG fill)
 */

/* === Footer === */
.site-footer {
    background: var(--color-bg);
    color: var(--color-text-muted);
    margin-top: 3rem; /* ~48px — UX sweet spot for content-to-footer breathing room */
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-border);
}

.footer-branding {
    flex: 1;
    max-width: 450px;
}

.footer-branding__logo {
    height: 80px;
    width: auto;
    margin-bottom: var(--spacing-sm);
}

.footer-branding__text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.footer-branding__text strong {
    font-weight: 700;
}

.footer-eu {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.footer-eu__logo {
    flex-shrink: 0;
    height: 50px;
    width: auto;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.footer-eu__disclaimer {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    font-size: 15px;
    background: var(--gradient-primary);
    color: #FFFFFFCC;
}

.footer-bottom__left,
.footer-bottom__right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-bottom a {
    color: #FFFFFFCC;
    text-decoration: underline;
}

.footer-bottom a[href^="mailto"] {
    color: #FFFFFF;
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom__separator {
    color: #8EB6E1;
    opacity: 1;
}

.footer-bottom__copyright {
    color: #FFFFFF99;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: #FFFFFFCC;
    opacity: 1;
    transition: opacity var(--transition);
}

.footer-social a:hover {
    color: #fff;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* === Responsive Footer === */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
    }

    .footer-branding,
    .footer-eu {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        padding: 20px;
    }

    .footer-bottom__left,
    .footer-bottom__right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}
