/**
 * Footer
 * Professional multi-column layout.
 */

 .footer {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    padding-top: var(--space-96);
    position: relative;
    overflow: hidden;
}

/* Subtle background accent */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-48);
    margin-bottom: var(--space-64);
}

.footer-col__title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-24);
    color: var(--color-surface);
}

.footer-col__text {
    color: #A0ABC0; /* Muted inverse text */
    margin-bottom: var(--space-24);
    max-width: 320px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.footer-link {
    color: #A0ABC0;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-link:hover {
    color: var(--color-secondary);
    transform: translateX(4px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-16);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-surface);
    transition: var(--transition-normal);
}

.social-link:hover {
    background-color: var(--color-secondary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* Contact Info List */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

footer .contact-item {
    display: flex;
    gap: var(--space-12);
    color: #A0ABC0;
    align-items: flex-start;
}

footer .contact-item i {
    color: var(--color-secondary);
    margin-top: 4px;
}

/* Footer Bottom */
.footer-bottom {
    padding-block: var(--space-32);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #A0ABC0;
    font-size: var(--text-sm);
}

.footer-legal {
    display: flex;
    gap: var(--space-24);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-32);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-16);
        text-align: center;
    }
}

/* =========================================================================
   LEGACY FOOTER STYLES (Required for index.html, AboutUs.html, Contactus.html)
   ========================================================================= */
footer {
    background-color: var(--dark);
    color: white;
    padding: 6rem 2rem 2rem;
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-logo span {
    background: linear-gradient(to right, var(--primary), #ff8c00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-about p {
    color: #bbb;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Ensure these don't conflict with newer ones */
.footer-container .social-links {
    display: flex;
    gap: 1rem;
}

.footer-container .social-links a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.footer-container .social-links a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    color: #bbb;
    font-size: 1rem;
}

.footer-contact i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 25px;
}

.footer-bottom {
    text-align: center;
    padding-top: 4rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}
