/* =============================================================================
   Ethink Testimonial Carousel — front-end stylesheet
   Plugin:  Ethink Widgets
   Author:  Warren Mead (https://halo.co.za)
   ========================================================================== */

/* ---- Outer wrapper -------------------------------------------------------- */
.ett-testimonials {
    position: relative;
    width: 100%;
}

/* ---- Viewport: clips the track so only the active (+ peeking) slides show - */
.ett-viewport {
    overflow: hidden;
    /* Vertical room lets the card box-shadow breathe without clipping */
    padding: 28px 0;
}

/* ---- Track: flex row of all slides, animated via JS translateX ------------ */
.ett-track {
    display: flex;
    align-items: stretch;
    gap: 24px;
    transition: transform 0.62s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* ---- Slides --------------------------------------------------------------- */
/*
   Default slide width: fills most of the viewport while still letting
   adjacent cards peek in at the edges. JS reads this via offsetWidth.
   Elementor controls can override opacity / transform via inline selectors,
   but we keep the width rule here so peeking always works.
*/
.ett-slide {
    flex: 0 0 min(700px, calc(100vw - 120px));
    width: min(700px, calc(100vw - 120px));
    /* Inactive state — overridable in Elementor style panel */
    opacity: 0.4;
    transform: scale(0.97);
    transition:
        opacity  0.5s ease,
        transform 0.5s ease;
}

.ett-slide.ett-active {
    opacity: 1;
    transform: scale(1);
}

/* ---- Card ----------------------------------------------------------------- */
/*
   Background, padding, border-radius, and box-shadow are all overridable
   through Elementor controls. The defaults below match the original snippet.
   --ett-shadow-color is set inline by the Elementor shadow-colour control.
*/
.ett-card {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
    padding: 44px 40px;
    background-color: #ffffff;
    box-shadow: 0 8px 48px var(--ett-shadow-color, rgba(0, 0, 0, 0.07));
    box-sizing: border-box;
    height: 100%;
    position: relative; /* contains the optional ::before overlay */
}

/* Optional card overlay — colour set via Elementor card overlay control */
.ett-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: transparent;
    border-radius: inherit;
}

/* ---- Left column: logo / avatar ------------------------------------------ */
.ett-media {
    flex: 0 0 72px;
    width: 72px;
    padding-top: 6px;
}

.ett-media img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

/* ---- Right column: quote body --------------------------------------------- */
.ett-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ---- Opening quote mark --------------------------------------------------- */
.ett-openquote {
    font-size: 5.5rem;
    line-height: 0.75;
    margin-bottom: 16px;
    margin-left: -3px;
    opacity: 0.18;
    /* Inherits colour from the card / theme */
}

/* ---- Quote text ----------------------------------------------------------- */
.ett-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 28px 0;
    font-style: italic;
    flex: 1;
}

/* ---- Horizontal rule ------------------------------------------------------ */
.ett-rule {
    border: none;
    border-top: 1px solid currentColor;
    opacity: 0.14;
    margin: 0 0 22px 0;
}

/* ---- Author byline -------------------------------------------------------- */
.ett-byline {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ett-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.ett-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.55;
}

/* ---- Navigation arrows ---------------------------------------------------- */
.ett-nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 36px;
    position: relative;
    right: 3vw;
}

.ett-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1e293b;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 0;
    border-radius: 0;
    flex-shrink: 0;
}

.ett-btn:hover,
.ett-btn:focus-visible {
    background-color: #0f172a;
    outline: 2px solid #0f172a;
    outline-offset: 2px;
    color: #ffffff;
}

.ett-btn:active {
    background-color: #0f172a;
    color: #ffffff;
}

/* ---- Responsive: stack card layout on small screens ----------------------- */
@media (max-width: 560px) {
    .ett-slide {
        flex: 0 0 calc(100vw - 48px);
        width: calc(100vw - 48px);
    }

    .ett-card {
        flex-direction: column;
        gap: 20px;
        padding: 28px 24px;
    }

    .ett-openquote {
        font-size: 3.5rem;
    }

    .ett-quote {
        font-size: 1rem;
    }
}

/* ---- Navigation dots ------------------------------------------------------ */
.ett-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    /* position: relative is added inline by Elementor offset controls */
    flex-wrap: wrap;
}

.ett-dot {
    /* Size, colour, border-radius, border — all overridable via Elementor */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: 0 solid transparent;
    padding: 0;
    cursor: pointer;
    /* Smooth transitions for all state changes */
    transition:
        background-color 0.25s ease,
        border-color     0.25s ease,
        opacity          0.25s ease,
        transform        0.25s ease,
        width            0.3s  cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, width;
    flex-shrink: 0;
}

/* Hover state */
.ett-dot:hover {
    background-color: #94a3b8;
    transform: scale(1.2);
    outline: none;
}

.ett-dot:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Active state */
.ett-dot.ett-dot-active {
    background-color: #1e293b;
    transform: scale(1);
}

/* ---- Reduced motion: disable all transitions ------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .ett-track,
    .ett-slide {
        transition: none;
    }

    .ett-dot {
        transition: none;
    }
}
