/**
 * Frontend styles for the MWS Logo Marquee section.
 *
 * Layout: two-column grid with a text panel on the left and three
 * vertically scrolling logo columns on the right.
 */

.mws-lm-section {
    width: 100%;
    background: #ffffff;
    padding: 4rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.mws-lm-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: start;
}

/* Left column: text content */

.mws-lm-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mws-lm-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0ea5e9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.mws-lm-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1e293b;
    margin: 0;
}

.mws-lm-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.mws-lm-more a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0ea5e9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mws-lm-more a:hover {
    color: #0284c7;
}

.mws-lm-arrow {
    font-size: 1.25rem;
    line-height: 1;
}

/* Right column: three scrolling logo columns */

.mws-lm-right {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.mws-lm-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    height: 100%;
}

.mws-lm-column {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.mws-lm-column:not(:first-child) {
    border-left: 1px solid #e2e8f0;
}

.mws-lm-track {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.mws-lm-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    flex-shrink: 0;
}

.mws-lm-item img {
    max-width: 180px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Fade mask on top and bottom edges */

.mws-lm-right::before,
.mws-lm-right::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
    z-index: 1;
}

.mws-lm-right::before {
    top: 0;
    background: linear-gradient(to bottom, #ffffff 0%, transparent 100%);
}

.mws-lm-right::after {
    bottom: 0;
    background: linear-gradient(to top, #ffffff 0%, transparent 100%);
}

/* Tablet breakpoint */

@media (max-width: 1024px) {
    .mws-lm-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .mws-lm-title {
        font-size: 1.875rem;
    }

    .mws-lm-right {
        height: 500px;
    }

    .mws-lm-item {
        padding: 2rem 1rem;
    }

    .mws-lm-item img {
        max-width: 150px;
        max-height: 80px;
    }
}

/* Mobile breakpoint */

@media (max-width: 768px) {
    .mws-lm-section {
        padding: 3rem 0;
    }

    .mws-lm-wrapper {
        padding: 0 1.5rem;
        gap: 2rem;
    }

    .mws-lm-title {
        font-size: 1.5rem;
    }

    .mws-lm-right {
        height: 420px;
    }

    .mws-lm-columns {
        grid-template-columns: repeat(3, 1fr);
    }

    .mws-lm-item {
        padding: 1.5rem 0.75rem;
    }

    .mws-lm-item img {
        max-width: 120px;
        max-height: 60px;
    }
}

/* Small mobile breakpoint */

@media (max-width: 480px) {
    .mws-lm-wrapper {
        padding: 0 1rem;
    }

    .mws-lm-title {
        font-size: 1.25rem;
    }

    .mws-lm-right {
        height: 360px;
    }

    .mws-lm-item {
        padding: 1.25rem 0.5rem;
    }

    .mws-lm-item img {
        max-width: 90px;
        max-height: 50px;
    }
}

/* Reduced motion preference */

@media (prefers-reduced-motion: reduce) {
    .mws-lm-track {
        transform: none !important;
    }
}