/* Footer — fixed at bottom, revealed as page scrolls */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
    background-color: var(--color-brand-dark);
    color: var(--color-white);
}

/* ── Map section ──────────────────────────────────────────── */

.footer__map-section {
    position: relative;
}

.footer__map-link {
    display: block;
    line-height: 0;
}

.footer__map-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s;
}

.footer__map-link:hover .footer__map-image {
    opacity: 0.85;
}

/* ── Info & signup boxes ──────────────────────────────────── */

.footer__boxes {
    display: flex;
    flex-direction: column;
    gap: 1px; /* hairline separator between stacked boxes on mobile */

    @media (min-width: 750px) {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        flex-direction: row;
        gap: 300px;
        /* gap: 1.5rem; */
        padding: 0 3rem 2.5rem;
        pointer-events: none; /* let clicks through to the map link */
        align-items: flex-end;
    }

    @media (min-width: 1100px) {
        padding-left: 0;
        padding-right: 0;
        /* Align with the page container's content edge */
        max-width: 110rem;
        margin: 0 auto;
        left: 50%;
        right: auto;
        width: 100%;
        gap: 500px;
        transform: translateX(-50%);
    }
}

.footer__info-box,
.footer__signup-box {
    background: rgba(36, 55, 70, 0.92);
    padding: 1.5rem 2rem;

    @media (min-width: 750px) {
        pointer-events: auto;
    }
}

.footer__info-box {
    font-size: 1.4rem;
    line-height: 1.6;

    p + p {
        margin-top: 0.4rem;
    }
}

.footer__info-box-contact {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;

    a {
        opacity: 0.85;
        text-decoration: underline;
        text-underline-offset: 0.2em;

        &:hover {
            opacity: 1;
        }
    }
}

.footer__signup-box {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    font-size: 1.4rem;

    p {
        font-weight: var(--font-weight-bold);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 1.2rem;
        opacity: 0.7;
    }
}

.footer__signup-link {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.8rem 1.4rem;
    font-size: 1.4rem;
    transition: background-color 0.2s, border-color 0.2s;

    &:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: var(--color-white);
    }
}

/* ── Bottom bar ───────────────────────────────────────────── */

.container--footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
    gap: 2rem;
}

.footer__copyright {
    font-size: 1.3rem;
    opacity: 0.7;
}

.footer__social {
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

.footer__social-link {
    display: flex;
    opacity: 0.8;
    transition: opacity 0.2s;

    &:hover {
        opacity: 1;
    }
}

.footer__social-icon {
    /* Convert black SVG fill to white */
    /* filter: brightness(0) invert(1); */
    /* Convert black SVG fill to orange */
    filter: invert(44%) sepia(83%) saturate(1470%) hue-rotate(338deg) brightness(97%) contrast(93%);

    width: 2rem;
    height: 2rem;
}
