/* ============================================= */
/* FOOTER - Elite Production Version (2026 Standards)
/* 3-column legal bar: Copyright (left) | Legal links stacked (middle) | Credit (right)
/* Legal links forced vertical even on desktop per client requirement
/* ============================================= */

.footer {
    background-color: var(--neutral);
    color: var(--body-text);
    padding: 5.5rem 1rem 3.75rem;
    font-size: 0.95rem;
    line-height: 1.65;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="dark"] .footer {
    border-top-color: rgba(255, 255, 255, 0.09);
}

.footer-grid {
    display: grid;
    gap: 3.75rem 3rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-bottom: 4.75rem;
}

/* Brand Column */
.footer-brand {
    align-self: start;
    max-width: 34ch;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.footer-logo img {
    max-width: 210px;
    height: auto;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-logo:hover img,
.footer-logo:focus-visible img {
    transform: scale(1.04) translateY(-3px);
}

.footer-slogan {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.25rem 0 0.6rem;
    color: var(--primary);
    letter-spacing: -0.015em;
    text-align: center;
    width: 100%;
}

.footer-tagline {
    opacity: 0.88;
    font-size: 0.925rem;
    margin-bottom: 1.75rem;
    text-align: center;
    max-width: 32ch;
}

/* Partner Section - VaneGrit */
.footer-partners {
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

[data-theme="dark"] .footer-partners {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-partner-label {
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: 0.75;
    margin-bottom: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.partner-link img {
    max-width: 145px;
    height: auto;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(25%);
}

.partner-link:hover img,
.partner-link:focus-visible img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Column Headings & Links */
.footer-column h3.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
    color: var(--body-text);
}

.footer-links li,
.footer-contact-list li {
    margin-bottom: 0.85rem;
}

.footer-links a,
.footer-contact-link,
.partner-link {
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact-link:hover,
.footer-contact-link:focus-visible,
.partner-link:hover,
.partner-link:focus-visible {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact-link {
    font-weight: 500;
}

/* CTA Button */
.footer-cta {
    display: inline-block;
    margin: 1.5rem 0 2.25rem;
    padding: 1.05rem 2.4rem;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 9999px;
}

.footer-cta:hover,
.footer-cta:focus-visible {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 32px -10px rgb(0 102 204 / 0.38);
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    justify-content: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.footer-social img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.85);
}

.footer-social a:hover img,
.footer-social a:focus-visible img {
    transform: scale(1.18);
    filter: brightness(1) drop-shadow(0 2px 4px rgba(0, 102, 204, 0.3));
}

[data-theme="dark"] .footer-social img {
    filter: brightness(1.1);
}

/* ====================== */
/* LEGAL BAR - 3 INDEPENDENT COLUMNS
/* Left: Copyright | Middle: Vertical legal links | Right: Hand-coded credit
/* Legal links stacked vertically on ALL screen sizes
/* ====================== */
.footer-legal {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2.25rem;
    background-color: var(--neutral);
}

[data-theme="dark"] .footer-legal {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-legal-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;           /* Allows vertical alignment control */
    justify-content: space-between;
    gap: 2rem 3rem;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.85;
    max-width: 100%;
}

/* Left - Copyright */
.footer-copyright {
    flex: 1 1 280px;
    text-align: left;
    white-space: nowrap;
    color: var(--body-text);
}

/* Middle - Legal Links (forced vertical stack) */
.footer-legal-links-container {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-legal-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-legal-links a {
    color: inherit;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
    color: var(--primary);
}

/* Right - Hand-coded credit */
.footer-built {
    flex: 1 1 280px;
    text-align: right;
    white-space: nowrap;
    color: var(--body-text);
    font-style: italic;
}

/* Mobile: Everything stacks into one centered column */
@media (max-width: 47.9375rem) {
    .footer-legal-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-copyright,
    .footer-built {
        text-align: center;
        white-space: normal;
    }
    
    .footer {
        padding: 4.25rem 1rem 3.25rem;
    }
    
    .footer-grid {
        gap: 3.25rem 2.25rem;
    }
}

/* Accessibility & Safeguards */
@media (prefers-reduced-motion: reduce) {
    .footer-logo img,
    .footer-logo:hover img,
    .footer-logo:focus-visible img,
    .partner-link img,
    .partner-link:hover img,
    .footer-cta,
    .footer-social a,
    .footer-social img,
    .footer-links a,
    .footer-contact-link,
    .footer-legal-links a {
        transition-duration: 0.01ms;
        transform: none;
    }
}

@media (forced-colors: active) {
    .footer {
        border-top-color: CanvasText;
    }
    
    .footer-social a {
        border: 2px solid CanvasText;
        background: Canvas;
    }
    
    .footer-social a:hover,
    .footer-social a:focus-visible {
        background: Highlight;
        color: HighlightText;
    }
    
    .footer-social img,
    .partner-link img {
        filter: none;
    }
    
    .footer-legal {
        border-top-color: CanvasText;
    }
    
    .footer-legal-content {
        opacity: 1;
    }
}