/* Bestobell modern frontend — no legacy CI styles */

:root {
    --bb-navy: #0c2340;
    --bb-blue: #1a4d7c;
    --bb-accent: #e85d04;
    --bb-accent-hover: #c2410c;
    --bb-surface: #f8fafc;
    --bb-border: #e2e8f0;
    --bb-text: #0f172a;
    --bb-muted: #64748b;
    --bb-radius: 0.75rem;
    --bb-shadow: 0 4px 24px rgba(12, 35, 64, 0.08);
    --bb-nav-height: 8rem;
    --bb-fab-size: 3rem;
    --bb-chat-launcher-size: 3.75rem;
    --bb-fab-gap: 0.75rem;
    --bb-fab-inset: 1.25rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.bb-site {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--bb-text);
    background: var(--bb-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

.bb-container {
    width: 100%;
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .bb-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.bb-page {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

/* —— CMS / legacy HTML content —— */
.bb-prose {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--bb-text);
    word-wrap: break-word;
}

.bb-prose img {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    border-radius: var(--bb-radius);
    display: block;
    margin: 0.75rem 0;
    object-fit: cover;
}

.bb-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9375rem;
}

.bb-prose th,
.bb-prose td {
    border: 1px solid var(--bb-border);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.bb-prose th {
    background: #f1f5f9;
}

.bb-prose h1, .bb-prose h2, .bb-prose h3, .bb-prose h4 {
    color: var(--bb-navy);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.bb-prose a {
    color: var(--bb-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bb-prose a:hover {
    color: var(--bb-accent-hover);
}

.bb-prose ul, .bb-prose ol {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.bb-prose p {
    margin: 0.75rem 0;
}

.bb-prose iframe {
    max-width: 100%;
}

/* —— Buttons —— */
.bb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.bb-btn-primary {
    background: var(--bb-accent);
    color: #fff;
}

.bb-btn-primary:hover {
    background: var(--bb-accent-hover);
    color: #fff;
}

.bb-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.bb-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.bb-btn-secondary {
    background: var(--bb-navy);
    color: #fff;
}

.bb-btn-secondary:hover {
    background: var(--bb-blue);
    color: #fff;
}

/* —— Cards —— */
.bb-card {
    background: #fff;
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow);
    border: 1px solid var(--bb-border);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.bb-card:hover {
    box-shadow: 0 8px 32px rgba(12, 35, 64, 0.12);
}

.bb-card-body {
    padding: 1.5rem;
}

/* —— Page hero —— */
.bb-hero {
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-blue) 100%);
    color: #fff;
    padding: 2.25rem 0;
}

.bb-hero h1 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.bb-hero p {
    margin: 0.75rem 0 0;
    opacity: 0.9;
    max-width: 42rem;
}

/* —— CMS content pages (Mission, Values, etc.) —— */
.bb-cms-hero {
    position: relative;
    min-height: 16rem;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-blue) 55%, #1e5a94 100%);
}

@media (min-width: 768px) {
    .bb-cms-hero {
        min-height: 20rem;
    }
}

.bb-cms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--bb-cms-hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.32;
    transform: scale(1.02);
}

.bb-cms-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 2.75rem 0 3rem;
    background:
        linear-gradient(100deg, rgba(8, 22, 48, 0.97) 0%, rgba(12, 35, 64, 0.88) 42%, rgba(12, 35, 64, 0.55) 72%, rgba(12, 35, 64, 0.35) 100%),
        linear-gradient(0deg, rgba(8, 22, 48, 0.45) 0%, transparent 45%);
}

.bb-cms-hero .bb-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.bb-cms-hero h1 {
    margin: 0.6rem 0 0;
    font-size: clamp(2.25rem, 5.5vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    max-width: 14ch;
}

.bb-cms-hero-deck {
    margin: 1.1rem 0 0;
    max-width: 36rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.bb-cms-body {
    padding: 3.5rem 0 5rem;
    background:
        radial-gradient(ellipse 70% 50% at 0% 0%, rgba(232, 93, 4, 0.05), transparent 55%),
        linear-gradient(180deg, #f1f5f9 0%, #f8fafc 40%, #fff 100%);
}

.bb-cms-layout {
    display: grid;
    gap: 1.75rem;
    align-items: start;
}

@media (min-width: 900px) {
    .bb-cms-layout {
        grid-template-columns: 3.5rem minmax(0, 42rem);
        justify-content: center;
        gap: 2.25rem;
    }
}

.bb-cms-rail {
    display: none;
}

@media (min-width: 900px) {
    .bb-cms-rail {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding-top: 0.35rem;
        position: sticky;
        top: calc(var(--bb-header-h, 8rem) + 1.5rem);
    }
}

.bb-cms-rail-mark {
    width: 3px;
    height: 4.5rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--bb-accent), rgba(232, 93, 4, 0.15));
}

.bb-cms-rail-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bb-muted);
    white-space: nowrap;
}

.bb-cms-article {
    min-width: 0;
}

.bb-cms-lead {
    margin: 0 0 1.75rem;
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    font-weight: 600;
    line-height: 1.55;
    color: var(--bb-navy);
    letter-spacing: -0.015em;
}

.bb-cms-lead::first-letter {
    float: left;
    font-size: 3.4rem;
    line-height: 0.85;
    font-weight: 800;
    color: var(--bb-accent);
    padding-right: 0.45rem;
    margin-top: 0.15rem;
}

.bb-cms-copy {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
}

.bb-cms-copy > p {
    margin: 0 0 1.25rem;
}

.bb-cms-copy > p:last-child {
    margin-bottom: 0;
}

.bb-cms-copy.bb-prose {
    font-size: 1.0625rem;
    line-height: 1.8;
}

@media (prefers-reduced-motion: reduce) {
    .bb-cms-hero::before {
        transform: none;
    }
}

/* —— Home hero carousel —— */
.bb-home-hero {
    position: relative;
    height: calc(100svh - var(--bb-header-h, 9rem));
    min-height: 32rem;
    background: var(--bb-navy);
    overflow: hidden;
}

.bb-home-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.bb-home-hero-slide.is-active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.bb-home-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 12s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.bb-home-hero-slide.is-active img {
    transform: scale(1.05);
}

.bb-home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2; /* above slides so gradient stays; slides use 0/1 for crossfade */
    background:
        linear-gradient(90deg,
            rgba(8, 22, 48, 0.96) 0%,
            rgba(8, 22, 48, 0.88) 22%,
            rgba(10, 28, 56, 0.68) 42%,
            rgba(12, 35, 64, 0.28) 58%,
            rgba(12, 35, 64, 0.06) 70%,
            transparent 82%
        ),
        linear-gradient(0deg, rgba(0, 0, 0, 0.30) 0%, transparent 28%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}


.bb-home-hero-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 0;
    max-width: 44rem;
    color: #fff;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .bb-home-hero-content {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .bb-home-hero-content {
        padding: 5rem 0;
    }
}

.bb-home-hero-content .bb-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bb-accent);
    margin-bottom: 0.75rem;
}

.bb-home-hero-heading {
    margin: 0 0 1.25rem;
}

.bb-home-hero-content h1 {
    font-size: clamp(2rem, 8vw, 4.75rem);
    font-weight: 800;
    line-height: 1.04;
    margin: 0;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.bb-home-hero-tagline {
    margin: 0.55rem 0 0;
    font-size: clamp(1rem, 2.4vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.bb-home-hero-dots {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    z-index: 10;
}

.bb-home-hero-dots button {
    width: 3px;
    height: 2rem;
    border-radius: 9999px;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
}

.bb-home-hero-dots button.is-active {
    background: var(--bb-accent);
    height: 4rem;
}

/* —— Hero scroll indicator —— */
.bb-hero-scroll {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: bb-fade-up 0.8s 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    pointer-events: none;
    user-select: none;
}

.bb-hero-scroll svg {
    width: 1.5rem;
    height: 1.5rem;
    animation: bb-scroll-bounce 2.5s ease-in-out infinite;
}

@keyframes bb-scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.45; }
    50%       { transform: translateY(7px); opacity: 0.8; }
}

/* —— Section titles —— */
.bb-section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.bb-section-title h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--bb-navy);
    margin: 0 0 0.5rem;
}

.bb-section-title p {
    color: var(--bb-muted);
    margin: 0;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* Homepage readability bump */
.bb-home {
    font-size: 1.0625rem;
}

.bb-home .bb-section-title p {
    font-size: 1.125rem;
    line-height: 1.65;
}

.bb-home .bb-about-cta-inner p {
    font-size: 1.125rem;
}

/* —— Solution / category grid —— */
.bb-solution-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .bb-solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bb-solution-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bb-solution-card {
    display: block;
    color: inherit;
    background: #fff;
    border-radius: var(--bb-radius);
    border: 1px solid var(--bb-border);
    padding: 1.5rem;
    transition: border-color 0.25s ease, box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-solution-card:hover {
    border-color: var(--bb-accent);
    box-shadow: var(--bb-shadow);
    transform: translateY(-4px);
}

.bb-solution-card-heading {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bb-solution-card-heading:hover h3 {
    color: var(--bb-accent);
}

.bb-solution-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bb-navy);
    transition: color 0.2s ease;
}

.bb-solution-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1rem;
    color: var(--bb-muted);
}

.bb-solution-card li {
    padding: 0.25rem 0;
}

.bb-solution-card li::before {
    content: '→ ';
    color: var(--bb-accent);
}

.bb-solution-card li a {
    color: inherit;
    text-decoration: none;
}

.bb-solution-card li a:hover {
    color: var(--bb-accent);
    text-decoration: underline;
}

.bb-solution-card-more {
    font-style: italic;
    opacity: 0.7;
    font-size: 0.9375rem;
    padding-top: 0.35rem !important;
}

.bb-solution-card-more::before {
    content: '' !important;
}

.bb-solution-card-more a {
    color: inherit;
}

/* —— Homepage new products grid —— */
.bb-home-new-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .bb-home-new-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bb-home-new-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bb-home-new-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-home-new-card:hover {
    box-shadow: 0 12px 40px rgba(12, 35, 64, 0.14);
    transform: translateY(-3px);
}

.bb-home-new-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.25rem 0;
    min-height: 8rem;
}

.bb-home-new-card-media img {
    max-width: 100%;
    max-height: 6.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--bb-radius);
}

.bb-home-new-card-body {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bb-home-new-card-body h3 {
    font-size: 1.0625rem;
    line-height: 1.35;
    margin: 0;
}

/* —— Category landing cards (parent category children) —— */
.bb-category-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .bb-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bb-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* —— Category cards: default (subcategory pages) —— */
.bb-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: var(--bb-radius);
    overflow: hidden;
    box-shadow: var(--bb-shadow);
    transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-category-card:hover {
    box-shadow: 0 12px 40px rgba(12, 35, 64, 0.25);
    transform: translateY(-4px);
}

.bb-category-card-media {
    min-height: 8.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem 0.75rem;
    background: #fff;
}

.bb-category-card-media img {
    max-height: 6.5rem;
    width: auto;
    object-fit: contain;
    border-radius: var(--bb-radius);
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-category-card:hover .bb-category-card-media img {
    transform: scale(1.07);
}

.bb-category-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
}

.bb-category-card-placeholder svg {
    width: 3rem;
    height: 3rem;
}

.bb-category-card-title {
    padding: 1rem 1.25rem 1.25rem;
    text-align: center;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--bb-navy);
}

/* —— Category cards: industries landing page (full-bleed) —— */
.bb-category-grid--industries .bb-category-card {
    display: block;
    background: #fff;
    height: 12rem;
}

.bb-category-grid--industries .bb-category-card-media {
    position: absolute;
    inset: 0;
    min-height: unset;
    padding: 0;
    display: block;
    background: #fff;
}

.bb-category-grid--industries .bb-category-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 22, 48, 0.97) 0%,
        rgba(8, 22, 48, 0.82) 30%,
        rgba(8, 22, 48, 0.45) 55%,
        rgba(8, 22, 48, 0.10) 78%,
        transparent 100%
    );
    transition: opacity 0.35s ease;
}

.bb-category-grid--industries .bb-category-card:hover .bb-category-card-media::after {
    opacity: 0.85;
}

.bb-category-grid--industries .bb-category-card-media img {
    width: 100%;
    height: 100%;
    max-height: unset;
    object-fit: cover;
}

.bb-category-grid--industries .bb-category-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    margin: 0;
    padding: 0.875rem 1.25rem 1.125rem;
    color: #fff;
    text-align: left;
}

/* —— Events page —— */
.bb-events-layout {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .bb-events-layout {
        grid-template-columns: 22rem 1fr;
        gap: 3rem;
    }
}

/* Calendar sidebar */
.bb-events-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .bb-events-sidebar {
        position: sticky;
        top: calc(var(--bb-header-h, 9rem) + 1.5rem);
    }
}

.bb-cal {
    background: #fff;
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow);
    overflow: hidden;
}

.bb-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-blue) 100%);
    color: #fff;
}

.bb-cal-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-transform: capitalize;
}

.bb-cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.375rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.bb-cal-nav:hover { background: rgba(255, 255, 255, 0.28); }
.bb-cal-nav svg { width: 1rem; height: 1rem; }

.bb-cal-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0.625rem 0.75rem 0.375rem;
    gap: 0;
}
.bb-cal-dow span {
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--bb-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 0.75rem 0.75rem;
    gap: 2px;
}

.bb-cal-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 2.25rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--bb-text);
    cursor: default;
    transition: background 0.15s;
    position: relative;
}

.bb-cal-cell--event {
    cursor: pointer;
    font-weight: 700;
    color: var(--bb-navy);
}
.bb-cal-cell--event:hover {
    background: rgba(232, 93, 4, 0.10);
}

.bb-cal-cell--selected {
    background: rgba(232, 93, 4, 0.18);
    box-shadow: inset 0 0 0 2px var(--bb-accent);
}

.bb-cal-cell--event.bb-cal-cell--selected {
    background: rgba(232, 93, 4, 0.22);
}

.bb-cal-cell--today > .bb-cal-day {
    background: var(--bb-navy);
    color: #fff;
    border-radius: 50%;
    width: 1.625rem;
    height: 1.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-cal-cell--event.bb-cal-cell--today > .bb-cal-day {
    background: var(--bb-accent);
}

.bb-cal-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bb-accent);
    flex-shrink: 0;
}

.bb-cal-legend {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--bb-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--bb-muted);
}

/* Event cards */
.bb-events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bb-events-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.bb-events-filter-label {
    font-size: 0.875rem;
    color: var(--bb-muted);
    margin: 0;
}

.bb-events-filter-label strong {
    color: var(--bb-navy);
}

.bb-events-filter-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow);
    color: var(--bb-muted);
}

.bb-event-card {
    background: #fff;
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    scroll-margin-top: calc(var(--bb-header-h, 9rem) + 1rem);
}
.bb-event-card:hover {
    box-shadow: 0 8px 32px rgba(12, 35, 64, 0.14);
    transform: translateY(-2px);
}

.bb-event-card--highlight {
    animation: bb-event-flash 1.8s ease;
}
@keyframes bb-event-flash {
    0%, 100% { box-shadow: var(--bb-shadow); }
    30%       { box-shadow: 0 0 0 3px var(--bb-accent), 0 8px 32px rgba(232, 93, 4, 0.30); }
}

.bb-event-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 5rem;
    flex-shrink: 0;
    background: linear-gradient(160deg, var(--bb-navy) 0%, var(--bb-blue) 100%);
    color: #fff;
    padding: 1.25rem 0.5rem;
    gap: 0.125rem;
}
.bb-event-badge-day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}
.bb-event-badge-month {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.80;
    color: #fff;
}
.bb-event-badge-year {
    font-size: 0.625rem;
    opacity: 0.55;
    color: #fff;
    margin-top: 0.125rem;
}

.bb-event-body {
    padding: 1.5rem;
    min-width: 0;
}

.bb-event-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bb-navy);
    margin: 0 0 0.75rem;
    line-height: 1.35;
}

.bb-event-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--bb-muted);
    margin-bottom: 1rem;
}
.bb-event-meta svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.bb-event-prose {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--bb-text);
}
.bb-event-prose img {
    max-width: min(100%, 540px);
    max-height: 340px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    margin: 0.75rem 0;
    display: block;
}

/* Event card excerpt + expandable details */
.bb-event-excerpt {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--bb-muted);
    margin: 0.375rem 0 0;
}

.bb-event-details {
    margin-top: 0.75rem;
}

.bb-event-details > summary {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bb-accent);
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0;
    user-select: none;
}
.bb-event-details > summary::-webkit-details-marker { display: none; }
.bb-event-details > summary::before {
    content: '▶';
    font-size: 0.5rem;
    opacity: 0.7;
    transition: transform 0.18s ease;
    display: inline-block;
}
.bb-event-details[open] > summary::before {
    transform: rotate(90deg);
}
.bb-event-details > .bb-event-prose {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bb-border, #e5e7eb);
}

/* No-events state */
.bb-events-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--bb-muted);
    background: #fff;
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow);
}
.bb-events-empty svg {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    opacity: 0.35;
}

/* —— Contact page —— */
.bb-contact-layout {
    display: grid;
    gap: 2rem;
    align-items: start;
}
@media (min-width: 768px) {
    .bb-contact-layout {
        grid-template-columns: 5fr 7fr;
        gap: 2.5rem;
    }
}
@media (min-width: 1024px) {
    .bb-contact-layout {
        grid-template-columns: 2fr 3fr;
        gap: 3rem;
    }
}

.bb-contact-info {
    border-radius: var(--bb-radius);
    overflow: hidden;
    background: linear-gradient(160deg, var(--bb-navy) 0%, #163660 60%, #1a4d7c 100%);
    color: #fff;
    box-shadow: var(--bb-shadow);
}

.bb-contact-info-inner {
    padding: 2.25rem 2rem 2.5rem;
}

.bb-contact-info-heading {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.bb-contact-info-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.70);
    margin: 0 0 2rem;
    line-height: 1.65;
}

.bb-contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bb-contact-info-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.bb-contact-info-icon {
    width: 2.375rem;
    height: 2.375rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.10);
    color: var(--bb-accent);
}

.bb-contact-info-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.bb-contact-info-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.50);
    margin: 0 0 0.2rem;
}

.bb-contact-info-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    display: block;
}

.bb-contact-info-value:hover {
    color: var(--bb-accent);
}

.bb-contact-offices {
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
}

.bb-contact-offices-title {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.50);
    margin: 0 0 1rem;
}

.bb-contact-office {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
}

.bb-contact-office-pin {
    flex-shrink: 0;
    margin-top: 0.125rem;
    opacity: 0.55;
    color: var(--bb-accent);
}

.bb-contact-office-pin svg {
    width: 1rem;
    height: 1rem;
}

.bb-contact-office-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bb-contact-office-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
}

.bb-contact-office-detail {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.5;
    margin: 0;
}

.bb-contact-office-detail a {
    color: rgba(255, 255, 255, 0.60);
    text-decoration: none;
}

.bb-contact-office-detail a:hover {
    color: var(--bb-accent);
}

/* Form side */
.bb-contact-form-wrap {
    background: #fff;
    border-radius: var(--bb-radius);
    padding: 2.25rem 2rem 2.5rem;
    box-shadow: var(--bb-shadow);
}

.bb-contact-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bb-navy);
    margin: 0 0 1.75rem;
}

.bb-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bb-contact-form-row {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 480px) {
    .bb-contact-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.bb-contact-msg-success {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 500;
}

.bb-contact-msg-error {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* —— Product detail hero —— */
.bb-product-hero {
    position: relative;
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-blue) 100%);
    color: #fff;
    overflow: hidden;
}

.bb-product-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--bb-product-bg);
    background-size: contain;
    background-position: center right 6%;
    background-repeat: no-repeat;
    opacity: 0.12;
    transform: scale(1.04);
}

.bb-product-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(12, 35, 64, 0.97) 0%, rgba(12, 35, 64, 0.8) 50%, rgba(12, 35, 64, 0.25) 100%),
        linear-gradient(0deg, rgba(12, 35, 64, 0.4) 0%, transparent 40%);
}

.bb-product-hero-body {
    position: relative;
    z-index: 1;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

@media (min-width: 640px) {
    .bb-product-hero-body {
        padding-top: 3rem;
        padding-bottom: 3.5rem;
    }
}

.bb-product-hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bb-accent);
    margin-bottom: 0.75rem;
}

.bb-product-hero h1 {
    font-size: clamp(1.875rem, 4vw, 2.875rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.bb-product-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.bb-product-hero-tag {
    display: inline-block;
    padding: 0.3rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.bb-product-hero-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* —— Product detail body sections —— */
.bb-product-section {
    padding-bottom: 2.25rem;
    border-bottom: 1px solid var(--bb-border);
    margin-bottom: 2.25rem;
}

.bb-product-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bb-product-section-heading {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--bb-navy);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.bb-product-section-heading::before {
    content: '';
    display: block;
    width: 3px;
    height: 1.125rem;
    background: var(--bb-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* —— Resource cards (PDFs, video, specs) —— */
.bb-resource-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

.bb-resource-card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--bb-surface);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    text-decoration: none;
    color: var(--bb-navy);
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease, background 0.2s ease;
}

.bb-resource-card:hover {
    border-color: var(--bb-accent);
    box-shadow: var(--bb-shadow);
    transform: translateY(-2px);
    background: #fff;
    color: var(--bb-navy);
}

.bb-resource-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(232, 93, 4, 0.1);
    color: var(--bb-accent);
    flex-shrink: 0;
}

.bb-resource-card-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.bb-resource-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.bb-resource-card-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bb-navy);
    line-height: 1.2;
}

.bb-resource-card-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--bb-muted);
}

/* —— About Us page —— */
.bb-about-hero {
    position: relative;
    min-height: 18rem;
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-blue) 55%, #2563a8 100%);
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .bb-about-hero {
        min-height: 22rem;
    }
}

/* Stretch the overlay to fill the section, then pad the content inside */
.bb-about-hero-overlay > .bb-container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .bb-about-hero-overlay > .bb-container {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

.bb-about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--bb-about-hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.28;
}

.bb-about-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    background: linear-gradient(92deg, rgba(8, 22, 48, 0.96) 0%, rgba(12, 35, 64, 0.82) 40%, rgba(12, 35, 64, 0.60) 70%, rgba(12, 35, 64, 0.45) 100%);
}

.bb-about-hero .bb-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.bb-about-hero h1 {
    margin: 0.5rem 0 0;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 16ch;
}

.bb-about-hero p {
    margin: 1rem 0 0;
    max-width: 40rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.bb-about-stats {
    margin-top: -2.5rem;
    position: relative;
    z-index: 2;
    padding-bottom: 0.5rem;
}

.bb-about-stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .bb-about-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bb-about-stat {
    background: #fff;
    border-radius: var(--bb-radius);
    border: 1px solid var(--bb-border);
    box-shadow: var(--bb-shadow);
    padding: 1.25rem 1rem;
    text-align: center;
}

.bb-about-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--bb-accent);
    line-height: 1.1;
}

.bb-about-stat-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bb-navy);
}

.bb-about-stat p {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--bb-muted);
    line-height: 1.4;
}

.bb-about-intro {
    padding-top: 2rem;
}

.bb-about-split {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .bb-about-split {
        grid-template-columns: 0.95fr 1.05fr;
        gap: 3rem;
    }
}

.bb-about-split-media {
    position: relative;
    border-radius: var(--bb-radius);
    overflow: hidden;
    box-shadow: var(--bb-shadow);
    background: var(--bb-navy);
    min-height: 16rem;
}

.bb-about-split-media img {
    width: 100%;
    height: 100%;
    min-height: 16rem;
    object-fit: cover;
    display: block;
}

.bb-about-split-placeholder {
    min-height: 16rem;
    background: linear-gradient(145deg, var(--bb-navy), var(--bb-blue));
}

.bb-about-split-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 16px rgba(12, 35, 64, 0.15);
}

.bb-about-split-badge strong {
    display: block;
    font-size: 1.5rem;
    color: var(--bb-accent);
    line-height: 1;
}

.bb-about-split-badge span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bb-navy);
    max-width: 12rem;
    line-height: 1.3;
}

.bb-about-split-content h2 {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--bb-navy);
    letter-spacing: -0.02em;
}

.bb-about-lead {
    margin: 0 0 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--bb-text);
}

.bb-about-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--bb-border);
}

.bb-about-timeline li {
    position: relative;
    padding: 0 0 1.25rem 1.5rem;
}

.bb-about-timeline li:last-child {
    padding-bottom: 0;
}

.bb-about-timeline li::before {
    content: '';
    position: absolute;
    left: -0.4375rem;
    top: 0.35rem;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--bb-accent);
    box-shadow: 0 0 0 3px #fff;
}

.bb-about-timeline-year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bb-accent);
    margin-bottom: 0.25rem;
}

.bb-about-timeline p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--bb-muted);
    line-height: 1.55;
}

.bb-about-commitment-lead {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.bb-about-pillars-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .bb-about-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bb-about-pillars-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bb-about-pillar {
    background: var(--bb-surface);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    padding: 1.5rem;
    transition: border-color 0.25s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.bb-about-pillar:hover {
    border-color: rgba(232, 93, 4, 0.35);
    box-shadow: var(--bb-shadow);
    transform: translateY(-3px);
}

.bb-about-pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    background: rgba(12, 35, 64, 0.08);
    color: var(--bb-navy);
    margin-bottom: 1rem;
}

.bb-about-pillar-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.bb-about-pillar h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bb-navy);
}

.bb-about-pillar p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--bb-muted);
}

.bb-about-closing-card {
    display: grid;
    gap: 1.5rem;
    align-items: start;
    background: #fff;
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow);
    padding: 2rem;
}

@media (min-width: 640px) {
    .bb-about-closing-card {
        grid-template-columns: auto 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }
}

.bb-about-closing-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--bb-navy), var(--bb-blue));
    color: #fff;
    flex-shrink: 0;
}

.bb-about-closing-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.bb-about-closing-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bb-navy);
}

.bb-about-closing-card p {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--bb-text);
}

.bb-about-signature {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--bb-border);
    border-left: 4px solid var(--bb-accent);
    border-radius: var(--bb-radius);
    padding: 2rem 2.25rem;
    box-shadow: var(--bb-shadow);
}

.bb-about-signature-closing {
    margin: 0 0 0.75rem;
    font-style: italic;
    color: var(--bb-muted);
}

.bb-about-signature-name {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--bb-navy);
    font-family: Georgia, 'Times New Roman', serif;
}

.bb-about-signature-role {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bb-accent);
}

.bb-about-cta {
    padding: 3.5rem 0 4rem;
}

.bb-about-cta-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--bb-navy) 0%, var(--bb-blue) 100%);
    color: #fff;
    border-radius: var(--bb-radius);
    padding: 2.5rem;
    box-shadow: 0 12px 40px rgba(12, 35, 64, 0.2);
}

@media (min-width: 768px) {
    .bb-about-cta-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        padding: 3rem;
    }
}

.bb-about-cta-inner h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.bb-about-cta-inner p {
    margin: 0;
    opacity: 0.9;
    max-width: 28rem;
}

.bb-about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bb-about-cta .bb-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.bb-about-cta .bb-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* —— Header live search —— */
.bb-search {
    position: relative;
}

.bb-search-field {
    position: relative;
}

.bb-search-dropdown {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    right: 0;
    z-index: 200;
    max-height: 22rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    box-shadow: 0 12px 40px rgba(12, 35, 64, 0.15);
}

.bb-search-dropdown-status {
    margin: 0;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    color: var(--bb-muted);
}

.bb-search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.bb-search-dropdown-item:hover,
.bb-search-dropdown-item.is-active {
    background: #f1f5f9;
}

.bb-search-dropdown-thumb {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    background: #f8fafc;
    border: 1px solid var(--bb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bb-search-dropdown-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bb-search-dropdown-thumb-placeholder {
    color: #94a3b8;
    display: flex;
}

.bb-search-dropdown-thumb-placeholder svg {
    width: 1.125rem;
    height: 1.125rem;
}

.bb-search-dropdown-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.bb-search-dropdown-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bb-navy);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-search-dropdown-meta {
    font-size: 0.75rem;
    color: var(--bb-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bb-search-dropdown-all {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: center;
    color: var(--bb-accent);
    text-decoration: none;
    border-top: 1px solid var(--bb-border);
    background: #f8fafc;
}

.bb-search-dropdown-all:hover {
    background: #f1f5f9;
    color: var(--bb-accent-hover);
}

/* —— Mobile nav: reset search form elements overridden by bb-nav-mobile rules —— */
.bb-nav-mobile .bb-search {
    width: 100%;
}

.bb-nav-mobile .bb-search form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.bb-nav-mobile .bb-search .bb-search-field {
    flex: 1 1 0%;
    min-width: 0;
    position: relative;
}

.bb-nav-mobile .bb-search input[type="search"] {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid var(--bb-border);
    border-radius: 0.5rem;
    background: #fff;
    border-bottom: 1px solid var(--bb-border);
    -webkit-appearance: none;
    appearance: none;
}

.bb-nav-mobile .bb-search button[type="submit"] {
    display: inline-flex;
    align-items: center;
    width: auto;
    flex-shrink: 0;
    border-bottom: none;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
}

.bb-nav-mobile .bb-search-dropdown {
    z-index: 210;
}

/* —— Forms —— */
.bb-input,
.bb-textarea,
.bb-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    border: 1px solid var(--bb-border);
    border-radius: 0.5rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bb-input:focus,
.bb-textarea:focus,
.bb-select:focus {
    outline: none;
    border-color: var(--bb-blue);
    box-shadow: 0 0 0 3px rgba(26, 77, 124, 0.15);
}

.bb-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--bb-navy);
}

/* —— Nav (header partial uses these) —— */

/* Header uses the shared 90rem container — no override needed */

/* Actions cluster (search + CTA + hamburger) */
.bb-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

/* —— Expandable header search (floats over nav, nothing shifts) —— */
.bb-header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.bb-header-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: var(--bb-navy);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 51;
    transition: color 0.2s ease;
}

.bb-header-search:hover .bb-header-search-toggle,
.bb-header-search:focus-within .bb-header-search-toggle {
    color: var(--bb-accent);
}

.bb-header-search-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Absolutely positioned — expands leftward over the nav, nothing shifts */
.bb-header-search-expand {
    position: absolute;
    right: 2.75rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
}

.bb-header-search:hover .bb-header-search-expand,
.bb-header-search:focus-within .bb-header-search-expand {
    max-width: 22rem;
    opacity: 1;
}

.bb-header-search:focus-within .bb-header-search-expand {
    overflow: visible;
}

/* Hide submit button — Enter submits */
.bb-header-search-expand button[type="submit"] {
    display: none;
}

/* Input gets a shadow so it reads clearly over nav text */
.bb-header-search-expand .bb-input {
    box-shadow: 0 4px 24px rgba(12, 35, 64, 0.12);
    white-space: nowrap;
}

.bb-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 0 var(--bb-border);
    overflow: visible;
}

.bb-header > .bb-container {
    overflow: visible;
}

.bb-topbar {
    background: var(--bb-navy);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
}

.bb-topbar a {
    color: inherit;
    text-decoration: none;
}

.bb-topbar a:hover {
    color: #fff;
}

.bb-nav-main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: var(--bb-nav-height);
}

.bb-logo img {
    height: 4.75rem;
    width: auto;
    display: block;
}

.bb-nav-desktop {
    display: none;
    align-items: center;
    gap: 0.125rem;
    overflow: visible;
    position: relative;
    z-index: 1;
    flex: 1;
}

.bb-nav-desktop > ul {
    overflow: visible;
}

@media (min-width: 1024px) {
    .bb-nav-desktop {
        display: flex;
    }
    .bb-nav-mobile-toggle {
        display: none !important;
    }
}

.bb-nav-item {
    position: relative;
}

/* Single hover zone for trigger + menu (avoids gap flicker when approaching from below) */
.bb-nav-flyout {
    position: relative;
}

.bb-nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bb-navy);
    text-decoration: none;
    border-radius: 0.375rem;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.bb-nav-link:hover,
.bb-nav-link[aria-expanded="true"] {
    background: #f1f5f9;
    color: var(--bb-accent);
}

.bb-nav-link svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-nav-link[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.bb-nav-dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    padding-top: 0.5rem;
    min-width: 14rem;
    z-index: 1100;
    transform-origin: top center;
}

/* Invisible bridge between nav trigger and dropdown panel */
.bb-nav-dropdown::before {
    content: '';
    position: absolute;
    left: -0.25rem;
    right: -0.25rem;
    top: -0.5rem;
    height: 0.875rem;
}

.bb-nav-dropdown-panel {
    background: #fff;
    border: 1px solid rgba(12, 35, 64, 0.08);
    border-radius: 0.875rem;
    box-shadow:
        0 4px 6px rgba(12, 35, 64, 0.04),
        0 18px 48px rgba(12, 35, 64, 0.14);
    padding: 0.5rem;
    overflow: hidden;
}

.bb-nav-dropdown:not(.bb-mega-panel) .bb-nav-dropdown-panel {
    max-height: min(24rem, calc(100vh - var(--bb-header-h, 8rem) - 1.5rem));
    overflow-y: auto;
}

.bb-nav-dropdown-panel a {
    display: block;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bb-text);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.bb-nav-dropdown-panel a:hover {
    background: linear-gradient(90deg, rgba(232, 93, 4, 0.08), rgba(232, 93, 4, 0.02));
    color: var(--bb-accent);
    padding-left: 1.05rem;
}

@media (min-width: 1024px) {
    .bb-mega-panel.bb-nav-dropdown {
        position: fixed;
        left: 50%;
        top: var(--bb-nav-bottom, var(--bb-header-h, 8.5rem));
        transform: translateX(-50%);
        width: min(60rem, calc(100vw - 2rem));
        padding-top: 0.5rem;
        z-index: 1200;
    }

    .bb-mega-panel .bb-nav-dropdown-panel {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
        gap: 0.65rem;
        padding: 0.85rem;
        max-height: calc(100vh - var(--bb-nav-bottom, var(--bb-header-h, 8.5rem)) - 1.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        background:
            linear-gradient(#fff, #fff) padding-box,
            linear-gradient(135deg, rgba(12, 35, 64, 0.06), rgba(232, 93, 4, 0.12)) border-box;
        border: 1px solid transparent;
    }
}

@media (max-width: 1023px) {
    .bb-mega-panel {
        left: 0;
        width: min(56rem, calc(100vw - 2rem));
    }

    .bb-mega-panel .bb-nav-dropdown-panel {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
        gap: 0.65rem;
        padding: 0.85rem;
        max-height: min(28rem, calc(100vh - var(--bb-header-h, 8rem) - 1rem));
        overflow-y: auto;
    }
}

.bb-mega-group {
    padding: 0.9rem 1rem 1.05rem;
    border-radius: 0.625rem;
    background: rgba(12, 35, 64, 0.02);
    border: 1px solid rgba(12, 35, 64, 0.05);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.bb-mega-group:hover {
    background: #fff;
    border-color: rgba(232, 93, 4, 0.22);
    box-shadow: 0 6px 18px rgba(12, 35, 64, 0.06);
}

.bb-mega-group h4 {
    margin: 0 0 0.65rem;
    padding-bottom: 0.45rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bb-accent);
    border-bottom: 1px solid rgba(232, 93, 4, 0.18);
}

.bb-mega-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bb-mega-group li a {
    padding: 0.4rem 0.35rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.bb-mega-group li a:hover {
    background: rgba(232, 93, 4, 0.08);
    color: var(--bb-accent);
    padding-left: 0.5rem;
}

/* Mobile nav */
.bb-nav-mobile {
    display: none;
    border-top: 1px solid var(--bb-border);
    background: #fff;
    max-height: calc(100vh - var(--bb-nav-height));
    overflow-y: auto;
}

.bb-nav-mobile.is-open {
    display: block;
}

@media (min-width: 1024px) {
    .bb-nav-mobile {
        display: none !important;
    }
}

.bb-nav-mobile a,
.bb-nav-mobile button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bb-navy);
    text-decoration: none;
    border: none;
    background: none;
    border-bottom: 1px solid var(--bb-border);
    font-family: inherit;
    cursor: pointer;
}

.bb-nav-mobile-sub {
    padding-left: 1.25rem;
    background: #f8fafc;
}

.bb-nav-mobile-sub a {
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
}

.bb-lang-active {
    background: var(--bb-accent) !important;
    color: #fff !important;
}

/* Product list */
.bb-product-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .bb-product-card {
        flex-direction: row;
        align-items: center;
    }
}

.bb-product-card-media {
    flex-shrink: 0;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7rem;
}

.bb-product-card-media img {
    display: block;
    max-width: 7rem;
    max-height: 7rem;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--bb-radius);
}

.bb-product-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bb-product-card-link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-product-card-link:hover {
    border-color: var(--bb-accent);
    box-shadow: var(--bb-shadow);
    transform: translateY(-3px);
}

.bb-product-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .bb-product-grid:not(.bb-product-grid--single) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bb-product-grid:not(.bb-product-grid--single) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bb-product-grid--single {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.bb-product-detail {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 768px) {
    .bb-product-detail {
        grid-template-columns: minmax(16rem, 38%) 1fr;
    }
}

/* Sticky left sidebar: image + downloads */
.bb-product-aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bb-product-aside {
        position: sticky;
        top: calc(var(--bb-nav-height) + 1.5rem);
    }
}

.bb-product-aside-image {
    position: relative;
    background: #fff;
    border-radius: var(--bb-radius);
    border: 1px solid var(--bb-border);
    box-shadow: var(--bb-shadow);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 16rem;
}

.bb-product-aside-image img {
    max-width: 100%;
    max-height: 18rem;
    object-fit: contain;
    display: block;
}

/* Vertical stack of resource cards inside the aside */
.bb-resource-grid--stack {
    flex-direction: column;
    flex-wrap: nowrap;
}

/* Product image: zoom trigger button */
.bb-img-zoom-btn {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--bb-navy);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.bb-product-aside-image:hover .bb-img-zoom-btn {
    opacity: 1;
}

.bb-img-zoom-btn:hover {
    background: var(--bb-accent);
    transform: scale(1.1);
}

@media (hover: none) {
    .bb-img-zoom-btn {
        opacity: 1;
    }
}

/* Lightbox overlay */
.bb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(4, 9, 20, 0.93);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
}

.bb-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 1;
}

.bb-lightbox-close svg {
    width: 1.125rem;
    height: 1.125rem;
}

.bb-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.bb-lightbox-img-wrap {
    overflow: hidden;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 84vh;
}

.bb-lightbox-img {
    display: block;
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-drag: none;
    border-radius: 0.375rem;
}

.bb-lightbox-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.05em;
    pointer-events: none;
}

.bb-lightbox-hint kbd {
    font-family: inherit;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    padding: 0.05em 0.35em;
}

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

.bb-product-detail-image {
    width: 100%;
    max-height: 20rem;
    object-fit: contain;
    background: #fff;
    border-radius: var(--bb-radius);
    border: 1px solid var(--bb-border);
    padding: 1.5rem;
}

.bb-product-detail-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bb-product-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bb-muted);
    margin-bottom: 0.5rem;
}

.bb-product-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bb-navy);
    background: #f1f5f9;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.bb-product-tag:hover {
    background: var(--bb-accent);
    color: #fff;
}

.bb-product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Manufacturer grid */
.bb-partner-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    align-items: stretch;
}

@media (min-width: 640px) {
    .bb-partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bb-partner-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bb-partner-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    height: 100%;
}

.bb-partner-card .bb-card-body {
    padding: 0;
}

.bb-partner-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 7rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.bb-partner-card-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 7rem;
    object-fit: contain;
    object-position: center;
}

.bb-partner-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--bb-navy);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.bb-partner-card-copy {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
    transition: height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.bb-partner-card-copy-inner {
    /* Keeps scrollHeight stable while the outer shell animates */
    min-height: 0;
}

.bb-partner-card-copy::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.75rem;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 90%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.bb-partner-card-copy.is-expanded::after {
    opacity: 0;
}

.bb-partner-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--bb-muted);
    margin: 0;
}

.bb-partner-card-toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.75rem;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bb-accent);
    cursor: pointer;
}

.bb-partner-card-toggle:disabled {
    cursor: default;
    opacity: 0.7;
}

.bb-partner-card-toggle svg {
    width: 0.9rem;
    height: 0.9rem;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.bb-partner-card-toggle-icon--open {
    transform: rotate(180deg);
}

.bb-partner-card-toggle:hover {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .bb-partner-card-copy {
        transition: none;
    }

    .bb-partner-card-copy::after,
    .bb-partner-card-toggle svg {
        transition: none;
    }
}

.bb-partner-card-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bb-accent);
}

.bb-partner-card-link:hover {
    text-decoration: underline;
}

/* —— Logo roller (homepage partners) —— */
.bb-logo-roller-wrap {
    overflow: hidden;
    padding: 1.75rem 0;
    mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.bb-logo-roller-track {
    display: flex;
    width: max-content;
    animation: bb-logo-scroll 100s linear infinite;
}

.bb-logo-roller-track:hover {
    animation-play-state: paused;
}

.bb-logo-roller-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 10rem;
    height: 4.5rem;
    margin-right: 3.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.bb-logo-roller-item:hover {
    transform: scale(1.08);
    opacity: 1;
}

.bb-logo-roller-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.bb-logo-roller-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bb-navy);
    text-align: center;
    line-height: 1.3;
}

@keyframes bb-logo-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */
.bb-footer {
    background: var(--bb-navy);
    color: rgba(255, 255, 255, 0.85);
    margin-top: auto;
}

.bb-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

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

.bb-footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
}

/* —— Motion: dropdowns, hero, sections —— */
.bb-dropdown-enter {
    transition:
        opacity 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bb-dropdown-enter-start {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
}

.bb-dropdown-enter-end {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bb-dropdown-leave {
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.bb-dropdown-leave-start {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bb-dropdown-leave-end {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
}

.bb-home-hero-content > * {
    animation: bb-fade-up 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bb-home-hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.bb-home-hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.bb-home-hero-content > *:nth-child(3) { animation-delay: 0.45s; }
.bb-home-hero-content > *:nth-child(4) { animation-delay: 0.55s; }

@keyframes bb-fade-up {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* —— Scroll-triggered reveal (.bb-animate-section kept for compat, no longer auto-fires) —— */

[data-animate] {
    opacity: 0;
    will-change: opacity, transform;
}

[data-animate="fade-up"]    { transform: translateY(2.5rem); }
[data-animate="fade-down"]  { transform: translateY(-1.75rem); }
[data-animate="fade-left"]  { transform: translateX(-2.5rem); }
[data-animate="fade-right"] { transform: translateX(2.5rem); }
[data-animate="fade-in"]    { transform: none; }
[data-animate="scale-up"]   { transform: scale(0.93); }

[data-animate].is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.78s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
}

.bb-btn {
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-btn:hover {
    transform: translateY(-1px);
}

.bb-card {
    transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-card:hover {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .bb-home-hero-slide img,
    .bb-home-hero-content > *,
    .bb-animate-section,
    .bb-solution-grid .bb-solution-card,
    .bb-dropdown-enter,
    .bb-dropdown-leave,
    .bb-nav-link svg,
    .bb-btn,
    .bb-card,
    .bb-solution-card,
    .bb-about-pillar,
    .bb-hero-scroll,
    .bb-hero-scroll svg {
        animation: none !important;
        transition: none !important;
    }

    /* Keep a soft crossfade — full transition:none makes the hero hard-cut */
    .bb-home-hero-slide {
        transition: opacity 0.6s ease !important;
    }

    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .bb-home-hero-slide.is-active img {
        transform: none;
    }

    .bb-solution-card:hover,
    .bb-card:hover,
    .bb-about-pillar:hover,
    .bb-btn:hover,
    .bb-back-to-top:hover {
        transform: none;
    }

    .bb-back-to-top {
        transition: none;
    }
}

/* —— Back to top (stacked above Zoho / chat launcher, bottom-right) —— */
.bb-back-to-top {
    position: fixed;
    right: var(--bb-fab-inset);
    bottom: calc(
        var(--bb-fab-inset) + var(--bb-chat-launcher-size) + var(--bb-fab-gap) + env(safe-area-inset-bottom, 0px)
    );
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--bb-fab-size);
    height: var(--bb-fab-size);
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: var(--bb-accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(232, 93, 4, 0.45);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bb-back-to-top:hover {
    background: var(--bb-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(232, 93, 4, 0.5);
}

.bb-back-to-top:focus-visible {
    outline: 2px solid var(--bb-navy);
    outline-offset: 2px;
}

.bb-back-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 768px) {
    :root {
        --bb-fab-size: 3.25rem;
        --bb-chat-launcher-size: 4rem;
        --bb-fab-inset: 1.5rem;
    }
}

/* Utility */
[x-cloak] {
    display: none !important;
}
