/* ===== Site Footer ===== */

.site-footer {
    background: linear-gradient(180deg, #115b46 0%, #0d4636 100%);
    color: #d9ece4;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: 0 5vw;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h4 {
    margin: 0 0 1.25rem;
    color: var(--color-light);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-logo {
    width: 180px;
    margin-bottom: 1rem;
}

.footer-tagline {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.85;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.footer-column a {
    color: #d9ece4;
    transition: color var(--transition-fast);
    font-size: 0.95rem;
}

    .footer-column a:hover,
    .footer-column a:focus-visible {
        color: #7cf5c4;
    }

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-map {
    margin-top: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.footer-map a {
    display: block;
    line-height: 0;
}

.footer-map img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--color-light);
}

.footer-bottom {
    padding: 1.5rem 0 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.75;
}

/* Client copy left, PVIntelligence credit right, on the footer content width */
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding: 0 5vw;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    text-align: left;
}

.footer-credit {
    text-align: right;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1rem;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-map {
        max-width: 400px;
        margin: 1.25rem auto 0;
    }

    /* Stack, but keep client copy left and our credit right - never centered */
    .footer-bottom-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }
}
