/* Footer Styles
--------------------------------------------- */

.site-footer {
    background-color: var(--deep-green, #104911);
    color: white;
    padding: 3rem 0 0;
    margin-top: 3rem;
}

/* Footer Container Styles */
.site-footer .container.footer-container,
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Footer Column Headings */
.footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #2a7d2e;
}

/* About Column */
.footer-about p {
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-about .btn {
    display: inline-flex;
    align-items: center;
    color: #fff;
    border-color: #fff;
}

.footer-about .btn .material-icons {
    margin-left: 0.5rem;
    font-size: 18px;
}

.footer-about .btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Links Column */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
}

.footer-links a:before {
    content: '•';
    margin-right: 0.5rem;
    color: #2a7d2e;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Contact Column */
.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
}

.footer-contact .material-icons {
    margin-right: 0.5rem;
    color: #2a7d2e;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Social Icons */
.social-icons {
    display: flex;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.75rem;
    color: #fff;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #2a7d2e;
    color: #fff;
}

.social-icon .material-icons {
    font-size: 18px;
    margin-right: 0;
}

/* Footer Bottom */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.site-footer .footer-bottom .container,
.footer-bottom .container {
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    max-width: var(--container-xl);
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.9;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background-color: #2a7d2e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #216b24;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .site-footer {
        padding-top: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column h3 {
        margin-bottom: 0.75rem;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
}

/* Override container padding resets for mobile */
@media (max-width: 576px) {
    /* Important tags used to override the layout.css media query that removes mobile padding */
    .site-footer .container.footer-container,
    .footer-container {
        padding-left: var(--spacing-md) !important;
        padding-right: var(--spacing-md) !important;
    }
    
    .site-footer .footer-bottom .container,
    .footer-bottom .container {
        padding-left: var(--spacing-md) !important;
        padding-right: var(--spacing-md) !important;
    }
}

/* Very small devices adjustment */
@media (max-width: 480px) {
    /* Use smaller padding on very small screens, but maintain some spacing */
    .site-footer .container.footer-container,
    .footer-container {
        padding-left: var(--spacing-sm) !important;
        padding-right: var(--spacing-sm) !important;
    }
    
    .site-footer .footer-bottom .container,
    .footer-bottom .container {
        padding-left: var(--spacing-sm) !important;
        padding-right: var(--spacing-sm) !important;
    }
    
    .footer-container {
        gap: 1.5rem;
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
    
    .social-icon {
        margin-bottom: 0.5rem;
    }
} 