/* Footer — extracted from style.css so it can load site-wide.
   style.css cannot: it sets body background and bare h1/h2 selectors. */

#footer{
    background-color: var(--smp-orange);
    margin: var(--site-margin);
    padding: var(--site-margin);
    border-radius:var(--curve-lg);
    margin-top: calc(var(--site-margin) * 2);
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

#footer-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
}

#footer-grid div{
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.footer-bottom{
    width: 100%;
    color: var(--bg-color);

    display: flex;
    justify-content: space-between;

    border-top: var(--bg-color) 1px solid;
    padding-top: 0.5rem;
}

/* ADDED during integration: the prototype never styled desktop footer
   links, leaving default blue underlines on orange. Matches the mobile
   treatment. Review against the design. */
#footer-grid h3,
#footer-grid a,
.footer-bottom{
    color: var(--bg-color);
}

#footer-grid h3{
    font-family: 'quicksand-bold';
    font-size: 1.625rem;
}

#footer-grid a{
    font-family: 'quicksand-medium';
    font-size: 1rem;
    text-decoration: none;
    width: fit-content;
}

@media screen and (max-width: 768px){
    #footer{
        gap: 1.5rem;
    }

    #footer-grid{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }

    #footer-grid h3{
        margin-bottom: -0.5rem;
    }

    #footer-grid a{
        font-family: 'quicksand-regular';
    }

    .footer-bottom{
        font-family: 'quicksand-regular';
        font-size: 0.75rem;
        flex-direction: column;
        align-items: center;
    }
}
