/* Professional Footer Design */

/* Base Footer Structure */
.site-footer {
    position: relative;
    margin-top: 5vh;
    width: 100%;
    overflow: hidden;
    background: #1a1a1a;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Footer Background with Landing Image */
.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/wp-content/themes/firefly-collective/templates/default/images/landing-default-bg.webp');
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    opacity: 0.3;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.7) 0%,
        rgba(26, 26, 26, 0.9) 50%,
        rgba(26, 26, 26, 1) 100%
    );
}

/* Footer Content Container */
.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

/* Main Footer Grid */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Sections */
.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section h3 {
    font-family: var(--font-brand);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--mainColor) 0%, transparent 100%);
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

.footer-site-name {
    font-family: var(--font-brand);
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--mainColor);
    transform: translateY(-3px);
}

/* Footer Menus */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.footer-menu a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-menu a:hover::before {
    opacity: 1;
}

/* Handle WordPress menu classes */
.footer-menu .menu-item {
    margin-bottom: 0.75rem;
}

/* Hide submenu items in footer for cleaner layout */
.footer-menu .sub-menu {
    display: none;
}

/* Highlight current page in footer */
.footer-menu .current-menu-item > a,
.footer-menu .current_page_item > a {
    color: var(--mainColor);
    font-weight: 600;
}

/* Contact Section */
.footer-contact-list {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
}

.footer-contact-list li {
    margin-bottom: 0.75rem;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-list a:hover {
    color: var(--mainColor);
}

/* Newsletter Section */
.footer-newsletter {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.footer-newsletter h4 {
    font-family: var(--font-brand);
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--mainColor);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--mainColor);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-brand);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--navBgColor);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 111, 181, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}

/* Dark Theme Override - Ensure Footer Stays Dark */
body > footer,
body footer.site-footer {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

/* Remove old footer styling */
footer:not(.site-footer) {
    display: none;
}