
/* ── Header: mega menu (desktop) + accordion (mobile) · header.php ─────────── */
.bbn-skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 0.75rem 1rem; background: var(--bbx-yellow); color: var(--bbx-ink-2); font-weight: 700; }
.bbn-skip:focus { left: 1rem; top: 1rem; }
.bbn-ico { width: 1.15rem; height: 1.15rem; flex: none; }

.bbn { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: var(--bbx-slate-300); transition: background 300ms, border-color 300ms; border-bottom: 1px solid transparent; }
.bbn.is-scrolled, .bbn.is-open, .bbn.has-panel { background: rgb(2 6 23 / 0.95); border-bottom-color: #1e293b; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.bbn__bar { position: relative; display: flex; align-items: center; gap: 1.5rem; max-width: 80rem; margin: 0 auto; padding: 1rem; }
.bbn__logo { display: flex; flex: none; }
.bbn__logo img { width: auto; height: 4rem; border-radius: 0.5rem; object-fit: contain; }
.bbn__list { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.bbn__link {
    display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.8rem; border: 0; border-radius: 0.6rem;
    background: none; color: var(--bbx-slate-300); font: inherit; font-size: 0.95rem; text-decoration: none; cursor: pointer;
    transition: color 200ms, background 200ms;
}
.bbn__link .bbn-ico { width: 1.05rem; height: 1.05rem; opacity: 0.75; }
.bbn__link:hover, .bbn__link:focus-visible, .bbn__link[aria-expanded="true"] { color: #fff; background: rgb(255 255 255 / 0.06); }
.bbn__link[aria-current="page"] { color: var(--bbx-yellow); }
.bbn__toggle .bbn-ico:last-child { width: 0.9rem; height: 0.9rem; transition: transform 200ms var(--bbx-ease); }
.bbn__toggle[aria-expanded="true"] .bbn-ico:last-child { transform: rotate(180deg); }
.bbn a:focus-visible, .bbn button:focus-visible { outline: 2px solid var(--bbx-yellow); outline-offset: 2px; }

.bbn__actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.bbn__cta {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 0.6rem;
    background: var(--bbx-yellow); color: var(--bbx-ink-2); font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
    transition: background 200ms;
}
.bbn__cta:hover { background: var(--bbx-yellow-hover); }
.bbn__burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 2.75rem; height: 2.75rem; padding: 0 0.6rem; border: 1px solid #334155; border-radius: 0.6rem; background: transparent; cursor: pointer; }
.bbn__burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform 200ms var(--bbx-ease), opacity 200ms; }
.bbn.is-open .bbn__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bbn.is-open .bbn__burger span:nth-child(2) { opacity: 0; }
.bbn.is-open .bbn__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mega panel content (both layouts) */
.bbn__col { min-width: 0; }
.bbn__col ul { margin: 0; padding: 0; list-style: none; }
.bbn__col-title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.25rem; color: var(--bbx-yellow); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.bbn__col-title--link:hover { text-decoration: underline; }
.bbn__col-sub { margin: 0 0 0.75rem; color: var(--bbx-slate-400); font-size: 0.85rem; }
.bbn__panel-inner--industries .bbn__col-title { margin-bottom: 0.5rem; }
.bbn__mlink { display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0.5rem; margin: 0 -0.5rem; border-radius: 0.6rem; color: #e2e8f0; font-size: 0.93rem; line-height: 1.3; text-decoration: none; transition: background 200ms, color 200ms; }
.bbn__mlink:hover, .bbn__mlink:focus-visible { background: rgb(255 255 255 / 0.06); color: var(--bbx-yellow); }
.bbn__mlink-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 0.6rem; background: rgb(255 205 0 / 0.1); color: var(--bbx-yellow); }
.bbn__mlink-ico--3d { background: rgb(255 255 255 / 0.05); }
.bbn__mlink-ico img { width: 2.1rem; height: 2.1rem; object-fit: contain; }
.bbn__mlink-ico--3d { width: 2.5rem; height: 2.5rem; }
.bbn__promo { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; border: 1px solid rgb(255 205 0 / 0.25); border-radius: var(--bbx-radius); background: linear-gradient(160deg, rgb(255 205 0 / 0.12), rgb(255 205 0 / 0.02)); }
.bbn__promo p { margin: 0; color: var(--bbx-slate-300); font-size: 0.9rem; line-height: 1.55; }
.bbn__promo .bbn__promo-title { color: #fff; font-weight: 700; font-size: 1rem; }
.bbn__promo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.65rem 1rem; border: 0; border-radius: 0.6rem; background: var(--bbx-yellow); color: var(--bbx-ink-2); font: inherit; font-weight: 700; cursor: pointer; }
.bbn__promo-btn:hover { background: var(--bbx-yellow-hover); }
.bbn__all { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--bbx-yellow); font-weight: 600; font-size: 0.93rem; text-decoration: none; }
.bbn__all:hover { text-decoration: underline; }
.bbn__all .bbn-ico { width: 1rem; height: 1rem; }
.bbn__mobile-contact { display: none; }

@media (min-width: 1100px) {
    .bbn__nav { display: flex; align-items: center; }
    .bbn__item--mega { position: static; }
    .bbn__panel {
        position: absolute; top: calc(100% - 0.25rem); left: 1rem; right: 1rem; z-index: 60;
        max-height: calc(100vh - 7rem); overflow-y: auto;
        border: 1px solid #1e293b; border-radius: var(--bbx-radius-lg); background: #0b1120;
        box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.7);
        animation: bbn-drop 180ms var(--bbx-ease);
    }
    .bbn__panel-inner { display: grid; gap: 2rem; padding: 2rem; }
    .bbn__panel-inner--services { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(15rem, 1.1fr); }
    .bbn__panel-inner--industries { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 2rem; }
    .bbn__panel-foot { padding: 1rem 2rem; border-top: 1px solid #1e293b; }
}
@keyframes bbn-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bbn__panel { animation: none; } }

@media (max-width: 1099.98px) {
    .bbn__burger { display: inline-flex; }
    .bbn__nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        max-height: calc(100vh - 6rem); overflow-y: auto; overscroll-behavior: contain;
        padding: 0.5rem 1rem 1.5rem; background: rgb(2 6 23 / 0.98); border-bottom: 1px solid #1e293b;
    }
    .bbn.is-open .bbn__nav { display: block; }
    .bbn__list { flex-direction: column; align-items: stretch; gap: 0; }
    .bbn__item { border-bottom: 1px solid #1e293b; }
    .bbn__link { width: 100%; padding: 0.95rem 0.25rem; border-radius: 0; font-size: 1.02rem; }
    .bbn__link:hover, .bbn__link[aria-expanded="true"] { background: none; }
    .bbn__toggle .bbn-ico:last-child { margin-left: auto; }
    .bbn__panel { padding: 0 0 1rem; }
    .bbn__panel-inner { display: grid; gap: 1.25rem; }
    .bbn__promo { padding: 1rem; }
    .bbn__panel-foot { padding-top: 0.75rem; }
    .bbn__mobile-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1rem; }
    .bbn__mobile-contact a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem; border: 1px solid #334155; border-radius: 0.6rem; color: #e2e8f0; font-size: 0.9rem; text-decoration: none; }
    .bbn__logo img { height: 3.25rem; }
    .bbn__bar { padding: 0.75rem 1rem; }
}
@media (min-width: 640px) and (max-width: 1099.98px) {
    .bbn__panel-inner--industries, .bbn__panel-inner--services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639.98px) {
    .bbn__cta { display: none; }
}
html.bbn-locked { overflow: hidden; }

/* ── Footer · footer.php ───────────────────────────── */
.bbf { background: #020617; border-top: 1px solid #1e293b; color: var(--bbx-slate-400); overflow-x: hidden; }
.bbf__inner { max-width: 80rem; margin: 0 auto; padding: 4rem 1.5rem 2.5rem; }
.bbf__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 1024px) { .bbf__top { grid-template-columns: minmax(16rem, 1fr) minmax(0, 3fr); } }
.bbf__logo img { width: 12rem; height: auto; }
.bbf__brand p { max-width: 22rem; margin: 1rem 0 1.25rem; line-height: 1.65; }
.bbf__cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem; border: 0; border-radius: 0.6rem; background: var(--bbx-yellow); color: var(--bbx-ink-2); font: inherit; font-weight: 700; cursor: pointer; }
.bbf__cta:hover { background: var(--bbx-yellow-hover); }
.bbf__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2.5rem 2rem; }
.bbf__col h2 { margin: 0 0 1rem; color: #fff; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; }
.bbf__col ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.bbf__col a, .bbf__plain { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--bbx-slate-400); text-decoration: none; word-break: break-word; }
.bbf__col a:hover, .bbf__col a:focus-visible { color: var(--bbx-yellow); }
.bbf__col .bbn-ico { width: 1rem; height: 1rem; color: var(--bbx-yellow); }
.bbf__more { color: var(--bbx-yellow) !important; font-weight: 600; }
.bbf__social { display: flex; gap: 1rem; margin: 1rem 0; font-size: 0.92rem; }
.bbf__social a { color: var(--bbx-slate-300); }
.bbf__badges { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.bbf__badges img { height: 2.25rem; width: auto; }
.bbf__badge-light { background: #fff; border-radius: 0.3rem; }
.bbf__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid #1e293b; font-size: 0.875rem; }
.bbf__bottom p { margin: 0; }
.bbf__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.bbf__legal a { color: var(--bbx-slate-400); text-decoration: none; }
.bbf__legal a:hover { color: #fff; }

/* ── Sticky mobile contact bar · footer.php ────────── */
.bbm { display: none; }
@media (max-width: 767.98px) {
    .bbm {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 0.5rem;
        padding: 0.5rem max(0.75rem, env(safe-area-inset-right, 0px)) calc(0.5rem + env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
        background: rgb(2 6 23 / 0.96); border-top: 1px solid #1e293b; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    }
    .bbm__btn { display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.9rem; border: 1px solid #334155; border-radius: 0.6rem; color: #e2e8f0; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
    .bbm__btn--primary { border-color: var(--bbx-yellow); background: var(--bbx-yellow); color: var(--bbx-ink-2); }
    .bbm .bbn-ico { width: 1.1rem; height: 1.1rem; }
    body { padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px)); }
    html.bbx-modal-open .bbm, html.bbn-locked .bbm { display: none; }
}

/* ── Legal pages · page-legal.php ──────────────────── */
.bbx-hero--compact { padding-bottom: 2.5rem; }
.bb-legal { color: var(--bbx-text); font-size: 1rem; line-height: 1.75; }
.bb-legal h2 { margin: 2.25rem 0 0.75rem; font-size: 1.35rem; font-weight: 800; }
.bb-legal h3 { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; font-weight: 700; }
.bb-legal p, .bb-legal ul, .bb-legal ol { margin: 0 0 1rem; color: var(--bbx-text-muted); }
.bb-legal ul, .bb-legal ol { padding-left: 1.25rem; }
.bb-legal ul { list-style: disc; }
.bb-legal ol { list-style: decimal; }
.bb-legal a, .bb-legal__contact a { color: #8a6d00; text-decoration: underline; }
.bb-legal__contact { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--bbx-line); color: var(--bbx-text-muted); }
