/**
 * UNITY Foundation - Site-Wide Footer Styling
 * Olive Green (#6B8E23) + Cream/Ivory + Warm Gold/Bronze Theme
 * Version: 2.0 - 2026-02-23
 */

/* ============================================
   FOOTER - UNIFIED OLIVE/TEAL THEME
   ============================================ */

footer {
    padding: 60px 0;
    border-top: 4px solid var(--gold);
    position: relative;
    overflow: hidden;
}

/* Default footer - Dark teal */
footer {
    background: linear-gradient(135deg, var(--teal) 0%, #1A4A4A 50%, #2D6B6B 100%);
}

/* Page-specific footer backgrounds - teal variations */
footer.footer-home {
    background: linear-gradient(135deg, #1A4A4A 0%, #1E5555 50%, #2D6B6B 100%);
    border-top-color: var(--gold-light);
}

footer.footer-living-testimony {
    background: linear-gradient(135deg, #163D3D 0%, #1A4A4A 50%, #2A6565 100%);
    border-top-color: var(--gold);
}

footer.footer-saalt {
    background: linear-gradient(135deg, #184040 0%, #1A4A4A 50%, #2A6868 100%);
    border-top-color: var(--gold-light);
}

footer.footer-national-hub {
    background: linear-gradient(135deg, #173E3E 0%, #1A4A4A 50%, #2C6868 100%);
    border-top-color: var(--gold);
}

footer.footer-resources {
    background: linear-gradient(135deg, #194242 0%, #1A4A4A 50%, #2E6A6A 100%);
    border-top-color: var(--gold-light);
}

footer.footer-unity-connector {
    background: linear-gradient(135deg, #1B4545 0%, #1A4A4A 50%, #306C6C 100%);
    border-top-color: var(--gold);
}

/* ============================================
   FOOTER CONTENT LAYOUT
   ============================================ */

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--cream);
    font-family: 'Montserrat', sans-serif;
}

.footer-section p {
    color: rgba(245, 241, 232, 0.85);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--gold-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

/* ============================================
   SOCIAL MEDIA ICONS - GOLD THEME
   ============================================ */

.footer-social {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background: rgba(197, 165, 90, 0.1);
    color: var(--gold-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-link:hover {
    background: var(--gold);
    color: var(--teal);
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(197, 165, 90, 0.4);
}

.social-link i {
    font-size: 18px;
}

/* ============================================
   WEB PORTAL LINKS
   ============================================ */

.web-portals {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.portal-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(197, 165, 90, 0.15);
    color: var(--gold-light);
    text-decoration: none;
    border: 1px solid var(--gold);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-link:hover {
    background: var(--gold);
    color: var(--teal);
    box-shadow: 0 4px 12px rgba(197, 165, 90, 0.3);
}

.portal-link i {
    margin-right: 6px;
}

/* ============================================
   FOOTER TEXT SEARCH BARS
   ============================================ */

.footer-search {
    margin-top: 24px;
}

.footer-search label {
    display: block;
    color: var(--cream);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.search-input-group {
    position: relative;
}

.footer-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(197, 165, 90, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--cream);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-search-input::placeholder {
    color: rgba(245, 241, 232, 0.5);
}

.footer-search-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.2);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(245, 241, 232, 0.6);
    pointer-events: none;
    font-size: 16px;
}

/* ============================================
   FOOTER BOTTOM - COPYRIGHT & LINKS
   ============================================ */

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(245, 241, 232, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: rgba(245, 241, 232, 0.7);
    font-size: 13px;
    font-weight: 500;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--gold);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    footer {
        padding: 48px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-section p {
        font-size: 14px;
    }

    .footer-social {
        gap: 12px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .social-link i {
        font-size: 16px;
    }

    .footer-search-input {
        padding: 11px 14px;
        font-size: 13px;
    }

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

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 40px 0;
    }

    .footer-content {
        gap: 32px;
    }

    .footer-section h4 {
        font-size: 15px;
    }

    .footer-social {
        gap: 10px;
        justify-content: center;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .web-portals {
        gap: 8px;
        justify-content: center;
    }

    .portal-link {
        padding: 7px 12px;
        font-size: 12px;
    }

    .footer-legal-links {
        gap: 16px;
    }
}
