/* style.css - VERSÃO 1000% MELHORADA */

/* FONTES E VARIÁVEIS GLOBAIS */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

:root {
    --cor-primaria: #D32F2F; 
    --cor-primaria-escura: #B71C1C; 
    --cor-secundaria: #212121;
    --cor-fundo: #FFFFFF;
    --cor-fundo-secao: #f8f9fa;
    --cor-texto: #424242;
    --gradiente-vermelho: linear-gradient(135deg, var(--cor-primaria), var(--cor-primaria-escura));
    --shadow-leve: 0 8px 16px rgba(0,0,0,0.05);
    --shadow-media: 0 12px 24px rgba(0,0,0,0.1);
    --shadow-forte: 0 16px 32px rgba(0,0,0,0.15);
}

/* RESET E ESTILOS DE BASE */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--cor-fundo); color: var(--cor-texto); line-height: 1.7; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }

/* BARRA DE ROLAGEM CUSTOMIZADA */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--cor-primaria); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--cor-primaria-escura); }

/* CABEÇALHO E TÍTULOS */
h1, h2, h3 { color: var(--cor-secundaria); font-weight: 900; }
h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradiente-vermelho);
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

/* BOTÕES ESTILIZADOS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-primary {
    background-image: var(--gradiente-vermelho);
    background-size: 200% auto;
    color: var(--cor-fundo);
    box-shadow: var(--shadow-media);
}
.btn-primary:hover {
    background-position: right center;
    transform: translateY(-5px);
    box-shadow: var(--shadow-forte);
}
.btn-secondary {
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
}
.btn-secondary:hover {
    background: var(--gradiente-vermelho);
    color: var(--cor-fundo);
    border-color: var(--cor-primaria-escura);
    transform: scale(1.05);
}

/* ANIMAÇÃO DE SCROLL */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}


.videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 50px; }
.video-item { border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.3s ease; }
.video-item:hover { transform: scale(1.05); }
.video-item iframe { width: 100%; height: 315px; border: none; }


/* --- ESTILOS DAS SEÇÕES --- */

/* WHATSAPP FLUTUANTE */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-image: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: pulse 1.5s infinite;
    transition: transform 0.3s ease;
    text-decoration: none; /* <<< ADICIONE APENAS ESTA LINHA */
}
.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
    animation: none;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}


/* HEADER */
.header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-leve);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; }
.header-contact { display: flex; align-items: center; font-size: 1.2rem; font-weight: 700; color: var(--cor-secundaria); }
.header-contact i { color: var(--cor-primaria); margin-right: 10px; font-size: 1.6rem; }

main > section { padding: 100px 0; }
main > section:nth-child(odd) { background-color: var(--cor-fundo-secao); }


/* BANNER - CÓDIGO CORRIGIDO */
.banner {
    position: relative; /* Necessário para o efeito parallax */
    text-align: center;
    color: #fff; /* Define a cor padrão do texto para branco */
    
    /* Adiciona a imagem de fundo com um filtro escuro por cima */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/banner.jpg');
    
    /* Garante que a imagem cubra toda a área */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* Efeito Parallax: a imagem fica fixa enquanto a página rola */
    background-attachment: fixed; 
}

/* Garante que o H1 e o P fiquem brancos e legíveis */
.banner h1, .banner p {
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); /* Sombra para destacar o texto */
}

.banner h1 {
    font-size: 3.8rem;
}

.banner p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Ajuste no botão secundário para ter contraste com o fundo escuro */
.banner .btn-secondary {
    border-color: #fff;
    color: #fff;
}

.banner .btn-secondary:hover {
    background-color: #fff !important; /* Força o fundo a ser BRANCO */
    color: #fff !important;      /* Força o texto a ser VERMELHO */
}

.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* AJUSTE FINAL PARA OS BOTÕES DO BANNER NO MOBILE */
@media (max-width: 768px) {
    .banner .btn {
        /* Diminui o espaçamento interno dos botões */
        padding: 12px 24px;
        /* Diminui o tamanho da fonte dos botões */
        font-size: 0.9rem;
    }

    /* Bônus: Reduz o espaço entre os botões */
    .banner-buttons {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* Geralmente o padding em seções é menor no mobile */
    main > section { padding: 60px 0; }

    /* Ajuste para o banner */
    .banner {
        background-attachment: scroll; /* Desativa o parallax no mobile para melhor performance */
        background-position: right center; /* Move o fundo para a direita no mobile */
    }
    .banner h1 { font-size: 2.5rem; }
    .banner p { font-size: 1.1rem; margin-bottom: 30px; }
    .banner-buttons { flex-direction: column; gap: 15px; }
    .banner .btn { padding: 12px 24px; font-size: 0.9rem; }

    /* Outros ajustes que já existiam e foram mantidos ou aprimorados */
    h2 { font-size: 2.2rem; margin-bottom: 40px; }
    .processo-timeline::before { display: none; } /* Linha da timeline pode ser removida no mobile */
    .footer-bottom { flex-direction: column; justify-content: center; }
}

/* DIFERENCIAIS */
.diferenciais-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.diferencial-item { text-align: center; padding: 20px; }
.icon-wrapper {
    background-image: var(--gradiente-vermelho);
    color: white;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}
.diferencial-item:hover .icon-wrapper {
    transform: rotate(15deg) scale(1.15) translateY(-10px);
    box-shadow: 0 15px 30px rgba(183, 28, 28, 0.5);
}
.diferencial-item h3 { margin-bottom: 10px; font-size: 1.4rem; }

/* NOVA SEÇÃO: STATS */
.stats { background: var(--gradiente-vermelho); color: white; }
.stats h2, .stats h3, .stats p { color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.stat-item { text-align: center; }
.stat-item i { font-size: 3rem; margin-bottom: 15px; }
.stat-item h3 { font-size: 3.5rem; }
.stat-item p { font-size: 1.1rem; opacity: 0.9; }

/* SERVIÇOS */
.servicos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.servico-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-media);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.servico-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-forte);
}
.servico-card img { width: 100%; height: 220px; object-fit: cover; }
.servico-card-content { padding: 25px; }
.servico-card h3 { margin-bottom: 15px; }
.servico-card ul { list-style: none; }
.servico-card ul li { margin-bottom: 10px; }
.servico-card ul i { color: var(--cor-primaria); margin-right: 12px; }

/* NOVA SEÇÃO: PROCESSO */
.processo-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}
.processo-timeline::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: #e0e0e0;
    z-index: -1;
}
.timeline-item { text-align: center; }
.timeline-icon {
    width: 90px;
    height: 90px;
    background: white;
    border: 4px solid var(--cor-primaria);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--cor-primaria);
    transition: all 0.4s ease;
}
.timeline-item:hover .timeline-icon {
    background: var(--cor-primaria);
    color: white;
    transform: scale(1.1);
}
.timeline-item h3 { margin-bottom: 10px; }

/* GALERIA CORRIGIDA E ESTILIZADA */
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-media);
    aspect-ratio: 4 / 3; /* Proporção fixa para todas as imagens */
}
.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
    transition: transform 0.5s ease;
}
.galeria-item .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(211, 47, 47, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.galeria-item:hover img { transform: scale(1.15); }
.galeria-item:hover .overlay { opacity: 1; transform: scale(1); }

/* DEPOIMENTOS CARROSSEL */
.depoimentos .swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}
.depoimentos .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 350px;
}
.depoimento {
    background: white;
    padding: 35px;
    border-radius: 15px;
    border-top: 5px solid;
    border-image: var(--gradiente-vermelho) 1;
    box-shadow: var(--shadow-media);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.depoimento:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-forte);
}
.depoimento .stars { color: #FFC107; font-size: 1.2rem; margin-bottom: 15px; }
.depoimento p { font-style: italic; margin-bottom: 20px; }
.depoimento h4 { font-weight: 700; color: var(--cor-secundaria); }

/* Estilização dos controles do Swiper */
.swiper-button-next, .swiper-button-prev {
    color: var(--cor-primaria) !important;
}
.swiper-pagination-bullet-active {
    background: var(--cor-primaria) !important;
}

/* BAIRROS */
.bairros-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.tag {
    background-color: #e0e0e0;
    color: var(--cor-texto);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ccc;
    font-weight: 500;
}
.tag:hover {
    background: var(--gradiente-vermelho);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* FAQ */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid #e0e0e0; }
.accordion-header {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 25px 20px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    color: var(--cor-secundaria);
    transition: color 0.3s ease;
}
.accordion-header:hover { color: var(--cor-primaria); }
.accordion-header::after {
    content: '\2b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    transition: transform 0.4s ease, color 0.3s ease;
    color: var(--cor-primaria);
}
.accordion-header.active::after { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #f0f0f0; }
.accordion-content p { padding: 25px; }

/* CTA FINAL */
.cta-final { background-image: var(--gradiente-vermelho); color: white; text-align: center; }
.cta-final h2, .cta-final p { color: white; }
.cta-final p { font-size: 1.2rem; margin-top: -10px; margin-bottom: 30px; }
.btn-whatsapp-cta {
    background-color: #fff;
    color: var(--cor-primaria);
    padding: 18px 40px;
    font-size: 1.3rem;
    box-shadow: var(--shadow-forte);
}
.btn-whatsapp-cta:hover {
    background-color: #25D366;
    color: white;
    transform: scale(1.05) translateY(-5px);
}
.btn-whatsapp-cta i { margin-right: 15px; }

/* RODAPÉ CORRIGIDO - DESIGN SÓLIDO E PROFISSIONAL */

/* ESTRUTURA GERAL DO FOOTER */
.footer {
    background-color: var(--cor-secundaria);
    color: #ccc;
    padding-top: 80px; /* Espaçamento interno superior */
    /* Adiciona uma borda superior vermelha para uma separação limpa */
    border-top: 5px solid var(--cor-primaria);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

.footer-col .footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col p {
    margin-bottom: 20px;
}

/* TÍTULOS DAS COLUNAS */
.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--gradiente-vermelho);
}

/* LISTAS DE LINKS (BOTÕES) */
.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}
/* Garante que o ícone e o texto fiquem alinhados */
.footer-col ul li p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

/* EFEITO HOVER NOS LINKS/BOTÕES */
.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline; /* Corrige o bug do botão esticado */
}

.footer-col a:hover {
    color: var(--cor-primaria);
}

/* ÍCONES DE REDES SOCIAIS */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--cor-secundaria);
    background-color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    box-shadow: var(--shadow-media);
}

.social-icons a:hover {
    background-image: var(--gradiente-vermelho);
    color: #fff;
    transform: translateY(-5px) scale(1.1);
}

/* BARRA INFERIOR DO RODAPÉ */
.footer-bottom {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid #444;
}

