/* ==========================================================================
   Variáveis CSS Premium (Paleta inspirada no nicho Beauty/Sobrancelhas)
   ========================================================================== */
:root {
    /* Cores principais */
    --color-primary: #D4B872; /* Dourado / Champanhe */
    --color-primary-hover: #E8D090;
    --color-accent: #B87A68; /* Ouro Rosé / Cobre Metálico */
    --color-accent-light: #D99B88;
    --color-brown-warm: #6B4A3A; /* Marrom Quente */
    --color-brown-warm-light: #8C5A45;
    
    /* Cores de Fundo (Dark Luxury) */
    --bg-dark: #181818; /* Fundo principal */
    --bg-darker: #222222; /* Fundo alternativo */
    --bg-card: rgba(255, 255, 255, 0.05); /* Glassmorphism */
    
    /* Textos */
    --text-main: #F2F2F2;
    --text-muted: #B3B3B3;
    
    /* Fontes */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

/* Sobrescrevendo a classe do Bootstrap para o tema escuro */
.text-muted {
    color: var(--text-muted) !important;
}

/* ==========================================================================
   Base e Tipografia
   ========================================================================== */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.highlight {
    color: var(--color-primary);
    font-weight: 800;
}

/* Efeito de Luz (Glow Fixo) para o Nome do Curso */
.text-glow-fx {
    text-shadow: 0 0 15px rgba(212, 184, 114, 0.8), 
                 0 0 30px rgba(212, 184, 114, 0.5), 
                 0 0 45px rgba(212, 184, 114, 0.3);
}

.badge-glow-fx {
    box-shadow: 0 0 20px rgba(212, 184, 114, 0.6);
}

.text-gold {
    color: var(--color-primary) !important;
}

.section-padding {
    padding: 100px 0;
}

/* ==========================================================================
   Botões e CTAs
   ========================================================================== */
.btn-cta {
    background: linear-gradient(135deg, var(--color-primary), #F3E5AB);
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(212, 184, 114, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho que varre o botão */
.btn-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shineSweep 3.5s infinite;
}

@keyframes shineSweep {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 184, 114, 0.6);
    color: #000;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

.btn-gold {
    background-color: var(--color-primary);
    color: #000;
    font-weight: 600;
    border: none;
    padding: 12px 30px;
}
.btn-gold:hover {
    background-color: var(--color-primary-hover);
    color: #000;
}

/* ==========================================================================
   Hero Section & Efeitos de Fundo
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
    height: calc(100vh - 32px); /* Trava o tamanho exato da primeira dobra descontando o banner fixo do topo */
    padding: 5px 0; 
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, transparent, var(--color-primary), transparent) 1;
}

/* Ajustes dinâmicos para o Desktop (escala automática pelo Vh pra sempre caber) */
@media (min-width: 992px) {
    .hero-text h1.display-4 {
        font-size: clamp(2rem, 5vh, 3.5rem);
        margin-bottom: 3vh !important;
    }
    .hero-text .lead {
        font-size: clamp(1rem, 2.5vh, 1.25rem);
        margin-bottom: 3vh !important;
    }
    .hero-text .badge-premium {
        font-size: clamp(0.75rem, 1.8vh, 0.9rem);
        padding: 1vh 15px;
        margin-bottom: 2vh !important;
    }
    .hero-text .btn-cta {
        padding: clamp(10px, 2.5vh, 18px) clamp(20px, 4vw, 40px);
        font-size: clamp(0.9rem, 2.2vh, 1.2rem);
    }
    .hero-text .security-badges {
        margin-top: 3vh !important;
        font-size: clamp(0.75rem, 1.8vh, 1rem);
    }
}

/* Efeitos Luminosos no Fundo */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
    animation: floatGlow 10s infinite alternate;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: rgba(212, 184, 114, 0.2); /* Dourado */
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: rgba(184, 122, 104, 0.15); /* Rose Gold */
    bottom: 50px;
    right: 10%;
    animation-delay: -5s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Textos do Desktop com Sombra para Leitura e Entrada em Cascata */
.hero-text {
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
    animation: none !important; /* Desativa a animação do bloco inteiro */
}

/* Aplica o efeito fadeUp individualmente em cascata */
.hero-text > * {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.3s; }
.hero-text > *:nth-child(3) { animation-delay: 0.5s; }
.hero-text > *:nth-child(4) { animation-delay: 0.7s; }
.hero-text > *:nth-child(5) { animation-delay: 0.9s; }

/* Background Image (Banner Desktop e Mobile) */
.hero-bg-image {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    /* Gradiente escuro na esquerda para dar legibilidade ao texto, sumindo na direita onde fica a foto */
    background-image: 
        linear-gradient(to right, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.7) 40%, transparent 65%),
        url('materiais/BannerToop.png');
    background-size: cover;
    background-position: center right;
    filter: none;
    opacity: 1; /* Totalmente visível no desktop, pois é o banner completo */
    z-index: 0;
    pointer-events: none;
    animation: kenBurnsBg 25s infinite alternate ease-in-out;
}

@keyframes kenBurnsBg {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(-1%, -1%); }
}

/* Fundo exclusivo e adaptado para o Mobile */
@media (max-width: 991px) {
    .hero-bg-image {
        /* Gradiente mais transparente na parte de baixo para revelar o rosto */
        background-image: 
            linear-gradient(to bottom, rgba(24, 24, 24, 0.85) 0%, rgba(24, 24, 24, 0.5) 50%, rgba(24, 24, 24, 0.1) 100%),
            url('materiais/BannerToop.png'); /* Usando a imagem em PNG (melhor resolução) no lugar do JPG */
        background-position: bottom right; /* Ajusta a posição para focar no rosto */
        filter: none;
        opacity: 1; 
        /* Corrigindo distorção e recorte no mobile */
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        animation: none;
        background-size: cover;
        image-rendering: high-quality;
        -webkit-backface-visibility: hidden; /* Previne desfoque 3D no iOS */
    }
}

/* Glow atrás da imagem */
.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 184, 114, 0.4) 0%, transparent 70%);
    z-index: 0;
    filter: blur(40px);
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* ==========================================================================
   Mobile Hero Layout Específico
   ========================================================================== */
.hero-mobile-layout {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    padding-top: 15vh; /* Aumentado para centralizar mais na tela */
}

.curso-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -1px;
}
.curso-text {
    font-size: clamp(2.2rem, 7vh, 3.5rem);
    color: #fff;
    margin-left: -5px;
}
.online-text {
    font-size: clamp(2.2rem, 7vh, 3.5rem);
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-primary);
    margin-top: -1vh;
}

.badge-design-sobrancelhas {
    background: linear-gradient(135deg, var(--color-primary), #F3E5AB);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    padding: 6px 20px !important;
    border-radius: 50px;
    display: inline-block;
    font-size: clamp(0.7rem, 1.8vh, 0.9rem) !important;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(212, 184, 114, 0.3);
}

.do-zero-text {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(0.9rem, 2vh, 1.2rem);
    opacity: 0.9;
    margin-bottom: 2vh !important;
}

.hero-image-mobile img {
    max-height: 35vh; /* O pulo do gato: A imagem não quebra a tela, escala pela altura do cel */
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.bottom-hero-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1rem, 2.8vh, 1.4rem);
    line-height: 1.2;
    margin-top: 1vh !important;
}

/* Tamanho do Botão Mobile */
.hero-mobile-layout .btn-cta {
    font-size: 1rem;
    padding: 14px 24px;
    max-width: 90%;
    margin: auto auto 15px auto !important; /* 'auto' no top empurra o botão para baixo */
    display: inline-block;
    white-space: normal;
}

.hero-mobile-layout .scroll-arrows {
    margin-top: 10px; 
    margin-bottom: 4vh; /* Margem pro fundo da tela na seta */
}

@media (max-width: 500px) {
    .curso-text, .online-text {
        font-size: 3rem;
    }
    .badge-design-sobrancelhas {
        font-size: 0.85rem !important;
        padding: 6px 20px !important;
    }
    .bottom-hero-text {
        font-size: 1rem;
        padding: 0 10px;
    }
    .hero-mobile-layout {
        padding-top: 18vh;
    }
}

.badge-premium {
    background: rgba(212, 184, 114, 0.1);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.security-badges span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.drop-shadow-premium {
    filter: drop-shadow(0px 20px 30px rgba(212, 184, 114, 0.2));
    max-width: 90%;
    transform: scale(1.05);
}

/* ==========================================================================
   Seções Gerais (Glassmorphism e Cards)
   ========================================================================== */
.target-audience {
    background-color: var(--bg-dark);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(212, 184, 114, 0.2), transparent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-primary);
}

/* ==========================================================================
   Acessibilidade / Como Funciona
   ========================================================================== */
.accessibility-section {
    background-color: var(--bg-darker);
    color: #fff;
}
.accessibility-section .highlight {
    color: #B5852A;
}
.accessibility-section .text-gold {
    color: #B5852A !important;
}

.border-gold {
    border: 3px solid var(--color-primary);
}

.custom-list li {
    font-size: 1.1rem;
}

.acessibility-img {
    max-height: 500px;
    object-fit: cover;
}

/* ==========================================================================
   Autoridade (Talita)
   ========================================================================== */
.authority-section {
    background-image: url('https://images.unsplash.com/photo-1617300300780-e838cb986162?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.authority-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.85);
}

.border-gold-thick {
    border: 5px solid var(--color-primary);
    padding: 5px;
}

.profile-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
}

.letter-spacing {
    letter-spacing: 3px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Alunos / Prova Social
   ========================================================================== */
.students-section {
    background-color: var(--bg-dark);
}

.student-img {
    border: 2px solid var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 3/4;
    object-fit: cover;
    width: 100%;
}

.student-img:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(212, 184, 114, 0.4) !important;
}

/* ==========================================================================
   Garantia
   ========================================================================== */
.guarantee-section {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

/* ==========================================================================
   Oferta
   ========================================================================== */
.offer-section {
    background: url('materiais/fundo-oferta.png') center center / cover no-repeat;
    position: relative;
}

.offer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.75); /* Overlay escuro para manter o texto legível */
    z-index: 0;
}

.offer-section > .container {
    position: relative;
    z-index: 1;
}

.offer-card {
    background: linear-gradient(145deg, #222, #111);
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    padding: 50px 30px;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(212, 184, 114, 0.15);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.cash-price {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   Rodapé e Contato
   ========================================================================== */
.footer-section {
    background-color: var(--bg-darker);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.form-custom {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
}
.form-custom:focus {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--color-primary);
    color: var(--text-main);
    box-shadow: none;
}
.form-custom::placeholder {
    color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   Animações de Scroll
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Animações Iniciais Hero */
.animate-fade-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-fade-left {
    animation: fadeLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

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

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 991px) {
    .hero-section {
        height: calc(100vh - 32px); /* Mantém 100vh exato mesmo no mobile */
        padding: 5px 0; 
    }
    .profile-img {
        width: 200px; /* Reduzido de 250px para 200px para evitar pixelização se a foto for menor */
        height: 200px;
        image-rendering: high-quality;
    }
    /* Corrige o bug do iOS que pixela backgrounds com fixed */
    .authority-section {
        background-attachment: scroll !important;
    }
}
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    .top-banner {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    .top-banner-content {
        flex-direction: row;
        gap: 8px;
        line-height: 1.2;
    }
}

/* ==========================================================================
   Top Banner (Escassez)
   ========================================================================== */
.top-banner {
    background: linear-gradient(90deg, #111111, #222222, #111111);
    border-bottom: 1px solid rgba(212, 184, 114, 0.3);
    color: var(--text-main);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.5s ease-out;
}

.top-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-primary);
    animation: pulseDot 2s infinite;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 184, 114, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(212, 184, 114, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 184, 114, 0); }
}
