
/* =========================================================
   THE ADS AND FUNNEL — SITE FOOTER
   File: assets/css/footer/footer.css
   Design: Reference-matched editorial footer
   Colors: Shared global design tokens
   ========================================================= */

.bcc-footer {
    --footer-background: var(--bcc-color-primary);
    --footer-text: var(--bcc-color-background);
    --footer-muted: color-mix(
        in srgb,
        var(--bcc-color-background) 75%,
        transparent
    );
    --footer-subtle: color-mix(
        in srgb,
        var(--bcc-color-background) 50%,
        transparent
    );
    --footer-divider: rgba(255, 255, 255, 0.075);
    --footer-accent: var(--bcc-color-accent);

    position: relative;
    width: calc(100% - 22px);
    margin: 0 auto 11px;
    overflow: hidden;
    border-radius: 13px;
    background: var(--footer-background);
    color: var(--footer-text);
}

.bcc-footer *,
.bcc-footer *::before,
.bcc-footer *::after {
    box-sizing: border-box;
}

.bcc-footer a {
    color: inherit;
    text-decoration: none;
}

.bcc-footer__inner {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
}

/* =========================================
   SUBTLE VERTICAL GRID
========================================= */

.bcc-footer__inner::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image: linear-gradient(
        to right,
        transparent calc(25% - 0.5px),
        var(--footer-divider) calc(25% - 0.5px),
        var(--footer-divider) calc(25% + 0.5px),
        transparent calc(25% + 0.5px),
        transparent calc(50% - 0.5px),
        var(--footer-divider) calc(50% - 0.5px),
        var(--footer-divider) calc(50% + 0.5px),
        transparent calc(50% + 0.5px),
        transparent calc(75% - 0.5px),
        var(--footer-divider) calc(75% - 0.5px),
        var(--footer-divider) calc(75% + 0.5px),
        transparent calc(75% + 0.5px)
    );
    content: "";
    pointer-events: none;
}

.bcc-footer__inner > * {
    position: relative;
    z-index: 1;
}

/* =========================================
   TOP CTA
========================================= */

.bcc-footer__cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: clamp(350px, 34vw, 475px);
    padding: clamp(3.75rem, 5vw, 5rem) 1.5rem 6.15rem;
    text-align: center;
}

.bcc-footer__cta-eyebrow {
    margin: 0 0 1.15rem;
    color: var(--footer-accent);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.bcc-footer__cta-title {
    max-width: 1000px;
    margin: 0;
    color: var(--footer-text);
    font-family: inherit;
    font-size: clamp(3.5rem, 7.2vw, 7rem);
    font-weight: 600;
    line-height: 0.99;
    letter-spacing: -0.075em;
    text-wrap: balance;
}

.bcc-footer__cta-title span {
    display: block;
    margin-top: 0.06em;
}

/* Footer-specific CTA geometry; colors use global tokens */

.bcc-footer__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 46px;
    margin-top: 1.2rem;
    padding: 0.35rem 0.4rem 0.35rem 1.25rem;
    border: 1px solid var(--footer-accent);
    border-radius: var(--bcc-border-radius-pill);
    background: var(--footer-accent);
    color: var(--bcc-color-primary-dark);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition:
        background-color var(--bcc-transition-fast),
        color var(--bcc-transition-fast),
        border-color var(--bcc-transition-fast),
        transform var(--bcc-transition-fast);
}

.bcc-footer .bcc-footer__cta-button,
.bcc-footer .bcc-footer__cta-button:hover,
.bcc-footer .bcc-footer__cta-button:focus,
.bcc-footer .bcc-footer__cta-button:focus-visible,
.bcc-footer .bcc-footer__cta-button:active {
    color: var(--bcc-color-primary-dark);
}

.bcc-footer__cta-button:hover {
    transform: translateY(-2px);
    border-color: var(--bcc-color-accent-hover);
    background: var(--bcc-color-accent-hover);
}

.bcc-footer__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: var(--bcc-color-primary-dark);
    color: var(--bcc-color-surface);
    font-size: 1rem;
    line-height: 1;
}

/* =========================================
   MAIN FOOTER CONTENT
========================================= */

.bcc-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
    gap: clamp(2rem, 5vw, 5.5rem);
    padding: 0 clamp(2rem, 5.5vw, 5.5rem) 3.75rem;
}

/* =========================================
   NEWSLETTER / CONTACT
========================================= */

.bcc-footer__newsletter {
    max-width: 440px;
}

.bcc-footer__newsletter-title {
    margin: 0;
    color: var(--footer-text);
    font-family: inherit;
    font-size: clamp(1.6rem, 2.3vw, 2.25rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1.2;
}

.bcc-footer__newsletter-description {
    max-width: 400px;
    margin: 1rem 0 0;
    color: var(--footer-muted);
    font-family: inherit;
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    font-weight: 400;
    line-height: 1.45;
}

.bcc-footer__newsletter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 48px;
    margin-top: 1.5rem;
    padding: 0.45rem 0.5rem 0.45rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--bcc-border-radius-pill);
    background: rgba(255, 255, 255, 0.065);
    color: var(--footer-muted);
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.4;
    transition: background-color var(--bcc-transition-base);
}

.bcc-footer__newsletter-link:hover {
    background: rgba(255, 255, 255, 0.11);
}

.bcc-footer__newsletter-link > span:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: var(--bcc-color-primary-dark);
    color: var(--bcc-color-surface);
    font-size: 1.35rem;
}

/* =========================================
   NAVIGATION COLUMNS
========================================= */

.bcc-footer__navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 3rem);
}

.bcc-footer__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    min-width: 0;
}

.bcc-footer__label {
    margin: 0 0 1.15rem;
    color: var(--footer-text);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.bcc-footer__column > a {
    color: var(--footer-muted);
    font-family: inherit;
    font-size: clamp(0.9rem, 1.25vw, 1.15rem);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
    transition: color var(--bcc-transition-base);
}

.bcc-footer__column > a:hover {
    color: var(--footer-accent);
}

.bcc-footer__contact p {
    margin: 0.7rem 0 0;
    color: var(--footer-muted);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.65;
}

/* =========================================
   OVERSIZED BRAND WORDMARK
========================================= */

.bcc-footer__wordmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem clamp(1.25rem, 3.5vw, 3.5rem) 2.75rem;
    overflow: hidden;
}

.bcc-footer__wordmark-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.04em;
    max-width: 100%;
    color: var(--footer-text);
    line-height: 0.85;
    white-space: nowrap;
}

.bcc-footer__wordmark-the {
    align-self: flex-start;
    margin-top: 0.2em;
    margin-right: 0.15em;
    color: var(--footer-accent);
    font-family: inherit;
    font-size: clamp(0.65rem, 1.25vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.bcc-footer__wordmark-name {
    color: var(--footer-text);
    font-family: inherit;
    font-size: clamp(3rem, 11.8vw, 10.5rem);
    font-weight: 600;
    letter-spacing: -0.085em;
    line-height: 0.9;
}

.bcc-footer__wordmark-amp {
    padding-inline: 0.035em;
    color: var(--footer-accent);
}

/* =========================================
   BOTTOM BAR
========================================= */

.bcc-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem clamp(2rem, 5.5vw, 5.5rem) 1.75rem;
    border-top: 1px solid var(--footer-divider);
}

.bcc-footer__copyright {
    margin: 0;
    color: var(--footer-muted);
    font-family: inherit;
    font-size: 0.72rem;
    line-height: 1.6;
}

.bcc-footer__legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.bcc-footer__legal a {
    color: var(--footer-muted);
    font-family: inherit;
    font-size: 0.72rem;
    line-height: 1.6;
    transition: color var(--bcc-transition-base);
}

.bcc-footer__legal a:hover {
    color: var(--footer-accent);
}

/* =========================================
   ACCESSIBILITY
========================================= */

.bcc-footer__cta-button:focus-visible,
.bcc-footer__wordmark-link:focus-visible,
.bcc-footer__navigation a:focus-visible,
.bcc-footer__legal a:focus-visible,
.bcc-footer__newsletter-link:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 4px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {
    .bcc-footer__cta-section {
        min-height: 390px;
        padding-top: 4.5rem;
    }

    .bcc-footer__cta-title {
        font-size: clamp(3.5rem, 8vw, 5.5rem);
    }

    .bcc-footer__main {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-bottom: 3rem;
    }

    .bcc-footer__newsletter {
        max-width: 480px;
    }

    .bcc-footer__navigation {
        gap: 2rem;
    }

    .bcc-footer__wordmark-name {
        font-size: clamp(4rem, 12vw, 8.5rem);
    }
}

/* =========================================
   MOBILE / SMALL TABLET
========================================= */

@media (max-width: 700px) {
    .bcc-footer {
        width: calc(100% - 14px);
        margin-bottom: 7px;
        border-radius: 12px;
    }

    .bcc-footer__inner::before {
        background-image: linear-gradient(
            to right,
            transparent calc(50% - 0.5px),
            var(--footer-divider) calc(50% - 0.5px),
            var(--footer-divider) calc(50% + 0.5px),
            transparent calc(50% + 0.5px)
        );
    }

    .bcc-footer__cta-section {
        min-height: 300px;
        padding: 3.5rem 1.25rem 2.5rem;
    }

    .bcc-footer__cta-eyebrow {
        margin-bottom: 1rem;
        font-size: 0.65rem;
    }

    .bcc-footer__cta-title {
        font-size: clamp(2.7rem, 10vw, 4.25rem);
        line-height: 1.02;
        letter-spacing: -0.065em;
    }

    .bcc-footer__cta-button {
        margin-top: 1.4rem;
        font-size: 0.82rem;
    }

    .bcc-footer__main {
        gap: 2.75rem;
        padding: 0 1.5rem 2.5rem;
    }

    .bcc-footer__newsletter-title {
        font-size: 1.8rem;
    }

    .bcc-footer__newsletter-description {
        font-size: 0.95rem;
    }

    .bcc-footer__navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem 1.5rem;
    }

    .bcc-footer__label {
        margin-bottom: 0.65rem;
    }

    .bcc-footer__column > a {
        font-size: 0.95rem;
    }

    .bcc-footer__wordmark {
        justify-content: flex-start;
        padding: 1.5rem 1.25rem 2rem;
    }

    .bcc-footer__wordmark-name {
        font-size: clamp(3.1rem, 12.5vw, 5.5rem);
    }

    .bcc-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .bcc-footer__legal {
        justify-content: flex-start;
        gap: 0.65rem 1rem;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {
    .bcc-footer__cta-title {
        font-size: 2.45rem;
    }

    .bcc-footer__main {
        padding-inline: 1.1rem;
    }

    .bcc-footer__navigation {
        gap: 2rem 1rem;
    }

    .bcc-footer__wordmark {
        padding-inline: 1rem;
    }

    .bcc-footer__wordmark-name {
        font-size: 2.85rem;
    }

    .bcc-footer__wordmark-the {
        font-size: 0.5rem;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .bcc-footer__cta-button,
    .bcc-footer__cta-icon,
    .bcc-footer__newsletter-link,
    .bcc-footer__column > a,
    .bcc-footer__legal a {
        transition: none;
    }

    .bcc-footer__cta-button:hover {
        transform: none;
    }
}
