/**
 * BLADE BOSS — Footer Styles
 * 
 * Dark theme footer with CTA banner, 4-column grid, and premium polish.
 * Depends on: design-tokens.css, base.css
 */


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER CTA BANNER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.bb-footer-cta {
    background: linear-gradient(135deg, var(--bb-green-dark) 0%, var(--bb-green) 100%);
    padding: var(--space-10) 0;
    position: relative;
    overflow: hidden;
}

.bb-footer-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(245, 120, 66, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.bb-footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    position: relative;
    z-index: 1;
}

.bb-footer-cta-text h3 {
    font-size: var(--text-3xl);
    color: var(--bb-white);
    margin-bottom: var(--space-2);
}

.bb-footer-cta-text p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .bb-footer-cta {
        padding: var(--space-8) 0;
    }

    .bb-footer-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .bb-footer-cta-text h3 {
        font-size: var(--text-2xl);
    }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MAIN FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.bb-footer {
    background: var(--bb-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-10) 0 var(--space-6);
}

.bb-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


/* ━━━ Brand column ━━━ */

.bb-footer-logo {
    display: inline-block;
    margin-bottom: var(--space-4);
    transition: opacity var(--duration-normal) var(--ease-out);
}

.bb-footer-logo:hover {
    opacity: 0.8;
}

.bb-footer-logo img {
    height: 32px;
    width: auto;
}

.bb-footer-tagline {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bb-green-muted);
    margin-bottom: var(--space-4);
}

.bb-footer-description {
    font-size: var(--text-sm);
    line-height: 1.7;
    max-width: 300px;
}


/* ━━━ Link columns ━━━ */

.bb-footer-heading {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--bb-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-5);
}

.bb-footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.bb-footer-links a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--duration-fast) var(--ease-out);
}

.bb-footer-links a:hover {
    color: var(--bb-white);
}


/* ━━━ Bottom bar ━━━ */

.bb-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-6);
}

.bb-footer-copyright {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
}

.bb-footer-social {
    display: flex;
    gap: var(--space-4);
}

.bb-footer-social a {
    color: rgba(255, 255, 255, 0.4);
    transition:
        color var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.bb-footer-social a:hover {
    color: var(--bb-white);
    transform: translateY(-1px);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 768px) {
    .bb-footer {
        padding: var(--space-8) 0 var(--space-6);
    }

    .bb-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }

    .bb-footer-brand {
        grid-column: 1 / -1;
    }

    .bb-footer-description {
        max-width: none;
    }

    .bb-footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
        padding-bottom: var(--safe-bottom);
    }
}

@media (max-width: 480px) {
    .bb-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
