/* Homepage "Companii care au ales Platphorma": two rows of client logos scrolling in opposite directions. */
.site-modern .home-clients { overflow: hidden; padding: 72px 0 80px; background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%); }
.site-modern .home-clients__header { max-width: 760px; margin: 0 auto 36px; padding: 0 24px; text-align: center; }
.site-modern .home-clients__eyebrow { margin: 0 0 10px; color: var(--site-blue); font-family: var(--site-font-body); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.site-modern .home-clients h2 { float: none; width: auto; margin: 0; border: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.25; text-align: center; }
.site-modern .home-clients h2 span { color: var(--site-blue); }

.site-modern .home-clients__row {
    --duration: 46s;
    display: flex;
    width: max-content;
    margin-bottom: 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.site-modern .home-clients__track { display: flex; flex: 0 0 auto; gap: 18px; margin: 0; padding: 0 18px 0 0; list-style: none; animation: home-clients-scroll var(--duration) linear infinite; }
.site-modern .home-clients__row--reverse .home-clients__track { animation-direction: reverse; }
.site-modern .home-clients__row:hover .home-clients__track,
.site-modern .home-clients__row:focus-within .home-clients__track { animation-play-state: paused; }
@keyframes home-clients-scroll { to { transform: translateX(-100%); } }

.site-modern .home-clients__logo {
    display: grid;
    place-items: center;
    width: 190px;
    height: 96px;
    padding: 16px 22px;
    border: 1px solid #e4ebf6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(31, 59, 99, .06);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.site-modern .home-clients__logo picture { display: contents; }
.site-modern .home-clients__logo img { display: block; max-width: 100%; max-height: 60px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.site-modern .home-clients__logo:hover, .site-modern .home-clients__logo:focus-visible { border-color: #c9daf8; box-shadow: 0 14px 28px rgba(31, 59, 99, .12); transform: translateY(-3px); }
.site-modern .home-clients__logo:hover img, .site-modern .home-clients__logo:focus-visible img { filter: none; opacity: 1; }
.site-modern .home-clients__logo:focus-visible { outline: 3px solid var(--site-blue); outline-offset: 2px; }

.site-modern .home-clients__more { margin: 22px 0 0; text-align: center; }

/* Reduced motion: no scrolling, a centred wrapping grid of the logos (the duplicate tracks are hidden) */
@media (prefers-reduced-motion: reduce) {
    .site-modern .home-clients__row { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 16px; -webkit-mask-image: none; mask-image: none; }
    .site-modern .home-clients__track { flex-wrap: wrap; justify-content: center; padding: 0; animation: none; }
    .site-modern .home-clients__track[aria-hidden="true"] { display: none; }
}
@media (max-width: 760px) {
    .site-modern .home-clients { padding: 56px 0 64px; }
    .site-modern .home-clients__logo { width: 150px; height: 80px; padding: 12px 16px; }
    .site-modern .home-clients__logo img { max-height: 48px; }
    .site-modern .home-clients__track { gap: 12px; padding-right: 12px; }
}
