/* =========================================================
   BCC SOLUTIONS — FULL-BLEED VIDEO MARQUEE
   Video-first cards, generous section padding, no captions below.
   The marquee script remains responsible for loop distance.
   ========================================================= */

.bcc-solutions {
    position: relative;
    width: 100%;
    padding: clamp(5rem, 9vw, 8.5rem) 0;
    overflow: hidden;
    background: transparent;
    color: var(--bcc-color-primary, #0D2230);
}

.bcc-solutions,
.bcc-solutions * {
    box-sizing: border-box;
}

.bcc-solutions__inner {
    width: calc(100% - clamp(2rem, 7vw, 7rem));
    max-width: 1600px;
    margin-inline: auto;
}

/* Header */

.bcc-solutions__header {
    width: min(100%, 1000px);
    margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
}

.bcc-solutions__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    color: var(--bcc-color-primary, #0D2230);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.bcc-solutions__eyebrow::before {
    content: "";
    display: inline-block;
    width: 1.75rem;
    height: 2px;
    flex: 0 0 auto;
    background: var(--bcc-color-accent, #f4d738);
}

.bcc-solutions__heading {
    max-width: 1000px;
    margin: 0;
    color: var(--bcc-color-primary, #0D2230);
    font-family: inherit;
    font-size: clamp(2.5rem, 5.4vw, 5.25rem);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 0.99;
    text-wrap: balance;
}

.bcc-solutions__description {
    max-width: 760px;
    margin: 1.5rem 0 0;
    color: var(--bcc-color-text-muted, #62696c);
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    font-weight: 400;
    line-height: 1.75;
}

/* Full-width marquee. A little breathing room is retained at its edges. */

.bcc-solutions__marquee {
    position: relative;
    width: calc(100% + clamp(1rem, 3vw, 3rem));
    margin-right: calc(-1 * clamp(1rem, 3vw, 3rem));
    overflow: hidden;
    isolation: isolate;
}

.bcc-solutions__marquee-track {
    display: flex;
    align-items: stretch;
    gap: clamp(1rem, 2vw, 2rem);
    width: max-content;
    padding: 0 0.25rem 0.5rem;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.bcc-solutions__marquee-track.is-marquee {
    animation-name: bcc-solutions-marquee;
    animation-duration: var(--bcc-solutions-duration, 38s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-delay: 0s;
}

@keyframes bcc-solutions-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(var(--bcc-solutions-distance, -50%), 0, 0);
    }
}

/* Cards are deliberately media-only: no text block below the videos. */

.bcc-solutions__card {
    position: relative;
    flex: 0 0 clamp(580px, 49vw, 820px);
    min-width: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

.bcc-solutions__card-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.bcc-solutions__card-link:focus-visible {
    outline: 3px solid var(--bcc-color-accent, #f4d738);
    outline-offset: 5px;
}

/* The wrapper clips any baked-in edge/letterboxing in the source video. */

.bcc-solutions__card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 0;
    border-radius: 3px;
    background: #e8e9e5;
    isolation: isolate;
}

.bcc-solutions__card-image,
.bcc-solutions__card-video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    background: transparent;
}

/* Slight crop removes thin black/empty edges baked into some source videos. */
.bcc-solutions__card-video {
    transform: scale(1.055);
    transform-origin: center;
}

.bcc-solutions__card-image {
    flex: 0 0 auto;
}

/* Hide the old editorial captions: the requested treatment is video-first. */

.bcc-solutions__card-content {
    display: none !important;
}

/* Large desktop */

@media (min-width: 1601px) {
    .bcc-solutions__marquee {
        width: calc(100% + (100vw - 1600px) / 2);
        margin-right: calc(-1 * (100vw - 1600px) / 2);
    }

    .bcc-solutions__card {
        flex-basis: clamp(720px, 46vw, 860px);
    }
}

/* Tablet */

@media (max-width: 1000px) {
    .bcc-solutions {
        padding-block: 5.5rem;
    }

    .bcc-solutions__inner {
        width: calc(100% - 2.5rem);
    }

    .bcc-solutions__marquee {
        width: calc(100% + 1.25rem);
        margin-right: -1.25rem;
    }

    .bcc-solutions__card {
        flex-basis: clamp(460px, 74vw, 680px);
    }
}

/* Mobile: touch-scroll cards instead of running an automatic marquee. */

@media (max-width: 640px) {
    .bcc-solutions {
        padding-block: 4.5rem;
    }

    .bcc-solutions__inner {
        width: calc(100% - 2rem);
    }

    .bcc-solutions__header {
        margin-bottom: 2rem;
    }

    .bcc-solutions__eyebrow {
        margin-bottom: 1rem;
        font-size: 0.6875rem;
    }

    .bcc-solutions__heading {
        font-size: clamp(2.4rem, 10.5vw, 3.5rem);
        letter-spacing: -0.06em;
        line-height: 1.02;
    }

    .bcc-solutions__description {
        margin-top: 1rem;
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .bcc-solutions__marquee {
        width: calc(100% + 1rem);
        margin-right: -1rem;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .bcc-solutions__marquee::-webkit-scrollbar {
        display: none;
    }

    .bcc-solutions__marquee-track {
        gap: 1rem;
        padding-right: 1rem;
        padding-bottom: 0.5rem;
        width: max-content;
        animation: none !important;
        transform: none;
        will-change: auto;
    }

    .bcc-solutions__card {
        flex: 0 0 min(88vw, 460px);
    }

    .bcc-solutions__card-media {
        aspect-ratio: 16 / 10;
        border-radius: 3px;
    }

    .bcc-solutions__card-video {
        transform: scale(1.04);
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .bcc-solutions__marquee-track.is-marquee {
        animation: none !important;
        transform: none;
        will-change: auto;
    }

    .bcc-solutions__marquee {
        overflow-x: auto;
        scrollbar-width: thin;
    }
}
