/* Landing refinements shared by the Swedish and Danish landing pages. */

/* The client-name rail is intentionally duplicated in the template so that
 * the transform can always complete one full, seamless cycle. */
.client-names-carousel {
    position: relative;
    overflow: hidden;
}

section.block-grid.client-names-carousel {
    padding-top: clamp(2.5rem, 5vw, 4rem) !important;
    padding-bottom: 2.25rem !important;
    background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
}

.client-names-carousel .intro {
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
    padding: 0 1rem;
}

.client-names-carousel .case-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    width: max-content;
    max-width: none;
    margin: 0;
    padding: .75rem .25rem 1rem;
    --bs-gutter-x: 0;
    animation: modula-client-names-marquee 34s linear infinite;
    animation-delay: -17s;
    will-change: transform;
}

.client-names-carousel .case-grid:hover {
    animation-play-state: paused;
}

@keyframes modula-client-names-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

.client-names-carousel .case {
    flex: 0 0 auto;
    width: auto;
    padding: 0;
}

.client-names-carousel .case .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 12rem;
    min-height: 4.25rem;
    padding: 1rem 1.5rem;
    border: 1px solid #e3e6ea;
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 .35rem 1rem rgba(28, 38, 52, .07);
}

.client-names-carousel .case .image-box {
    display: none;
}

.client-names-carousel .case .content {
    padding: 0;
}

.client-names-carousel .case .content h4 {
    margin: 0;
    color: #30343a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .client-names-carousel .case-grid {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        animation: none;
    }
}

/* Integration block: a compact editorial panel with partner wordmarks and
 * the figures already present in the localized copy. */
.block-two-columns.wms-integrations {
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 3rem;
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 92% 12%, rgba(250, 162, 27, .22), transparent 26rem),
        linear-gradient(135deg, #25282d 0%, #3e3e3d 58%, #292c31 100%) !important;
    box-shadow: 0 1rem 2.5rem rgba(28, 38, 52, .14);
}

.block-two-columns.wms-integrations::before {
    position: absolute;
    inset: 0;
    opacity: .18;
    content: '';
    background-image: linear-gradient(135deg, transparent 0 47%, rgba(255, 255, 255, .18) 48%, transparent 49%);
    background-size: 13rem 13rem;
    pointer-events: none;
}

.block-two-columns.wms-integrations > .container,
.block-two-columns.wms-integrations > .container > .row,
.block-two-columns.wms-integrations .content {
    position: relative;
    z-index: 1;
}

.block-two-columns.wms-integrations .content {
    flex: 0 0 100%;
    max-width: 100%;
    padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4.5rem);
    text-align: center;
}

.wms-integrations .title h2 {
    max-width: 62rem;
    margin: 0 auto 1.25rem;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    text-transform: uppercase;
}

.wms-integrations .text {
    max-width: 70rem;
    margin: 0 auto;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    line-height: 1.6;
}

.wms-integrations .wms-integration-lead {
    max-width: 60rem;
    margin: 0 auto 1.75rem;
}

.wms-integrations .wms-integration-lead strong {
    color: #fff;
}

.wms-integration-logos,
.wms-stat-grid {
    display: grid;
    gap: .85rem;
    margin: 1.5rem auto 0;
}

.wms-integration-logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 60rem;
}

.wms-integration-logo {
    display: grid;
    min-height: 4rem;
    padding: .75rem 1rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: .85rem;
    color: #22262b;
    background: #fff;
    box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .12);
    place-items: center;
    font-family: "Roboto Condensed", sans-serif;
    font-size: clamp(.9rem, 1.6vw, 1.2rem);
    font-weight: 800;
    letter-spacing: .02em;
}

.wms-logo-sap { color: #0875bd; }
.wms-logo-oracle { color: #c74634; }
.wms-logo-dynamics { color: #087fbe; }
.wms-logo-erp { color: #3e3e3d; }

.wms-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 70rem;
}

.wms-stat {
    min-height: 7.25rem;
    padding: 1.25rem 1rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-top: 3px solid #faa21b;
    border-radius: .85rem;
    background: rgba(255, 255, 255, .08);
}

.wms-stat strong,
.wms-stat span {
    display: block;
}

.wms-stat strong {
    color: #faa21b;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
}

.wms-stat span {
    margin-top: .65rem;
    color: rgba(255, 255, 255, .9);
    font-size: .95rem;
    line-height: 1.25;
}

@media (max-width: 767px) {
    .block-two-columns.wms-integrations {
        margin-bottom: 2rem;
        border-radius: 1rem;
    }

    .wms-integration-logos,
    .wms-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .wms-integration-logos,
    .wms-stat-grid {
        grid-template-columns: 1fr;
    }
}
