/* ==========================================================
   V360 TESTIMONIALS – FLOOREX
   Cinematic 45 / 55 layout
   ========================================================== */

.v360-testimonials {
    --testimonial-green: #72c943;
    --testimonial-dark: #183329;
    --testimonial-text: #292929;
    --testimonial-muted: rgba(41, 41, 41, 0.62);
    --testimonial-line: rgba(24, 51, 41, 0.12);
    --testimonial-bg: #f6f7f4;

    position: relative;

    width: 100%;
    overflow: hidden;

    background: var(--testimonial-bg);
}


/* ==========================================================
   SLIDES
   ========================================================== */

.v360-testimonials__slides {
    position: relative;

    width: 100%;
    min-height: 680px;
}


/* ==========================================================
   TESTIMONIAL
   ========================================================== */

.v360-testimonial {
    display: none;

    width: 100%;
    min-height: 680px;

    grid-template-columns: 45% 55%;

    background: var(--testimonial-bg);
}

.v360-testimonial.is-active {
    display: grid;
}


/* ==========================================================
   IMAGE
   ========================================================== */

.v360-testimonial__media {
    position: relative;

    min-width: 0;
    min-height: 680px;

    overflow: hidden;

    background: #e9ebe7;
}

.v360-testimonial__image {
    display: block;
	border-radius:10px;
    width: 100%;
    height: 100%;
    min-height: 500px;

    object-fit: cover;
    object-position: center;

    transform: scale(1);

    transition:
        transform 1.2s cubic-bezier(.22, 1, .36, 1);
}


/* subtle image overlay */

.v360-testimonial__media::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(24, 51, 41, 0.05) 0%,
            rgba(24, 51, 41, 0) 40%
        );
}


/* ==========================================================
   CONTENT
   ========================================================== */

.v360-testimonial__content {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    padding:
        clamp(65px, 7vw, 120px)
        clamp(55px, 7vw, 125px)
        clamp(55px, 6vw, 90px);

    color: var(--testimonial-text);
}


/* ==========================================================
   EYEBROW
   ========================================================== */

.v360-testimonial__eyebrow {
    position: relative;

    margin: 0 0 clamp(35px, 4vw, 60px);
    padding-left: 0px;

    color: var(--testimonial-dark);

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}



/* ==========================================================
   QUOTE
   ========================================================== */

.v360-testimonial__quote {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 0;
    color: var(--testimonial-dark);
    font-size: 21px;
    font-weight: 400;
    /* line-height: 1.2; */
    letter-spacing: -0.035em;
}


/* quotation mark 

.v360-testimonial__quote::before {
    content: "“";
    position: absolute;
    top: 0px;
    left: 0px;
    color: var(--testimonial-green);
    font-family: Georgia, serif;
    font-size: 70px;
    font-weight: 400;
    line-height: 1;
    opacity: 1;
    pointer-events: none;
    bottom: 0px;
}
*/
.v360-testimonial__quote > :first-child {
    margin-top: 0;
}

.v360-testimonial__quote > :last-child {
    margin-bottom: 0;
}

.v360-testimonial__quote p {
    margin:
        0
        0
        0.75em;
}


/* ==========================================================
   IDENTITY
   ========================================================== */

.v360-testimonial__identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    margin-top: clamp(36px, 4vw, 58px);
}


/* ==========================================================
   LOGO
   ========================================================== */

.v360-testimonial__logo {
    display: flex;
    align-items: center;

    min-height: 42px;

    margin-bottom: 20px;
}

.v360-testimonial__logo img {
    display: block;

    width: auto;
    max-width: 145px;

    height: auto;
    max-height: 52px;

    object-fit: contain;
    object-position: left center;
}


/* ==========================================================
   COMPANY
   ========================================================== */

.v360-testimonial__company {
    display: block;

    margin: 0;

    color: var(--testimonial-dark);

    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}


/* ==========================================================
   PERSON
   ========================================================== */

.v360-testimonial__person {
    margin-top: 5px;

    color: var(--testimonial-muted);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.v360-testimonial__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    width: 100%;

    margin-top: auto;
    padding-top: 48px;
}


/* ==========================================================
   LINK
   ========================================================== */

.v360-testimonial__link {
    position: relative;

    display: inline-flex;
    align-items: center;

    padding-bottom: 4px;

    color: var(--testimonial-dark);

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    border-bottom: 1px solid
        rgba(24, 51, 41, 0.35);

    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}

.v360-testimonial__link:hover {
    color: var(--testimonial-green);
    border-color: var(--testimonial-green);
}


/* ==========================================================
   CONTROLS
   ========================================================== */

.v360-testimonial__controls {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-left: auto;

    white-space: nowrap;
}


/* ==========================================================
   ARROWS
   ========================================================== */

.v360-testimonial__prev,
.v360-testimonial__next {
    appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin: 0;
    padding: 0;

    color: var(--testimonial-dark);
    background: transparent;

    border: 1px solid var(--testimonial-line);
    border-radius: 50%;

    font: inherit;
    font-size: 18px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.3s cubic-bezier(.22, 1, .36, 1);
}

.v360-testimonial__prev:hover,
.v360-testimonial__next:hover {
    color: #fff;
    background: var(--testimonial-green);

    border-color: var(--testimonial-green);
}

.v360-testimonial__prev:hover {
    transform: translateX(-3px);
}

.v360-testimonial__next:hover {
    transform: translateX(3px);
}


/* ==========================================================
   COUNTER
   ========================================================== */

.v360-testimonial__counter {
    min-width: 58px;

    color: var(--testimonial-muted);

    font-size: 13px;
    font-weight: 500;
    line-height: 1;

    text-align: center;

    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

.v360-testimonial__counter .current {
    color: var(--testimonial-dark);
    font-weight: 600;
}


/* ==========================================================
   EFFECT – FADE
   ========================================================== */

.v360-testimonial.v360-effect-fade.is-entering {
    animation:
        v360TestimonialFade
        0.7s
        cubic-bezier(.22, 1, .36, 1)
        both;
}


/* ==========================================================
   EFFECT – BLUR
   ========================================================== */

.v360-testimonial.v360-effect-blur.is-entering {
    animation:
        v360TestimonialBlur
        0.75s
        cubic-bezier(.22, 1, .36, 1)
        both;
}


/* ==========================================================
   EFFECT – ZOOM
   ========================================================== */

.v360-testimonial.v360-effect-zoom.is-entering
.v360-testimonial__image {
    animation:
        v360TestimonialZoom
        1.1s
        cubic-bezier(.22, 1, .36, 1)
        both;
}


/* ==========================================================
   EFFECT – SLIDE
   ========================================================== */

.v360-testimonial.v360-effect-slide.is-entering {
    animation:
        v360TestimonialSlide
        0.7s
        cubic-bezier(.22, 1, .36, 1)
        both;
}


/* ==========================================================
   EFFECT – REVEAL
   ========================================================== */

.v360-testimonial.v360-effect-reveal.is-entering
.v360-testimonial__media {
    animation:
        v360TestimonialReveal
        0.85s
        cubic-bezier(.22, 1, .36, 1)
        both;
}


/* ==========================================================
   ANIMATIONS
   ========================================================== */

@keyframes v360TestimonialFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes v360TestimonialBlur {

    from {
        opacity: 0;
        filter: blur(10px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }

}


@keyframes v360TestimonialSlide {

    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


@keyframes v360TestimonialZoom {

    from {
        transform: scale(1.07);
    }

    to {
        transform: scale(1);
    }

}


@keyframes v360TestimonialReveal {

    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }

}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .v360-testimonials__slides,
    .v360-testimonial,
    .v360-testimonial__media,
    .v360-testimonial__image {
        min-height: 600px;
    }

    .v360-testimonial {
        grid-template-columns: 44% 56%;
    }

    .v360-testimonial__content {
        padding:
            65px
            55px
            45px;
    }

    .v360-testimonial__quote {
        font-size: clamp(26px, 3vw, 36px);
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .v360-testimonials__slides,
    .v360-testimonial {
        min-height: 0;
    }

    .v360-testimonial.is-active {
        display: flex;
        flex-direction: column;
    }


    /* IMAGE */

    .v360-testimonial__media {
        width: 100%;
        min-height: 0;

        aspect-ratio: 4 / 3;
    }

    .v360-testimonial__image {
        width: 100%;
        height: 100%;
        min-height: 0;

        object-fit: cover;
    }


    /* CONTENT */

    .v360-testimonial__content {
        width: 100%;

        padding:
            42px
            24px
            30px;
    }


    /* EYEBROW */

    .v360-testimonial__eyebrow {
        margin-bottom: 30px;
        padding-left: 31px;

        font-size: 11px;
    }

    .v360-testimonial__eyebrow::before {
        width: 19px;
    }


    /* QUOTE */

    .v360-testimonial__quote {
        max-width: none;

        font-size: clamp(24px, 7vw, 32px);
        line-height: 1.18;

        letter-spacing: -0.03em;
    }

    .v360-testimonial__quote::before {
        top: -35px;

        font-size: 55px;
    }


    /* IDENTITY */

    .v360-testimonial__identity {
        margin-top: 32px;
    }

    .v360-testimonial__logo {
        margin-bottom: 16px;
    }

    .v360-testimonial__logo img {
        max-width: 125px;
        max-height: 45px;
    }


    /* FOOTER */

    .v360-testimonial__footer {
        gap: 16px;

        padding-top: 38px;
    }


    /* CONTROLS */

    .v360-testimonial__prev,
    .v360-testimonial__next {
        width: 38px;
        height: 38px;
    }

    .v360-testimonial__counter {
        min-width: 52px;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .v360-testimonial__content {
        padding:
            38px
            18px
            26px;
    }

    .v360-testimonial__quote {
        font-size: 25px;
    }

    .v360-testimonial__footer {
        padding-top: 32px;
    }

}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .v360-testimonial,
    .v360-testimonial__image,
    .v360-testimonial__media {
        animation: none !important;
        transition: none !important;
    }

}