/* ============================================================
   HERO COM VÍDEO + NAV FLUTUANTE (index.html)
   Tradução fiel da spec Tailwind para CSS puro:
   - overlay bg-black/10
   - nav pill: bg-black/40 + backdrop-blur-xl (24px) + border-white/10
   - CTA da nav: bg-white/15 + backdrop-blur-2xl (40px) + border-white/40
   - botão primário: from-orange-500 via-purple-600 to-orange-500,
     bg-[length:200%_200%] com shift de 4s + sweep de 3s
   - botão secundário: bg-white/10 + backdrop-blur-xl + border-white/30
   - conteúdo em pt-44 (176px)
   ============================================================ */

:root {
    --hv-serif: 'Instrument Serif', 'Playfair Display', Georgia, 'Times New Roman', serif;
    --hv-orange: #f97316;   /* orange-500 */
    --hv-purple: #9333ea;   /* purple-600 */
}

/* ---------- NAV FLUTUANTE (pill) ---------- */
.has-hero-video #mainHeader,
.has-hero-video #mainHeader.scrolled {
    padding: 14px clamp(12px, 3vw, 24px) 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
    box-shadow: none;
}

.has-hero-video #mainHeader nav {
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
    height: 56px;
    max-width: 1080px;
    padding: 0 8px 0 22px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Fora do hero (seções claras) a pill escurece para manter contraste */
.has-hero-video #mainHeader.scrolled nav {
    background: rgba(10, 12, 22, 0.88);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.has-hero-video .logo img {
    height: 24px;
}

.has-hero-video .nav-menu {
    gap: 28px;
}

.has-hero-video .nav-menu li a {
    color: rgba(255, 255, 255, 0.72);
}

.has-hero-video .nav-menu li a::after {
    background: #ffffff;
}

.has-hero-video .nav-menu li a:hover,
.has-hero-video .nav-menu li a.active {
    color: #ffffff;
}

.has-hero-video .mobile-toggle span {
    background: #ffffff;
}

.has-hero-video .mobile-toggle.active span {
    background: var(--text-primary);
}

/* CTA "glassy" à direita da pill */
.has-hero-video .nav-menu li.nav-cta {
    margin-left: 4px;
}

.hv-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out-expo);
}

.hv-nav-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.hv-nav-cta::after {
    display: none !important;
}

.hv-nav-cta svg {
    width: 15px;
    height: 15px;
}

/* ---------- HERO ----------
   Especificidade .hero.hero-video: futuristic.css (injetado pelo futuristic.js,
   carrega depois deste arquivo) também estiliza .hero e venceria por ordem. */
.hero.hero-video {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    min-height: 100svh;
    padding: 176px clamp(20px, 5vw, 80px) 120px; /* pt-44 */
    background: #070a14;
    isolation: isolate;
}

.hv-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

/* Variante "glow": vídeo desfocado e mesclado em screen, lido como brilho
   ambiente atrás do texto (treinamentos.html). Escala >1 esconde as bordas
   suavizadas pelo blur. */
.hv-bg--glow {
    filter: blur(48px) saturate(1.2);
    opacity: 0.8;
    mix-blend-mode: screen;
    transform: scale(1.18);
}

@media (max-width: 768px) {
    .hv-bg--glow {
        filter: blur(32px) saturate(1.2);
        transform: scale(1.25);
    }
}

.hv-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1); /* bg-black/10 */
    z-index: 1;
    pointer-events: none;
}

.hv-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 960px;
}

/* Eyebrow (105%) */
.hv-proof {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transform: scale(1.05);
    transform-origin: center;
    margin-bottom: 30px;
    padding: 9px 18px 9px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hv-proof-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hv-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2), 0 0 12px rgba(249, 115, 22, 0.6);
    flex-shrink: 0;
}

.hv-proof-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.hv-proof-text strong {
    color: #ffffff;
    font-weight: 700;
}

/* Headline */
.hv-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6.4vw, 4.75rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #ffffff;
    max-width: 14ch;
    margin: 0 0 22px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    text-wrap: balance;
}

.hv-title em {
    font-family: var(--hv-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.08em;
    letter-spacing: -0.01em;
    padding-right: 0.06em;
}

/* Subheadline: quebra em 2 linhas no desktop */
.hv-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.55vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: 640px;
    margin: 0 auto 36px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
    text-wrap: pretty;
}

/* CTAs */
.hv-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hv-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 30px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s, background 0.3s, border-color 0.3s;
}

.hv-btn > * {
    position: relative;
    z-index: 1;
}

.hv-btn svg {
    width: 18px;
    height: 18px;
}

.hv-btn:hover {
    transform: translateY(-2px);
}

/* Primário: gradiente animado + sweep de luz */
.hv-btn-primary {
    background: linear-gradient(90deg, var(--hv-orange) 0%, var(--hv-purple) 50%, var(--hv-orange) 100%);
    background-size: 200% 200%;
    animation: hv-gradient-shift 4s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(147, 51, 234, 0.4), 0 2px 8px rgba(249, 115, 22, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hv-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 60%;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
    transform: translateX(-160%) skewX(-12deg);
    animation: hv-light-sweep 3s ease-in-out infinite;
    pointer-events: none;
}

.hv-btn-primary:hover {
    box-shadow: 0 16px 50px rgba(147, 51, 234, 0.5), 0 4px 12px rgba(249, 115, 22, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Secundário: vidro branco */
.hv-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 24px rgba(0, 0, 0, 0.2);
}

.hv-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}

.hv-btn-secondary svg {
    fill: #ffffff;
    stroke: #ffffff;
}

/* ---------- KEYFRAMES ---------- */
@keyframes hv-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes hv-light-sweep {
    0%        { transform: translateX(-160%) skewX(-12deg); }
    55%, 100% { transform: translateX(280%) skewX(-12deg); }
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1024px) {
    .has-hero-video .nav-menu {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .has-hero-video #mainHeader {
        padding-top: 12px;
    }

    .has-hero-video #mainHeader nav {
        padding: 0 16px 0 18px;
        height: 52px;
    }

    /* Dentro do drawer mobile (fundo claro) o CTA vira escuro */
    .has-hero-video .nav-menu li.nav-cta {
        margin-left: 0;
    }

    .has-hero-video .hv-nav-cta {
        background: var(--text-primary);
        border-color: var(--text-primary);
        color: #ffffff !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero.hero-video {
        padding: 120px 20px 96px;
    }

    .hv-proof {
        transform: scale(1);
        margin-bottom: 24px;
    }

    .hv-title {
        font-size: clamp(2.3rem, 10vw, 3rem);
        max-width: none;
    }

    .hv-subtitle {
        font-size: 1rem;
        max-width: 480px;
        margin-bottom: 28px;
    }

}

@media (max-width: 480px) {
    .hv-proof-text {
        font-size: 13px;
    }

    .hv-cta {
        flex-direction: column;
        width: 100%;
        max-width: 340px;
    }

    .hv-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hv-btn-primary,
    .hv-btn-primary::after {
        animation: none;
    }

    .hv-btn-primary::after {
        display: none;
    }
}
