/* Variáveis de Cores */
:root {
    --primary-green: #047857;
    --accent-teal: #0f766e;
    --accent-orange: #d97706;
    --text-white: #ffffff;
    --text-gray: #e5e7eb;
    --overlay-color: rgba(2, 44, 34, 0.9); /* Mais escuro para legibilidade mobile */
    --modal-bg: #ffffff;
    --text-dark: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove flash azul no toque em mobile */
}

body {
    font-family: 'Montserrat', sans-serif;
    /* Alterado de height: 100vh para min-height para permitir rolagem em telas pequenas */
    min-height: 100vh; 
    width: 100%;
    overflow-x: hidden; /* Previne rolagem horizontal acidental */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #022c22;
    color: var(--text-white);
    position: relative;
}

/* --- SLIDESHOW DE FUNDO --- */
.slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 10s ease;
    transform: scale(1);
    will-change: opacity, transform; /* Otimização de performance */
}

.bg-image.active {
    opacity: 1;
    transform: scale(1.1);
}

/* Máscara Escura */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(4, 120, 87, 0.8), #022c22);
    z-index: -1;
    backdrop-filter: blur(4px);
}

/* --- CONTAINER PRINCIPAL --- */
.container {
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 2rem 1.5rem; /* Padding lateral seguro */
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh; /* Garante centralização vertical */
}

/* --- LOGO --- */
.logo-area {
    margin-bottom: 2rem;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background-color: var(--primary-green);
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 25px rgba(4, 120, 87, 0.6);
}

.logo-text {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

/* --- TIPOGRAFIA FLUIDA --- */
h1.main-title {
    font-family: 'Roboto Slab', serif;
    /* Clamp ajusta o tamanho entre 2rem e 3.5rem dependendo da tela */
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    color: #34d399;
    display: inline-block; /* Evita quebra de linha no meio da palavra */
}

h2.sub-title {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 300;
    color: var(--text-gray);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 3rem;
    color: #d1fae5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- ANIMAÇÃO "CAMINHO" (STEPS) --- */
.path-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    gap: 8px; /* Gap menor para mobile */
}

.step {
    width: 35px; /* Levemente menor para caber em telas estreitas */
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    transition: all 0.5s ease;
    border: 2px solid transparent;
}

.step.active {
    background-color: var(--primary-green);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-green);
    border-color: #34d399;
}

.connector {
    width: 20px; /* Conector menor para mobile */
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.5s ease;
}

.connector.active {
    background-color: #34d399;
}

.loading-text {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

/* --- BOTÕES RESPONSIVOS --- */
.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Permite que botões caiam para linha de baixo */
    width: 100%;
}

.btn, button.btn-email {
    text-decoration: none;
    padding: 16px 32px; /* Área de toque maior */
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: inherit;
    width: 100%; /* Ocupa largura total no mobile */
    max-width: 300px; /* Limite em desktop */
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    border: none;
}

.btn-whatsapp:active {
    transform: scale(0.98);
}

.btn-email {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-email:active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- FOOTER --- */
.footer {
    margin-top: auto; /* Empurra footer para o final */
    padding-top: 3rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    padding-bottom: 1rem;
}

.verse {
    font-style: italic;
    margin-top: 5px;
    color: var(--accent-orange);
}

/* --- MODAL RESPONSIVO --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center; /* Centraliza verticalmente */
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem; /* Espaço nas bordas em mobile */
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background-color: var(--modal-bg);
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    color: var(--text-dark);
    text-align: left;
    
    /* Configuração crítica para mobile: */
    max-height: 90vh; /* Máximo 90% da altura da tela */
    overflow-y: auto; /* Permite rolar DENTRO do modal se for muito alto */
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header h3 {
    color: var(--primary-green);
    font-family: 'Roboto Slab', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Inputs otimizados para toque */
.input-group input, 
.input-group select {
    width: 100%;
    padding: 14px; /* Mais alto para facilitar toque */
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px; /* Tamanho 16px previne zoom automático no iOS */
    background-color: #f9fafb;
    -webkit-appearance: none; /* Estilo nativo removido para consistência */
}

.input-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    box-shadow: 0 4px 6px -1px rgba(4, 120, 87, 0.2);
}

.btn-submit:active {
    background-color: #064e3b;
    transform: scale(0.98);
}

/* Animações */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Media Queries para Telas Muito Pequenas */
@media (max-width: 380px) {
    .step { width: 30px; height: 30px; font-size: 0.8rem; }
    .connector { width: 15px; }
    h1.main-title { font-size: 1.8rem; }
    .container { padding: 1rem; }
}