/* =========================================================
   Home: "What Our Customers Say" (inc/testimonials_section.php)
   3 cards per view on PC, 2 on tablet, 1 + a peek on phones.
   ========================================================= */
.wc-testimonials-section {
    --tm-gold: #b88a3b;
    --tm-gold-soft: #f6efe1;
    --tm-ink: #111827;
    --tm-text: #374151;
    --tm-muted: #6b7280;
    --tm-line: #eee6d6;
    padding-top: 64px;
    padding-bottom: 56px;
    background: linear-gradient(180deg, #ffffff 0%, #fbf7ef 100%);
}

/* Header */
.wc-tm-head {
    max-width: 640px;
    margin: 0 auto 32px;
    text-align: center;
}

.wc-testimonials-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--tm-gold-soft);
    color: var(--tm-gold);
    font-family: "Inter", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wc-testimonials-kicker i {
    font-size: 0.7rem;
}

.wc-tm-title {
    margin: 0 0 10px;
    color: var(--tm-ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    text-transform: none;
    letter-spacing: 0;
}

.wc-tm-sub {
    margin: 0;
    color: var(--tm-muted);
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-style: normal;
    line-height: 1.6;
}

.wc-tm-score {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 8px 16px;
    border: 1px solid var(--tm-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 27, 22, 0.06);
    font-family: "Inter", sans-serif;
}

.wc-tm-score strong {
    color: var(--tm-ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.wc-tm-score span {
    color: var(--tm-muted);
    font-size: 0.84rem;
}

/* Stars */
.wc-tm-stars {
    display: inline-flex;
    gap: 3px;
    color: #e0a526;
    font-size: 0.88rem;
}

.wc-tm-stars .is-off {
    color: #e5dcc8;
}

/* Slider */
.wc-testimonials {
    position: relative;
}

.wc-testimonials__viewport {
    min-width: 0;
    overflow: hidden;
    margin: -10px -10px 0;
    padding: 10px 10px 0;
}

.wc-testimonials__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.wc-testimonials__track::-webkit-scrollbar {
    display: none;
}

.wc-testimonials.is-static .wc-testimonials__track {
    justify-content: center;
}

/* Cards */
.wc-testimonial-card {
    position: relative;
    flex: 0 0 86%;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 24px;
    border: 1px solid var(--tm-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 27, 22, 0.07);
    scroll-snap-align: start;
    font-family: "Inter", sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wc-testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(31, 27, 22, 0.11);
}

/* Text review */
.wc-testimonial-card--text {
    background: linear-gradient(180deg, #fff 0%, #fffdf8 100%);
}

.wc-testimonial-card--text::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #e8c873, var(--tm-gold));
}

.wc-tm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wc-tm-mark {
    color: #ead9b5;
    font-size: 2rem;
}

.wc-tm-quote {
    margin: 18px 0 auto;
    color: var(--tm-text);
    font-size: 1.06rem;
    font-weight: 500;
    line-height: 1.7;
}

/* Author row */
.wc-tm-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--tm-line);
}

.wc-tm-author > div {
    min-width: 0;
}

.wc-tm-author strong {
    display: block;
    overflow: hidden;
    color: var(--tm-ink);
    font-size: 0.98rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wc-tm-author span:not(.wc-tm-avatar) {
    display: block;
    margin-top: 2px;
    color: var(--tm-muted);
    font-size: 0.8rem;
}

.wc-tm-author span i {
    color: #16a34a;
    font-size: 0.74rem;
}

.wc-tm-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8c873, var(--tm-gold));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--tm-line);
    object-fit: cover;
}

.wc-tm-avatar.is-icon {
    font-size: 1rem;
}

/* Photo review */
.wc-testimonial-card--image {
    padding: 0;
    overflow: hidden;
}

.wc-tm-photo {
    position: relative;
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 260px;
    max-height: 340px;
    height: 300px;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #1f1b16;
    cursor: zoom-in;
}

.wc-tm-photo__bg {
    position: absolute;
    inset: -20px;
    background-position: center;
    background-size: cover;
    filter: blur(18px) brightness(0.75);
    transform: scale(1.1);
}

.wc-tm-photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.wc-tm-photo:hover img {
    transform: scale(1.03);
}

.wc-tm-photo__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.wc-tm-foot {
    padding: 16px 22px 20px;
}

.wc-tm-foot .wc-tm-author {
    margin-top: 12px;
    padding-top: 0;
    border-top: 0;
}

/* Controls: arrows + dots under the cards (clear of the floating chat buttons) */
.wc-tm-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
}

.wc-testimonials.is-static .wc-tm-controls {
    display: none;
}

.wc-testimonials__nav {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tm-line);
    border-radius: 50%;
    background: #fff;
    color: var(--tm-ink);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.wc-testimonials__nav:hover:not(:disabled),
.wc-testimonials__nav:focus-visible {
    border-color: var(--tm-gold);
    background: var(--tm-gold);
    color: #fff;
    outline: 0;
}

.wc-testimonials__nav:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

.wc-testimonials__dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.wc-testimonials__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d9cfbd;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.wc-testimonials__dot.is-active {
    width: 24px;
    background: var(--tm-gold);
}

@media (min-width: 640px) {
    .wc-testimonial-card {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (min-width: 1024px) {
    .wc-testimonial-card {
        flex-basis: calc((100% - 40px) / 3);
    }
}

@media (max-width: 767px) {
    .wc-testimonials-section {
        padding-top: 44px;
        padding-bottom: 36px;
    }

    .wc-tm-head {
        margin-bottom: 24px;
    }

    .wc-testimonial-card {
        min-height: 0;
        padding: 20px;
    }

    .wc-testimonial-card--image {
        padding: 0;
    }

    .wc-tm-photo {
        height: 260px;
    }

    .wc-tm-quote {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wc-testimonials__track { scroll-behavior: auto; }
    .wc-testimonial-card, .wc-tm-photo img { transition: none; }
}

/* Photo preview */
.wc-testimonial-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wc-testimonial-modal[hidden] {
    display: none !important;
}

.wc-testimonial-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
}

.wc-testimonial-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: min(900px, 100%);
}

.wc-testimonial-modal__dialog img {
    display: block;
    max-width: min(92vw, 860px);
    max-height: 82vh;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    background: #111;
}

.wc-testimonial-modal__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.wc-testimonial-modal__caption {
    margin: 10px 0 0;
    color: #fff;
    text-align: center;
}

@media (max-width: 767px) {
    .wc-testimonial-modal__close {
        top: -10px;
        right: 0;
    }
}
