/* Custom CSS */

/* ==================================================
   HERO SLIDESHOW | fundo com troca de imagens em fade
   + efeito de zoom lento (Ken Burns)
================================================== */

.hero-section {
    background-color: #1a1a1a; /* cor de fallback enquanto a 1ª imagem carrega */
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;      /* imagem sempre cobre a área, qualquer dimensão/proporção */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    animation: heroKenBurns 9s ease-in-out forwards;
    will-change: transform, opacity;
}

.hero-slide.active {
    opacity: 1;
}

/* Alterna a direção do zoom a cada imagem para não ficar repetitivo */
.hero-slide:nth-child(even) {
    animation-name: heroKenBurnsAlt;
}

@keyframes heroKenBurns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes heroKenBurnsAlt {
    0%   { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Camada escura sobre as imagens para o texto branco continuar legível */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Respeita quem prefere menos animação */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        animation: none !important;
    }
}

/* ==================================================
   DEPOIMENTOS | grade de avaliações (estilo Trustindex)
   Os cards recebem PRINTS/FOTOS das avaliações reais
================================================== */

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .testimonials-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.25rem;
        padding-bottom: .5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .testimonials-track::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.testimonial-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.testimonial-stars {
    color: #FBBC05; /* dourado padrão Google */
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.testimonial-google-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
}

.testimonial-google-badge i {
    color: #4285F4;
}

.testimonial-image-wrap {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    cursor: zoom-in;
    background: #fafafa;
}

.testimonial-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.testimonial-image-wrap:hover img {
    transform: scale(1.04);
}

.testimonial-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #065f46;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.testimonial-nav-btn:hover {
    background: #065f46;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (min-width: 769px) {
    #testimonials-nav {
        display: none; /* setas só fazem sentido no carrossel do celular */
    }
}

/* Lightbox: abre a imagem do depoimento em tamanho grande */
.testimonial-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 9999;
}

.testimonial-lightbox.open {
    display: flex;
}

.testimonial-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 0.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.testimonial-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
}

.testimonial-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
        
        .project-card {
            transition: all 0.3s ease;
        }
        
        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        .nav-link {
            position: relative;
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -2px;
            left: 0;
            background-color: #d4af37;
            transition: width 0.3s ease;
        }
        
        .nav-link:hover::after {
            width: 100%;
        }
        
        .active::after {
            width: 100%;
        }
        
        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }
        .text-amber-600 {
            font-style: italic;
        }
        
        /* ==================================================
   PRELOADER | Daiana Turati Arquitetura
================================================== */

.preloader{
    position:fixed;
    inset:0;
    width:100%;
    height:100vh;
    background:#ffffff;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
    transition:opacity .8s ease, visibility .8s ease;
}

.preloader.hide{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

.preloader-content{
    text-align:center;
}

.preloader-logo{
    width:180px;
    max-width:60vw;
    opacity:0;
    transform:translateY(15px);
    animation:logoFade .8s ease forwards;
}

.preloader-title{
    margin-top:30px;
    font-size:2rem;
    font-weight:300;
    letter-spacing:10px;
    color:#2b2b2b;
    text-transform:uppercase;

    opacity:0;
    transform:translateY(15px);
    animation:textFade .8s ease forwards;
    animation-delay:.45s;
}

.preloader-subtitle{

    margin-top:12px;

    font-size:.95rem;

    letter-spacing:8px;

    color:#8b8b8b;

    text-transform:uppercase;

    opacity:0;

    transform:translateY(15px);

    animation:textFade .8s ease forwards;

    animation-delay:.75s;

}

.preloader-line{

    width:0;

    height:1px;

    background:#C6A15B;

    margin:32px auto 0;

    animation:lineGrow .9s ease forwards;

    animation-delay:1.1s;

}

@keyframes logoFade{

    from{

        opacity:0;

        transform:translateY(15px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

@keyframes textFade{

    from{

        opacity:0;

        transform:translateY(15px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

@keyframes lineGrow{

    from{

        width:0;

        opacity:0;

    }

    to{

        width:140px;

        opacity:1;

    }

}

/* Botão WhatsApp fixo canto inferior esquerdo */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25D366; /* verde WhatsApp */
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-divider{
    width:500px;
    height:2px;
    margin:0 auto;
    margin-top:4rem;
    margin-bottom:4rem;

    background:linear-gradient(
        90deg,
        transparent,
        #d4af37,
        transparent
    );

    opacity:.8;
}

/* Celular */
@media (max-width:768px){

    .section-divider{
        max-width:250px;
        margin:40px auto;
        gap:12px;
    }

    .section-divider span{
        width:7px;
        height:7px;
    }
}

/* Efeito sutil ao passar o mouse */
.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Footer quick menu */
.footer-quick-menu a {
    font-size: 1rem;
    text-decoration: none;
}

.footer-quick-menu a:hover {
    color: #FFBF00; /* âmbar/dourado */
}