/*
Theme Name: Landing Page Handara
Author: Carolina Lemos
Description: Versão Final Estabilizada - V2.0 (Com Pop-up)
Version: 2.1
*/

/* --- RESET BÁSICO E SEGURANÇA --- */
* { margin: 0; padding: 0; box-sizing: border-box; text-decoration: none; }
body { font-family: 'Belleza', sans-serif; line-height: 1.6; color: #333; background-color: #fcf8f3; }
img { max-width: 100%; height: auto; display: block; } /* Trava para imagens não explodirem */

/* --- VARIÁVEIS --- */
:root {
    --cor-destaque: #c95d3c;
    --cor-primaria: #333;
    --fonte-titulo: 'Playfair Display', serif;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 60px 0; width: 100%; display: block; }
.text-center { text-align: center; }

/* --- TÍTULOS --- */
.section-title {
    font-family: var(--fonte-titulo);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

/* --- BOTÕES --- */
.btn-novo {
    display: inline-block;
    background: linear-gradient(to right, #e09477, var(--cor-destaque));
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px; 
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(201, 93, 60, 0.4);
}
.btn-novo:hover { transform: translateY(-3px); }

/* --- HEADER --- */
.header { background: #fff; padding: 15px 0; position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--fonte-titulo); font-size: 1.5rem; font-weight: bold; color: #333; }
.nav-menu a { margin-left: 20px; color: #333; font-weight: 500; }

/* --- HERO (Topo) --- */
.hero-novo-design { padding-top: 140px; padding-bottom: 80px; }
.hero-container-grid { 
    display: flex !important; 
    align-items: center; 
    justify-content: space-between; 
    gap: 40px; 
}
.hero-content-novo { flex: 1; text-align: left; }
.tagline-principal { color: var(--cor-destaque); letter-spacing: 2px; font-weight: bold; margin-bottom: 10px; display: block;}
.titulo-principal-hero { 
    font-family: var(--fonte-titulo); 
    font-size: 3.5rem !important; /* Texto Grande */
    line-height: 1.1; 
    margin-bottom: 20px; 
    color: #333;
}
.descricao-hero { font-size: 1.2rem; color: #666; margin-bottom: 30px; max-width: 500px; }
.hero-imagem-fundo { 
    flex: 1; 
    max-width: 45%; 
    height: 500px; /* Altura fixa para não quebrar */
}
.hero-imagem-fundo img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 20px; 
}

/* --- DIFERENCIAIS --- */
.diferenciais-grid { display: flex; gap: 20px; margin-top: 30px; }
.card-diferencial { background: #fff; padding: 25px; border-radius: 10px; text-align: center; flex: 1; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* --- PRODUTOS --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: #fff; padding: 15px; border-radius: 10px; text-align: center; }
.product-card h3 { margin: 15px 0 10px; font-size: 1.2rem; }
.btn-produto { color: var(--cor-destaque); font-weight: bold; border: 1px solid var(--cor-destaque); padding: 8px 20px; border-radius: 20px; display: inline-block; }

/* --- DEPOIMENTOS (Prints lado a lado) --- */
.depoimentos-grid { 
    display: flex !important; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap; 
}
.depoimento-card { 
    flex: 0 0 320px; /* Trava a largura do print */
    max-width: 320px; 
    background: #fff; 
    padding: 10px; 
    border-radius: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
}

/* --- REVENDA / FÁBRICA --- */
.fabrica-info { 
    display: flex !important; 
    align-items: center; 
    gap: 50px; 
    background: #fff; 
    padding: 40px; 
    border-radius: 15px; 
}
.fabrica-imagem { flex: 1; max-width: 50%; }
.fabrica-imagem img { border-radius: 10px; }
.fabrica-texto { flex: 1; }
.fabrica-texto ul { list-style: none; margin-top: 20px; }
.fabrica-texto li { margin-bottom: 10px; font-weight: bold; }
.fabrica-texto li::before { content: "✓"; color: var(--cor-destaque); margin-right: 10px; }

/* --- CTA FINAL --- */
.cta-final { background: #333; color: #fff; text-align: center; padding: 80px 0; }
.cta-final h2 { color: #fff; margin-bottom: 30px; }

/* --- FOOTER --- */
.footer { background: #222; color: #bbb; text-align: center; padding: 30px 0; font-size: 0.9rem; }

/* --- MOBILE (CELULAR) --- */
@media (max-width: 900px) {
    .hero-container-grid, .diferenciais-grid, .fabrica-info { flex-direction: column; text-align: center; }
    .hero-content-novo, .hero-imagem-fundo, .fabrica-imagem { max-width: 100%; }
    .hero-imagem-fundo { height: 350px; margin-top: 30px; }
    .titulo-principal-hero { font-size: 2.5rem !important; }
    .depoimentos-grid { flex-direction: column; align-items: center; }
    .nav-menu { display: none; } 
}

/* --- POP-UP HANDARA (CORREÇÃO MOBILE FINAL) --- */
.popup-overlay {
    display: none; /* O JavaScript muda isso para FLEX */
    position: fixed !important; /* OBRIGA a ficar fixo na tela */
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important; /* Largura total da viewport */
    height: 100vh !important; /* Altura total da viewport */
    background: rgba(0, 0, 0, 0.7); /* Fundo escuro */
    z-index: 999999 !important; /* Fica na frente de TUDO */
    
    /* Centralização perfeita */
    justify-content: center;
    align-items: center;
    padding: 20px; /* Margem de segurança nas bordas do celular */
    margin: 0;
}

.popup-content {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    width: 100%;
    max-width: 400px; /* Tamanho ideal para leitura */
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border: none; /* Removi a borda laranja para ficar igual a foto 1 */
    
    /* Garante que não estoure a tela em celulares muito pequenos */
    max-height: 90vh;
    overflow-y: auto; 
}

/* Botão X de fechar */
.fechar-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.fechar-popup:hover {
    color: #c95d3c;
}

/* --- ESTILOS DO CONTEÚDO --- */
.popup-content h3 {
    /* Estilos inline no HTML garantem a prioridade, 
       mas aqui reforçamos caso precise */
    font-family: 'Playfair Display', serif;
}

/* Botão Laranja Degradê igual da imagem */
.popup-content .btn-novo {
    background: linear-gradient(to right, #e09477, #c95d3c);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(201, 93, 60, 0.4);
    border: none;
    transition: transform 0.2s;
}

.popup-content .btn-novo:active {
    transform: scale(0.98);
}