/* =============================================
   ARC GALLERY - Seção de Depoimentos em Arco
   Inspirado em scroll-morph-hero (versão GSAP)
   ============================================= */

.arc-gallery-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    padding: 60px 0 100px;
}

/* Header da seção */
.arc-gallery-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.arc-gallery-header h2 {
    font-family: "Brandon Grotesque", brandon-grotesque, "Open Sans", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #007c8c;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.arc-gallery-header p {
    font-family: "Open Sans", sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Container do arco */
.arc-container {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    perspective: 1000px;
}

/* Cards do arco */
.arc-card {
    position: absolute;
    width: 100px;
    height: 140px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, z-index 0s;
}

.arc-card:hover {
    z-index: 100 !important;
}

.arc-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.arc-card:hover .arc-card-inner {
    transform: rotateY(180deg) scale(1.15);
}

/* Frente do card */
.arc-card-front {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.arc-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arc-card-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.3) 100%);
    transition: opacity 0.3s;
}

.arc-card:hover .arc-card-front::after {
    opacity: 0;
}

/* Nome no card frontal */
.arc-card-name {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    z-index: 2;
}

/* Verso do card */
.arc-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #007c8c 0%, #005a66 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.arc-card-back-quote {
    font-family: "Open Sans", sans-serif;
    font-size: 9px;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 8px;
    opacity: 0.95;
}

.arc-card-back-author {
    font-family: "Open Sans", sans-serif;
    font-size: 8px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.arc-card-back-country {
    font-size: 10px;
    margin-top: 4px;
}

/* CTA abaixo do arco */
.arc-gallery-cta {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */

@media (max-width: 1200px) {
    .arc-card {
        width: 85px;
        height: 120px;
    }
    
    .arc-container {
        height: 400px;
    }
}

@media (max-width: 991px) {
    .arc-gallery-section {
        min-height: 600px;
        padding: 50px 0 80px;
    }
    
    .arc-container {
        height: 350px;
    }
    
    .arc-card {
        width: 70px;
        height: 100px;
    }
    
    .arc-card-name {
        font-size: 9px;
        bottom: 5px;
    }
    
    .arc-card-back {
        padding: 8px;
    }
    
    .arc-card-back-quote {
        font-size: 8px;
    }
    
    .arc-card-back-author {
        font-size: 7px;
    }
}

@media (max-width: 768px) {
    .arc-gallery-section {
        min-height: 550px;
        padding: 40px 0 60px;
    }
    
    .arc-container {
        height: 320px;
    }
    
    .arc-card {
        width: 60px;
        height: 85px;
    }
    
    .arc-card-back-quote {
        font-size: 7px;
        line-height: 1.3;
    }
    
    .arc-card-back-author,
    .arc-card-back-country {
        font-size: 6px;
    }
}

@media (max-width: 480px) {
    .arc-gallery-section {
        min-height: 500px;
    }
    
    .arc-container {
        height: 280px;
    }
    
    .arc-card {
        width: 50px;
        height: 70px;
    }
    
    .arc-card-name {
        font-size: 7px;
        bottom: 3px;
    }
    
    .arc-card-back {
        padding: 6px;
    }
    
    .arc-card-back-quote {
        font-size: 6px;
        margin-bottom: 4px;
    }
}

/* =============================================
   ANIMAÇÕES
   ============================================= */

@keyframes arcFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.arc-card {
    animation: arcFloat 4s ease-in-out infinite;
}

/* Delay diferente para cada card criar efeito de onda */
.arc-card:nth-child(1) { animation-delay: 0s; }
.arc-card:nth-child(2) { animation-delay: 0.2s; }
.arc-card:nth-child(3) { animation-delay: 0.4s; }
.arc-card:nth-child(4) { animation-delay: 0.6s; }
.arc-card:nth-child(5) { animation-delay: 0.8s; }
.arc-card:nth-child(6) { animation-delay: 1s; }
.arc-card:nth-child(7) { animation-delay: 1.2s; }
.arc-card:nth-child(8) { animation-delay: 1.4s; }
.arc-card:nth-child(9) { animation-delay: 1.6s; }
.arc-card:nth-child(10) { animation-delay: 1.8s; }
.arc-card:nth-child(11) { animation-delay: 2s; }
.arc-card:nth-child(12) { animation-delay: 2.2s; }
.arc-card:nth-child(13) { animation-delay: 2.4s; }
.arc-card:nth-child(14) { animation-delay: 2.6s; }
.arc-card:nth-child(15) { animation-delay: 2.8s; }

/* Animação de entrada inicial */
.arc-card {
    opacity: 0;
    transform: translateY(100px) scale(0.5);
}

.arc-card.animated {
    opacity: 1;
}
