/* Footer styles */

.site-footer {
    background-color: var(--footer-bg-color); /* Accessible darker green with 4.5:1 contrast ratio against white */
    color: var(--footer-text-color);;
    padding: 1.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    contain: layout style paint;
}

/* Social media icons */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 10px;
    position: relative;
    width: 200px;
}

.social-icons:before,
.social-icons:after {
    content: "";
    height: 1px;
    background-color: var(--footer-text-color);;
    position: absolute;
    top: 50%;
    width: 500%;
}

.social-icons:before {
    right: 100%;
}

.social-icons:after {
    left: 100%;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1);
}

.social-img:hover {
    transform: scale(1.2);
    filter: var(--social-icon-hover-filter)
}

/* Footer logo */
.footer-logo {
    max-width: 300px;
    margin: 5px auto;
}

.footer-logo-img {
    width: 100%;
    height: auto;
}

/* Contact information */
.contact-info {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 10px;
    text-align: center;
}

.contact-line {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.contact-email, 
.contact-phone {
    white-space: nowrap;
}

.separator {
    display: inline-block;
    padding: 0 8px;
}

.contact-link {
    text-decoration: none;
    color: var(--footer-text-color);
}

.contact-link:hover {
    color: var(--hover-color); /* Lighter green on hover */
    text-decoration: underline;
}

.contact-link {
    padding: 2px 0;  /* Reduced vertical padding */
    margin: 1px 0;   /* Reduced vertical margin */
    display: inline-block;
    line-height: 1.3; /* Reduced line height */
}

.contact-info .contact-line {
    padding-top: 4px;  /* Reduced padding */
}

.address-container {
    width: 100%;
    margin: 5px auto 0;
    text-align: center;
}

.address {
    font-size: 1rem;
    color: var(--footer-text-color); 
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.address:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

@media screen and (max-width: 530px) {
    /* Smallest screens - All contacts stacked vertically */
    .contact-line {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
    
    .contact-email, 
    .contact-phone {
        display: block;
        width: 100%;
        text-align: center;
        margin: 2px 0;
    }
    
    .separator {
        display: none;
    }

    .address-container {
        border-top: 1px solid var(--address-container-color);
        padding-top: 10px;
        width: 90%;
    }
    
    .address {
        font-size: 0.8rem;
        display: block;
    }
}

@media screen and (max-width: 360px) {
    .contact-info {
        font-size: 0.8rem;
        max-width: 280px;
        padding: 0 5px;
    }
    
    .social-icons {
        gap: 8px; /* Reduced gap */
        width: 120px; /* Reduced width */
    }
    
    .social-icons:before,
    .social-icons:after {
        width: 120px;
    }
    
    .social-img {
        width: 25px;
        height: 25px;
    }
    
    .footer-logo {
        max-width: 150px;
    }

    .address {
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 320px) {
    .contact-info {
        max-width: 250px;
        font-size: 0.75rem;
    }
    
    .contact-line {
        gap: 4px;
    }
    
    .social-icons {
        gap: 15px; /* Further reduced gap */
        width: 130px; /* Even smaller width */
    }

    /* Ensure the side lines reach the page edge on small screens */
    .social-icons:before,
    .social-icons:after {
        width: 100px;
    }

    .address-container {
        margin-top: 12px;
        padding-top: 8px;
    }
    
    .address {
        font-size: 0.6rem;
    }
}
