/* Trusted Brands Marquee (from fca6cba) */
.brands-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0f1419 0%, #1a2332 38%, #f7f9fb 100%);
    padding: 3.5rem 0 4.5rem;
}

.brands-section::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background: linear-gradient(to top, #f7f9fb 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.brands-horizon {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 20%, rgba(255, 255, 255, 0.35) 80%, transparent);
    box-shadow: 0 0 60px 20px rgba(184, 9, 56, 0.12), 0 24px 80px rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.brands-marquee-wrap {
    position: relative;
    margin-top: 2rem;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.brands-marquee {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    will-change: transform;
    animation: brands-marquee-scroll 36s linear infinite !important;
    animation-duration: 36s !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: linear !important;
    animation-name: brands-marquee-scroll !important;
}

.brands-marquee-wrap:hover .brands-marquee {
    animation-play-state: paused !important;
}

@keyframes brands-marquee-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

.brands-marquee-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2.5rem;
    padding: 0 1.25rem 1.5rem;
}

.brand-logo-card {
    position: relative;
    flex-shrink: 0;
    width: 12.5rem;
    height: 6.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 12px 28px rgba(0, 0, 0, 0.22),
        0 28px 56px rgba(15, 20, 25, 0.28);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.brands-marquee-stage {
    padding-bottom: 1.75rem;
    transform: rotateX(9deg);
    transform-origin: 50% 100%;
}

.brand-logo-card::after {
    content: '';
    position: absolute;
    bottom: -0.85rem;
    left: 10%;
    right: 10%;
    height: 0.65rem;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.28) 0%, transparent 70%);
    filter: blur(5px);
    pointer-events: none;
}

.brand-logo-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 18px 36px rgba(0, 0, 0, 0.26),
        0 32px 64px rgba(184, 9, 56, 0.12);
}

.brand-logo-card img {
    display: block;
    width: auto;
    height: auto;
    max-width: 9.5rem;
    max-height: 3.5rem;
    min-height: 2.25rem;
    object-fit: contain;
    object-position: center;
}

.brand-logo-card--glyph img {
    filter: brightness(0) contrast(1.15);
    max-height: 3.5rem;
    min-height: 3rem;
    width: 3.5rem;
    transform: scale(1.35);
}

.brand-logo-card--wide img {
    max-width: 11rem;
    max-height: 3.25rem;
    min-height: 2.5rem;
    width: 100%;
}

.brand-logo-card--dense img {
    max-height: 4rem;
    min-height: 3rem;
    max-width: 10rem;
}

.brand-logo-card--brand-bg {
    padding: 0.35rem 0.5rem;
    background: transparent;
    border: none;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.22),
        0 28px 56px rgba(15, 20, 25, 0.28);
}

.brand-logo-card--brand-bg img {
    max-width: 11.5rem;
    max-height: 3.75rem;
    min-height: 3rem;
    border-radius: 0.35rem;
}

@media (max-width: 767px) {
    .brands-section {
        padding: 2.5rem 0 3.5rem;
    }
    .brands-marquee-group {
        gap: 1.5rem;
        padding: 0 0.75rem 2rem;
    }
    .brand-logo-card {
        width: 9.5rem;
        height: 5.25rem;
        padding: 0.75rem 1rem;
    }
    .brand-logo-card img {
        max-height: 2.75rem;
        min-height: 1.75rem;
    }
    .brand-logo-card--glyph img {
        max-height: 2.5rem;
        min-height: 2rem;
    }
    .brand-logo-card--dense img {
        max-height: 3rem;
        min-height: 2.25rem;
    }
}

/* Override Tailwind reduced-motion reset for local file:// preview */
#brands-marquee.brands-marquee {
    animation: brands-marquee-scroll 36s linear infinite !important;
    animation-duration: 36s !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: linear !important;
    animation-name: brands-marquee-scroll !important;
    transition-duration: 0s !important;
}

.brands-marquee-wrap:hover #brands-marquee.brands-marquee {
    animation-play-state: paused !important;
}
