/* ═══════════════════════════════════════════
   Brand Tabs Gallery — Front-end Styles
   ═══════════════════════════════════════════ */

.btw-wrap {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

/* ── Header ── */
.btw-header {
    text-align: center;
    margin-bottom: 48px;
}

.btw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2B78E4;
    margin: 0 0 10px;
    line-height: 1;
}

.btw-line {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.45;
    vertical-align: middle;
}

.btw-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    letter-spacing: -0.022em;
    line-height: 1.1;
    color: #0D2B55;
    margin: 0 0 6px;
    padding: 0;
}

.btw-subtitle {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #7A90AD;
    margin: 0;
}

/* ── Tabs nav ── */
.btw-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.btw-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid #D0DBE8;
    border-radius: 8px;
    background: #FFFFFF;
    color: #7A90AD;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
    line-height: 1;
    outline: none;
    font-family: inherit;
}

.btw-tab:hover {
    background: #F0F6FF;
    color: #0D2B55;
    border-color: #A8BFD6;
}

.btw-tab:focus-visible {
    box-shadow: 0 0 0 3px rgba(43,120,228,0.35);
}

.btw-tab.btw-active {
    background: #0D2B55;
    border-color: #0D2B55;
    color: #FFFFFF;
}

/* ── Panels ── */
.btw-panel {
    display: none;
}

.btw-panel.btw-panel-active {
    display: block;
    animation: btwFadeIn 0.22s ease;
}

@keyframes btwFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo Grid ── */
.btw-logo-grid {
    display: grid;
    grid-template-columns: repeat( var(--btw-cols, 3), 1fr );
    gap: 1px;
    background: #E3EAF3;
    border: 1px solid #E3EAF3;
    border-radius: 12px;
    overflow: hidden;
}

/* ── Logo Cell ── */
.btw-logo-cell {
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    min-height: 96px;
    transition: background 0.16s ease;
    text-decoration: none;
}

a.btw-logo-cell:hover,
.btw-logo-cell:hover {
    background: #F0F6FF;
}

.btw-logo-cell img {
    max-width: 140px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: grayscale(0%);
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.btw-logo-cell:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Optional: start logos slightly desaturated */
.btw-logo-grid.btw-greyscale .btw-logo-cell img {
    filter: grayscale(100%);
    opacity: 0.6;
}

.btw-logo-grid.btw-greyscale .btw-logo-cell:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Placeholder text when no image */
.btw-logo-placeholder {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0D2B55;
    text-align: center;
}

/* ── Responsive ── */
@media ( max-width: 768px ) {
    .btw-logo-grid {
        grid-template-columns: repeat( 2, 1fr ) !important;
    }
    .btw-tabs {
        gap: 6px;
    }
    .btw-tab {
        padding: 8px 14px;
        font-size: 10px;
    }
}

@media ( max-width: 480px ) {
    .btw-logo-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .btw-header {
        margin-bottom: 32px;
    }
}
