/* =========================================================================
   LAVACASCADE — css/components/footer.css
   Brand blurb + three link columns, then a bottom row with the legal line
   and small arrow links.
   ========================================================================= */

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    position: relative;
    margin-top: auto;
    padding-top: var(--space-8);
    font-size: var(--fs-sm);
    background: var(--night-950);
    border-top: 1px solid var(--line);
}

/* molten seam along the top edge */
.site-footer::before {
    content: "";
    position: absolute;
    inset: -1px 0 auto 0;
    height: 1px;
    background: var(--grad-seam);
    opacity: 0.4;
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: var(--space-7);
    padding-bottom: var(--space-7);
}

.site-footer__blurb {
    max-width: 34ch;
    margin-top: var(--space-4);
    color: var(--text-muted);
}

.site-footer__col h2 {
    margin-bottom: var(--space-4);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--text-muted);
}

.site-footer__col ul {
    display: grid;
    gap: var(--space-2);
    padding: 0;
    list-style: none;
}

.site-footer__col a {
    color: var(--text-soft);
    text-decoration: none;
}

.site-footer__col a:hover {
    color: var(--lava-300);
}

/* =========================================
   NEWSLETTER (under the brand blurb)
   ========================================= */
.newsletter {
    display: grid;
    gap: var(--space-2);
    max-width: 420px;
    margin-top: var(--space-5);
}

.newsletter__label {
    font-weight: 600;
    color: var(--text-strong);
}

.newsletter__row {
    display: flex;
    gap: var(--space-2);
}

.newsletter__row .input {
    flex: 1;
    min-width: 0;
}

.newsletter__row .btn {
    flex: none;
}

.newsletter__hint {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.newsletter__hint a {
    color: var(--text-soft);
}

.newsletter__hint a:hover {
    color: var(--lava-300);
}

.newsletter:has([aria-invalid="true"]) .field__error {
    display: block;
}

/* =========================================
   BOTTOM ROW
   ========================================= */
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3) var(--space-5);
    padding-block: var(--space-5);
    font-size: var(--fs-xs);
    color: var(--text-muted);
    border-top: 1px solid var(--line);
}

.site-footer__links {
    display: flex;
    gap: var(--space-5);
}

.site-footer__links a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer__links a:hover {
    color: var(--lava-300);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .site-footer__top {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--space-6);
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .site-footer__top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 340px) {
    .newsletter__row {
        flex-direction: column;
    }
}
