/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* PÁGINA DE VENDAS - APOSTILA CONCURSO CARAPICUÍBA 2026 */
/* CSS PURO - Sem dependências, totalmente responsivo */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* VARIÁVEIS GLOBAIS */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

:root {
    --primary-color: #004b8d;
    --secondary-color: #fdb913;
    --accent-color: #ff6b35;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    
    /* CORES SOLICITADAS PELO USUÁRIO */
    --yellow-opaque: rgba(253, 185, 19, 0.85); /* Amarelo meio opaco */
    --dark-blue: #003366; /* Azul escuro para fonte */
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* RESET GLOBAL */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* HEADER */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-color);
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* MAIN CONTAINER */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* HERO SECTION */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* BANNER SECTION - AJUSTADO PARA IMAGEM COMPLETA */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

.banner-section {
    margin: 2rem 0 3rem;
}

.banner-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    height: auto; /* Deixa a altura ser definida pela imagem */
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5; /* Fundo neutro caso a imagem não preencha tudo */
}

.banner-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.banner-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-image {
    width: 100%;
    height: auto;
    object-fit: contain; /* GARANTE QUE A IMAGEM APAREÇA COMPLETA */
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.1); /* Fundo ainda mais leve */
    display: flex;
    flex-direction: column;
    justify-content: center; /* CENTRALIZA VERTICALMENTE */
    align-items: flex-start; /* ALINHADO À ESQUERDA */
    padding: 1.5rem 3rem;   /* Espaçamento lateral maior para não colar na borda */
    color: white;
    text-align: left;
}

.banner-overlay h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: none; /* Escondido para focar na imagem se ela já tiver texto */
}

.banner-overlay p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* BOTÕES - CORES E TAMANHOS PERSONALIZADOS */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

.btn-primary,
.btn-secondary,
.btn-buy-now {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    text-align: center;
}

/* BOTÃO VER DETALHES - BEM MENOR NA LARGURA E AMARELO COM FONTE AZUL */
.btn-primary {
    background-color: var(--yellow-opaque);
    color: var(--dark-blue);
    width: auto;
    min-width: 180px; /* Largura reduzida conforme solicitado */
    max-width: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover,
.btn-primary:active {
    background-color: #fdb913;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background-color: var(--yellow-opaque);
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
    width: auto;
    min-width: 180px;
    max-width: 250px;
}

.btn-secondary:hover,
.btn-secondary:active {
    background-color: #fdb913;
    transform: scale(1.05);
}

/* BOTÃO COMPRAR - VERMELHO VIBRANTE, MENOR E COMPACTO */
.btn-buy-now {
    background: #ff0000; /* Vermelho vibrante */
    color: #ffffff;    /* Fonte branca para contraste no vermelho */
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 800;
    width: auto;
    min-width: 160px;
    max-width: 220px;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
    border: none;
    text-transform: uppercase;
}

.btn-buy-now:hover,
.btn-buy-now:active {
    transform: scale(1.05);
    background-color: #cc0000;
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* CTA SECTION */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003a6d 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* MODAL */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 100;
}

.modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* MODAL HEADER - AJUSTADO PARA IMAGEM COMPLETA */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

.modal-header {
    background: #f8f9fa;
    color: var(--text-dark);
    padding: 0;
    text-align: center;
    position: relative;
}

.modal-banner-image {
    width: 100%;
    height: auto;
    object-fit: contain; /* GARANTE QUE A IMAGEM NO MODAL APAREÇA COMPLETA */
    display: block;
    background: #f0f2f5;
}

.modal-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0.75rem 1.5rem 0.25rem; /* Margens reduzidas */
    line-height: 1.3;
    color: var(--primary-color);
}

.modal-subtitle {
    font-size: 1rem;
    margin: 0 1.5rem 0.75rem; /* Margens reduzidas */
    color: var(--text-light);
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* MODAL BODY - BOTÃO COMPRAR NO TOPO */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

.modal-body {
    padding: 0.5rem 2rem 2rem; /* Reduzido o padding superior */
}

.modal-buy-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem; /* Espaço mínimo abaixo do botão */
    position: sticky;
    top: 0;
    background: white;
    padding: 0.25rem 0; /* Container mais compacto */
    z-index: 50;
    border-bottom: 1px dashed var(--border-color);
}

.intro-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.content-box {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.content-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.content-box ul {
    list-style: none;
    padding-left: 0;
}

.content-box li {
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-box li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* BENEFITS SECTION */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

.benefits-section {
    margin-bottom: 1.5rem;
}

.benefits-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.benefit-item {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: var(--transition);
}

.benefit-item:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-light);
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* WARNING BOX */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

.warning-box {
    background-color: #fffdf5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ffc107;
}

.warning-box h3 {
    color: #ff9800;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.warning-box p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* CALL TO ACTION */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

.call-to-action {
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    color: var(--primary-color);
}

.modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    display: none; /* Escondido pois o botão foi para o topo */
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* FOOTER */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVIDADE */
/* ═══════════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .modal-content {
        max-height: 95vh;
        margin: 0;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .btn-buy-now {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}
