/* =========================
   Footer Base
========================= */

#footer {
    background-color: var(--primary);
}

#footerContent {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 24px 20px 16px;
    margin: 0 auto;
    max-width: var(--content-max-width);
    gap: 10px;
}

#footerContentLink {
    justify-self: start;
}

#footerContentLogo {
    width: 230px;
}

#footerContentSpanish {
    justify-self: end;
}

#footerContentText {
    font-size: 24px;
    text-align: center;
}

#footerContentTextTagline {
    font-family: "Times New Roman", Times, serif;
    font-size: 21px;
    font-weight: 600;
    font-style: italic;
}

#footerContentTextCta {
    display: block;
    text-align: center;
}

#footerContentTextCtaPhone {
    font-weight: 600;
}

#footerContentTextTagline,
#footerContentTextCtaPhone,
#footerContentSpanish {
    color: var(--red);
}

#footerContentSpanish {
    font-size: 12px;
    margin-bottom: auto;
}

/* =========================
   Social Icons
========================= */

#footerSocial {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    max-width: 150px;
    margin: 20px auto 10px;
}

#footerSocial a {
    transition: opacity 0.2s ease;
}

#footerSocial a:hover {
    opacity: 0.5;
}

#footerSocial img {
    max-width: 20px;
}

/* =========================
   Legal Text
========================= */

#footerLegal {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    line-height: 24px;
    color: black;
}

#footerLegal a {
    color: var(--blue);
}

#footerLegal a:hover {
    opacity: 0.5;
}

#footerBanner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--red);
    color: var(--primary);
    height: 48px;
    padding: 10px;
    font-weight: 600;
    font-size: 24px;
    text-align: center;
    text-transform: uppercase;
}

#footerBanner:hover {
    color: var(--primary-50);
}

#footerMobileBanner {
    display: none;
}

/* =========================
   Mobile Layout
========================= */

@media (max-width: 800px) {
    #footer {
        padding-bottom: 48px;
        background-color: #F0F0F0;
    }

    #footerBanner {
        display: none;
    }

    #footerContentSpanish {
        display: none;
    }

    #footerContent {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 12px 20px;
        max-width: var(--content-max-width);
        margin: 0 auto;
    }

    #footerContentLogo {
        width: auto;
        max-width: 100px;
    }

    #footerContentTextTagline {
        display: block;
        padding: 8px 0;
    }

    #footerContentTextCta {
        display: none;
    }

    #footerMobileBanner {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--red);
        color: var(--primary);
        height: 48px;
        padding: 10px;
        font-weight: 600;
        font-size: 16px;
        text-align: center;
        text-transform: uppercase;
        white-space: nowrap;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    #footerMobileBanner.visible {
        opacity: 1;
        pointer-events: auto;
    }
}
