/* ============================================================
   HurryUp Cabs in the Media — infinite logo marquee
   ============================================================ */

.huc-media {
    --huc-media-border: color-mix(in srgb, var(--huc-darkGray-clr) 12%, transparent);
    --huc-media-card-border: color-mix(in srgb, var(--huc-darkGray-clr) 8%, transparent);
}

.huc-media-strip {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
    border: 1px solid var(--huc-media-border);
    border-radius: 18px;
    background-color: var(--huc-white-clr);
    /* fade the left/right edges so logos slide in/out softly */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.huc-media-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: huc-media-scroll 40s linear infinite;
}

/* Pause on hover for readability (optional, non-breaking) */
.huc-media-strip:hover .huc-media-track {
    animation-play-state: paused;
}

@keyframes huc-media-scroll {
    from {
        transform: translateX(0);
    }

    to {
        /* two identical sets -> shifting by exactly half is seamless */
        transform: translateX(-50%);
    }
}

.huc-media-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 180px;
    height: 72px;
    margin: 0 0.75rem;
    padding: 0.75rem 1rem;
    /* border: 1px solid var(--huc-media-card-border); */
    border-radius: 12px;
    background-color: var(--huc-white-clr);
}

.huc-media-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .huc-media-track {
        animation: none;
    }
}

/* ---- Responsive ---- */
@media (max-width: 575.98px) {
    .huc-media-card {
        width: 150px;
        height: 62px;
        margin: 0 0.5rem;
    }
}
