/*
===================================================
    CSS Profissional Otimizado para FOCUS+
    Design System: Moderno, Focado e de Alta Conversão
===================================================
*/

/* --- 1. Variáveis e Reset Básico --- */
:root {
    --color-primary: #1e3a8a;       /* Azul Escuro (Foco) */
    --color-secondary: #059669;      /* Verde Esmeralda (Ação/CTA) */
    --color-warning: #b91c1c;         /* Vermelho (Alerta/Urgência) */
    --color-text: #374151;            /* Texto Principal Escuro */
    --color-light-bg: #f3f4f6;        /* Fundo de Seção Leve */
    --font-family-primary: 'Arial', sans-serif;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);

    /* Variável para a Altura da Barra Fixa (Ajuste se necessário) */
    --fixed-alert-height: 50px; 
}

/* Aplica padding-top para o conteúdo não ser coberto pelo header fixo */
body {
    font-family: var(--font-family-primary);
    margin: 0;
    background-color: #ffffff;
    color: var(--color-text);
    line-height: 1.65;
}

/* Base Headings */
h1, h2, h3 {
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    line-height: 1.2;
}

/* Utilitário para centralizar e limitar a largura */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilitários de Cor */
.red-bg {
    background-color: var(--color-warning);
    color: white;
}
.green-bg {
    background-color: var(--color-secondary);
    color: white;
    transition: background-color 0.3s;
}
.green-bg:hover {
    background-color: #047857; /* Tom mais escuro no hover */
}

/* --- 2. TOP SECTION (Banner e Hero) --- */
.top-banner {
    padding: 0px 0;
    text-align: center;
    font-size: 1.1em;
    animation: pulse 2s infinite;
}

.banner-title {
    font-size: 1.9em;
    font-weight: 900;
    margin: 5px 0;
}

.banner-warning {
    font-size: 1.3em;
    margin: 5px 0;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.9; }
    100% { opacity: 1; }
}

.top-section img,
.top-section * {
    max-width: 100%;
    box-sizing: border-box;
}


.main-content-wrapper {
    display: flex;
    margin: 30px auto;
    padding: 0 40px;
    align-items: center;
    gap: 40px;
}

.product-info {
    flex: 1;
}

.product-image-area {
    flex: 1;
    min-height: 350px; /* Placeholder */

    border-radius: 12px;
}

.main-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--color-primary);
    text-align: left;
}

.sub-heading {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 5px;
    text-align: left;
}

.benefits-list {
    margin-top: 25px;
}

.benefits-list li {
    font-size: 1.0em;
    padding: 1px 0;
    color: var(--color-text);
    font-weight: 400;
    border-bottom: 1px dashed #e5e7eb;
    list-style: none;
}

.benefits-list li::before {
    content: "✅";
    margin-right: 12px;
    font-size: 1.2em;
}

/* --- 3. CTAs (Botões e Links) --- */
.cta-button {
    /* Transformado em `a` no HTML, mas mantém o estilo de botão */
    display: block;
    width: 90%;
    padding: 5px;
    font-size: 1.2em;
    font-weight: 800;
    text-align: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 30px;
    box-shadow: 0 5px 0 #047857; /* Sombra para 3D */
    text-transform: uppercase;
    transition: all 0.1s ease;
    text-decoration: none; /* Adicionado para links */
    color: white; /* Cor de texto padrão para CTAs */
}

.cta-button:active {
    box-shadow: 0 2px 0 #047857;
    transform: translateY(3px);
}

.full-width-cta {
    max-width: 1280px;
    margin: 40px auto 60px auto;
}

/* --- 4. BARRA DE GARANTIA --- */
.bottom-guarantee-bar {
    display: flex;
    justify-content: space-around;
    padding: 20px 40px;
    text-align: center;
    font-size: 1em;
    font-weight: 600;
    background-color: #374151; 
    color: white;
}
.guarantee-item {
    padding: 0 10px;
}
.guarantee-item p {
    margin: 0;
}
.guarantee-item i {
    margin-right: 5px;
    color: #059669; 
}

/* --- 5. SEÇÕES DE CONTEÚDO --- */
section {
    padding: 0px 0px;
}

/* Estilo para seções de fundo claro */
.complicacoes, .formula-section, .quality-guarantee-section, .guarantee-section, .faq-section {
    background-color: white;
}

/* Estilo para seções de fundo destacado */
.solution-section, .compra-segura-section {
    background-color: var(--color-light-bg);
    border-top: 1px solid #e5e7eb;
}

h2 {
    font-size: 2em;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Cards de Problemas --- */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
}

.compli-card {
    flex: 1 1 280px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    border-top: 5px solid var(--color-warning);
    text-align: left;
}

.compli-card h3 {
    color: var(--color-warning);
    font-size: 1.3em;
    margin: 10px 0;
    text-align: left;
}

.icon-area {
    min-height: 40px;
    margin-bottom: 10px;
    color: var(--color-warning);
}

/* Seta de Transição */
.next-section-arrow {
    text-align: center;
    margin: 40px 0;
}
.arrow-down {
    font-size: 4em;
    color: var(--color-secondary);
    cursor: pointer;
    transition: transform 0.3s;
}
.arrow-down:hover {
    transform: scale(1.1);
}

.proxima-secao h2 {
    color: var(--color-primary);
    border-bottom: none;
    margin-top: 0;
}

/* --- Seção Solução/Explicação --- */
.solution-content-wrapper {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    gap: 40px;
    align-items: center;
}

.solution-text {
    flex: 1;
    padding: 20px;
}

.solution-text ul {
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.solution-text ul li {
    margin-bottom: 20px;
    font-size: 1.2em;
    color: var(--color-text);
    padding-left: 15px;
    border-left: 4px solid var(--color-secondary);
}

.special-quote {
    font-style: italic;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 30px;
}

.solution-image-area {
    flex: 1;

    border-radius: 12px;
}

/* --- Seção Fórmulas e Garantias Detalhadas --- */
.formula-items p {
    background-color: #f7f9fc;
    padding: 18px;
    border-left: 5px solid var(--color-primary);
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.quality-guarantee-section ul, .compra-segura-section ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1000px;
    margin: 30px auto;
    list-style: none;
    padding: 0;
}

.quality-guarantee-section li, .compra-segura-section li {
    background-color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--color-secondary);
    flex: 1 1 200px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid #d1d5db;
}

.guarantee-section {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--color-warning);
    color: white;
    font-size: 1.2em;
    margin-top: 40px;
}

.guarantee-section h2 {
    color: white;
    border-bottom: 3px solid white;
    margin-bottom: 20px;
}

/* --- 6. SEÇÃO OFERTAS (O MAIOR FOCO) --- */

.container-ofertas {
    padding: 20px 0; 
    margin: 50px auto;
}

.offer-cards-grid {
    display: grid;
    /* CORREÇÃO AQUI: Força 4 colunas iguais para layout de desktop */
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    max-width: 1280px;
    margin: 5px;
    padding: 0 20px;
    align-items: stretch; /* Garante que todos os itens do grid tenham a mesma altura */
}

.offer-card {
    width: 100%;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 3px solid transparent;
    transition: all 0.3s;
    position: relative; 
    margin-top: 20px; 
    display: flex; /* Adicionado para garantir que o conteúdo preencha a altura */
    flex-direction: column; /* Organiza o conteúdo em coluna */
}

/* NOVO: Tag de Mais Vendido */
.best-seller-tag {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-warning); 
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
}


/* Destaque para a MELHOR OFERTA (Primeiro Card) */
.offer-card:nth-child(1) {
    border-color: var(--color-primary); 
    transform: translateY(-10px); 
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3); 
}
.offer-card:nth-child(1) .header-oferta {
    background-color: var(--color-primary);
}

.header-oferta {
    background-color: #9ca3af; 
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
}

.price-per-pot {
    font-weight: 900;
    letter-spacing: 0.5px;
}

.discount-label {
    background-color: var(--color-warning);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.body-oferta {
    padding: 30px 20px;
    text-align: center;
    flex-grow: 1; /* Permite que o body se estique para igualar a altura */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empurra o botão para baixo */
}

.offer-title {
    font-size: 0.8em;
    margin: 4px 0 6px;
    color: var(--color-primary);
    min-height: 7px; /* Garante que títulos com 1 ou 2 linhas não mudem o layout */
}

.offer-title strong {
    font-size: 1.8em;
    color: var(--color-warning); 
    display: block;
    margin-top: 5px;
}

.product-card-image {
    min-height: 180px;
    background-color: var(--color-light-bg);
    margin: 15px 0;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}

.prices {
    margin: 20px 0;
    flex-shrink: 0;
    /* CORREÇÃO AQUI: Garante que os preços fiquem na parte inferior, alinhando com outros cards */
    margin-top: auto; 
}

.original-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 1em;
    margin: 5px 0;
}

.final-price {
    font-size: 2.0em;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 2px 0;
}

.installment-price {
    font-size: 1.3em;
    color: var(--color-text);
    margin: 5px 0;
}

/* Botão de Compra dentro do Card */
.offer-card .buy-button {
    padding: 10px 4px;
    font-size: 1.3em;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    width: 100%;
    margin-top: 20px; 
    
    background-color: var(--color-secondary);
    color: white;
    box-shadow: 0 4px 0 #047857; 
    transition: background-color 0.3s;
    text-decoration: none;
}

/* Ajuste no botão da melhor oferta (vermelho para urgência) */
.offer-card:nth-child(1) .buy-button {
    background-color: var(--color-warning); 
    box-shadow: 0 4px 0 #8f1212; 
}
.offer-card:nth-child(1) .buy-button:active {
    box-shadow: 0 1px 0 #8f1212;
}

/* ADIÇÃO PARA GARANTIR CORES CONSISTENTES (Botões 2, 3 e 4 devem ser verdes) */
.offer-card:nth-child(2) .buy-button,
.offer-card:nth-child(3) .buy-button,
.offer-card:nth-child(4) .buy-button {
    background-color: var(--color-secondary);
    box-shadow: 0 4px 0 #047857;
}

/* --- 7. SEÇÃO DÚVIDAS FREQUENTES (FAQ) --- */
.faq-section {
    padding: 60px 20px;
    background-color: white;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.15em;
    color: var(--color-primary);
}

.faq-question p {
    margin: 0;
}

.faq-icon {
    font-size: 1.5em;
    font-weight: 900;
    color: var(--color-secondary);
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 10px;
}

.faq-answer p {
    padding-bottom: 15px;
    margin: 0;
    color: var(--color-text);
}

/* Estado Ativo (para ser controlado por JS) */
.faq-item.active .faq-answer {
    max-height: 500px; /* Valor grande o suficiente para expandir */
    padding-bottom: 15px;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Transforma o '+' em 'x' */
    color: var(--color-warning);
}


/* --- 8. SEÇÃO COMPRA SEGURA --- */
.compra-segura-section {
    background-color: var(--color-light-bg);
}

.security-items-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin: 50px auto;
    max-width: 1000px;
}

.security-item {
    text-align: center;
    padding: 20px;
    flex: 1 1 200px;
}

.security-item i {
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.security-item p {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--color-text);
}


/* --- 9. FOOTER PRINCIPAL (Rodapé) --- */
.main-footer {
    background-color: #273746; 
    color: #ecf0f1;
    padding: 50px 20px 20px 20px;
    font-size: 0.95em;
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto 30px auto;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1 1 250px;
    padding: 10px;
}

.footer-column h3 {
    color: #a8d5e5; 
    margin-bottom: 20px;
    font-size: 1.3em;
    text-align: left;
}

.footer-column ul {
    padding: 0;
    list-style: none;
}

.footer-column a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--color-secondary); 
    text-decoration: underline;
}

.footer-legal-bar {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85em;
    color: #bdc3c7;
    max-width: 1280px;
    margin: 0 auto;
}


/*
====================================
    CSS para Barras Fixas (Scripts)
====================================
*/

/* --- ESTADOS DE VISIBILIDADE (CRUCIAL) --- */
.fixed-header-alert, .fixed-cta-bar {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.fixed-header-alert.visible, .fixed-cta-bar.visible {
    opacity: 1;
    visibility: visible;
}


/* --- 1. BARRA DE URGÊNCIA FIXA (HEADER) --- */
.fixed-header-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--fixed-alert-height); 
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.timer-text {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0;
}

.timer-display {
    font-size: 1.5em;
    font-weight: 900;
    background-color: white;
    color: var(--color-warning); 
    padding: 2px 8px; 
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

/* --- 2. BARRA DE OFERTA FLUTUANTE (CTA FOOTER) --- */
.fixed-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 0px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.fixed-cta-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px; 
}

.cta-bar-text {
    color: white;
    font-size: 1.2em;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.fixed-cta-bar .buy-button {
    width: auto;
    padding: 12px 25px;
    font-size: 1.1em;
    margin: 0;
    box-shadow: 0 4px 0 #8f1212; 
    background-color: var(--color-warning);
    text-decoration: none;
}

.fixed-cta-bar .buy-button:hover {
    background-color: #8f1212;
}

.fixed-cta-bar .buy-button:active {
    box-shadow: 0 1px 0 #8f1212;
    transform: translateY(3px);
}


/* --- 10. Responsividade --- */
@media (max-width: 1024px) {
    .main-content-wrapper, .solution-content-wrapper {
        gap: 30px;
    }
    /* Ajusta a grade de ofertas para 2 colunas em tablets */
    .offer-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Ajusta a altura da barra fixa no mobile para economizar espaço */
    :root {
        --fixed-alert-height: 40px; 
    }
    
    .main-content-wrapper, .solution-content-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    .product-info, .solution-text {
        padding: 0; 
    }
    .product-image-area, .solution-image-area {
        order: -1;
        min-height: 250px;
    }
    .main-title, .sub-heading {
        text-align: center;
    }
    .benefits-list li {
        text-align: left;
    }
    
    .offer-cards-grid {
        grid-template-columns: 1fr; /* 1 card por linha no mobile */
    }
    .offer-card:nth-child(1) {
        transform: none; /* Remove o translateY no mobile */
        margin-top: 30px; /* Ajusta a margem superior para a tag */
    }
    .bottom-guarantee-bar {
        flex-wrap: wrap;
        font-size: 0.9em;
    }

    /* Responsividade Barras Fixas */
    .timer-text {
        font-size: 0.9em; 
    }
    .timer-display {
        font-size: 1.2em;
    }

    .fixed-cta-bar-content {
        justify-content: space-between;
    }
    .cta-bar-text {
        font-size: 0.9em;
    }
    .fixed-cta-bar .buy-button {
        padding: 10px 15px;
        font-size: 1em;
        flex-shrink: 0;
    }
    
    .security-items-grid {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .cta-bar-text strong {
        display: block; /* Quebra a linha da oferta no mobile */
    }
}