/*
 * Brand Partners Section — brand-partners.css  v1.0.1
 * Portrait 2:3 tiles in a scrollable carousel with
 * trust-badge pills in the section header.
 */

/* =============================================
   SECTION WRAPPER
   ============================================= */

.bp-section {
    width: 100%;
}

/* =============================================
   SECTION HEADER
   Three-column layout: heading | badges | link
   ============================================= */

.bp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.bp-heading {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1a1a1a;
    margin: 0;
    white-space: nowrap;
    line-height: 1;
}

/* ── Trust badges pill ────────────────────────── */

.bp-trust-badges {
    display: flex;
    align-items: center;
    gap: 0;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.bp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3a3a3a;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.bp-badge svg {
    color: #1a1a1a;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

/* Thin separator between badges */
.bp-badge-sep {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: #ddd;
    margin: 0 1rem;
    flex-shrink: 0;
}

/* ── "View All" link ──────────────────────────── */

.bp-view-all {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.bp-view-all:hover {
    color: #c8a04a !important;
}

/* =============================================
   CAROUSEL
   ============================================= */

.bp-carousel {
    display: flex;
    align-items: center;
    gap: 0;
}

/* ── Nav buttons ─────────────────────────────── */

.bp-nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    z-index: 2;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.bp-nav:hover {
    background: #f5f5f5;
    border-color: #c8a04a;
    color: #c8a04a;
}

.bp-nav:disabled,
.bp-nav[aria-disabled="true"] {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.bp-prev { margin-right: 10px; }
.bp-next { margin-left:  10px; }

/* ── Scrollable track ────────────────────────── */

.bp-track-wrap {
    flex: 1;
    overflow: hidden;
}

.bp-track {
    display: flex;
    gap: 12px;
    justify-content: safe center;   /* centres tiles on wide screens; falls back to flex-start when overflowing */
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* =============================================
   PARTNER TILE
   Portrait 2:3 card with large rounded corners
   ============================================= */

.bp-partner-item {
    flex: 0 0 auto;
    width: 168px;
}

.bp-partner-link {
    display: block;
    text-decoration: none;
}

.bp-partner-card {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bp-partner-link:hover .bp-partner-card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

.bp-partner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.bp-partner-link:hover .bp-partner-card img {
    transform: scale(1.04);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media only screen and (max-width: 900px) {
    .bp-trust-badges {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .bp-section-header {
        flex-wrap: wrap;
    }
}

@media only screen and (max-width: 768px) {
    .bp-partner-item {
        width: 145px;
    }
    .bp-nav {
        width: 28px;
        height: 28px;
    }
}

@media only screen and (max-width: 480px) {
    .bp-partner-item {
        width: 130px;
    }
    .bp-nav {
        display: none;
    }
    .bp-track-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .bp-track-wrap::-webkit-scrollbar {
        display: none;
    }
}
