/* =================================== 
TESTIMONIALS 2x2 GRID REVEAL
=================================== */

.section-testimonials-stack {
    position: relative;
    background: var(--bg, #0a0b0c);
    padding: 0;
    color: var(--text, #fff);
}

.testimonials-sticky {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5vh 5vw;
}

.testimonials-stack-title {
    font-family: var(--font-sans, sans-serif);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1;
    padding-bottom: 5px;
    letter-spacing: -0.03em;
    margin-bottom: 4vh;
    text-align: center;
    background: linear-gradient(110deg,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 0.45) 45%,
            #ffffff 50%,
            rgba(255, 255, 255, 0.45) 55%,
            rgba(255, 255, 255, 0.45) 100%);
    background-size: 300% auto;
    background-position: 100% center;
    color: var(--text, #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: metallic-shine 3s ease-in-out infinite;
}

@keyframes metallic-shine {
    0%, 15% { background-position: 100% center; filter: drop-shadow(0 0 0px rgba(255,255,255,0)); }
    50% { filter: drop-shadow(0 0 15px rgba(255,255,255,0.8)); }
    85%, 100% { background-position: 0% center; filter: drop-shadow(0 0 0px rgba(255,255,255,0)); }
}

.testimonials-cards-col {
    width: 100%;
    max-width: 1300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    perspective: 1000px;
}

.testimonial-stack-card {
    background:
        radial-gradient(circle at 18% 8%, rgba(58, 61, 65, 0.45), transparent 42%),
        linear-gradient(145deg, rgba(31, 34, 37, 0.82) 0%, rgba(11, 12, 14, 0.95) 52%, rgba(24, 26, 29, 0.86) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    will-change: transform, opacity;
}

/* Card classes for identifying them in GSAP */
.testimonial-stack-card:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.testimonial-stack-card:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.testimonial-stack-card:nth-child(3) { grid-area: 2 / 1 / 3 / 2; }
.testimonial-stack-card:nth-child(4) { grid-area: 2 / 2 / 3 / 3; }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

.card-author {
    font-family: var(--font-sans, sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
}

.card-stars {
    font-size: 0.9rem;
    color: #ffd700;
}

.card-quote {
    font-family: var(--font-sans, sans-serif);
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
    font-style: italic;
    margin: 0;
}

.card-location {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent, #a6a6a6);
    opacity: 0.6;
}

/* --- RESPONSIVE --- */

@media (min-width: 1920px) {
    .testimonials-cards-col {
        gap: 1.75rem;
        max-width: 1400px;
    }

    .testimonial-stack-card {
        padding: 2.4rem;
    }
}

@media (max-width: 768px) {
    .testimonials-sticky {
        height: auto;
        padding: 10vh 5vw;
        overflow: visible;
    }

    .testimonials-cards-col {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
    }

    .testimonial-stack-card {
        opacity: 1;
        transform: none !important;
        grid-area: auto !important;
    }

    .testimonials-stack-title {
        font-size: 3rem;
        margin-bottom: 5vh;
    }
}
