/* Shared footer for the original v1 theme. */
.bb-footer {
    --footer-text: #edf4ef;
    --footer-muted: #a4aea8;
    color: var(--footer-text);
    background: radial-gradient(ellipse at 12% 0%, rgba(0, 255, 68, .035), transparent 55%), #050806;
    border-top: 1px solid rgba(112, 255, 153, .16);
    font-family: Manrope, sans-serif;
}

.bb-footer-shell {
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}

.bb-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .65fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    padding: 56px 0 44px;
}

.bb-footer a {
    color: inherit;
    text-decoration: none;
    transform: none;
    transition: color .2s ease;
}

.bb-footer a:hover {
    color: #b9ffcc;
}

.bb-footer a:focus-visible {
    outline: 2px solid #70ff99;
    outline-offset: 4px;
    border-radius: 4px;
}

.bb-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.bb-footer-brand img {
    display: block;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.bb-footer-brand-text {
    display: grid;
    gap: 6px;
}

.bb-footer-brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1;
    text-transform: uppercase;
}

.bb-footer-brand-caption {
    color: var(--footer-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.bb-footer-description {
    max-width: 36ch;
    margin: 20px 0 0;
    color: var(--footer-muted);
    font-size: 14px;
    line-height: 1.8;
}

.bb-footer-label {
    margin: 0 0 16px;
    color: #b5c7bc;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1.5;
    text-transform: uppercase;
}

.bb-footer-links {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bb-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.5;
}

.bb-footer .bb-footer-email {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    max-width: 100%;
    color: #d5ffe0;
    font-size: clamp(17px, 1.65vw, 21px);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.bb-footer-phone {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 40px;
    font-size: 14px;
    line-height: 1.5;
}

.bb-footer-contact-note {
    max-width: 30ch;
    margin: 12px 0 0;
    color: var(--footer-muted);
    font-size: 13px;
    line-height: 1.7;
}

.bb-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    color: var(--footer-muted);
    font-size: 12px;
    line-height: 1.7;
}

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

.bb-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
}

.bb-footer-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
}

@media (max-width: 900px) {
    .bb-footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 32px;
    }

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

    .bb-footer-description {
        max-width: 48ch;
    }
}

@media (max-width: 600px) {
    .bb-footer-shell {
        width: calc(100% - 40px);
    }

    .bb-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding: 36px 0 32px;
    }

    .bb-footer-links {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 4px 16px;
    }

    .bb-footer-links a {
        min-height: 44px;
    }

    .bb-footer-label {
        margin-bottom: 10px;
    }

    .bb-footer .bb-footer-email {
        font-size: 21px;
    }

    .bb-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 24px 0;
    }

    .bb-footer-legal {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-footer a {
        transition: none;
    }
}
