/* testimonial.css — additive only, reuses second-opinion.css + visa.css + app.css */

.section-wrap {
    padding-block: clamp(36px, 5vw, 64px);
}

/* ── Masonry-style testimonial wall using CSS columns ── */
.testi-wall {
    max-width: 1500px;
    margin: 0 auto;
    column-count: 3;
    column-gap: 20px;
}
.testi-card {
    break-inside: avoid;
    margin-bottom: 20px;
    background: var(--white);
    border: 1px solid var(--border-cream);
    border-radius: 14px;
    padding: 22px 22px;
    display: inline-block;
    width: 100%;
}
.testi-card-top {
    margin-bottom: 6px;
}
.testi-flag {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    font-weight: 700;
}
.testi-category {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}
.testi-quote {
    font-size: 13px;
    color: var(--cream-text);
    line-height: 1.65;
    margin-bottom: 12px;
    font-style: italic;
}
.testi-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--green-dark);
}

/* ── HERO (split layout, image right, stat row, single CTA) ── */
.testi-hero.hero {
    padding-top: 60px;
    padding-bottom: 60px;
    min-height: 640px;
}
.testi-hero .hero-grid {
    align-items: stretch;
    min-height: 640px;
}
.testi-hero .hero-inner {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.testi-hero .hero-sub {
    max-width: 480px;
}

.testi-hero-media {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 640px;
    border-radius: 0;
}
.testi-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.testi-hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--green-deep) 0%,
        rgba(7, 26, 15, 0.5) 15%,
        transparent 40%
    );
    z-index: 1;
    pointer-events: none;
}
/* ── Country flag + 3D card effect ── */
.testi-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.testi-flag-img {
    width: 22px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    display: block;
    flex-shrink: 0;
}

.testi-card {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 8px 20px rgba(19, 46, 30, 0.08),
        0 20px 40px rgba(19, 46, 30, 0.06);
    transform: translateY(0);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.testi-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(19, 46, 30, 0.14),
        0 30px 60px rgba(19, 46, 30, 0.1);
}

/* ── Final CTA section: force center alignment ── */
.mt-hero-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.mt-hero-inner .s-title,
.mt-hero-inner .hero-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.mt-hero-inner .hero-ctas {
    justify-content: center;
}

/* ── Responsive ── */

/* Laptop: keep side-by-side, reduce height */
@media (max-width: 1400px) {
    .testi-hero.hero {
        min-height: 560px;
    }
    .testi-hero .hero-grid {
        min-height: 560px;
    }
    .testi-hero-media {
        min-height: 560px;
    }
}

/* Tablet: stack image on top */
@media (max-width: 1100px) {
    .testi-wall {
        column-count: 2;
    }
    .testi-hero.hero {
        min-height: unset;
    }
    .testi-hero .hero-grid {
        grid-template-columns: 1fr;
        min-height: unset;
    }
    .testi-hero-media {
        min-height: 360px;
        height: 360px;
        order: -1;
    }
    .testi-hero-media::before {
        background: linear-gradient(
            180deg,
            transparent 40%,
            var(--green-deep) 96%
        );
    }
    .testi-hero .hero-inner {
        max-width: 100%;
        padding: 40px clamp(20px, 5vw, 60px) 50px;
    }
}

/* Testimonial wall: single column */
@media (max-width: 620px) {
    .testi-wall {
        column-count: 1;
    }
}

/* Mobile: shorter image, stacked stats, full-width button */
@media (max-width: 600px) {
    .testi-hero-media {
        min-height: 260px;
        height: 260px;
    }
    .testi-hero .hero-inner {
        padding: 32px 20px 40px;
    }
    .testi-hero .hero-stats-row {
        gap: 16px;
    }
    .testi-hero .hero-ctas .btn-lg-gold {
        width: 100%;
        justify-content: center;
    }
}
