/* =============================================================
   Testimonials section — [wplt_testimonials] shortcode
   ============================================================= */

.wplt-testimonials {
    padding: 64px 0 48px;
    background: var(--pc-accent-soft);
}

.wplt-testimonials__header {
    text-align: center;
    padding: 0 24px;
    margin-bottom: 36px;
}

.wplt-testimonials__title {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    color: var(--pc-text);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.wplt-testimonials__sub {
    font-size: 14px;
    color: var(--pc-text-muted);
    margin: 0;
}

/* ── Card track — horizontal scroll on mobile, grid on desktop ── */

.wplt-testimonials__track {
    display: flex;
    gap: 18px;
    padding: 4px 24px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.wplt-testimonials__track:active {
    cursor: grabbing;
}

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

@media (min-width: 768px) {
    .wplt-testimonials__track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        padding: 0 24px;
        max-width: 1200px;
        margin: 0 auto;
        cursor: default;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .wplt-testimonials__track {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Individual card ── */

.wplt-testimonials__card {
    flex: 0 0 290px;
    scroll-snap-align: start;
    background: var(--pc-surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(74, 22, 53, .06), 0 1px 3px rgba(0, 0, 0, .05);
    border: 1px solid var(--pc-border);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
    .wplt-testimonials__card {
        flex: unset;
    }

    .wplt-testimonials__card:hover {
        box-shadow: 0 8px 28px rgba(74, 22, 53, .12);
        transform: translateY(-2px);
    }
}

/* ── Stars ── */

.wplt-testimonials__stars {
    display: flex;
    gap: 3px;
}

.wplt-testimonials__star {
    width: 18px;
    height: 18px;
    fill: #d9d0d4;
    transition: fill 0.1s;
}

.wplt-testimonials__star.is-filled {
    fill: #e8a500;
}

/* ── WhatsApp screenshot (featured image) ── */

.wplt-testimonials__screenshot {
    margin: -24px -24px 16px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    max-height: 220px;
}

.wplt-testimonials__screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slightly raise the card when it has a screenshot — feels like a photo card */
.wplt-testimonials__card.has-screenshot {
    border-top: none;
}

/* ── Quote ── */

.wplt-testimonials__quote {
    margin: 0;
    flex: 1;
}

.wplt-testimonials__quote p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--pc-text);
    margin: 0;
    font-style: italic;
    position: relative;
    padding-left: 18px;
}

.wplt-testimonials__quote p::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -4px;
    color: var(--pc-primary);
    font-size: 28px;
    font-style: normal;
    line-height: 1;
    font-family: Georgia, serif;
}

/* ── Footer — name / city / tag ── */

.wplt-testimonials__footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--pc-border);
    padding-top: 14px;
}

.wplt-testimonials__name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--pc-text);
}

.wplt-testimonials__city {
    font-size: 12px;
    color: var(--pc-text-muted);
}

.wplt-testimonials__tag {
    display: inline-block;
    background: var(--pc-accent-soft);
    border: 1px solid var(--pc-border);
    color: var(--pc-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 6px;
    width: fit-content;
    letter-spacing: 0.01em;
}

/* ── Bottom CTA ── */

.wplt-testimonials__cta {
    text-align: center;
    margin-top: 36px;
    padding: 0 24px;
}

.wplt-testimonials__wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #25D366;
    color: #fff;
    padding: 13px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .3);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wplt-testimonials__wa-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    flex-shrink: 0;
}

.wplt-testimonials__wa-btn:hover,
.wplt-testimonials__wa-btn:focus-visible {
    background: #1ebe5e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, .38);
}
