/* ==========================================================================
   CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================================================== */

:root {
    --cor-primaria: #ff5e1a;
    --cor-fundo: #111;
    --cor-fundo-card: #1e1e1e;
    --cor-texto: #f5f5f5;
    --cor-texto-muted: #aaa; /* Definido para compatibilidade */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    background: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
}

/* Utilitários */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.secao {
    padding: 80px 0;
    position: relative;
    border: none;
}

.fundo-claro {
    background: #1b1b1b;
}

.titulo-central {
    text-align: center;
    margin-bottom: 50px;
    font-family: "Manrope", sans-serif;
    font-size: 32px;
}

.titulo-central span {
    color: var(--cor-primaria) !important;
}

/* ==========================================================================
   HEADER E MENU DE NAVEGAÇÃO
   ========================================================================== */

header.topo {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    transition: 0.3s;
}

/* Linha Elegante com Degradê */
header.topo::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--cor-primaria), transparent);
    opacity: 0.5;
}

.topo-conteudo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: var(--cor-texto);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    display: inline-block;
}

.logo span {
    color: var(--cor-primaria);
}

.menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: var(--cor-texto);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.menu a:not(.btn-menu):hover {
    transform: translateY(-4px);
    color: var(--cor-primaria);
}

/* Botão WhatsApp no Menu */
.btn-menu {
    border: 1px solid var(--cor-primaria);
    padding: 10px 25px;
    border-radius: 50px;
    background-color: transparent;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease !important;
}

.btn-menu:hover {
    transform: scale(1.08) !important;
    background-color: var(--cor-primaria);
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(255, 94, 26, 0.3);
}

/* ==========================================================================
   SEÇÃO HERO
   ========================================================================== */

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 40px;
    align-items: center;
    padding: 60px 0;
}

.hero-texto h1 {
    font-size: 42px;
    font-family: "Manrope", sans-serif;
    line-height: 1.2;
}

.hero-texto h1 span {
    color: var(--cor-primaria);
}

.hero-botoes {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

/* Botões da Hero */
.btn-principal, .btn-secundario {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-principal {
    background-color: var(--cor-primaria);
    color: #fff;
    border: 1px solid var(--cor-primaria);
}

.btn-secundario {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-principal:hover, .btn-secundario:hover {
    transform: scale(1.05);
}

.btn-principal:hover {
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
}

.btn-secundario:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Features (Animação de Entrada) */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 5;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    border-radius: 12px;
    border-left: 3px solid var(--cor-primaria);
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-item.show {
    opacity: 1;
    transform: translateX(0);
}

.feature-item p {
    font-size: 13px;
    margin: 0;
}

/* Carrossel Hero */
.carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
    z-index: 2;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   SEÇÃO BENEFÍCIOS
   ========================================================================== */

#beneficios {
    position: relative;
    z-index: 10;
    background-color: #1b1b1b;
    margin-top: 60px;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.card-beneficio {
    background: var(--cor-fundo-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #2c2c2c;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-beneficio.show-card {
    opacity: 1;
    transform: translateY(0);
}

.card-beneficio p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.8;
}

.icon-box {
    font-size: 32px;
    margin-bottom: 20px;
    display: inline-block;
}

/* ==========================================================================
   SEÇÃO COMO FUNCIONA (STEPS)
   ========================================================================== */

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.step-item {
    background: var(--cor-fundo-card);
    padding: 35px 25px;
    border-radius: 20px;
    border: 1px solid #2c2c2c;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
                opacity 0.6s ease-out,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.step-item.visivel {
    opacity: 1;
    transform: translateY(0);
}

.step-item.destaque {
    border-color: var(--cor-primaria);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 94, 26, 0.2);
    z-index: 10;
}

.step-numero {
    background: var(--cor-primaria);
    color: white;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ==========================================================================
   SEÇÃO TRANSFORMAÇÃO (ANTES E DEPOIS)
   ========================================================================== */

.comparador-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4/5; 
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
}

.texto-transformacao {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.texto-transformacao p {
    color: var(--cor-texto-muted);
    font-size: 16px;
    line-height: 1.6;
}

.texto-transformacao strong {
    color: var(--cor-primaria);
}

/* Imagens do Comparador */
.img-antes {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.img-antes img {
    width: 600px; 
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: none;
}

.img-depois {
    width: 100%;
    height: 100%;
}

.img-depois img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Etiquetas Antes/Depois */
.label-foto {
    position: absolute;
    top: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease;
    opacity: 1;
}

.label-antes { left: 20px; }
.label-depois { 
    right: 20px; 
    border-color: var(--cor-primaria);
    color: var(--cor-primaria);
}

.comparador-container:active .label-foto {
    opacity: 0;
    transform: translateY(-10px);
}

/* Controles do Slider */
.slider-controle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: ew-resize;
    margin: 0;
}

.slider-linha {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: var(--cor-primaria);
    z-index: 8;
    transform: translateX(-50%);
    pointer-events: none;
}

.slider-botao {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--cor-primaria);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    border: 3px solid white;
    z-index: 15;
}

.seta-esq {
    width: 0; height: 0; 
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent; 
    border-right: 8px solid white;
}

.seta-dir {
    width: 0; height: 0; 
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid white;
}

/* Guia informativo no Comparador */
.guia-arrastar {
    position: absolute;
    bottom: 20px; /* Distância do fundo */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    z-index: 12; /* Fica acima das imagens, mas abaixo das labels se quiser */
    pointer-events: none; /* Garante que não atrapalhe o clique no slider */
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.seta-dupla {
    color: var(--cor-primaria);
    font-size: 18px;
    font-weight: bold;
}

/* Efeito opcional: Esconder o guia quando o usuário começar a arrastar */
.comparador-container:active .guia-arrastar {
    opacity: 0;
}

/* ==========================================================================
   SEÇÃO PLANOS
   ========================================================================== */

.planos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.plano-card {
    background: var(--cor-fundo-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #2c2c2c;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    position: relative;
}

.plano-card.destaque {
    border: 1px solid var(--cor-primaria);
    transform: scale(1.05);
}

.plano-preco {
    font-size: 28px;
    color: var(--cor-primaria);
    margin: 15px 0;
    font-weight: bold;
}

.plano-lista {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 14px;
    color: #bbb;
}

.tag-recomendado {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cor-primaria);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: bold;
}

/* ==========================================================================
   SEÇÃO SOBRE
   ========================================================================== */

#sobre h2 span {
    color: var(--cor-primaria);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: flex-start;
    margin-top: 20px;
}

.sobre-texto-principal p {
    margin-bottom: 20px;
    color: var(--cor-texto-muted);
    font-size: 16px;
    line-height: 1.8;
}

.destaque-sobre {
    font-size: 20px !important;
    color: #fff !important;
    font-weight: 600;
    line-height: 1.4 !important;
    border-left: 4px solid var(--cor-primaria);
    padding-left: 20px;
}

.perfil-card {
    background: var(--cor-fundo-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #2c2c2c;
    position: relative;
}

.perfil-card h3 {
    font-family: "Manrope", sans-serif;
    font-size: 24px;
    margin-bottom: 5px;
}

.cargo {
    display: block;
    color: var(--cor-primaria);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.perfil-card p {
    font-size: 15px;
    color: var(--cor-texto-muted);
    line-height: 1.6;
}

/* ==========================================================================
   SEÇÃO FAQ (ACORDEÃO)
   ========================================================================== */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--cor-fundo-card);
    border: 1px solid #2c2c2c;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-pergunta {
    width: 100%;
    padding: 25px 60px 25px 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    font-family: "Manrope", sans-serif;
    cursor: pointer;
    text-align: left;
    display: block;
    position: relative;
    line-height: 1.2;
    min-height: 70px;
}

.faq-icone {
    position: absolute;
    right: 25px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px; 
    transform: rotate(0deg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    color: var(--cor-primaria);
}

.faq-icone::before, .faq-icone::after {
    content: '';
    position: absolute;
    background-color: var(--cor-primaria);
    border-radius: 4px;
}

.faq-icone::before {
    top: 9px; left: 0; width: 100%; height: 2px;
}

.faq-icone::after {
    left: 9px; top: 0; width: 2px; height: 100%;
}

.faq-item.ativo {
    border-color: var(--cor-primaria);
}

.faq-item.ativo .faq-icone {
    transform: rotate(45deg);
}

.faq-resposta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(255, 255, 255, 0.02);
    text-align: left !important;
}

.faq-item.ativo .faq-resposta {
    max-height: 600px; 
}

.faq-resposta p {
    padding: 10px 25px 35px 25px; 
    color: var(--cor-texto-muted);
    font-size: 15px;
    line-height: 1.6;
    text-align: left !important;
}

.faq-item.ativo .faq-pergunta::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 1px;
    background-color: var(--cor-primaria);
    z-index: 5;
}

/* ==========================================================================
   SEÇÃO CONTATO (BANNER WHATSAPP)
   ========================================================================== */

.contato-banner {
    background: linear-gradient(135deg, #1e1e1e 0%, #151515 100%);
    border: 1px solid #2c2c2c;
    border-radius: 30px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.contato-banner::before {
    content: "";
    position: absolute;
    top: -50%; right: -10%;
    width: 300px; height: 300px;
    background: var(--cor-primaria);
    filter: blur(120px);
    opacity: 0.1;
    pointer-events: none;
}

.contato-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
    text-align: left;
}

.contato-info h2 span {
    color: var(--cor-primaria);
}

.contato-info p {
    color: var(--cor-texto-muted);
    font-size: 16px;
    max-width: 500px;
}

.contato-acao {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    text-shadow: -1.5px -1.5px 0 #075e54, 1.5px -1.5px 0 #075e54, -1.5px 1.5px 0 #075e54, 1.5px 1.5px 0 #075e54;
}

.btn-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
    background-color: #20ba5a;
}

.wa-icon-img {
    width: 28px; height: 28px;
    display: block;
}

.atendimento-tempo {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   RODAPÉ (FOOTER)
   ========================================================================== */

.rodape {
    padding: 40px 0;
    background-color: #0a0a0a;
    position: relative;
    margin-top: 50px;
}

.rodape::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--cor-primaria), transparent);
    opacity: 0.5;
}

.rodape-conteudo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rodape-copyright p {
    font-size: 14px;
    color: #888;
}

.rodape-social {
    display: flex;
    gap: 18px;
    align-items: center;
}

.rodape-social img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: saturate(0.8);
}

.rodape-social a:hover img {
    transform: translateY(-5px);
    filter: saturate(1.2);
}

/* ==========================================================================
   ESTILOS DE TRANSIÇÃO E EFEITOS ESPECÍFICOS
   ========================================================================== */

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--cor-fundo));
    pointer-events: none;
    z-index: 1;
}

section[id] {
    scroll-margin-top: 100px; 
}

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */

/* Tablets e Telas Médias */
@media (max-width: 992px) {
    .hero-grid, .beneficios-grid, .planos-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-features, .steps-container { grid-template-columns: 1fr 1fr; }
    .hero-imagem, .hero-botoes { justify-content: center; display: flex; }
    
    .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
    .contato-banner { flex-direction: column; text-align: center; padding: 40px 20px; }
    .contato-info h2 { text-align: center; }
    .contato-info p { margin: 0 auto; }
    .contato-acao { align-items: center; /* Volta ao centro no mobile */ }
    .atendimento-tempo { align-self: center; margin-right: 0;}
}

/* Celulares */
@media (max-width: 768px) {
    .topo-conteudo { flex-direction: column; gap: 15px; }
    .menu { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .menu a { font-size: 13px; }
    .btn-menu { width: 100%; text-align: center; }
    
    .secao { padding: 50px 0; }
    .titulo-central { font-size: 26px; }
    
    .beneficios-grid, .steps-container, .planos-grid { grid-template-columns: 1fr; }
    .rodape-conteudo { flex-direction: column; gap: 25px; text-align: center; }

    .container { padding: 0 25px; }
    .contato-banner { margin: 0 15px; width: calc(100% - 30px); }
    
    #beneficios { margin-top: 60px; }
}

/* Celulares Pequenos */
@media (max-width: 480px) {
    .hero-texto h1 { font-size: 30px; }
    .hero-botoes { flex-direction: column; }
    .btn-principal, .btn-secundario { width: 100%; }
    .comparador-container { aspect-ratio: 4/5; height: auto;}
    
    .feature-item { margin: 0 5px; }
    .faq-pergunta { padding: 20px 50px 20px 15px; }

    .label-foto {
        font-size: 10px; /* Diminui o texto */
        padding: 4px 8px; /* Diminui o fundo da etiqueta */
        top: 10px; /* Aproxima um pouco mais do topo */
    }

    .label-antes {
        left: 10px;
    }

    .label-depois {
        right: 10px;
    }
}

/* Ajuste Responsivo da Imagem do Comparador */
@media (max-width: 640px) {
    .img-antes img, .img-depois img {
        width: 100%; 
        height: 100%;
        object-fit: cover; /* Garante que a imagem preencha o container vertical */
    }
}

@media (max-width: 480px) {
    .guia-arrastar {
        font-size: 11px;
        padding: 6px 14px;
        bottom: 15px;
    }
}

/* ==========================================================================
   AJUSTE DE ESPAÇAMENTO MOBILE (HERO VS MENU)
   ========================================================================== */

@media (max-width: 768px) {
    .hero {
        /* Adiciona um espaço entre o menu fixo e o início do conteúdo */
        margin-top: 40px; 
    }

    .hero-grid {
        /* Reduz o padding interno para o conteúdo subir um pouco e equilibrar */
        padding-top: 20px;
    }

    .hero::after {
        display: none; /* No mobile, é melhor remover a névoa para o texto ficar 100% nítido */
    }
    
    .hero-features {
        padding-bottom: 30px; /* Cria um espaço real em vez de usar degradê */
    }
}

/* Ajuste para telas muito pequenas onde o menu pode ser ainda mais alto */
@media (max-width: 480px) {
    .hero {
        margin-top: 60px;
    }
}