/* ==========================================================================
   core_footer — reusable multi-column site footer
   Theme-aware via the marketing --nb-* tokens (with safe fallbacks so it also
   renders on non-landing pages). CSP-safe, no JS needed.
   ========================================================================== */

.site-footer {
    background: var(--nb-footer-bg, #0a0b14);
    border-top: 1px solid var(--nb-border, rgba(255, 255, 255, 0.08));
    color: var(--nb-text-muted, #9aa1bd);
    padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
    margin-top: auto;
}

/* Newsletter band (sits above the link columns) */
.nb-footer__newsletter {
    padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--nb-border, rgba(255, 255, 255, 0.08));
}

.nb-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

/* Brand column */
.nb-footer__brand-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.9rem;
}

.nb-footer__tagline {
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 32ch;
    margin: 0 0 1.2rem;
}

.nb-footer__social {
    display: flex;
    gap: 0.6rem;
}

.nb-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--nb-border, rgba(255, 255, 255, 0.12));
    color: var(--nb-text, #e9ebf5);
    font-size: 1.1rem;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nb-footer__social a:hover {
    border-color: var(--nb-cyan, #22d3ee);
    color: var(--nb-cyan, #22d3ee);
}

/* Link columns */
.nb-footer__col h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nb-text, #e9ebf5);
    margin: 0 0 1rem;
}

.nb-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.nb-footer__col a,
.nb-footer__contact a {
    color: var(--nb-text-muted, #9aa1bd);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.nb-footer__col a:hover,
.nb-footer__contact a:hover {
    color: var(--nb-cyan, #22d3ee);
}

/* Contact column */
.nb-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.nb-footer__contact .nb-footer__item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.nb-footer__contact i {
    color: var(--nb-cyan, #22d3ee);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* Bottom bar */
.nb-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 1.25rem;
    border-top: 1px solid var(--nb-border, rgba(255, 255, 255, 0.08));
    font-size: 0.85rem;
}

.nb-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.nb-footer__legal a {
    color: var(--nb-text-muted, #9aa1bd);
    text-decoration: none;
}

.nb-footer__legal a:hover {
    color: var(--nb-cyan, #22d3ee);
}

/* Responsive */
@media (max-width: 860px) {
    .nb-footer__top {
        grid-template-columns: 1fr 1fr;
    }
    .nb-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .nb-footer__top {
        grid-template-columns: 1fr;
    }
    .nb-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    .nb-footer__legal {
        justify-content: center;
    }
}
