/* ============================================
   JOCRA TESTIMONIALS PAGE
   ============================================ */

.testimonials-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--jocra-light, #F0F2F5);
    overflow-x: clip;
}

.container-xl {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================
   HERO
   ============================================ */

.testi-hero {
    position: relative;
    padding: 80px 0 48px;
    background: var(--jocra-dark, #0F1419);
    overflow: hidden;
}

.testi-hero .bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    pointer-events: none;
}

.testi-hero .bg-glow {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(230, 57, 70, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--jocra-red, #E63946);
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
    text-wrap: balance;
}

.hero-title .highlight {
    color: var(--jocra-red, #E63946);
}

.hero-subtitle {
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
    color: rgba(255,255,255,0.65);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.1);
}

/* ============================================
   TESTIMONIALS GRID
   ============================================ */

.testimonials-section {
    padding: 48px 0 64px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.testi-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px 24px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.testi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(45, 90, 61, 0.1);
}

.card-quote {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 28px;
    color: rgba(45, 90, 61, 0.08);
    line-height: 1;
}

.card-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.card-stars i {
    font-size: 13px;
    color: #F59E0B;
}

.card-message {
    margin: 0 0 24px;
    padding: 0;
    border: none;
    flex: 1;
}

.card-message p:first-child::before {
    content: open-quote;
}

.card-message p:last-child::after {
    content: close-quote;
}

.card-message p {
    quotes: '\201C' '\201D';
}

.card-message p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--jocra-gray, #6B7280);
    margin: 0;
    font-style: italic;
}

/* ---- Card Footer ---- */
.card-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.card-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

/* Text Avatar */
.text-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--jocra-green, #2D5A3D) 0%, #1e3d2a 100%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(45, 90, 61, 0.25);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.author-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--jocra-dark, #0F1419);
    line-height: 1.3;
}

.author-role {
    font-size: 13px;
    color: var(--jocra-gray, #6B7280);
    line-height: 1.3;
}

/* ---- Contact Strip ---- */
.author-contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
}

.contact-chip .chip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.contact-chip .chip-icon i {
    font-size: 11px;
}

.contact-chip .chip-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.email-chip {
    background: rgba(59, 130, 246, 0.08);
    color: #2563EB;
    border-color: rgba(59, 130, 246, 0.15);
}

.email-chip:hover {
    background: #2563EB;
    color: #fff;
    border-color: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.whatsapp-chip {
    background: rgba(37, 211, 102, 0.08);
    color: #16a34a;
    border-color: rgba(37, 211, 102, 0.15);
}

.whatsapp-chip:hover {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

/* Empty State */
.testimonials-empty {
    text-align: center;
    padding: 80px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    width: 72px;
    height: 72px;
    background: rgba(0,0,0,0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--jocra-gray, #6B7280);
    font-size: 24px;
}

.testimonials-empty h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--jocra-dark, #0F1419);
    margin-bottom: 8px;
}

.testimonials-empty p {
    font-size: 0.9375rem;
    color: var(--jocra-gray, #6B7280);
    margin: 0;
}

/* ============================================
   TRUST BADGES
   ============================================ */

.trust-badges {
    padding: 0 0 64px;
    background: var(--jocra-light, #F0F2F5);
}

.badges-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 16px;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 12px rgba(0,0,0,0.02);
}

.badge-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(45, 90, 61, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jocra-green, #2D5A3D);
    font-size: 20px;
}

.badge-item span {
    font-size: 13px;
    font-weight: 700;
    color: var(--jocra-dark, #0F1419);
    line-height: 1.3;
}

/* ============================================
   CTA
   ============================================ */

.testi-cta {
    padding: 0 0 64px;
}

.cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 24px;
    background: var(--jocra-dark, #0F1419);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.cta-content p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1.5;
    text-wrap: pretty;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px;
    width: 100%;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--jocra-red, #E63946);
    color: #fff;
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.25);
}

.btn-primary i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

.btn-secondary i {
    font-size: 14px;
    color: var(--jocra-green-light, #4A7C59);
}

/* ============================================
   REVEAL
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   TABLET (577px+)
   ============================================ */

@media (min-width: 577px) {
    .container-xl {
        padding: 0 24px;
    }

    .testi-hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        gap: 16px 40px;
    }

    .stat-num {
        font-size: 2rem;
    }

    .testimonials-section {
        padding: 64px 0 80px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .testi-card {
        padding: 32px 28px 28px;
    }

    .contact-chip .chip-text {
        max-width: 200px;
    }

    .badges-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .badge-item {
        padding: 28px 20px;
    }

    .cta-box {
        padding: 40px 32px;
    }

    .cta-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        width: auto;
    }

    .btn-primary,
    .btn-secondary {
        width: auto;
        min-width: 180px;
    }
}

/* ============================================
   DESKTOP (1025px+)
   ============================================ */

@media (min-width: 1025px) {
    .container-xl {
        padding: 0 32px;
    }

    .testi-hero {
        padding: 120px 0 80px;
    }

    .hero-stats {
        gap: 16px 56px;
    }

    .stat-num {
        font-size: 2.25rem;
    }

    .testimonials-section {
        padding: 80px 0 100px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .testi-card {
        padding: 36px 32px 32px;
    }

    .card-quote {
        font-size: 32px;
        top: 24px;
        right: 28px;
    }

    .card-message p {
        font-size: 1rem;
    }

    .author-avatar {
        width: 52px;
        height: 52px;
    }

    .text-avatar {
        font-size: 16px;
    }

    .contact-chip {
        padding: 8px 14px;
        font-size: 13px;
    }

    .contact-chip .chip-icon {
        width: 20px;
        height: 20px;
    }

    .contact-chip .chip-icon i {
        font-size: 12px;
    }

    .contact-chip .chip-text {
        max-width: none;
    }

    .trust-badges {
        padding: 0 0 80px;
    }

    .badges-row {
        gap: 20px;
    }

    .badge-item {
        padding: 32px 24px;
    }

    .badge-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .badge-item span {
        font-size: 14px;
    }

    .cta-box {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 48px 64px;
        gap: 48px;
    }

    .cta-content {
        text-align: left;
        flex: 1;
    }

    .cta-actions {
        flex-shrink: 0;
        flex-wrap: nowrap;
    }

    .btn-primary:hover {
        background: var(--jocra-red-dark, #C1121F);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(230, 57, 70, 0.35);
    }

    .btn-primary:hover i {
        transform: translateX(4px);
    }

    .btn-secondary:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.25);
    }

    .testi-card:hover .card-quote {
        color: rgba(45, 90, 61, 0.15);
    }
}

/* ============================================
   SMALL MOBILE (under 360px)
   ============================================ */

@media (max-width: 359px) {
    .testi-card {
        padding: 24px 18px 20px;
    }

    .author-contact-strip {
        flex-direction: column;
    }

    .contact-chip {
        width: 100%;
        justify-content: center;
    }

    .contact-chip .chip-text {
        max-width: none;
    }
}

/* ============================================
   TOUCH / REDUCED MOTION
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    .testi-card:active {
        transform: scale(0.995);
    }

    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.96);
    }

    .badge-item:active {
        transform: scale(0.98);
    }

    .contact-chip:active {
        transform: scale(0.97);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---- Testimonial Topic/Case Badge ---- */
.testi-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--jocra-red, #dc2626);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    display: inline-block;
    background: rgba(220, 38, 38, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    line-height: 1.4;
    width: fit-content;
    max-width: calc(100% - 45px);
}