/* Site Footer Component */
.site-footer {
    background-color: #092B4B;
    padding: 0;
    position: relative;
    margin-top: 40px;
}

.footer-top-svg {
    position: absolute;
    top: -60px;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 10;
    line-height: 0;
    padding: 0;
    overflow: hidden;
}

.footer-top-image {
    width: 100% !important;
    height: 70px !important;
    display: block;
    vertical-align: bottom;
    padding: 0;
    margin: 0 0 -1px 0;
    object-fit: cover;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-top {
    margin-bottom: 2rem;
}

.footer-logo {
    width: 300px;
    height: auto;
}

.footer-navigation {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    min-height: 200px;
}

.footer-navigation-section {
    flex: 0 0 25%;
}

.footer-navigation-title {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

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

.footer-navigation-section li {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.footer-navigation-link {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-navigation-link:hover {
    color: var(--color-light-green);
    text-decoration: underline;
}

.footer-navigation-section a:not(.footer-navigation-link) {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-navigation-section a:not(.footer-navigation-link):hover {
    color: var(--color-light-green);
}

.footer-image-section {
    background-image: url('/wp-content/themes/hac/images/footer-house.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    height: 150px;
    width: 25%;
    margin-bottom: 0;
    position: absolute;
    right: 0;
    bottom: -2rem;
    z-index: 1;
    min-height: 150px;
}

.footer-bottom {
    border-top: 1px solid var(--color-light-green);
    padding: 0.25rem 0 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-legal-link {
    color: var(--color-light-green);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
    align-self: flex-end;
}

.footer-copyright {
    color: var(--color-white);
    font-size: 0.875rem;
    text-align: center;
}

.footer-legal-link:hover {
    color: var(--color-white);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-navigation {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-navigation-section {
        flex: 1;
    }
    
    .footer-image-section {
        width: 20%;
        height: 120px;
        min-height: 120px;
    }
    

    .footer-logo-link {
        display: block;
    }
    .footer-logo {
        width: 250px;
    }
    
    .footer-container {
        padding: 0.5rem 1rem;
    }
    
    .footer-bottom {
        /* Keep links side-by-side on mobile */
    }
    
    /* Ensure footer-top-image stays 70px on mobile */
    .footer-top-image {
        width: 100% !important;
        height: 70px !important;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        width: 200px;
    }
    
    .footer-image-section {
        width: 15%;
        height: 80px;
        min-height: 80px;
    }
    
    .footer-navigation-title,
    .footer-navigation-section li {
        font-size: 0.9rem;
    }
    
    /* Ensure footer-top-image stays 70px on small mobile */
    .footer-top-image {
        width: 100% !important;
        height: 70px !important;
    }
}
