/* Home clients (home.html, .hcl): a slim white row under the hero with the teams we have worked
   with. The logos are muted grey and take their own colours on hover. Each is sized by eye so
   the wide wordmark and the square marks read as the same weight. */
.hcl {
    padding: 2rem 0;
    border-bottom: 1px solid var(--kd-line);
    background: #FFFFFF;
}

.hcl__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 3rem;
    align-items: center;
    justify-content: center;
    max-width: 76rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .hcl__inner {
        padding: 0 1.5rem;
    }
}

.hcl__label {
    flex-basis: 100%;
    margin: 0;
    color: var(--kd-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

@media (min-width: 900px) {
    .hcl__inner {
        justify-content: space-between;
    }

    .hcl__label {
        flex-basis: auto;
        text-align: left;
    }
}

.hcl__logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3.5rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 900px) {
    .hcl__logos {
        flex: 1;
        justify-content: space-evenly;
    }
}

.hcl__logo {
    display: block;
    border-radius: 0.5rem;
}

.hcl__logo img {
    display: block;
    width: auto;
    filter: grayscale(1);
    opacity: 0.55;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.hcl__logo--outcome img {
    height: 1.6rem;
}

.hcl__logo--giftze img {
    height: 2.6rem;
}

.hcl__logo--shotmob img {
    height: 2.6rem;
}

.hcl__logo--lezzoo img {
    height: 2.1rem;
}

/* Phones: the logos in a tidy two-by-two grid, a little smaller. */
@media (max-width: 639px) {
    .hcl__logos {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
        width: 100%;
        justify-items: center;
    }

    .hcl__logo--outcome img {
        height: 1.25rem;
    }

    .hcl__logo--giftze img,
    .hcl__logo--shotmob img {
        height: 2.1rem;
    }

    .hcl__logo--lezzoo img {
        height: 1.7rem;
    }
}

.hcl__logo:hover img,
.hcl__logo:focus-visible img {
    filter: none;
    opacity: 1;
}

.hcl__logo:focus-visible {
    outline: 3px solid var(--kd-brand);
    outline-offset: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .hcl__logo img {
        transition: none;
    }
}
