/* ============================================================
   BTE TESTIMONIALS CAROUSEL
   ============================================================ */

.bte-testi {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--bte-navy);
    display: flex;
    flex-direction: column;
}

/* ---- Background images ---- */
.bte-testi__bgs {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bte-testi__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.bte-testi__bg.is-active {
    opacity: 1;
}

/* Dark gradient — heavier left so text is always readable */
.bte-testi__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(7, 9, 58, 0.85) 0%,
        rgba(7, 9, 58, 0.60) 45%,
        rgba(7, 9, 58, 0.25) 100%
    );
}

/* ---- Inner layout ---- */
.bte-testi__inner {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(var(--space-16), 10vh, var(--space-24)) var(--gutter);
    padding-left: calc(var(--gutter) + 48px);
    padding-right: calc(var(--gutter) + 56px); /* room for side tab */
    gap: var(--space-8);
    max-width: 780px;
}

/* ---- Slides ---- */
.bte-testi__slide {
    display: none;
    flex-direction: column;
    gap: var(--space-6);
}

.bte-testi__slide.is-active {
    display: flex;
    animation: testi-fade-in 0.6s var(--ease-out) both;
}

@keyframes testi-fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Quote ---- */
.bte-testi__quote {
    margin: 0;
}

.bte-testi__quote p {
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--bte-white);
    margin: 0;
}

/* ---- Author ---- */
.bte-testi__author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.bte-testi__author-name {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
}

.bte-testi__author-sep {
    color: var(--bte-red);
    font-size: var(--text-xs);
    font-weight: 700;
}

.bte-testi__author-company {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
}

/* ---- Navigation arrows ---- */
.bte-testi__nav {
    display: flex;
    gap: var(--space-3);
}

/* ---- Vertical side tab ---- */
.bte-testi__side-tab {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background-color: var(--bte-red);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5) var(--space-3);
}

.bte-testi__side-tab span {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bte-white);
    transform: rotate(180deg); /* read bottom-to-top */
}

/* ---- Scroll indicator ---- */
.bte-testi__scroll {
    position: absolute;
    bottom: clamp(var(--space-6), 4vh, var(--space-10));
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .bte-testi__bg    { transition: none; }
    .bte-testi__slide { animation: none; }
}

/* 2026-07-14 fix — short-viewport cropping, same class of bug as
   Services/Aftersales: min-height:100vh plus this inner padding
   (clamp floor of --space-16, ~64px, on top and bottom) doesn't leave
   enough room for the quote + author block on a shorter laptop
   screen. Desktop-width-only, matching the pin's own JS gate. */
@media (max-height: 820px) and (min-width: 1024px) {
    .bte-testi__inner {
        padding-top: var(--space-8);
        padding-bottom: var(--space-8);
        gap: var(--space-5);
    }
    .bte-testi__quote p {
        font-size: clamp(1.3rem, 2.6vw, 2rem);
    }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .bte-testi__inner {
        padding-left: calc(var(--gutter) + 16px);
        padding-right: calc(var(--gutter) + 44px);
    }

    .bte-testi__quote p {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .bte-testi__side-tab {
        padding: var(--space-4) var(--space-2);
    }
}
