/* Footer Styles */
.footer-section {
    background: var(--dark);
    color: white;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin: 4rem -50vw 0 -50vw;
    padding: 4rem 0 0;
    margin-top: auto;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: 100%;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

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

.newsletter-form input {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    background: var(--gray-100);
}

.newsletter-form button {
    background: var(--gradient);
    border: none;
    color: white;
    border-radius: 6px;
    padding: 0 1rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

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

.footer-socials a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: var(--primary);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    width: 100%;
    color: var(--gray-400);
    font-size: 0.95rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-about {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}
