/*
Theme Name: Impreza Child
Template: Impreza
Version: 1.0.1
Author:	UpSolution
Theme URI: http://impreza.us-themes.com/
Author URI: http://us-themes.com/
*/

/*Add your own styles here:*/

/* Homepage content-carousel hero cards */
.hero-carousel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 520px;
    height: 520px;
    padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 52px);
    color: #ffffff;
    overflow: hidden;
    isolation: isolate;
    row-gap: 18px;
    transition: transform 0.35s ease;
}
.hero-carousel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #000000;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.hero-carousel-card > * {
    position: relative;
    z-index: 1;
}
.hero-carousel__title {
    margin-bottom: 0;
    transition: transform 0.3s ease;
}
.hero-carousel__title .w-text-value {
    display: block;
    font-size: clamp(32px, 3vw, 56px);
    line-height: 1.05;
}
.hero-carousel__body,
.hero-carousel__btn {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
    pointer-events: none;
}
.hero-carousel-card:hover::after,
.hero-carousel-card:focus-within::after {
    opacity: 0.5;
}
.hero-carousel-card:hover .hero-carousel__title,
.hero-carousel-card:focus-within .hero-carousel__title {
    transform: translateY(-12px);
}
.hero-carousel-card:hover .hero-carousel__body,
.hero-carousel-card:hover .hero-carousel__btn,
.hero-carousel-card:focus-within .hero-carousel__body,
.hero-carousel-card:focus-within .hero-carousel__btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Touch devices: keep content visible */
@media (max-width: 1024px) {
    .hero-carousel-card {
        min-height: 360px;
        height: auto;
    }
    .hero-carousel__body,
    .hero-carousel__btn {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    .hero-carousel-card::after {
        opacity: 0.35;
    }
    .hero-carousel-card:hover .hero-carousel__title,
    .hero-carousel-card:focus-within .hero-carousel__title {
        transform: none;
    }
}
