/* File: assets/css/footer-responsive.css */

/*--------------------------------------------------------------
# Footer Responsive Styles
--------------------------------------------------------------*/

/* Base styles remain in style.css - this file contains only responsive adjustments */

/* Desktop styles (default) */
.site-footer {
    background-color: var(--bg-alt);
    color: var(--text-color);
    padding: var(--space-xxl) 0 var(--space-md);
    margin-top: var(--space-xxl);
    transition: var(--theme-transition);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.footer-section h3 {
    position: relative;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    font-weight: 600;
    padding-bottom: var(--space-sm);
}

.footer-section h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

.footer-bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.footer-links a {
    margin-left: var(--space-md);
    color: var(--text-light);
}

/* Back to top button - new addition */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--primary-dark);
}

/* Newsletter form in footer - standardize styling */
.footer-newsletter-form {
    display: flex;
    width: 100%;
}

.footer-newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.footer-newsletter-form button {
    background-color: var(--primary-color);
    color: white;
    padding: 0 15px;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-newsletter-form button:hover {
    background-color: var(--primary-dark);
}

/* Contact info styling */
.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.contact-info i {
    margin-right: 10px;
    min-width: 20px;
    color: var(--primary-color);
}

/* Social icons - consistent styling */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--bg-light);
    color: var(--text-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Additional desktop-specific styles if needed */
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Adjust back to top button position */
    #back-to-top {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    /* Reduce padding for smaller screens */
    .site-footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    /* Smaller headings */
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    /* Adjust footer bottom for smaller screens */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1rem;
    }
    
    .footer-links a {
        margin: 0 0.5rem;
    }
    
    /* Smaller back to top button for mobile */
    #back-to-top {
        width: 40px;
        height: 40px;
        right: 1rem;
        bottom: 1rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Stack all footer columns on mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Each section needs more spacing */
    .footer-section {
        padding-bottom: 1rem;
    }
    
    /* Last section doesn't need bottom spacing */
    .footer-section:last-child {
        padding-bottom: 0;
    }
    
    /* Smaller spacing between items */
    .footer-section h3 {
        margin-bottom: 0.75rem;
    }
    
    /* Adjust footer bottom spacing */
    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    /* Ensure social icons wrap properly on tiny screens */
    .social-icons {
        flex-wrap: wrap;
    }
}