:root {
    --azul: #023562;
    --amarelo: #ffb401;
    --laranja: #fe8301;
    --cinza: #f4f6f9;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--cinza);
}

/* HERO */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 10%;
    background: linear-gradient(120deg, #023562, #0353a4);
    color: white;
    flex-wrap: wrap;
    gap: 30px;
}

.hero-left {
    max-width: 500px;
}

/* VIDEO SHORTS (CORRETO) */

/* ===== CORREÇÃO FINAL SHORTS ===== */
.hero-right iframe {
    width: 100% !important;
    max-width: 320px !important;
    aspect-ratio: 9 / 16 !important;
    height: auto !important;
}

.video-container iframe {
    width: 100%;
    height: 280px;
}

/* BOTÃO */
.btn {
    background: linear-gradient(45deg, var(--laranja), var(--amarelo));
    padding: 14px 30px;
    border-radius: 8px;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* SECTION */
.section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

.section h2 {
    text-align: center;
    color: var(--azul);
    margin-bottom: 30px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-top: 4px solid var(--amarelo);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* IMAGEM CARD */
.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* DESTAQUE */
.destaque {
    border: 2px solid var(--amarelo);
}

/* FAQ */
.faq-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.faq-question {
    font-weight: bold;
    cursor: pointer;
}

.faq-answer {
    display: none;
    margin-top: 10px;
    color: #555;
}

/* CTA */
.cta {
    background: linear-gradient(90deg, var(--amarelo), var(--laranja));
    text-align: center;
    padding: 60px 20px;
    color: white;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    top: 0;
    left: 0;
    z-index: 999;
}

.modal-content {
    background: white;
    padding: 30px;
    max-width: 400px;
    margin: 8% auto;
    border-radius: 12px;
    position: relative;
    text-align: center;
}

.modal-content h2 {
    color: var(--azul);
}

.modal input,
.modal select {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.modal button {
    width: 100%;
    padding: 12px;
    background: var(--laranja);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.modal button:hover {
    background: #e86f00;
}

.fechar {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-weight: bold;
}

@media(max-width: 900px){

    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-right iframe {
        width: 100%;
        max-width: 320px;
        height: 560px;
        margin-top: 20px;
    }

    .hero-left h1 {
        font-size: 30px;
    }
}

/* ===== RESET GLOBAL (ANTI BUG) ===== */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* ===== GARANTE QUE NADA ESTOURE ===== */
img, iframe, video {
    max-width: 100%;
    height: auto;
}

/* ===== HERO AJUSTE ===== */
.hero-flex {
    flex-wrap: wrap;
    gap: 30px;
}

.hero-left,
.hero-right {
    flex: 1 1 300px;
}

/* ===== IFRAME RESPONSIVO ===== */
.hero-right iframe,
.video-container iframe {
    width: 100%;
    height: 280px;
}

/* ===== MOBILE VIDEO ===== */
@media(max-width: 768px){
        .video-container iframe {
        height: 200px;
    }
}

/* ===== CARDS SEM QUEBRAR ===== */
.cards {
    width: 100%;
}

.card {
    overflow: hidden;
}

/* ===== IMAGENS NÃO ESTOURAM ===== */
.card img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== BOTÕES NÃO ESTOURAM ===== */
.btn {
    max-width: 100%;
    white-space: nowrap;
}

/* ===== MODAL CENTRALIZADO CORRETO ===== */
.modal {
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 90%;
    max-width: 400px;
}

/* ===== SCROLL SUAVE (UX) ===== */
html {
    scroll-behavior: smooth;
}

/* ===== EVITA ESPAÇO LATERAL BUG ===== */
body::after {
    content: '';
    display: block;
    clear: both;
}

.card.destaque h3 {
    font-size: 40px;
    color: var(--laranja);
    margin-bottom: 5px;
}

.card.destaque p {
    font-weight: bold;
    color: var(--azul);
}

.bloco-resultados {
    text-align: center;
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

/* AJUSTE DO BOTÃO */
.bloco-resultados .btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: bold;
}

/* ESPAÇO ENTRE SEÇÕES */
.cta {
    margin-top: 60px;
}

/* REMOVE ESPAÇO EXTRA FINAL */
body {
    margin-bottom: 0;
}

section:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 40px;
}

/* ANTI ESPAÇO FANTASMA */
body, html {
    height: auto;
    overflow-x: hidden;
}

section {
    padding: 50px 20px;
}

.cta {
    margin-top: 30px;
}
/* ===== FIX FINAL SEM ALTERAR SEU CSS ===== */
.hero-right iframe {
    aspect-ratio: 9 / 16 !important;
    height: auto !important;
    max-width: 320px !important;
}

/* mobile ajuste */
@media(max-width: 768px){
    .hero-right iframe {
        aspect-ratio: 9 / 16 !important;
        height: auto !important;
    }
}

/* BOTÃO WHATSAPP FIXO */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 14px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 999;
    animation: pulse 1.8s infinite;
}

/* TEXTO */
.whatsapp-text {
    white-space: nowrap;
}

/* HOVER */
.whatsapp-btn:hover {
    transform: scale(1.05);
}

/* ANIMAÇÃO (CHAMATIVO) */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37,211,102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37,211,102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37,211,102, 0);
    }
}

/* MOBILE (fica só ícone) */
@media(max-width: 600px){
    .whatsapp-text {
        display: none;
    }

    .whatsapp-btn {
        border-radius: 50%;
        padding: 16px;
        font-size: 20px;
    }
}