/*
 * SBN Developer Notes.
 * Scope: global footer layout, footer links, CTA, social and legal areas.
 * Used by: parts/footer.html on every route.
 * Edit risk: high; footer appears site-wide.
 * QA: desktop columns, mobile order, links, social icon, legal links.
 */

.sbn-footer {
    background: var(--sbn-navy) !important;
    color: var(--sbn-cream);
    padding: var(--sbn-space-lg) var(--sbn-dynamic-edge) var(--sbn-space-md);
}

.sbn-footer-top {
    display: grid;
    grid-template-columns: minmax(260px, 1.45fr) minmax(140px, 0.75fr) minmax(280px, 1.15fr);
    gap: clamp(32px, 5vw, 72px);
    padding-bottom: var(--sbn-space-lg);
    border-bottom: 1px solid rgba(245, 239, 227, 0.12);
    margin-bottom: 24px;
}

.sbn-footer-col {
    min-width: 0;
}

.sbn-footer-logo-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.sbn-footer-logo-lockup .sbn-footer-logo-image,
.sbn-footer-logo-lockup .sbn-footer-logo-image a {
    display: inline-flex;
    margin: 0;
    line-height: 0;
}

.sbn-footer-logo-lockup .sbn-footer-logo-image img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
}

.sbn-footer-brand-name {
    display: flex;
    flex-direction: column;
    font-family: var(--sbn-sans);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.08;
    text-transform: uppercase;
    color: var(--sbn-cream);
    text-decoration: none !important;
}

.sbn-footer-brand-name:hover,
.sbn-footer-brand-name:focus-visible {
    color: var(--sbn-gold);
}

.sbn-footer-tagline {
    max-width: 280px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(245, 239, 227, 0.68);
    margin: 24px 0 10px;
}

.sbn-footer-motto {
    font-family: var(--sbn-serif);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
    font-style: italic;
    color: var(--sbn-gold);
    margin: 0 0 24px;
}

.sbn-footer-col-title {
    font-family: var(--sbn-sans);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sbn-gold);
    margin: 0 0 20px;
}

.sbn-footer-actions,
.sbn-footer-actions .wp-block-button {
    margin: 0 !important;
}

.sbn-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sbn-footer-menu li {
    color: rgba(245, 239, 227, 0.64);
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 11px;
    overflow-wrap: anywhere;
}

.sbn-footer-menu a {
    color: rgba(245, 239, 227, 0.72);
    text-decoration: none !important;
    overflow-wrap: anywhere;
    transition: color var(--sbn-transition-fast);
}

.sbn-footer-menu a:hover,
.sbn-footer-menu a:focus-visible {
    color: var(--sbn-gold);
}

.btn-footer-cta,
.btn-footer-cta .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    background: var(--sbn-gold);
    color: var(--sbn-navy);
    padding: 10px 20px;
    border-radius: var(--sbn-radius-btn);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background var(--sbn-transition-fast), color var(--sbn-transition-fast), transform var(--sbn-transition-fast), box-shadow var(--sbn-transition-fast);
}

.btn-footer-cta {
    margin: 0 !important;
}

.btn-footer-cta:hover,
.btn-footer-cta:focus-visible,
.btn-footer-cta .wp-block-button__link:hover,
.btn-footer-cta .wp-block-button__link:focus-visible {
    background: var(--sbn-gold-hover);
    color: var(--sbn-navy);
    text-decoration: none !important;
}

.btn-footer-cta:hover,
.btn-footer-cta:has(.wp-block-button__link:hover) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 163, 90, 0.25);
}

.sbn-footer-social {
    display: flex;
    gap: 10px;
    margin: 18px 0 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(245, 239, 227, 0.08);
    border: 1px solid rgba(245, 239, 227, 0.12);
    border-radius: 50%;
    color: var(--sbn-cream);
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    transition: background var(--sbn-transition-fast), border-color var(--sbn-transition-fast), color var(--sbn-transition-fast), transform var(--sbn-transition-fast);
}

.social-link:hover,
.social-link:focus-visible {
    background: var(--sbn-gold);
    border-color: var(--sbn-gold);
    color: var(--sbn-navy);
    transform: translateY(-2px);
}

.sbn-footer-newsletter-label {
    color: rgba(245, 239, 227, 0.72);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 10px;
}

.sbn-footer-newsletter {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
}

.sbn-footer-newsletter input {
    flex: 1;
    min-width: 0;
    background: rgba(245, 239, 227, 0.08);
    border: 1px solid rgba(245, 239, 227, 0.16);
    border-right: none;
    border-radius: var(--sbn-radius-btn) 0 0 var(--sbn-radius-btn);
    padding: 11px 12px;
    color: var(--sbn-cream);
    font-family: var(--sbn-sans);
    font-size: 13px;
}

.sbn-footer-newsletter input::placeholder {
    color: rgba(245, 239, 227, 0.46);
}

.sbn-footer-newsletter input:focus-visible {
    outline: 2px solid var(--sbn-gold);
    outline-offset: 2px;
}

.sbn-footer-newsletter button {
    background: var(--sbn-gold);
    border: none;
    border-radius: 0 var(--sbn-radius-btn) var(--sbn-radius-btn) 0;
    padding: 11px 16px;
    font-family: var(--sbn-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--sbn-navy);
    cursor: pointer;
    min-height: 44px;
    transition: background var(--sbn-transition-fast);
}

.sbn-footer-newsletter button:hover,
.sbn-footer-newsletter button:focus-visible {
    background: var(--sbn-gold-hover);
}

.sbn-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: rgba(245, 239, 227, 0.44);
}

.sbn-footer-copyright {
    margin: 0;
}

.sbn-footer-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.sbn-footer-legal-links a {
    color: rgba(245, 239, 227, 0.48);
    text-decoration: none !important;
}

.sbn-footer-legal-links a:hover,
.sbn-footer-legal-links a:focus-visible {
    color: var(--sbn-gold);
}

.sep {
    color: rgba(245, 239, 227, 0.24);
}

@media (max-width: 1020px) {
    .sbn-footer-top {
        grid-template-columns: 1.3fr 1fr;
        gap: 40px 56px;
    }
}

@media (max-width: 680px) {
    .sbn-footer {
        padding-top: var(--sbn-space-lg);
    }

    .sbn-footer-top {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-bottom: var(--sbn-space-md);
    }

    .sbn-footer-tagline {
        max-width: none;
    }

    .sbn-footer-newsletter {
        max-width: none;
    }

    .sbn-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .sbn-footer-top {
        grid-template-columns: 1fr;
        gap: var(--sbn-space-sm);
    }

    .sbn-footer-menu a,
    .sbn-footer-legal-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .sbn-footer-newsletter {
        flex-direction: column;
        gap: 8px;
        max-width: none;
    }

    .sbn-footer-newsletter input,
    .sbn-footer-newsletter button {
        width: 100%;
        min-height: 44px;
        border: 1px solid rgba(245, 239, 227, 0.16);
        border-radius: var(--sbn-radius-btn);
        font-size: 16px;
    }

    .sbn-footer-bottom {
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .sbn-footer-newsletter {
        flex-direction: column;
        gap: 8px;
    }

    .sbn-footer-newsletter input,
    .sbn-footer-newsletter button {
        width: 100%;
        border-radius: var(--sbn-radius-btn);
        border: 1px solid rgba(245, 239, 227, 0.16);
    }

    .sbn-footer-legal-links {
        display: block;
    }

    .sbn-footer-legal-links a,
    .sbn-footer-legal-links .sep {
        margin-right: 8px;
    }
}
