/* ========================================
   08-TESTIMONIALS.CSS - NK Insurance
   Customer testimonials - editorial pull-quotes
   ======================================== */

.testimonials {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-white);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 169, 97, 0.04) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.testimonials > .container {
    position: relative;
    z-index: 1;
}

/* ========================================
   Testimonials grid - 3 columns
   ======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
}

/* Pull-quote card */
.testimonial-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: 2px;
    position: relative;
    border: 1px solid rgba(11, 37, 69, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(11, 37, 69, 0.08);
}

/* Decorative serif quote in top-right corner */
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-md);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 5.5rem;
    color: var(--accent-gold);
    opacity: 0.28;
    line-height: 0.85;
    pointer-events: none;
}

/* ========================================
   Rating - gold stars via pseudo
   ======================================== */
.rating {
    font-size: 0;
    line-height: 1;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.rating::before {
    content: '\2605\2605\2605\2605\2605';
    color: var(--accent-gold);
    font-size: 0.875rem;
    letter-spacing: 0.18em;
    display: inline-block;
    line-height: 1;
}

/* ========================================
   Quote text - serif italic
   ======================================== */
.testimonial-text {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    color: var(--primary);
    line-height: 1.55;
    margin-bottom: var(--spacing-xl);
    padding-left: 0;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* ========================================
   Author footer
   ======================================== */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(11, 37, 69, 0.08);
    position: relative;
    z-index: 1;
}

.testimonial-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-gold);
    flex-shrink: 0;
    box-shadow: none;
}

.author-info strong {
    display: block;
    font-family: var(--font-body);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.author-info span {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ========================================
   Stats bar - navy editorial credentials strip
   ======================================== */
.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: linear-gradient(135deg, #0B2545 0%, #134E6F 50%, #0B2545 100%);
    border-radius: 3px;
    box-shadow: 0 16px 40px rgba(11, 37, 69, 0.15);
    position: relative;
    overflow: hidden;
    gap: 0;
    flex-wrap: nowrap;
}

.testimonials-stats::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 169, 97, 0.07) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.testimonials-stats .stat {
    text-align: center;
    padding: 0 var(--spacing-md);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1;
}

.testimonials-stats .stat:last-child {
    border-right: none;
}

.testimonials-stats .stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: white;
    margin-bottom: 0.4rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.testimonials-stats .stat-label {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-stats .stat:nth-child(2) {
        border-right: none;
    }

    .testimonials-stats .stat:nth-child(1),
    .testimonials-stats .stat:nth-child(2) {
        padding-bottom: var(--spacing-lg);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .testimonials-stats .stat:nth-child(3),
    .testimonials-stats .stat:nth-child(4) {
        padding-top: var(--spacing-lg);
    }
}

@media (max-width: 767px) {
    .testimonials {
        padding: var(--spacing-3xl) 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .testimonial-card {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 575px) {
    .testimonials-stats {
        grid-template-columns: 1fr;
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .testimonials-stats .stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: var(--spacing-md) 0;
    }

    .testimonials-stats .stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .testimonials-stats .stat:nth-child(1) {
        padding-top: 0;
    }

    .testimonial-card::before {
        font-size: 3.5rem;
        right: var(--spacing-md);
    }
}

/* ========================================
   Stagger entry animation
   ======================================== */
@keyframes testimonialFade {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonials-grid .testimonial-card {
    animation: testimonialFade 0.5s ease-out backwards;
}

.testimonials-grid .testimonial-card:nth-child(1) { animation-delay: 0.05s; }
.testimonials-grid .testimonial-card:nth-child(2) { animation-delay: 0.12s; }
.testimonials-grid .testimonial-card:nth-child(3) { animation-delay: 0.19s; }
.testimonials-grid .testimonial-card:nth-child(4) { animation-delay: 0.26s; }
.testimonials-grid .testimonial-card:nth-child(5) { animation-delay: 0.33s; }
.testimonials-grid .testimonial-card:nth-child(6) { animation-delay: 0.40s; }
