
/* STVE — BRAND CAROUSEL */

.stve-brands {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 40px 5%;
    background: #FFFFFF;
    box-sizing: border-box;
}

.stve-brands-inner {
    max-width: 1440px;
    margin: 0 auto;
}

/* SECTION HEADER */

.stve-brands-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

.stve-brands-header .stve-section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #666666;
    letter-spacing: 1px;
}

.stve-brands-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1;
    margin: 8px 0 0;
    color: #111111;
}

/* NAVIGATION */

.stve-brand-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.stve-brand-controls button {
    width: 46px;
    height: 46px;
    padding: 0;
    display: grid;
    place-items: center;
    background: #FFFFFF;
    color: #111111;
    border: 1px solid #D9D9D9;
    border-radius: 0;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.stve-brand-controls button:hover:not(:disabled) {
    background: #111111;
    color: #FFFFFF;
}

.stve-brand-controls button:disabled {
    opacity: 0.35;
    cursor: default;
}

/* CAROUSEL TRACK */

.stve-brand-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.stve-brand-track::-webkit-scrollbar {
    display: none;
}

/* SQUARE BRAND CARDS */

.stve-brand-card {
    flex: 0 0 calc((100% - 84px) / 8);
    min-width: 0;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12%;
    padding: 18px;
    background: #F2F2F2;
    border: 1px solid transparent;
    border-radius: 0;
    scroll-snap-align: start;
    text-decoration: none !important;
    color: #111111;
    transition: border-color 0.2s, background 0.2s;
}

.stve-brand-card:hover,
.stve-brand-card:focus-visible {
    border-color: #E0B300;
    background: #EAEAEA;
}

.stve-brand-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.25s;
}

.stve-brand-card:hover img,
.stve-brand-card:focus-visible img {
    filter: grayscale(0%);
}

/* MISSING LOGO FALLBACK */

.stve-brand-fallback {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(16px, 1.6vw, 24px);
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

/* PROGRESS BAR */

.stve-brand-progress {
    position: relative;
    height: 3px;
    margin-top: 20px;
    background: #E0E0E0;
}

.stve-brand-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #E0B300;
}

/* TABLET */

@media (max-width: 1024px) {

    .stve-brand-card {
        flex-basis: calc((100% - 48px) / 5);
    }
}

/* MOBILE */

@media (max-width: 767px) {

    .stve-brands {
        padding: 30px 5%;
    }

    .stve-brands-header {
        gap: 10px;
        margin-bottom: 20px;
    }

    .stve-brands-header h2 {
        font-size: 36px;
    }

    .stve-brand-track {
        gap: 10px;
    }

    .stve-brand-card {
        flex-basis: calc((100% - 20px) / 3);
        padding: 12px;
    }

    .stve-brand-controls button {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .stve-brand-fallback {
        font-size: 18px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .stve-brand-card,
    .stve-brand-card img,
    .stve-brand-controls button {
        transition: none;
    }
}
