/*----------------------------------------
    Home Categories Section
        - Photographic category tiles
        - Shares the hero's card vocabulary
-----------------------------------------*/

.q2u-cats {
    padding: 6rem 0;
    background-color: #fff;
    font-family: Poppins, sans-serif;
}

.q2u-cats__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 3rem;
}

.q2u-cats__title {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.2px;
    color: #333;
}

.q2u-cats__all {
    padding-bottom: 3px;
    border-bottom: 2px solid #e3d9bb;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}

.q2u-cats__all:hover {
    color: var(--q2u-primary-dark, #c09c35);
    border-bottom-color: var(--q2u-primary, #cfad3c);
}

.q2u-cats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* Tile */

.q2u-cat {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 0.5rem;
    background-color: #f4eedd;
    box-shadow: 0 10px 26px rgba(51, 51, 51, 0.09);
    transition: transform 0.3s, box-shadow 0.3s;
}

.q2u-cat:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(51, 51, 51, 0.16);
}

.q2u-cat__media {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform 0.6s;
}

.q2u-cat:hover .q2u-cat__media {
    transform: scale(1.06);
}

.q2u-cat__scrim {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 62%;
    background-image: linear-gradient(to top, rgba(28, 26, 20, 0.86) 0%, rgba(28, 26, 20, 0.5) 45%, rgba(28, 26, 20, 0) 100%);
    pointer-events: none;
}

.q2u-cat__label {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.q2u-cat__name {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    text-wrap: pretty;
}

.q2u-cat__arrow {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.16);
    transition: background-color 0.3s, transform 0.3s;
}

.q2u-cat__arrow svg {
    stroke: #fff;
    transition: stroke 0.3s;
}

.q2u-cat:hover .q2u-cat__arrow {
    transform: translateX(3px);
    background-color: var(--q2u-primary, #cfad3c);
}

/* lg and down */

@media (max-width: 991px) {
    .q2u-cats {
        padding: 4.5rem 0;
    }

    .q2u-cats__title {
        font-size: 2.4rem;
    }

    .q2u-cats__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Phone */

@media (max-width: 767px) {
    .q2u-cats {
        padding: 3.6rem 0;
    }

    .q2u-cats__head {
        margin-bottom: 2.2rem;
    }

    .q2u-cats__title {
        font-size: 2.2rem;
    }

    .q2u-cats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .q2u-cat__label {
        right: 12px;
        bottom: 12px;
        left: 12px;
        gap: 8px;
    }

    .q2u-cat__name {
        font-size: 1.4rem;
    }

    .q2u-cat__arrow {
        width: 26px;
        height: 26px;
    }

    .q2u-cat__arrow svg {
        width: 14px;
        height: 14px;
    }
}
