/* ---------- GLOBAL FOOTER (shared, injected by assets/footer.js) ---------- */
/* requires page CSS vars: --deep, --green, --serif */

/* shared particle canvas — scoped to dark sections, dots drift inside, under content */
.par-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

footer.footer {
    position: relative;
    background: var(--deep);
    color: #f4f8f9;
    padding: 5.5rem 0 2rem;
    z-index: 2;
}
footer.footer .shell {
    position: relative; z-index: 2;
    width: 100%; max-width: 1120px; margin-inline: auto;
    padding-inline: 3.5rem; box-sizing: border-box;
}
@media (max-width: 760px) {
    footer.footer .shell { padding-inline: 1.5rem; }
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 3.6rem 0 3rem;
}
.f-brand .f-wordmark img { height: 42px; width: auto; }
.f-brand p {
    margin-top: 0.9rem;
    max-width: 34ch;
    font-size: 14.5px; font-weight: 300; line-height: 1.45;
    color: rgba(244, 248, 249, 0.62);
}
.f-social { display: flex; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.f-social a { color: rgba(244, 248, 249, 0.62); transition: color 0.2s, transform 0.2s; }
.f-social a:hover { color: var(--green); transform: translateY(-2px); }
.f-social svg { display: block; width: 18px; height: 18px; }
.f-col h4 {
    font-size: 14.5px; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(244, 248, 249, 0.62);
    margin-bottom: 1.3rem;
}
.f-col ul { list-style: none; }
.f-col li { margin-bottom: 0.75rem; }
.f-col a {
    font-size: 14.5px; font-weight: 300;
    color: rgba(244, 248, 249, 0.62); text-decoration: none;
    transition: color 0.2s;
}
.f-col a:hover { color: var(--green); }
.f-col .f-contact li {
    font-size: 14.5px; font-weight: 300;
    color: rgba(244, 248, 249, 0.62);
    line-height: 1.35;
}
.f-col .f-contact .f-address {
    color: rgba(244, 248, 249, 0.62);
    font-weight: 300;
    line-height: 1.35;
    text-align: left;
    text-wrap: balance;
}

.legal {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; flex-wrap: wrap;
    border-top: 1px solid rgba(244, 248, 249, 0.14);
    padding-top: 1.6rem;
    font-size: 14.5px; font-weight: 300; line-height: 1.4;
    color: rgba(244, 248, 249, 0.55);
}
.legal .made {
    display: inline-flex; align-items: center; gap: 0.45rem;
    text-align: right;
}
.legal .made a {
    color: #f4f8f9;
    text-decoration: none;
    border-bottom: 1px solid rgba(244, 248, 249, 0.3);
    transition: color 0.25s, border-color 0.25s;
}
.legal .made a:hover { color: var(--green); border-color: var(--green); }

@media (min-width: 761px) and (max-width: 1024px) {
    footer.footer .shell { padding-inline: 2rem; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 1.6rem 1.4rem; }
    .f-brand p { max-width: none; }
}

@media (max-width: 760px) {
    footer.footer { padding: 3.5rem 0 1.6rem; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.2rem 1.8rem;
        padding: 2.6rem 0 2.2rem;
    }
    .f-brand {
        grid-column: 1 / -1;
    }
    .f-brand .f-wordmark img { height: 34px; }
    .f-brand p { max-width: none; }
    .f-col { min-width: 0; }
    .f-col li { margin-bottom: 0.65rem; }
    .f-col.f-contact { grid-column: 1 / -1; }
    .f-col .f-address { text-align: left; }
    .legal {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.15rem;
        font-size: 14.5px;
        padding-top: 1.3rem;
        text-align: left;
    }
    .legal .made { text-align: left; gap: 0.3rem; }
}