/*
Theme Name: Meu Tema Crescimento
Description: Estilos principais do tema - Imagens prolongam-se pelo rodapé
Version: 2.2
*/

/* ========== RESET E CONFIGURAÇÕES GLOBAIS ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* ========== PÁGINA DE CRESCIMENTO - SEM RODAPÉ ========== */
.pagina-crescimento {
    position: relative;
    width: 100%;
    height: 100vh; /* Altura total da viewport */
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 1;
}

/* ========== CARROSSEL DE IMAGENS - PROLONGA-SE ========== */
.carrossel-container {
    position: fixed; /* Fixo para prolongar por toda a página */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Altura total da viewport */
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.carrossel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Altura total */
    min-height: 100vh;
    max-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
    /* Garantir que a imagem cubra todo o espaço */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

/* ========== OVERLAY - PROLONGA-SE ========== */
.overlay {
    position: fixed; /* Fixo para acompanhar as imagens */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
}

/* ========== CONTEÚDO CENTRAL - FIXO ========== */
.conteudo-central {
    position: fixed; /* Fixo para ficar visível com scroll */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: white;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    pointer-events: none;
}

.conteudo-central * {
    pointer-events: auto;
}

/* ========== INDICADORES DO CARROSSEL - FIXOS ========== */
.indicadores-carrossel {
    position: fixed;
    bottom: 120px; /* Acima do rodapé */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
}

/* ========== SETAS DE NAVEGAÇÃO - FIXAS ========== */
.seta-carrossel {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.seta-esquerda {
    left: 20px;
}

.seta-direita {
    right: 20px;
}

/* ========== POPUP - FIXO ========== */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========== RODAPÉ - SOBREPOSTO ÀS IMAGENS ========== */
.rodape {
    background-color: rgba(26, 26, 26, 0.9); /* Fundo semi-transparente */
    color: #ffffff;
    padding: 50px 0 20px;
    position: relative;
    width: 100%;
    border-top: 3px solid #007bff;
    z-index: 10;
    margin-top: 0;
    /* Garantir que o rodapé fique sobre as imagens */
    backdrop-filter: blur(5px); /* Efeito de desfoque no fundo */
    -webkit-backdrop-filter: blur(5px);
}

/* Efeito de vidro no rodapé */
.rodape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.container-rodape {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* Links e textos do rodapé com melhor contraste */
.rodape a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.rodape a:hover {
    color: #007bff;
}

.rodape h3 {
    color: #007bff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.rodape p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========== MEDIA QUERIES ========== */

/* Tablets */
@media (max-width: 992px) {
    .container-rodape {
        gap: 30px;
    }
    
    .indicadores-carrossel {
        bottom: 100px;
    }
}

/* Dispositivos móveis */
@media (max-width: 768px) {
    .container-rodape {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .rodape h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .mensagem-principal {
        font-size: 2rem;
    }
    
    .seta-carrossel {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .seta-esquerda {
        left: 10px;
    }
    
    .seta-direita {
        right: 10px;
    }
    
    .indicadores-carrossel {
        bottom: 90px;
    }
}

/* Dispositivos muito pequenos */
@media (max-width: 480px) {
    .mensagem-principal {
        font-size: 1.5rem;
    }
    
    .indicadores-carrossel {
        bottom: 80px;
    }
    
    .rodape {
        padding: 30px 0 15px;
    }
    
    .container-rodape {
        padding: 0 15px;
    }
}

/* Suporte para viewport dinâmica */
@supports (height: 100dvh) {
    .pagina-crescimento,
    .carrossel-container,
    .carrossel-slide,
    .overlay {
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
    }
}

/* ========== ANIMAÇÕES ========== */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========== FORMULÁRIO (manter igual) ========== */
.campo-formulario {
    margin-bottom: 20px;
}

.campo-formulario label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.campo-formulario input,
.campo-formulario textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.campo-formulario input:focus,
.campo-formulario textarea:focus {
    outline: none;
    border-color: #007bff;
}

.botao-enviar {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.botao-enviar:hover {
    background-color: #218838;
}

.mensagem-sucesso {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
}

.mensagem-erro {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
}

/* ========== COPYRIGHT ========== */
.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}