/* ============================================
   Footer Styles
   ============================================ */

.main-footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

/* Footer columns layout optimization */
.footer-col:first-child {
    /* Logo column takes more space */
    max-width: 400px;
}

.footer-col:not(:first-child) {
    /* Other columns are compact */
    min-width: 200px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-logo i {
    font-size: 2.5rem;
    color: var(--primary-emerald);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-emerald);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary-emerald);
    padding-left: 5px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-emerald);
    transform: translateY(-3px);
}

/* Contact Info */
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.contact-info i {
    color: var(--primary-emerald);
    margin-top: 0.25rem;
    min-width: 20px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-emerald);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    .footer-col:first-child {
        grid-column: 1;
        padding-bottom: var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Collapsible footer sections on mobile */
    .footer-col:not(:first-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: var(--spacing-sm);
    }

    .footer-col:not(:first-child) h3 {
        cursor: pointer;
        position: relative;
        padding-right: 30px;
        user-select: none;
    }

    .footer-col:not(:first-child) h3::before {
        content: '+';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        font-weight: 300;
        transition: transform 0.3s ease;
    }

    .footer-col:not(:first-child).active h3::before {
        content: '−';
    }

    .footer-col:not(:first-child) ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .footer-col:not(:first-child).active ul {
        max-height: 500px;
    }

    .footer-logo {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-sm);
    }

    .footer-logo img {
        height: 35px;
    }

    .footer-col h3 {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }

    .footer-col p {
        font-size: 0.8125rem;
        margin-bottom: var(--spacing-sm);
        line-height: 1.6;
    }

    .footer-col ul li {
        margin-bottom: 0.5rem;
    }

    .footer-col ul li a {
        font-size: 0.8125rem;
    }

    .social-links {
        gap: var(--spacing-xs);
        margin-top: var(--spacing-sm);
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .contact-info li {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
        padding-top: var(--spacing-sm);
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    .footer-links {
        gap: var(--spacing-sm);
    }

    .footer-links a {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer-col p {
        font-size: 0.75rem;
    }

    .footer-col ul li a {
        font-size: 0.75rem;
    }

    .contact-info li {
        font-size: 0.75rem;
    }
}

