/* =============================================================
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 UNIFICADO (Mobile First & Performance)
============================================================= */
.hero {
    position: relative;
    /* Garante altura mínima para caber tudo, mas flexível */
    min-height: 90vh; 
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza tudo */
    overflow: hidden;
    padding-top: 80px; /* Espaço para o menu fixo */
    text-align: center;
}

/* Camada da Imagem */
.hero-bg {
    position: absolute;
    inset: 0; /* Ocupa todo o espaço da seção */
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cobre a área sem distorcer */
    /* No Desktop, se a foto for rosto do lado esquerdo, mantém left center */
    /* Se a foto for centralizada, mude para center center */
    object-position: center top; 
    opacity: 0.6; /* Leve transparência nativa na imagem */
}

/* Camada do Véu (Overlay) */
.hero-overlay {
    position: absolute;
    inset: 0;
    /* Gradiente que escurece embaixo para o texto aparecer */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.95) 90%);
    z-index: 1;
}

/* Camada do Conteúdo */
.hero .container {
    position: relative;
    z-index: 2; /* Garante que fica acima da imagem e do véu */
    max-width: 900px;
    margin: 0 auto;
}

/* Título */
.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.5rem); /* Tamanho adaptativo */
    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); /* Ou vermelho, conforme sua paleta */
    font-weight: 700;
}

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

/* Ajuste dos Botões */
.hero .cta-wrap {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* === AJUSTES ESPECÍFICOS MOBILE === */
@media (max-width: 768px) {
    .hero {
        min-height: 85vh; /* Ajuste para telas menores */
        padding-bottom: 4rem; /* Espaço extra embaixo */
    }

    .hero-bg img {
        /* No mobile, foca no topo da imagem (rosto) */
        object-position: top center;
        opacity: 0.5; /* Mais escuro no mobile para ler melhor */
    }
    
    .hero-title {
        font-size: 2.2rem; /* Título grande, mas legível */
    }
    
    .subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .btn-covil, .btn-ghost {
        width: 100%; /* Botões ocupam largura total no dedo */
        max-width: 320px;
    }
}



/* =============================================================
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);
}

/* =============================================================
BOTÕES GERAIS
============================================================= */
.btn-covil {
    display: inline-block;
    padding: .95rem 1.3rem;
    border-radius: 12px;
    border: 1px solid var(--dourado);
    color: #111;
    background: linear-gradient(180deg, #ffd76a, var(--dourado));
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: transform .15s ease;
}

.btn-covil:hover {
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-block;
    padding: .95rem 1.3rem;
    border-radius: 12px;
    border: 1px solid #444;
    color: var(--branco);
    background: transparent;
    font-weight: 600;
}

/* =============================================================
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);
}

/* =============================================================
HERO SECTION — Primeira dobra da página ⚜️
============================================================= */
.hero {
    position: relative;
    min-height: 88vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 7rem 1rem 5rem;
}

.hero .container {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.hero .title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.2;
    color: var(--branco);
    margin-bottom: 1.5rem;
}

.subtitle {
    margin-top: 1rem;
    color: #ddd;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
}

/* CENTRALIZAÇÃO REAL DOS BOTÕES */
.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;
}

/* ============================================================
   BOTÕES DO HERO — Covil do Pai Hiago ⚜️
   ============================================================ */

/* 🔱 BOTÃO PRINCIPAL — Dourado ritualístico */
.btn-covil {
  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; /* ✨ Pulso dourado contínuo */
}

/* ✨ EFEITO DE BRILHO AO PASSAR O MOUSE */
.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;
}

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

/* 🔮 EFEITO DE PULSO DOURADO SUAVE */
@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);
  }
}

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

/* ⚫ BOTÃO SECUNDÁRIO — Outline */
.btn-ghost {
  background: transparent;
  border: 2px solid #d4af37;
  color: #f0f0f0;
  font-weight: 600;
  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);
}

/* =============================================================
RESPONSIVIDADE
============================================================= */
@media (max-width: 768px) {
  .hero .cta-wrap {
    flex-direction: column;
  }

  .btn-covil, .btn-ghost {
    width: 90%;
    text-align: center;
  }

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

/* =============================================================
HEADER STICKY (opcional)
============================================================= */
.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 RESPONSIVO
============================================================= */

/* Container que mantem a proporção 16:9 sempre */
.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--dourado); /* Moldura dourada fina */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #000;
}

.video-responsive-wrapper iframe,
.video-responsive-wrapper object,
.video-responsive-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.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;
}

.align-top {
    align-items: flex-start; /* Alinha o texto ao topo, não ao centro */
}

/* 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; } /* Esconde o segundo botão no mobile para limpar a tela */
    
    .video-col {
        margin-bottom: 2rem;
    }
}

/* Ajuste de Prova Social na Hero */
.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;
}

/* Ajuste para celulares muito pequenos (iPhone SE, etc) */
@media (max-width: 400px) {
    .badge-alunos {
        font-size: 0.72rem;
        padding: 4px 10px;
    }
}

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

/* Selo de Atendimento (Atemporal) */
.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);
}

/* Botão de WhatsApp com Efeito de Destaque */
.btn-whats-covil {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25d366; 
    color: #fff !important;
    padding: 18px 35px;
    border-radius: 8px; /* Combinando com os outros botões do site */
    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;
}

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

/* Alerta de som pulsante para Mobile */
.mobile-sound-alert {
    display: none; /* Escondido por padrão (Desktop) */
    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; }
}

/* Exibir apenas em dispositivos móveis */
@media (max-width: 768px) {
    .mobile-sound-alert {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    
    /* Garante que o container do vídeo tenha altura suficiente 
       para o YouTube não esconder os controles de som */
    .video-responsive-wrapper {
        position: relative;
        padding-bottom: 56.25%; /* Proporção 16:9 */
        height: 0;
        overflow: hidden;
        border-radius: 8px;
    }
    
    .video-responsive-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.video-container-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border: 2px solid var(--dourado);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

#vsl-player {
    width: 100%;
    height: 100%;
}

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

.unmute-content {
    background: var(--dourado);
    color: #000;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse-sound 1.5s infinite;
}

@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); }
}
