/* =============================================================
   COVIL V4 — main.css
   Propósito: Variáveis, reset, tipografia, grids, utilitários e botões
============================================================= */

:root {
    --preto: #000000;
    --branco: #f0f0f0;
    --cinza: #b4b4b4;
    --dourado: #d4af37;
    --vermelho: #a00;
    --royal: #4169E1;
    --card-bg: rgba(255, 255, 255, .03);
    --card-borda: rgba(212, 175, 55, .15);
    --radius: 18px;
    --shadow: 0 6px 18px rgba(212, 175, 55, .25);
}

/* =============================================================
   RESET E BASE
============================================================= */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--preto);
    color: var(--branco);
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =============================================================
   LAYOUT BASE
============================================================= */
.container {
    width: min(1140px, 92vw);
    margin-inline: auto;
}

.section {
    padding: 4.5rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: center;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* =============================================================
   TIPOGRAFIA
============================================================= */
h1,
h2,
h3 {
    font-family: 'Cinzel', serif;
    letter-spacing: .2px;
}

/* =============================================================
   HERO
============================================================= */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    text-align: center;
}

/* Camada da Imagem */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.6;
}

/* Camada do Véu */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.95) 90%);
    z-index: 1;
}

/* Conteúdo */
.hero .container {
    position: relative;
    z-index: 2;
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.hero-title,
.hero .title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--branco);
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.hero-title .highlight {
    color: var(--dourado);
    font-weight: 700;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #e0e0e0;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.hero .cta-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
    text-align: center;
    width: 100%;
}

.hero .cta-wrap a {
    margin: 0 auto;
}

/* Badges */
.badges {
    margin-top: 1.8rem;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    color: #bbb;
    font-size: .95rem;
}

.badge-alunos {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--dourado);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    border: 1px solid var(--dourado);
    font-size: 0.85rem;
}

@media (max-width: 400px) {
    .badge-alunos {
        font-size: 0.72rem;
        padding: 4px 10px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
        padding-bottom: 4rem;
    }

    .hero-bg img {
        object-position: top center;
        opacity: 0.5;
    }

    .hero-title,
    .hero .title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .hero .cta-wrap {
        flex-direction: column;
    }
}

/* =============================================================
   BOTÕES
============================================================= */

/* Principal — Dourado */
.btn-covil {
    display: inline-block;
    background: linear-gradient(90deg, #d4af37, #f6e27a);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: pulseGold 3.5s infinite ease-in-out;
}

.btn-covil::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-25deg);
}

.btn-covil:hover::before {
    animation: shine 1.2s ease forwards;
}

.btn-covil:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

@keyframes shine {
    0%   { left: -75%; }
    100% { left: 125%; }
}

@keyframes pulseGold {
    0%   { box-shadow: 0 0 10px rgba(212,175,55,0.25), 0 0 20px rgba(212,175,55,0.15); transform: scale(1); }
    50%  { box-shadow: 0 0 20px rgba(212,175,55,0.45), 0 0 40px rgba(212,175,55,0.25); transform: scale(1.02); }
    100% { box-shadow: 0 0 10px rgba(212,175,55,0.25), 0 0 20px rgba(212,175,55,0.15); transform: scale(1); }
}

/* Secundário — Outline */
.btn-ghost {
    display: inline-block;
    background: transparent;
    border: 2px solid #d4af37;
    color: var(--branco);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(212, 175, 55, 0.12);
    color: #fff;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

/* WhatsApp */
.btn-whats-covil {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25d366;
    color: #fff !important;
    padding: 18px 35px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-whats-covil:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    background: #20ba5a;
}

@media (max-width: 768px) {
    .btn-covil,
    .btn-ghost {
        width: 90%;
        text-align: center;
    }
}

/* =============================================================
   CARDS E LISTAS
============================================================= */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-borda);
    border-radius: var(--radius);
    padding: 1.4rem;
}

.bullets {
    display: grid;
    gap: 10px;
    margin: 5px;
    padding: 5px;
}

.bullets li {
    list-style: none;
    padding-left: 28px;
    position: relative;
}

.bullets li::before {
    content: '\2727';
    position: absolute;
    left: 0;
    color: var(--dourado);
}

/* =============================================================
   BADGES / TAGS
============================================================= */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .4rem .8rem;
    border: 1px solid rgba(212, 175, 55, .35);
    border-radius: 999px;
    font-size: .9rem;
    color: #e9e1c1;
}

/* =============================================================
   UTILITÁRIOS
============================================================= */
.cta-wrap {
    margin-top: 2rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dourado);
}

.align-top {
    align-items: flex-start;
}

/* Controle de botões Mobile vs Desktop */
.cta-mobile-only { display: none; }
.cta-desktop     { display: block; }

@media (max-width: 900px) {
    .cta-mobile-only { display: block; }
    .cta-desktop     { display: none; }

    .video-col {
        margin-bottom: 2rem;
    }
}

/* Container do botão WhatsApp */
.cta-whats-wrapper {
    margin: 2rem 0;
}

/* Selo de Atendimento */
.support-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--dourado);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 6px 15px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.05);
}

/* Nota de rodapé */
.duvidas-note {
    font-size: 0.9rem;
    color: #888;
    margin-top: 1.5rem;
}

/* =============================================================
   HEADER STICKY
============================================================= */
.site__header {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background .25s ease, box-shadow .25s ease;
}

.site__header.scrolled {
    background: rgba(0, 0, 0, .9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

/* =============================================================
   VSL / VÍDEO
============================================================= */

/* Wrapper responsivo 16:9 — usado pelo YouTube IFrame API */
.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 2px solid var(--dourado);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #000;
    max-width: 800px;
    margin: 0 auto;
}

/* O iframe injetado pelo YT API herda posicionamento absoluto */
.video-responsive-wrapper iframe,
.video-responsive-wrapper object,
.video-responsive-wrapper embed,
#vsl-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Bloqueia cliques diretos no iframe */
}

/* Placeholder enquanto o vídeo não carrega */
.video-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
    background: #111;
}

/* Overlay de unmute */
.unmute-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
}

.unmute-content {
    background: var(--dourado);
    color: #000;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: pulse-sound 1.5s infinite;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
}

@keyframes pulse-sound {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0   rgba(212, 175, 55, 0.7); }
    70%  { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(212, 175, 55, 0); }
}

/* Alerta de som — só mobile */
.mobile-sound-alert {
    display: none;
    background: rgba(212, 175, 55, 0.15);
    color: var(--dourado);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 10px auto;
    width: max-content;
    border: 1px solid var(--dourado);
    animation: pulse-alert 2s infinite;
}

@keyframes pulse-alert {
    0%   { transform: scale(1);    opacity: 1; }
    50%  { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1);    opacity: 1; }
}

@media (max-width: 768px) {
    .mobile-sound-alert {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
}

/* ===== COUNTDOWN MOBILE ===== */
@media (max-width: 768px) {
  #countdown-timer {
    font-size: 0.95rem !important;
    padding: 8px 15px !important;
    margin-bottom: 1.5rem !important;
  }
  
  #countdown {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #countdown-timer {
    font-size: 0.85rem !important;
    padding: 6px 12px !important;
  }
}