/* ==========================================================================
   Home page: stats section
   Mobile: stacked white cards. Desktop: a single bordered bar with the
   items in a row, separated by dividers.
   ========================================================================== */

.home-stats {
    padding: 64px 0;
    background: var(--hpb-color-blue-light);
}

.home-stats__items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-stats__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--hpb-color-white);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.home-stats__icon img {
    display: block;
    width: auto;
    height: auto;
    max-height: 72px;
    max-width: 96px;
}

.home-stats__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-stats__title {
    color: var(--hpb-color-dark);
}

.home-stats__subtitle {
    font-family: var(--hpb-font-family-base);
    font-size: var(--hpb-font-size-16);
    line-height: 21px;
    font-weight: var(--hpb-fw-black);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--hpb-color-dark-80);
}

.home-stats__link {
    display: inline-block;
    font-family: var(--hpb-font-family-base);
    font-size: var(--hpb-font-size-10);
    line-height: 14px;
    font-weight: var(--hpb-fw-regular);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hpb-color-dark-80);
    text-decoration: underline;
    transition: all 300ms;
}

.home-stats__link:hover {
    text-decoration: none;
    color: var(--hpb-color-red);
}

@media (min-width: 768px) {
    .home-stats {
           background: transparent;
    }
    .home-stats__items {
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 32px;
    }
    .home-stats__item {
        background: transparent;
        border-radius: 0;
        padding: 0;
        width: max-content;
        max-width: calc(50% - 16px);
    }
}

@media (min-width: 992px) {
    .home-stats {
        padding: 80px 0;
    }

    .home-stats__icon img {
        display: block;
        width: auto;
        height: auto;
        max-height: 92px;
        max-width: 110px;
    }

    .home-stats__item--icon-left {
        flex-direction: row;
    }
    .home-stats__title {
        font-size: var(--hpb-font-size-74);
        line-height: 77px;
    }
}


@media (max-width: 767px) {
    
    .home-stats__item--icon-right {
        flex-direction: row-reverse;
    }
}
