/**
 * EZ Golf Academy - Final Footer
 *
 * White 3-column footer, muted type, clean bottom bar.
 * Loaded last to override legacy dark-footer rules.
 *
 * @package EZGolfAcademy
 * @since   1.1.0
 */

/* =========================================
   1. Footer Shell
   ========================================= */

#colophon.site-footer,
.site-footer,
footer.site-footer {
    background: var(--ez-navy) !important;
    color: var(--ez-white) !important;
    padding: 40px 0 !important;
    margin-top: 0 !important;
    border-top: 2px solid var(--ez-gold-primary, #FFC72C) !important;
    min-height: auto !important;
    height: auto !important;
}

/* =========================================
   2. Three-column grid
   ========================================= */

.footer-cols {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-col {
    min-width: 0;
}

/* =========================================
   3. Left — Logo
   ========================================= */

.footer-col--brand {
    justify-self: start;
}

.footer-logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.footer-logo-img {
    width: 120px;
    height: auto;
    display: block;
    background: transparent !important;
}

/* =========================================
   4. Center — Quick Links
   ========================================= */

.footer-col--links {
    justify-self: center;
}

.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

.footer-link-list li {
    margin: 0;
}

.footer-link-list a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible {
    color: var(--ez-gold);
    outline: none;
}

/* =========================================
   5. Right — Copyright + Location
   ========================================= */

.footer-col--copyright {
    justify-self: end;
    text-align: right;
}

.footer-copyright,
.footer-location {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ez-white);
    line-height: 1.5;
}

.footer-location {
    margin-top: 4px;
    opacity: 0.9;
}

/* =========================================
   6. Responsive
   ========================================= */

@media (max-width: 768px) {
    .footer-cols {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-col--brand {
        justify-self: center;
    }

    .footer-col--links {
        justify-self: center;
    }

    .footer-col--copyright {
        justify-self: center;
        text-align: center;
    }

    .footer-link-list {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* =========================================
   7. Legacy overrides
   ========================================= */

.site-footer .footer-content,
.site-footer .footer-logo,
.site-footer .footer-nav,
.site-footer .footer-menu,
.site-footer .footer-widgets,
.site-footer .footer-widget-area {
    display: none !important;
}

.site-footer .footer-cols {
    display: grid !important;
}

/* Accessibility focus ring */
.footer-link-list a:focus-visible,
.footer-logo-link:focus-visible {
    outline: 2px solid var(--ez-gold);
    outline-offset: 2px;
}

/* Print: hide footer */
@media print {
    .site-footer {
        display: none !important;
    }
}
