/* Footer brands showcase (includes-new/brands-showcase.php) */

.brands-showcase {
    --bs-bg: #1C1B2E;
    --bs-panel: #272545;
    --bs-panel-line: rgba(255, 255, 255, 0.08);
    --bs-text: #FFF;
    --bs-muted: rgba(255, 255, 255, 0.62);
    --bs-accent: #7C9BFF;
    --bs-on-accent: #1C1B2E;
    --bs-hover: rgba(255, 255, 255, 0.05);
    --bs-tab-active: var(--bs-accent);
    --bs-tab-active-text: var(--bs-on-accent);
    padding: 64px 0 72px;
    background: var(--bs-bg);
    color: var(--bs-text);
}

/* group.one brand colours (www.group.one): smooth black + primary yellow */
.brands-showcase--groupone {
    --bs-bg: #141414;
    --bs-panel: #1E1E1E;
    --bs-panel-line: rgba(255, 255, 255, 0.08);
    --bs-text: #FFF;
    --bs-muted: rgba(255, 255, 255, 0.6);
    --bs-accent: #FEC600;
    --bs-on-accent: #141414;
    --bs-hover: rgba(255, 255, 255, 0.05);
}

.brands-showcase--groupone .brands-showcase__item:hover .brands-showcase__chevron {
    color: var(--bs-accent);
}

.brands-showcase--groupone .brands-showcase__icon--initials {
    background: #FEC600;
    color: #141414;
}

/* Matches the page content: Anchor Links pills and Partner Solutions cards */
.brands-showcase--light {
    --bs-bg: #F9FAFF;
    --bs-panel: #FFF;
    --bs-panel-line: #DFE5F8;
    --bs-text: #1C1B2E;
    --bs-muted: #5B6178;
    --bs-accent: #4469F3;
    --bs-on-accent: #FFF;
    --bs-hover: #F3F5FE;
    --bs-tab-active: #E9EDFD;
    --bs-tab-active-text: #4469F3;
    border-top: 1px solid #DFE5F8;
}

.brands-showcase__logo-link {
    display: inline-block;
}

.brands-showcase__logo {
    display: block;
    width: auto;
    height: 28px;
}

.brands-showcase--dark .brands-showcase__logo:not(.brands-showcase__logo--dark),
.brands-showcase--groupone .brands-showcase__logo:not(.brands-showcase__logo--dark) {
    filter: brightness(0) invert(1);
}

.brands-showcase__heading {
    max-width: 760px;
    margin: 24px 0 36px;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
}

/* Filter pills */
.brands-showcase__tabs {
    display: grid;
    grid-template-columns: repeat(var(--brands-showcase-tabs, 4), minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.brands-showcase__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid var(--bs-panel-line);
    border-radius: 999px;
    background: var(--bs-panel);
    color: var(--bs-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.brands-showcase__tab:hover {
    border-color: var(--bs-accent);
    background: var(--bs-hover);
}

.brands-showcase__tab[aria-selected="true"] {
    border-color: var(--bs-accent);
    background: var(--bs-tab-active);
    color: var(--bs-tab-active-text);
}

.brands-showcase__tab:focus-visible,
.brands-showcase__panel:focus-visible,
.brands-showcase__item:focus-visible {
    outline: 2px solid var(--bs-accent);
    outline-offset: 2px;
}

.brands-showcase__tab svg {
    flex-shrink: 0;
}

/* Brand cards. The panels share one grid cell so the section keeps the height of the tallest
   (Website Hosting) and doesn't jump when switching; hidden ones are invisible but keep their space. */
.brands-showcase__panels {
    display: grid;
}

.brands-showcase__panel {
    grid-area: 1 / 1;
    min-width: 0;
}

.brands-showcase__panel[hidden] {
    display: block;
    visibility: hidden;
}

.brands-showcase__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brands-showcase__items li {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.brands-showcase__items li::before {
    content: none;
}

.brands-showcase__item {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 18px 16px;
    border: 1px solid var(--bs-panel-line);
    border-radius: 12px;
    background: var(--bs-panel);
    color: var(--bs-text);
    transition: border-color .2s, background .2s;
}

.brands-showcase__item:hover {
    border-color: var(--bs-accent);
}

.brands-showcase__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #FFF;
}

.brands-showcase--light .brands-showcase__icon {
    box-shadow: 0 0 0 1px #DFE5F8;
}

.brands-showcase__icon--initials {
    display: grid;
    place-items: center;
    background: #4469F3;
    color: #FFF;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brands-showcase__copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.brands-showcase__category {
    color: var(--bs-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1.3;
    text-transform: uppercase;
}

.brands-showcase__text {
    font-size: 15px;
    line-height: 1.4;
}

.brands-showcase__text strong {
    color: var(--bs-accent);
}

.brands-showcase__chevron {
    flex-shrink: 0;
    color: var(--bs-muted);
    transition: transform .2s;
}

.brands-showcase__item:hover .brands-showcase__chevron {
    transform: translateX(3px);
}

@media (max-width: 1023px) {
    .brands-showcase__tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .brands-showcase__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .brands-showcase {
        padding: 48px 0 56px;
    }

    .brands-showcase__heading {
        margin-bottom: 28px;
        font-size: 21px;
    }

    .brands-showcase__tab {
        gap: 6px;
        padding: 12px 8px;
        font-size: 14px;
    }

    .brands-showcase__tab svg {
        display: none;
    }

    .brands-showcase__items {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .brands-showcase__panels {
        display: block;
    }

    .brands-showcase__panel[hidden] {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brands-showcase__tab,
    .brands-showcase__item,
    .brands-showcase__chevron {
        transition: none;
    }
}
