/* ======================================================================= */
/*                             FOOTER STYLES                               */
/* ======================================================================= */
footer {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/world-planets-500x500.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 1.5rem 0 1rem;
    font-size: 0.9rem;
    position: relative;
}

@media (max-width: 768px) {
    footer {
        background-attachment: scroll;
    }
}

/* Ensure strong contrast for footer content */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Updated footer styling */
.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Office Section */
.footer-offices {
    width: 100%;
}

.footer-offices h3 {
    color: #ffffff;
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Office grid for horizontal layout */
.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Improved office card styles */
.office-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.office-card h4 {
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.office-card p {
    color: #eeeeee;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-shadow: none;
    font-weight: 400;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.office-map {
    width: 100%;
    height: 180px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.office-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer Bottom */
.footer-separator {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0.5rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem 0;
    text-align: center;
    color: #cccccc;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Social links integration */
.footer-menu {
    text-align: center;
    margin: 0.5rem 0;
}

.footer-menu h3 {
    display: inline-block;
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-right: 1rem;
    margin-bottom: 0;
    font-weight: bold;
}

.social-links {
    display: inline-flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icon {
    color: #ffffff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
}

.footer-links-left ul,
.footer-links-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links-left a,
.footer-links-right a {
    color: #eee;
    text-decoration: none;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    transition: color 0.2s;
}

.footer-links-left a:hover,
.footer-links-right a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-copyright {
    flex-grow: 1;
    text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .office-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links-left,
    .footer-links-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .footer-links-left ul,
    .footer-links-right ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-links-left { order: 2; }
    .footer-copyright { order: 1; }
    .footer-links-right { order: 3; }
}

@media screen and (max-width: 768px) {
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .office-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .office-map {
        height: 160px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-links-left ul,
    .footer-links-right ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-icon {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .footer-container {
        padding: 0 0.5rem;
    }
    
    .office-card {
        padding: 1rem;
    }
    
    .office-map {
        height: 140px;
    }
    
    .footer-links-left ul,
    .footer-links-right ul {
        gap: 0.5rem;
    }
}