/* ============================================================
   BRAND COLLABORATORS — "Atelier Partner Wall" (.bcx-*)
   Fresh namespace (ZERO overlap with the dead .logo-card / .slider-* /
   .brand-stat-* / .stat-number / .bc-logo-* tokens that linger across the
   old stylesheet + variables.css + home.css). A pure-CSS CONTINUOUS marquee
   (no JS) of brand logos riding the homepage's signature 18px hairline
   media-plinth tile, closed by light bordered stat cards — the deliberate
   inverse of the dark "Our Promise" band. Honours the calm, colour-only
   hover policy (no card lift/zoom). This file REPLACES the entire old
   brand-collaborate stylesheet; the old .slider-* / .logo-card / .brand-stat-*
   rules are gone (their markup was rewritten to .bcx-*).
   ============================================================ */

/* ── Section shell — match the homepage section rhythm. The compound
   .site-section.bcx-section (0,2,0) beats the global
   .site-section{padding:20px!important} at every width. ── */
.bcx-section { background-color: var(--white); }
.site-section.bcx-section { padding-top: 54px !important; padding-bottom: 62px !important; }
.bcx-section .section-header { margin-bottom: 40px; }

/* eyebrow now sits ABOVE the title; the base .section-eyebrow isn't centred */
.bcx-eyebrow { text-align: center; margin-bottom: 10px; }

/* supporting line under the heading — matches .hiw-sub / .fg-sub elsewhere */
.bcx-sub {
    max-width: 640px;
    margin: 16px auto 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--Dgray);
}

/* NO text-transform here: the heading is a sentence ("Trusted by Australia's Top
   Brands") and capitalize would render the preposition as "By". Siblings that
   capitalize do so for short admin-entered titles; this one is hard-coded copy. */

/* one-word ghost ("Brands") centred on the title midpoint — the same
   override shopcat / prodsec / crafted use so a short ghost stays symmetric */
.bcx-section .title-center .title::before {
    left: 50%; right: auto; width: max-content;
    transform: translate(-50%, -50%); text-align: center;
}

/* ── Marquee viewport — edge fade via mask (modern) + a white-gradient overlay
   fallback (older Safari). overflow:hidden clips the off-stage tiles; generous
   track padding keeps the soft card shadow from being clipped top/bottom. ── */
.bcx-marquee {
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    --bcx-speed: 38s;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.bcx-marquee::before,
.bcx-marquee::after {
    content: ""; position: absolute; top: 0; bottom: 0;
    width: 8%; min-width: 48px; z-index: 2; pointer-events: none;
}
.bcx-marquee::before { left: 0;  background: linear-gradient(to right, var(--white), transparent); }
.bcx-marquee::after  { right: 0; background: linear-gradient(to left,  var(--white), transparent); }

/* track = two byte-identical halves. Spacing is per-tile MARGIN, not flex gap:
   with `gap` the loop would be short by half a gap and visibly jump at -50%.
   Each tile is a self-contained margin-box unit, so translateX(-50%) lands
   clone #1 exactly on original #1 → mathematically seamless. */
.bcx-marquee__track {
    display: flex;
    align-items: center;
    width: max-content;
    padding: 20px 0;
    animation: bcx-scroll var(--bcx-speed) linear infinite;
    will-change: transform;
}
.bcx-marquee:hover .bcx-marquee__track,
.bcx-marquee:focus-within .bcx-marquee__track { animation-play-state: paused; }
@keyframes bcx-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


.bcx-tile {
    flex: 0 0 auto;
    width: 180px; height: 96px;
    margin: 0 9px;                        /* 18px between tiles; self-contained unit keeps the loop seamless */
    background: var(--white);
    border: 1px solid #eef0f2;
    border-radius: 14px;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}
.bcx-tile:hover { border-color: rgba(232,154,14,0.35); background-color: #fffdf8; }
.bcx-tile__media {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: 6px; border-radius: 14px;   /* slim inset — the logo fills the tile */
}
/* the logo fills the tile's inner box on every device but never overflows it:
   the img box is exactly 100% x 100% (capped at 100%), and object-fit:contain
   scales the logo as large as it fits — no crop, no stretch */
.bcx-tile__media img {
    width: 100%; height: 100%;
    max-width: 100%; max-height: 100%;
    object-fit: contain; display: block;
    filter: grayscale(1); opacity: 0.55;   /* uniform soft-charcoal wall — normalises the varied multi-colour PNGs */
    transition: filter 0.25s ease, opacity 0.25s ease;
}
/* calm COLOUR-ONLY hover (no lift / no scale) — the logo wakes to full colour */
.bcx-tile:hover .bcx-tile__media img { filter: grayscale(0); opacity: 1; }
/* accent cadence — a whisper of amber tint on alternate tiles */
.bcx-tile--accent { background: #fffdf9; border-color: rgba(232,154,14,0.16); }


.bcx-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 44px;
    background: var(--white);
    border: 1px solid #eef0f2;
    border-radius: 18px;
    overflow: hidden;
}
.bcx-stat {
    padding: 24px 18px;
    text-align: center;
    border-left: 1px solid #eef0f2;
    transition: background-color 0.25s ease;
}
.bcx-stat:first-child { border-left: none; }
.bcx-stat:hover { background-color: #fffdf8; }   /* calm colour-only hover */
.bcx-stat__num {
    font-size: 28px; font-weight: 800; line-height: 1;
    color: var(--steel-blue); letter-spacing: -0.02em;
}
.bcx-stat__num span { color: var(--secondary); }
.bcx-stat__label {
    margin-top: 7px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--Dgray);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .site-section.bcx-section { padding-top: 40px !important; padding-bottom: 44px !important; }
    .bcx-section .section-header { margin-bottom: 30px; }
    .bcx-sub { font-size: 14px; }
    .bcx-tile { width: 156px; height: 88px; margin: 0 8px; }
}
@media (max-width: 767px) {
    .site-section.bcx-section { padding-top: 34px !important; padding-bottom: 38px !important; }
    .bcx-marquee { --bcx-speed: 28s; }
    .bcx-tile { width: 128px; height: 74px; margin: 0 6px; }
    .bcx-tile__media { padding: 4px; }
    /* 2x2 strip — dividers switch to a grid of hairlines */
    .bcx-stats { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
    .bcx-stat { padding: 18px 14px; }
    .bcx-stat:nth-child(odd) { border-left: none; }
    .bcx-stat:nth-child(n+3) { border-top: 1px solid #eef0f2; }
    .bcx-stat__num { font-size: 25px; }
}
@media (max-width: 480px) {
    .bcx-tile { width: 112px; height: 66px; margin: 0 5px; }
}

/* ── Reduced motion — stop the autoplay and collapse to a tidy static centred
   grid of just the 6 REAL tiles (the loop clones are hidden). ── */
@media (prefers-reduced-motion: reduce) {
    .bcx-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .bcx-marquee::before, .bcx-marquee::after { display: none; }
    .bcx-marquee__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }
    .bcx-marquee__track .bcx-tile[aria-hidden="true"] { display: none; }
    .bcx-tile { margin: 8px; }   /* even spacing once the row wraps */
}
