/* ═══════════════════════════════════════════════
   Elementor Testimonial Widget
   ═══════════════════════════════════════════════ */

/* ── Design tokens ──────────────────────────────
   Change colours, spacing, sizes and icons here;
   everything below inherits from these variables.  */
.etw-slider-wrap {
    /* Colour */
    --etw-bg:          #f5f0e8;
    --etw-ink:         #1a1a1a;   /* primary text            */
    --etw-ink-strong:  #212325;   /* buttons / strong text   */
    --etw-muted:       #6b6459;   /* secondary / captions    */
    --etw-accent:      #a27b50;   /* diamond / accents       */
    --etw-line:        rgba(33, 35, 37, 0.14);
    --etw-btn-border:  rgba(33, 35, 37, 0.20);

    /* Container padding (fluid) */
    --etw-pad-x:       clamp(20px, 5.2vw, 70px);
    --etw-pad-top:     clamp(22px, 2.6vw, 32px);
    --etw-pad-bottom:  clamp(28px, 5vw, 70px);

    /* Layout */
    --etw-gap:         clamp(24px, 3vw, 40px);
    --etw-img-w:       clamp(120px, 12vw, 150px);
    --etw-img-h:       clamp(140px, 14vw, 172px);
    --etw-measure:     58ch;      /* max quote line length   */

    /* Arrow buttons */
    --etw-btn-size:    45px;
    --etw-icon-size:   18px;
    --etw-icon-prev:   url("https://villaman.harisand.co/wp-content/uploads/2026/06/Vector-34.svg");
    --etw-icon-next:   url("https://villaman.harisand.co/wp-content/uploads/2026/06/Vector-35.svg");

    /* Motion */
    --etw-ease:        cubic-bezier(0.16, 1, 0.3, 1);

    position: relative;
    overflow: hidden;
    background-color: var(--etw-bg);
    padding: var(--etw-pad-top) var(--etw-pad-x) var(--etw-pad-bottom);
    color: var(--etw-ink);
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.etw-slider-wrap,
.etw-slider-wrap *,
.etw-slider-wrap *::before,
.etw-slider-wrap *::after {
    box-sizing: border-box;
}

/* ── Header row ── */
.etw-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.etw-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--etw-ink);
}

.etw-diamond {
    color: var(--etw-accent);
    font-size: 11px;
    line-height: 1;
}

.etw-counter {
    font-size: 12px;
    color: var(--etw-muted);
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.etw-counter .etw-current {
    color: var(--etw-ink);
}

/* ── Navigation arrows ── */
.etw-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.etw-nav button {
    position: relative;
    overflow: hidden;
    width: var(--etw-btn-size);
    height: var(--etw-btn-size);
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--etw-btn-border);
    background: transparent;
    cursor: pointer;
    color: var(--etw-ink-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease, border-color 0.4s ease;
    line-height: 1;
}

/* Icon shape driven by the SVG mask so it recolours with the button */
.etw-nav .etw-nav-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--etw-icon-size);
    height: var(--etw-icon-size);
    background-color: currentColor;
    -webkit-mask: var(--etw-icon) center / contain no-repeat;
    mask: var(--etw-icon) center / contain no-repeat;
    transition: transform 0.4s var(--etw-ease);
    pointer-events: none;
}

.etw-prev { --etw-icon: var(--etw-icon-prev); }
.etw-next { --etw-icon: var(--etw-icon-next); }

/* Resting positions: primary icon centred, clone parked off-canvas */
.etw-next .etw-nav-icon        { transform: translate(-50%, -50%); }
.etw-next .etw-nav-icon--clone { transform: translate(-250%, -50%); }
.etw-prev .etw-nav-icon        { transform: translate(-50%, -50%); }
.etw-prev .etw-nav-icon--clone { transform: translate(150%, -50%); }

/* Hover: current arrow slides out, clone slides into place (smart-animate style) */
.etw-next:hover .etw-nav-icon        { transform: translate(150%, -50%); }
.etw-next:hover .etw-nav-icon--clone { transform: translate(-50%, -50%); }
.etw-prev:hover .etw-nav-icon        { transform: translate(-250%, -50%); }
.etw-prev:hover .etw-nav-icon--clone { transform: translate(-50%, -50%); }

.etw-nav button:hover {
    background: var(--etw-ink-strong);
    color: #fff;
    border-color: var(--etw-ink-strong);
}

.etw-nav button:focus-visible {
    outline: 2px solid var(--etw-accent);
    outline-offset: 2px;
}

/* ── Slides ── */
.etw-slides {
    position: relative;
}

.etw-slide {
    display: none;
}

.etw-slide.etw-active {
    display: block;
}

/* Desktop: image left, content right */
.etw-slide-inner {
    display: flex;
    align-items: flex-start;
    gap: var(--etw-gap);
}

/* ── Image ── */
.etw-image-wrap {
    flex-shrink: 0;
    width: var(--etw-img-w);
    height: var(--etw-img-h);
    overflow: hidden;
}

.etw-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.etw-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
    font-weight: 700;
}

/* ── Content ── */
.etw-content {
    flex: 1;
    min-width: 0;
}

/* Quote mark hangs in a left gutter, baseline-aligned to the first line */
.etw-quote-row {
    display: flex;
    align-items: baseline;
    gap: clamp(6px, 0.8vw, 12px);
    margin: 0 0 clamp(20px, 2.6vw, 30px);
}

.etw-quote-mark {
    flex-shrink: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1;
    color: var(--etw-ink);
    /* fine nudge so the glyph sits on the first line, not above it */
    transform: translateY(0.06em);
}

.etw-quote-text {
    flex: 1;
    min-width: 0;
    font-size: clamp(20px, 2.6vw, 32px);
    font-weight: 500;
    line-height: 1.38;
    letter-spacing: -0.01em;
    color: var(--etw-ink);
    margin: 0;
}

/* Uploaded custom quote icon */
.etw-quote-icon-img {
    display: block;
    width: 32px;
    height: auto;
}

.etw-quote-text p {
    margin: 0;
    max-width: var(--etw-measure);
}

/* ── Client meta row ── */
.etw-client-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* Desktop: no inline image in meta (image is in slide-inner) */
.etw-client-meta-image {
    display: none;
}

.etw-client-info {
    display: flex;
	padding-left:50px;
    flex-direction: column;
    gap: 5px;
}

.etw-client-name {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--etw-ink);
}

.etw-client-designation {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--etw-muted);
    text-transform: uppercase;
}

/* ── Google score ── */
.etw-google-score {
    display: flex;
    align-items: center;
    gap: 6px;
}

.etw-google-icon {
    display: flex;
    align-items: center;
}

.etw-score-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--etw-ink);
}

/* ── Entrance animation: name / designation / profile FADE in on active slide ──
   (Quote keeps its own word-reveal below; this block is fade-only.)            */
@keyframes etw-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.etw-slide.etw-active .etw-client-name,
.etw-slide.etw-active .etw-client-designation,
.etw-slide.etw-active .etw-google-score,
.etw-slide.etw-active .etw-image-wrap img,
.etw-slide.etw-active .etw-image-wrap .etw-avatar-placeholder,
.etw-slide.etw-active .etw-client-meta-image img {
    animation: etw-fade 0.7s ease both;
}

/* Gentle sequential fade for the text row */
.etw-slide.etw-active .etw-client-name        { animation-delay: 0.10s; }
.etw-slide.etw-active .etw-client-designation { animation-delay: 0.18s; }
.etw-slide.etw-active .etw-google-score       { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .etw-slide.etw-active .etw-client-name,
    .etw-slide.etw-active .etw-client-designation,
    .etw-slide.etw-active .etw-google-score,
    .etw-slide.etw-active .etw-image-wrap img,
    .etw-slide.etw-active .etw-client-meta-image img {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════
   FAQ Accordion Widget
   ═══════════════════════════════════════════════ */

.etw-faq-wrap {
    background-color: #f5f0e8;
    overflow: hidden;
}

.etw-faq-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #d4cfc6;
    overflow: hidden;
}

.etw-faq-item {
    border-top: 1px solid #d4cfc6;
}

.etw-faq-header {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 22px 0 !important;
    cursor: pointer;
    text-align: left;
    gap: 20px;
    color: inherit !important;
    box-shadow: none !important;
    outline: none;
    text-decoration: none !important;
    overflow: hidden;
}

button.etw-faq-header,
button.etw-faq-header:link,
button.etw-faq-header:visited,
button.etw-faq-header:hover,
button.etw-faq-header:focus,
button.etw-faq-header:active,
.etw-faq-item button.etw-faq-header,
.etw-faq-item button.etw-faq-header:hover,
.etw-faq-wrap button:hover,
.etw-faq-wrap button:focus {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: inherit !important;
    box-shadow: none !important;
    border: none !important;
    text-decoration: none !important;
}

.etw-faq-header:hover .etw-faq-question {
    opacity: 0.75;
}

.etw-faq-num {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    min-width: 24px;
    font-variant-numeric: tabular-nums;
    align-self: flex-start;
    padding-top: 2px;
}

.etw-faq-question {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.4;
    transition: opacity 0.15s;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.etw-faq-icon {
    flex-shrink: 0;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    padding-left: 16px;
    align-self: flex-start;
    padding-top: 2px;
}

.etw-faq-icon svg {
    display: block;
}

/* Body / answer */
.etw-faq-body {
    padding: 0 0 20px 48px;
}

.etw-faq-body[hidden] {
    display: none;
}

.etw-faq-answer {
    font-size: 13px;
    line-height: 1.65;
    color: #555;
    max-width: 560px;
}

.etw-faq-answer p {
    margin: 0;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* Tablet / small laptop */
@media (min-width: 601px) and (max-width: 900px) {
    .etw-slide-inner {
        gap: 24px;
    }

    .etw-quote-text {
        font-size: clamp(19px, 3vw, 24px);
    }

    .etw-quote-text p {
        max-width: none;
    }

    .etw-image-wrap {
        width: 110px;
        height: 126px;
    }
	.etw-client-info {
   
	padding-left:0px;
   
}
}

/* Mobile — max-width: 600px */
@media (max-width: 600px) {

    /* ── Testimonial mobile ── */
    .etw-slider-wrap {
        --etw-btn-size: 42px;
        --etw-icon-size: 16px;
        padding: 22px 18px 26px;
    }

    .etw-slider-header {
        margin-bottom: 22px;
    }

    /* Hide the running counter on mobile to save room */
    .etw-counter {
        display: none;
    }

    /* Slide inner: content on top, image + name row below */
    .etw-slide-inner {
        flex-direction: column;
        gap: 0;
    }

    /* Hide the standalone image block on mobile */
    .etw-slide-inner > .etw-image-wrap {
        display: none;
    }

    /* Quote fills full width */
    .etw-content {
        width: 100%;
    }

    .etw-quote-row {
        gap: 8px;
        margin-bottom: 24px;
    }

    .etw-quote-mark {
        font-size: 30px;
    }

    .etw-quote-text {
        font-size: 20px;
        line-height: 1.4;
    }

    .etw-quote-text p {
        max-width: none;
    }

    /* Client meta: small inline image + info side by side; Google score wraps below */
    .etw-client-meta {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        border-top: 1px solid var(--etw-line);
        padding-top: 16px;
        margin-top: 4px;
    }

    /* Small avatar shown in meta row on mobile */
    .etw-client-meta-image {
        display: block;
        flex-shrink: 0;
        width: 56px;
        height: 64px;
        overflow: hidden;
    }

    .etw-client-meta-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .etw-client-info {
        flex: 1;
        min-width: 0;
    }

    .etw-client-name {
        font-size: 15px;
    }

    .etw-client-designation {
        font-size: 9px;
        letter-spacing: 0.12em;
        white-space: normal;
        word-break: break-word;
    }

    /* Google score: full-width, centred row under the name on mobile */
    .etw-google-score {
        display: flex;
        flex-basis: 100%;
        width: 100%;
        justify-content: center;
        text-align: center;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--etw-line);
    }

    .etw-google-score .etw-score-text {
        font-size: 10px;
    }

    /* ── FAQ mobile ── */
    .etw-faq-header {
        gap: 10px;
        padding: 16px 0 !important;
        align-items: flex-start;
    }

    .etw-faq-num {
        font-size: 12px;
        min-width: 20px;
        padding-top: 2px;
    }

    .etw-faq-question {
        font-size: 13px;
        line-height: 1.45;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .etw-faq-icon {
        padding-left: 8px;
        padding-top: 2px;
    }

    .etw-faq-body {
        padding: 0 0 14px 30px;
    }

    .etw-faq-answer {
        font-size: 12px;
        line-height: 1.6;
    }
	.etw-client-info {
   
	padding-left:0px;
   
}
}

/* Very small phones */
@media (max-width: 380px) {
    .etw-quote-text {
        font-size: 18px;
    }

    .etw-client-meta-image {
        width: 48px;
        height: 56px;
    }
	.etw-client-info {
   
	padding-left:0px;
   
}
}

/* ═══════════════════════════════════════════════
   Word reveal animation (bottom -> top)
   ═══════════════════════════════════════════════ */
.etw-has-reveal .etw-quote-text .etw-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
}
.etw-has-reveal .etw-quote-text .etw-word-inner {
    display: inline-block;
    transform: translateY(115%);
    opacity: 0;
    will-change: transform, opacity;
    transition: transform var(--etw-word-dur, 650ms) cubic-bezier(0.16, 1, 0.3, 1),
                opacity var(--etw-word-dur, 650ms) ease;
}
.etw-has-reveal .etw-quote-text.is-revealed .etw-word-inner {
    transform: translateY(0);
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    .etw-has-reveal .etw-quote-text .etw-word-inner {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
