/* ==========================================================================
   1. GERAL & VARIÁVEIS
   ========================================================================== */
:root {
    --bg-color: #FFFFFF;
    --text-color-dark: #1A1D21;
    --text-color-light: #FFFFFF;
    --text-muted: #5C5F65;
    --primary-accent: #de1c14;
    --secondary-accent: #920904;
    --dark-section-bg: #1A1D21;
    --border-color: #EAECEF;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --container-width: 1100px;
    --border-radius: 12px;
    --transition-speed: 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. COMPONENTES REUTILIZÁVEIS
   ========================================================================== */
.container { width: 90%; max-width: var(--container-width); margin: 0 auto; }
.narrow-container { max-width: 750px; margin-left: auto; margin-right: auto; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
h1 { font-size: 2.1rem; color: var(--text-color-light); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }
/* AJUSTE: Tamanho dos títulos de seção reduzido */
h2 { font-size: 1.8rem; text-align: center; color: var(--text-color-dark); }
h3 { font-size: 1.3rem; }
p { margin-bottom: 15px; color: var(--text-muted); }
strong { color: var(--text-color-dark); font-weight: 700; }
a { color: var(--primary-accent); text-decoration: none; }

.cta-button-header {
    display: inline-flex; align-items: center; justify-content: center;
    background-color: var(--primary-accent); color: var(--text-color-light);
    padding: 15px 15px; border-radius: 50px; font-weight: bold; text-transform: uppercase;
    letter-spacing: 1px; text-align: center; transition: var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}
.cta-button-header:hover { background-color: var(--secondary-accent); transform: translateY(-3px); }

.cta-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background-color: var(--primary-accent); color: var(--text-color-light);
    padding: 15px 30px; border-radius: 50px; font-weight: bold; text-transform: uppercase;
    letter-spacing: 1px; text-align: center; transition: var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}
.cta-button:hover { background-color: var(--secondary-accent); transform: translateY(-3px); }
.cta-button img { width: 20px; height: 20px; }

.cta-button-1 {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; margin-bottom: 60px;
    background-color: var(--primary-accent); color: var(--text-color-light);
    padding: 15px 30px; border-radius: 50px; font-weight: bold; text-transform: uppercase;
    letter-spacing: 1px; text-align: center; transition: var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}
.cta-button-1:hover { background-color: var(--secondary-accent); transform: translateY(-3px); }
.cta-button-1 img { width: 20px; height: 20px; }

.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   3. CABEÇALHO E NAVEGAÇÃO
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.header-container { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-color-dark); }
.logo { height: 60px; }
.logo-link span { font-weight: 700; font-family: var(--font-heading); }

/* AJUSTE: Estilos para o Menu (Mobile-first) */
.main-nav {
    display: none; /* Escondido por padrão no mobile */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%; /* Começa logo abaixo do header */
    left: 0;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
/* Classe 'active' é adicionada via JS para mostrar o menu */
.main-nav.active {
    display: flex;
}
.main-nav a {
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color-dark);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover {
    background-color: #f8f9fa;
    color: var(--primary-accent);
}
.header-cta { font-size: 0.8rem; }
.header-cta img { width: 32px; height: 32px; } /* Ícone menor para o header */
.mobile-menu-toggle { display: block; background: none; border: none; font-size: 2rem; cursor: pointer; }

/* ==========================================================================
   4. SEÇÕES ESPECÍFICAS
   ========================================================================== */
/* --- HERO SECTION --- */
.hero-section { position: relative; display: flex; align-items: center; min-height: 100vh; padding: 120px 20px 40px; text-align: center; }
.hero-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/hero_mobile_v2.webp'); /* USE SUA IMAGEM AQUI */
    background-size: cover; background-position: center; z-index: -2;
}
/* AJUSTE: Overlay para melhorar legibilidade do texto */
.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.45) 100%);
    z-index: -1;
}
/* AJUSTE: Adicionando um box com efeito de vidro fosco */
.hero-content { padding: 0; }
.sub-headline { color: var(--text-color-light); opacity: 0.9; max-width: 600px; margin: 20px auto 30px; }

/* --- AMBITION SECTION (BLOCO 2) - NOVA VERSÃO SOFISTICADA --- */
.ambition-section {
    position: relative;
    padding: 80px 20px;
    background-color: var(--light-bg);
    /* Textura sutil adicionada ao fundo */
    /* AJUSTE: Textura mais escura (cor #dcdcdc e opacidade 0.7) */
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23dcdcdc" fill-opacity="0.7"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E')    
}
.ambition-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom right, var(--light-bg) 49.5%, transparent 50%);
    transform: translateY(-99%);
}
.ambition-section .narrow-container {
    display: flex; /* Habilita flex para layout em colunas no desktop */
    flex-direction: column; /* Padrão mobile: uma coluna */
    gap: 30px;
}
/* Estilo para a imagem decorativa (visível apenas no desktop) */
.ambition-image {
    display: none; /* Escondido no mobile */
}
/* AJUSTE: Garantindo que a imagem do ícone respeite o container */
.ambition-image img {
    width: 100%;
    height: auto;
}

/* Media query para aplicar layout de colunas no desktop */
@media (min-width: 768px) {
    .ambition-section .narrow-container {
        flex-direction: row; /* Lado a lado no desktop */
        align-items: center;
        gap: 50px;
    }
    .ambition-image {
        display: block; /* Mostra a imagem */
        flex: 0 0 120px; /* Não cresce, não encolhe, base de 120px */
        opacity: 0.5;
    }
    .ambition-section h2, .ambition-section p {
        text-align: left; /* Alinha texto à esquerda */
    }
}

/* --- SOLUTION SECTION --- */
.solution-section { padding: 20px 20px; text-align: center; }
.video-wrapper {
    width: 100%;
    max-width: 700px; /* Altere este valor para controlar o tamanho */
    margin: 40px auto;
    border-radius: var(--border-radius);
    overflow: hidden; /* Garante que o iframe respeite as bordas arredondadas */
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);

    /* AJUSTE CRUCIAL: A nova forma de manter a proporção */
    aspect-ratio: 16 / 9; 
}

.video-wrapper iframe {
    /* A regra do iframe continua a mesma, mas agora funciona perfeitamente */
    width: 100%;
    height: 100%;
}
/* AJUSTE: Estilos para a nova galeria de vídeos do YouTube */
.youtube-block {
    margin-top: 10px;
    text-align: center;
}
.video-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 coluna no mobile */
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
}
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16; /* Proporção vertical dos Shorts */
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.video-container--widescreen {
    aspect-ratio: 16 / 9; /* Sobrescreve a proporo para 16:9 */
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.video-container:hover .video-thumbnail {
    transform: scale(1.05); /* Efeito de zoom no hover */
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
}
/* Triângulo de play feito com CSS */
.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
}
.video-container:hover .play-button {
    background-color: rgba(0, 0, 0, 0.6);
}
.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- TRUST SECTION --- */
.trust-section { background-color: #F8F9FA; padding: 80px 20px; text-align: center; }
.trust-grid { display: flex; flex-direction: column; gap: 40px; margin-top: 60px; margin-bottom: 40px; }
.trust-item { max-width: 350px; margin: 0 auto; }
.trust-icon { height: 50px; margin-bottom: 20px; }
/* AJUSTE: Estilos para o novo carrossel de fotos funcional */
.photo-carousel-container {
    margin-top: 40px;
    text-align: center;
}
.carousel-title {
    margin-bottom: 40px;
}
.carousel-wrapper {
    position: relative;
    overflow: hidden; /* Esconde as imagens que saem da tela */
    border-radius: var(--border-radius);
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Animação de deslize */
}
.carousel-photo {
    min-width: 100%; /* Cada foto ocupa 100% da largura no mobile */
    box-sizing: border-box;
}
.carousel-photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block; /* Remove espaço extra abaixo da imagem */
}
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
}
.carousel-button:hover {
    background-color: rgb(255, 255, 255);
}
.carousel-button.prev {
    left: 10px;
}
.carousel-button.next {
    right: 10px;
}
.carousel-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
/* ... */
/* AJUSTE: Botão Flutuante do WhatsApp maior e mais centralizado */
.whatsapp-float {
    position: fixed;
    bottom: 25px; /* Era 20px */
    right: 25px;  /* Era 20px */
    width: 65px;  /* Era 60px */
    height: 65px; /* Era 60px */
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s ease;
}

/* --- DEMAIS SEÇÕES (ESTILOS JÁ FUNCIONAIS) --- */
.social-proof-section { background-color: var(--dark-section-bg); color: var(--text-light); padding: 80px 20px; text-align: center; }
.social-proof-section h2 { color: var(--primary-accent); }
.reviews-placeholder { display: flex; flex-direction: column; gap: 20px; margin-top: 60px; }
.review-card { background-color: rgba(255,255,255,0.05); padding: 25px; border-radius: var(--border-radius); border: 1px solid rgba(255,255,255,0.1); }
.review-card p { font-style: italic; color: #ccc; }
.reviewer-info { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.reviewer-info img { width: 40px; height: 40px; border-radius: 50%; }
.reviewer-info span { font-weight: bold; color: var(--text-color-light); }

.journey-section { padding: 80px 20px; text-align: center; }
.journey-steps { display: flex; flex-direction: column; gap: 40px; margin-top: 60px; margin-bottom: 60px; }
.step-card { position: relative; padding: 20px; }
.step-number { font-size: 4rem; font-weight: 700; color: var(--border-color); position: absolute; top: -20px; left: 50%; transform: translateX(-50%); z-index: -1; }

.partners-section, .final-cta-section { padding: 80px 20px; text-align: center; }
.partners-section { background-color: #F8F9FA; }
.final-cta-section { background-color: var(--dark-section-bg); color: var(--text-light); }
.final-cta-section h2 { color: var(--primary-accent); }
.final-cta-section p { color: #ccc; }
.final-call { font-weight: bold; font-size: 1.1rem; margin-top: 30px; }

.faq-section { padding: 80px 20px; }
.faq-list { margin-top: 60px; border-top: 1px solid var(--border-color); }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; }
.faq-question h3 { margin-bottom: 0; font-size: 1.2rem; }
.faq-toggle { font-size: 2rem; color: var(--primary-accent); transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.faq-answer p { padding: 0 0 20px; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-item.active .faq-answer { max-height: 300px; }

/* --- RODAPÉ --- */
footer { background-color: var(--dark-bg); color: var(--text-light); padding: 60px 20px 30px; }
.footer-container { display: flex; flex-direction: column; text-align: center; gap: 40px; }
.footer-logo { height: 80px; margin-bottom: 10px; }
.footer-info p, .footer-links ul, .social-icons { margin: 0; padding: 0; list-style: none; }
.footer-info .address { font-size: 0.9rem; color: #aaa; }
.footer-links a { color: #ccc; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--primary-accent); }
.social-icons { display: flex; justify-content: center; gap: 20px; }
.social-icons img { width: 24px; height: 24px; }
.footer-bottom { margin-top: 60px; padding-top: 30px; border-top: 1px solid #333; font-size: 0.9rem; color: #888; }

/* --- AJUSTE: Botão Flutuante do WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
.whatsapp-float img {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   4. ESTILOS PARA PÁGINAS ESTÁTICAS (Política, Garantia, etc.)
   ========================================================================== */
   .static-page .page-content-section {
    padding-top: 140px; /* Espaço para o header fixo */
    padding-bottom: 80px;
    background-color: var(--bg-color);
}
.static-page .page-content-section h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}
.last-updated {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-style: italic;
}
.styled-list {
    margin: 30px 0;
    padding-left: 20px;
}
.styled-list li {
    margin-bottom: 15px;
}
/* Adiciona um estilo sutil aos títulos da lista */
.styled-list li strong {
    color: var(--primary-accent);
}

@media (min-width: 768px) {
    .static-page .page-content-section h1 {
        font-size: 3rem;
    }
}


/* ==========================================================================
   5. MEDIA QUERIES (DESKTOP)
   ========================================================================== */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    /* AJUSTE: Restaura o layout horizontal do menu no Desktop e adiciona hovers */
    .main-nav {
        display: flex; /* Garante que ele seja visível */
        flex-direction: row; /* Itens lado a lado */
        position: static; /* Remove o posicionamento absoluto do mobile */
        width: auto;
        background-color: transparent;
        box-shadow: none;
        gap: 30px;
    }
    .main-nav a {
        position: relative;
        padding: 5px 0; /* Ajuste no padding para o efeito hover */
        border-bottom: none; /* Remove a borda do mobile */
        color: var(--text-muted);
        font-weight: 600;
    }
    .main-nav a:hover {
        background-color: transparent; /* Remove o fundo do hover mobile */
        color: var(--primary-accent);
    }
    .main-nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--primary-accent);
        transition: width 0.3s ease;
    }
    .main-nav a:hover::after {
        width: 100%;
    }
    .mobile-menu-toggle { display: none; }
    .header-cta { display: inline-flex; }

    .hero-container { flex-direction: row-reverse; text-align: left; }
    .hero-content, .hero-image-wrapper { width: 50%; }
    .trust-grid, .journey-steps { flex-direction: row; align-items: flex-start; gap: 30px; }
    .reviews-placeholder { flex-direction: row; }
    .footer-container { flex-direction: row; text-align: left; justify-content: space-between; align-items: flex-start; }
    .footer-col { flex: 1; }
    .footer-info { flex: 1.5; }
    .social-icons { justify-content: flex-start; }

    /* AJUSTE: Carrossel mostrando 2 imagens no desktop */
    .carousel-track {
        gap: 15px; /* Espaçamento entre as fotos */
    }
    .carousel-photo {
        min-width: calc(50% - 7.5px); /* 50% da largura menos metade do espaçamento */
    }
    
     /* AJUSTE: Substitui a imagem de fundo para DESKTOP */
    .hero-background {
        background-image: url('images/hero_desktop.webp'); /* << Imagem para desktop */
    }

    /* AJUSTE: Layout em 4 colunas para a galeria de vídeos */
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    h1 { font-size: 3.3rem; }
    h2 { font-size: 2.5rem; }
}