@use "/src/scss/abstracts" as *;

.sub-header {
    @include desktop-small {
        grid-column: 1 / span 12;
    }
    &__title {
        display: inline-block;
        background: $primary;
        color: $white;
        font-size: $type-size-200;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: bold;
        margin-bottom: 1rem;
        padding: 0.75rem 0.75rem 0.5rem;
        white-space: nowrap;

        &.secondary {
            background: $secondary;
        }
    }
}

.partners {
    gap: 0 $spacing-600;
    padding: $spacing-600 0;

    .sub-header {
        text-align: center;
        padding-bottom: $spacing-600;
    }

    &__feature {
        text-align: center;

        @include desktop-small {
            grid-column: 2 / span 10;
        }
    }

    &__photo {
        aspect-ratio: 3 / 1;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            margin: 0 auto;
        }
    }

    &__title {
        font-size: $type-size-500;
        font-weight: bold;
        color: $primary;
        line-height: 1.125em;
    }

    &__copy {
        padding-top: 1rem;
        max-width: 64rem;
        margin: 0 auto;
    }

    &__group {
        @include desktop-small {
            grid-column: 1 / span 12;
        }

        & + .partners__group {
            padding-top: $spacing-900;
        }
    }

    &__grid {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2rem 4rem;
        flex-wrap: wrap;

        & + .partners__grid {
            padding-top: 2rem;
        }
    }

    &__item {
        width: 100%;

        @include tablet {
            width: auto;
        }
    }

    &__link {
        display: block;
        width: 10rem;
        height: 4rem;
        margin: 0 auto;

        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
    }

    &__list {
        column-gap: $spacing-700;

        @include tablet {
            columns: 2;
        }

        @include desktop-small {
            columns: 3;
        }

        @include desktop-medium {
            columns: 4;
        }

        li {
            margin-bottom: $spacing-300;
        }
    }

    .divider-header {
        padding-bottom: $spacing-600;
    }
}
