/* Enhanced Footer System */
/* Version: 2.0 - Contemporary Redesign Footer */

/* ===== ENHANCED FOOTER ===== */

.footer-enhanced {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-charcoal-new) 100%);
    color: var(--color-white);
    padding: var(--space-20) 0 var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.footer-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    pointer-events: none;
}

.footer-container-enhanced {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 2;
}

/* ===== FOOTER HEADER ===== */

.footer-header-enhanced {
    text-align: center;
    margin-bottom: var(--space-16);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hide footer logo per requirements */
.footer-logo-section-enhanced { display: none; }

.footer-logo-enhanced {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    padding: var(--space-2);
    box-shadow: var(--shadow-md);
}

.footer-brand-enhanced h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    line-height: 1.2;
}

.footer-brand-enhanced p {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.8);
    margin: var(--space-2) 0 0 0;
    line-height: 1.5;
}

/* ===== FOOTER CONTENT GRID ===== */

.footer-content-enhanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-16);
    margin-bottom: var(--space-16);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hide the Resources column if present */
.footer-content-enhanced .footer-section-enhanced:nth-child(3) { display: none; }

.footer-section-enhanced {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.footer-section-enhanced h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 var(--space-6) 0;
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-teal);
    display: inline-block;
    position: relative;
}

.footer-section-enhanced h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-teal);
    width: 100%;
}

.footer-section-enhanced ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section-enhanced li {
    margin-bottom: var(--space-3);
}

.footer-section-enhanced a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
}

.footer-section-enhanced a:hover {
    color: var(--color-white);
    transform: translateX(4px);
}

.footer-section-enhanced a:focus {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ===== FOOTER CONTACT ===== */

.footer-contact-enhanced {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-enhanced h3 {
    border-bottom-color: var(--color-orange);
}

.contact-item-enhanced {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.contact-icon-enhanced {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-teal);
    border-radius: 50%;
    color: var(--color-white);
    font-size: var(--text-sm);
}

.contact-text-enhanced {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-base);
}

/* ===== FOOTER BOTTOM ===== */

.footer-bottom-enhanced {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.footer-bottom-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-teal), transparent);
}

.footer-bottom-enhanced p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    margin: 0;
}

.footer-social-enhanced {
    display: none;
}

/* Social media styles removed */

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .footer-enhanced {
        padding: var(--space-16) 0 var(--space-8) 0;
    }
    
    .footer-header-enhanced {
        margin-bottom: var(--space-12);
        padding-bottom: var(--space-8);
    }
    
    .footer-logo-enhanced {
        width: 40px;
        height: 40px;
    }
    
    .footer-brand-enhanced h2 {
        font-size: var(--text-2xl);
    }
    
    .footer-content-enhanced {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        margin-bottom: var(--space-12);
        max-width: 400px;
    }
    
    .footer-section-enhanced {
        text-align: center;
    }
    
    .footer-section-enhanced h3 {
        border-bottom: none;
        border-bottom: 2px solid var(--color-teal);
        margin: 0 auto var(--space-6) auto;
    }
    
    .footer-section-enhanced a:hover {
        transform: translateY(-2px);
    }
    
    .contact-item-enhanced {
        justify-content: center;
    }
    
    .footer-bottom-enhanced {
        max-width: 400px;
    }
}

@media (min-width: 1200px) {
    .footer-content-enhanced {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ===== ANIMATION UTILITIES ===== */

@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-enhanced {
    animation: footerFadeIn 1s ease-out;
}

.footer-section-enhanced {
    animation: footerFadeIn 1s ease-out 0.2s both;
}

.footer-bottom-enhanced {
    animation: footerFadeIn 1s ease-out 0.4s both;
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

@media (prefers-reduced-motion: reduce) {
    .footer-enhanced,
    .footer-section-enhanced,
    .footer-bottom-enhanced {
        animation: none;
    }
    
    .footer-section-enhanced a:hover,
    .social-link-enhanced:hover {
        transform: none;
    }
}

/* ===== PRINT STYLES ===== */

@media print {
    .footer-enhanced {
        background: var(--color-white);
        color: var(--color-navy);
        padding: var(--space-8) 0;
    }
    
    .footer-enhanced::before {
        display: none;
    }
    
    .footer-section-enhanced h3 {
        color: var(--color-navy);
        border-bottom-color: var(--color-navy);
    }
    
    .footer-section-enhanced a {
        color: var(--color-navy);
    }
    
    .social-link-enhanced {
        display: none;
    }
}

/* ==========================================================================
   CSS Overrides to Ensure New Footer Styles Take Precedence
   ========================================================================== */

/* Force new footer styles to override old styles */
.footer-enhanced {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    padding: var(--space-12) 0 var(--space-6) 0 !important;
    margin-top: var(--space-12) !important;
}

.footer-container-enhanced {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 var(--space-6) !important;
}

.footer-header-enhanced {
    text-align: center !important;
    margin-bottom: var(--space-8) !important;
    padding-bottom: var(--space-6) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.footer-logo-section-enhanced {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--space-4) !important;
    margin-bottom: var(--space-4) !important;
}

.footer-logo-enhanced {
    height: 50px !important;
    width: auto !important;
    filter: brightness(0) invert(1) !important;
}

.footer-brand-enhanced h2 {
    font-size: var(--text-2xl) !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.footer-brand-enhanced p {
    font-size: var(--text-base) !important;
    margin: var(--space-2) 0 0 0 !important;
    opacity: 0.9 !important;
}

.footer-content-enhanced {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: var(--space-8) !important;
    margin-bottom: var(--space-8) !important;
}

.footer-section-enhanced h3 {
    font-size: var(--text-lg) !important;
    font-weight: 600 !important;
    margin: 0 0 var(--space-4) 0 !important;
    color: var(--color-white) !important;
}

.footer-section-enhanced ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-section-enhanced li {
    margin-bottom: var(--space-2) !important;
}

.footer-section-enhanced a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: color var(--transition-normal) !important;
}

.footer-section-enhanced a:hover {
    color: var(--color-white) !important;
}

.footer-contact-enhanced {
    text-align: center !important;
    margin-bottom: var(--space-6) !important;
}

.footer-contact-enhanced p {
    margin: var(--space-2) 0 !important;
    opacity: 0.9 !important;
}

.footer-bottom-enhanced {
    text-align: center !important;
    padding-top: var(--space-6) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-size: var(--text-sm) !important;
    opacity: 0.8 !important;
}

.footer-social-enhanced {
    display: flex !important;
    justify-content: center !important;
    gap: var(--space-4) !important;
    margin-top: var(--space-4) !important;
}

.footer-social-enhanced a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    color: var(--color-white) !important;
    text-decoration: none !important;
    transition: all var(--transition-normal) !important;
}

.footer-social-enhanced a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Responsive overrides */
@media (max-width: 768px) {
    .footer-enhanced {
        padding: var(--space-8) 0 var(--space-4) 0 !important;
    }
    
    .footer-content-enhanced {
        grid-template-columns: 1fr !important;
        gap: var(--space-6) !important;
        text-align: center !important;
    }
    
    .footer-container-enhanced {
        padding: 0 var(--space-4) !important;
    }
}
