/* Testimonials Section - Premium Grid */

.testimonials {
    padding: var(--space-24) var(--space-6);
    background: linear-gradient(180deg, var(--color-deep-forest) 0%, var(--color-forest) 100%);
    position: relative;
    overflow-x: hidden;
}

.testimonials .section-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 400;
    color: var(--color-warm-cream);
    text-align: center;
    margin-bottom: var(--space-16);
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-terracotta), transparent);
}

.testimonials-bg {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

.testimonial {
    position: relative;
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: var(--space-4);
    left: var(--space-5);
    font-family: var(--font-accent);
    font-size: 4rem;
    line-height: 1;
    color: var(--color-terracotta);
    opacity: 0.3;
}

.testimonial:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(193, 127, 89, 0.3);
    transform: translateY(-4px);
}

.testimonial.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(193, 127, 89, 0.15), rgba(166, 124, 82, 0.1));
    border-color: var(--color-terracotta);
}

.testimonial.featured::before {
    font-size: 6rem;
    opacity: 0.5;
}

.testimonial.quote-only {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-12);
    background: transparent;
    border: none;
}

.testimonial.quote-only::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-text {
    font-family: var(--font-accent);
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-warm-cream);
    font-style: italic;
    margin: 0 0 var(--space-6);
    position: relative;
    z-index: 1;
}

.testimonial-text.larger {
    font-size: var(--text-2xl);
}

.testimonial-text.larger br {
    content: '';
    display: block;
    margin: var(--space-4) 0;
}

.testimonial-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    position: relative;
    z-index: 1;
}

.testimonial footer {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
}

.testimonial cite {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    font-style: normal;
    color: var(--color-terracotta-light);
}

.testimonial span {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-sage-light);
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .testimonials {
        padding: var(--space-16) var(--space-4);
    }

    .testimonials .section-title {
        font-size: var(--text-2xl);
        padding: 0 var(--space-2);
    }

    .testimonial {
        padding: var(--space-6);
    }

    .testimonial::before {
        font-size: 3rem;
    }

    .testimonial.featured::before {
        font-size: 4rem;
    }

    .testimonial-text {
        font-size: var(--text-base);
    }

    .testimonial-text.larger {
        font-size: var(--text-lg);
    }
}
