/* Testimonials Carousel - Mobile First Rebuild */

.testimonials-section {
    position: relative;
    isolation: isolate;
}

.testimonials-container {
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
}

/* Header */
.testimonials-section .section-header {
    max-width: 42rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.testimonials-section .icon-badge {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(115, 85, 54, 0.1);
    border-radius: 50%;
}

.testimonials-section .section-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #735536;
}

.testimonials-section .section-title {
    margin-top: 0.5rem;
    line-height: 1.2;
    color: #1a1410;
}

.testimonials-section .section-description {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(26, 20, 16, 0.6);
}

/* MOBILE: Simple vertical carousel */
.testimonials-section .carousel-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 600px;
}

.testimonials-section .carousel-container {
    position: relative;
}

.testimonials-section .testimonial-card {
    width: 100%;
    display: none;
    opacity: 0;
}

.testimonials-section .testimonial-card.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonials-section .card-inner {
    background: white;
    border-radius: 1rem;
    border: 1px solid rgba(26, 20, 16, 0.05);
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(115, 85, 54, 0.15);
}

.testimonials-section .card-grid {
    display: flex;
    flex-direction: column;
}

.testimonials-section .card-image {
    background: linear-gradient(to bottom right, #F5EFE7, #E8DCC8);
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.testimonials-section .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.testimonials-section .card-content {
    padding: 1.5rem;
}

/* Quote marks */
.testimonials-section .quote-marks {
    width: 2rem;
    height: 2rem;
    fill: rgba(115, 85, 54, 0.2);
    margin-bottom: 0.75rem;
}

/* Testimonial text - Mobile shows only first paragraph */
.testimonials-section .testimonial-text p {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(26, 20, 16, 0.8);
}

.testimonials-section .testimonial-text p:nth-child(2),
.testimonials-section .testimonial-text p:nth-child(3) {
    display: none;
}

.testimonials-section .testimonial-text p:last-child {
    margin-bottom: 0;
}

/* Author info */
.testimonials-section .author-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 20, 16, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonials-section .author-avatar {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(196, 167, 125, 0.3);
}

.testimonials-section .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials-section .author-details {
    flex: 1;
    min-width: 0;
}

.testimonials-section .author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1410;
}

.testimonials-section .author-business {
    font-size: 0.75rem;
    color: rgba(26, 20, 16, 0.6);
}

.testimonials-section .author-location {
    font-size: 0.625rem;
    color: rgba(26, 20, 16, 0.4);
}

/* Navigation buttons */
.testimonials-section .nav-button {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 999 !important;
    background: #f5f5f5 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s !important;
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
}

.testimonials-section .nav-button:hover {
    background: #eeeeee !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-50%) scale(1.06) !important;
}

.testimonials-section .nav-button.prev {
    left: 1rem !important;
}

.testimonials-section .nav-button.next {
    right: 1rem !important;
}

.testimonials-section .nav-button svg {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    stroke: #1a1410 !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    display: block !important;
    pointer-events: none !important;
}

.testimonials-section .nav-button:hover svg {
    stroke: #1a1410 !important;
}

/* Progress dots */
.testimonials-section .progress-dots {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.testimonials-section .dot {
    height: 0.5rem;
    width: 0.5rem;
    padding: 0;
    border-radius: 9999px;
    background: rgba(26, 20, 16, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.testimonials-section .dot.active {
    width: 2rem;
    background: #735536;
}

.testimonials-section .dot:hover:not(.active) {
    background: rgba(26, 20, 16, 0.4);
}

/* TABLET & DESKTOP: 3D Carousel */
@media (min-width: 1380px) {
    .testimonials-section {
        padding: 6rem 2rem;
    }

    .testimonials-section .section-header {
        margin-bottom: 4rem;
    }

    .testimonials-section .section-title {
        font-size: 1.875rem;
    }

    /* Enable 3D transforms */
    .testimonials-section .carousel-wrapper {
        perspective: 2000px;
        max-width: none;
        margin: 0 2rem;
    }

    .testimonials-section .carousel-container {
        height: 550px;
        min-height: 0;
        position: relative;
    }

    .testimonials-section .testimonial-card {
        position: absolute;
        display: block;
        max-width: 70rem;
        left: 50%;
        top: 0;
        padding: 0 1rem;
        transform-style: preserve-3d;
        pointer-events: none;
    }

    .testimonials-section .testimonial-card.active {
        transform: translateX(-50%) translateZ(0) rotateY(0deg) scale(1);
        filter: blur(0);
        z-index: 10;
        pointer-events: auto;
        animation: none;
    }

    .testimonials-section .testimonial-card.prev {
        opacity: 0.4;
        transform: translateX(calc(-50% - 180px)) translateZ(-150px) rotateY(25deg) scale(0.85);
        z-index: 5;
        filter: blur(2px);
        pointer-events: none;
    }

    .testimonials-section .testimonial-card.next {
        opacity: 0.4;
        transform: translateX(calc(-50% + 180px)) translateZ(-150px) rotateY(-25deg) scale(0.85);
        z-index: 5;
        filter: blur(2px);
        pointer-events: none;
    }

    .testimonials-section .testimonial-card:not(.active):not(.prev):not(.next) {
        opacity: 0;
    }

    .testimonials-section .card-inner {
        border-radius: 1.5rem;
    }

    /* Two column layout */
    .testimonials-section .card-grid {
        flex-direction: row;
        display: grid;
        grid-template-columns: 35fr 65fr;
        min-height: 500px;
    }

    .testimonials-section .card-image {
        height: 100%;
        min-height: 500px;
    }

    .testimonials-section .card-content {
        padding: 2rem 2.5rem;
    }

    /* Show all paragraphs on desktop */
    .testimonials-section .testimonial-text p:nth-child(2),
    .testimonials-section .testimonial-text p:nth-child(3) {
        display: block;
    }

    .testimonials-section .testimonial-text p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .testimonials-section .quote-marks {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 1rem;
    }

    .testimonials-section .author-info {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        gap: 1rem;
    }

    .testimonials-section .author-avatar {
        width: 4rem;
        height: 4rem;
    }

    .testimonials-section .author-name {
        font-size: 1rem;
    }

    .testimonials-section .author-business {
        font-size: 0.875rem;
    }

    .testimonials-section .author-location {
        font-size: 0.75rem;
    }

    .testimonials-section .progress-dots {
        margin-top: 3rem;
    }
}


/* mobile 3D Carousel */
@media (max-width: 760px) {
    .es-section-title{
font-size: 1.875rem;    }
        }