/* ══════════════════════════════════════════════════════
   ESTILO.CSS — Manuela Ferraiolo · Taoismo Sexual
   Paleta: ink (fundo) + gold (acento taoista)
          + rose (feminino) + parchment (texto)
   ══════════════════════════════════════════════════════ */

/* ── Base ── */
body { background-color: #0a0a0a; color: #e8ddc5; overflow-x: hidden; }
h1, h2, h3, h4, h5, .font-display { font-family: 'Cormorant Garamond', serif; }
.font-body { font-family: 'Raleway', sans-serif; }

/* ── Navegacao ── */
.glass-nav {
    background: rgba(10, 10, 10, 0.92);
    /* O prefixo -webkit- e obrigatorio no Safari do iPhone */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 162, 75, 0.12);
}
.nav-logo {
    height: 46px;
    width: auto;
    transition: opacity 0.3s ease;
}
.nav-logo:hover { opacity: 0.8; }

/* ── Menu Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 60;
}
.hamburger span {
    width: 24px;
    height: 1.5px;
    background: #e8ddc5;
    transition: all 0.3s ease;
    display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 767px) {
    .hamburger { display: flex; }
    /* Barra do menu mais fina no celular */
    .nav-logo { height: 34px; }
    .glass-nav > div { padding-top: 8px; padding-bottom: 8px; }
    .nav-links { display: none !important; }
    .nav-links.active {
        display: flex !important;
        position: fixed;
        top: 51px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.99);
        padding: 24px;
        gap: 12px;
        border-bottom: 1px solid rgba(201, 162, 75, 0.2);
        z-index: 50;
    }
    .nav-links.active a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(201, 162, 75, 0.08);
        font-size: 12px;
    }
}

/* ══════════════════════════════════════════════════════
   HERO — Slideshow com crossfade
   ══════════════════════════════════════════════════════ */
.hero-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Enquadra mais alto: garante que o rosto apareça inteiro */
    object-position: center 22%;
    opacity: 0;
    /* Estado de repouso = fim do zoom. Assim, quando a animacao
       termina e a classe sai, nao ha salto nenhum. */
    transform: scale(1);
    transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}
.hero-slide.ativa {
    opacity: 1;
    animation: zoomOut 7s linear;
}
/* Versao mais rapida (secao Sobre) — duracao precisa bater com o
   INTERVALO definido em principal.js pra esse mesmo container. */
.hero-slideshow-rapido .hero-slide.ativa {
    animation-duration: 4.5s;
}
@keyframes zoomOut {
    from { transform: scale(1.10); }
    to   { transform: scale(1); }
}

/* Veu escuro sobre o slideshow — garante leitura do texto */
.ink-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.78) 70%, rgba(10,10,10,0.94) 100%),
        linear-gradient(to bottom, rgba(10,10,10,0.55), rgba(10,10,10,0.35) 40%, rgba(10,10,10,0.96));
}
/* Secao "Sobre": mais escura que o hero do topo, texto mais denso ali */
#sobre .ink-veil {
    background:
        radial-gradient(ellipse at center, rgba(10,10,10,0.62) 0%, rgba(10,10,10,0.87) 65%, rgba(10,10,10,0.97) 100%),
        linear-gradient(to bottom, rgba(10,10,10,0.72), rgba(10,10,10,0.55) 40%, rgba(10,10,10,0.98));
}

/* ── Parallax (secoes internas) ── */
.parallax-section { position: relative; overflow: hidden; }
.parallax-img {
    position: absolute;
    inset: 0;
    height: 120%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    z-index: 0;
}

/* ── Particulas flutuantes ── */
.mote {
    position: absolute;
    bottom: -20px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, #c9a24b, transparent);
    opacity: 0;
    animation: rise linear infinite;
}
.mote-rose { background: radial-gradient(circle, #d4778e, transparent); }
@keyframes rise {
    0%   { opacity: 0; transform: translateY(0) scale(0.5); }
    20%  { opacity: 0.5; }
    100% { opacity: 0; transform: translateY(-80vh) scale(1.5); }
}
.motes-paused .mote { animation-play-state: paused; }

/* ── Divisor decorativo (toque feminino) ── */
.divisor-floral {
    display: block;
    margin: 0 auto;
    max-width: 320px;
    height: auto;
    opacity: 0.75;
}

/* ══════════════════════════════════════════════════════
   VIDEO DE ENERGIA — scroll-sync (Home) e loop (Comunidade)
   Fundo preto: o video tem fundo preto nativo, entao o bloco
   inteiro precisa ser preto para parecer efeito, nao player.
   ══════════════════════════════════════════════════════ */
/* O preto do video nao e puro: e #030303, mais escuro que o fundo do
   site (#0a0a0a). O bloco usa a MESMA cor solida do video (nada de
   degrade) para nao existir nenhuma linha de transicao. */
.video-scroll-wrapper {
    position: relative;
    height: 500vh; /* mais altura = scroll mais lento e fluido */
    /* Cor solida, sem degrade: qualquer gradiente cria uma "costura"
       visivel em telas com brilho alto. Cor identica a do video. */
    background: #030303;
}
.video-scroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}
.video-scroll-container {
    position: relative;
    width: 100%;
    max-width: 560px;   /* maior que antes (era 420) */
    height: 88vh;       /* ocupa quase toda a altura */
    max-height: 900px;
    z-index: 10;
    margin: 0 auto;
}
.video-scroll-container video,
.video-scroll-container canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Dissolve a borda retangular do video num degrade suave.
       Cor de fundo identica ao video resolve em brilho normal, mas
       o preto comprimido do video sempre tem ruido residual — em
       brilho bem alto, qualquer diferenca minima vira uma linha
       nitida. A mascara elimina a borda em si: o video vai sumindo
       aos poucos, sem nunca ter uma quina reta pra aparecer. */
    -webkit-mask-image: radial-gradient(ellipse 78% 88% at center, #000 58%, transparent 100%);
    mask-image: radial-gradient(ellipse 78% 88% at center, #000 58%, transparent 100%);
}

/* Bloco de video em loop (Comunidade) — mesma cor do video (#030303),
   com as pontas derretendo no fundo da pagina. */
.video-loop-section {
    /* Cor solida, sem degrade: qualquer gradiente cria uma "costura"
       visivel em telas com brilho alto. Cor identica a do video. */
    background: #030303;
}
.video-loop-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.video-loop-container video {
    width: 100%;
    height: auto;
    display: block;
    /* Mesma dissolucao de borda do video-scroll (ver comentario la) */
    -webkit-mask-image: radial-gradient(ellipse 78% 88% at center, #000 58%, transparent 100%);
    mask-image: radial-gradient(ellipse 78% 88% at center, #000 58%, transparent 100%);
}
@media (max-width: 1023px) {
    .video-loop-container { max-width: 300px; }
}

/* Textos ao lado do video em loop (Comunidade) — fluxo normal */
.loop-text { text-align: center; }
@media (min-width: 1024px) {
    .loop-text { text-align: left; }
}

/* Textos sincronizados sobre o video */
.video-text-box {
    position: absolute;
    width: 320px;
    opacity: 0;
    z-index: 20;
    will-change: transform, opacity;
}
@media (min-width: 1024px) {
    .vt-left  { right: calc(50% + 200px); text-align: right; top: 34%; }
    .vt-right { left:  calc(50% + 200px); text-align: left;  top: 34%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .vt-left  { right: calc(50% + 150px); text-align: right; top: 34%; width: 260px; }
    .vt-right { left:  calc(50% + 150px); text-align: left;  top: 34%; width: 260px; }
}
@media (max-width: 767px) {
    .video-scroll-wrapper { height: 520vh; }
    .video-text-box {
        width: calc(100% - 40px);
        max-width: 340px;
        text-align: center;
        left: 0; right: 0;
        margin: 0 auto;
        bottom: 6%;
        top: auto !important;
        /* Vinho discreto: escuro na base, so um toque da cor */
        background: linear-gradient(160deg, rgba(74, 20, 40, 0.55), rgba(10, 10, 10, 0.92));
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 14px;
        border: 1px solid rgba(212, 119, 142, 0.22);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        z-index: 25;
    }
    .vt-left, .vt-right { left: 0 !important; right: 0 !important; }
    .video-scroll-container { max-width: 300px; height: 62vh; }
}

/* ── Cards ── */
.card-glass {
    /* Leve fundo em vinho — dá corpo ao card sem pesar */
    background: linear-gradient(160deg, rgba(139, 34, 82, 0.10), rgba(139, 34, 82, 0.04));
    border: 1px solid rgba(212, 119, 142, 0.22);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
}
.card-glass:hover {
    background: linear-gradient(160deg, rgba(139, 34, 82, 0.18), rgba(139, 34, 82, 0.07));
    border-color: rgba(212, 119, 142, 0.5);
    box-shadow: 0 8px 40px rgba(212, 119, 142, 0.14);
    transform: translateY(-4px);
}

/* ── Jornada: card ativo (colorido) vs inativo (P&B) ── */
.jornada-card img { transition: filter 0.6s ease, transform 0.6s ease; }
.jornada-card.inativa img { filter: grayscale(100%) brightness(0.65); }
.jornada-card.inativa { opacity: 0.6; }
.jornada-card.inativa:hover { opacity: 0.9; }
.jornada-card.inativa:hover img { filter: grayscale(60%) brightness(0.8); }
.jornada-card.ativa img { transform: scale(1.01); }
.jornada-card.ativa .jornada-moldura {
    border-color: rgba(212, 119, 142, 0.5);
    box-shadow: 0 0 60px rgba(212, 119, 142, 0.12);
}

/* Selo da jornada atual */
.selo-atual {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(212, 119, 142, 0.16);
    border: 1px solid rgba(212, 119, 142, 0.4);
    color: #d4778e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}
.selo-atual::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #d4778e;
    animation: pulsoSelo 2s ease-in-out infinite;
}
@keyframes pulsoSelo {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(212,119,142,0.6); }
    50%      { opacity: 0.6; box-shadow: 0 0 0 5px rgba(212,119,142,0); }
}

/* ── Lista de beneficios ── */
.beneficio-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.beneficio-item::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: #d4778e;
}

/* ── Icones em circulo (beneficios / para quem e) ── */
.icone-circulo {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 1px solid rgba(212, 119, 142, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}
.icone-circulo svg {
    width: 28px;
    height: 28px;
    color: #d4778e;
}
.revelar:hover .icone-circulo,
.card-glass:hover .icone-circulo {
    border-color: rgba(212, 119, 142, 0.7);
    box-shadow: 0 0 24px rgba(212, 119, 142, 0.18);
}

/* ── Reveal ao scroll ── */
.revelar {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.revelar.visivel { opacity: 1; transform: translateY(0); }

/* ── Glow pulsante ── */
.pulse-glow { animation: pulseGlow 6s ease-in-out infinite; }
@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50%      { opacity: 0.7; transform: scale(1.05); }
}

/* ── Caractere decorativo de fundo ── */
.citacao-bg-char {
    font-family: 'Cormorant Garamond', serif;
    fill: none;
    stroke: rgba(201, 162, 75, 0.06);
    stroke-width: 1;
    pointer-events: none;
}

/* ── Botoes ── */
.btn-primario {
    display: inline-block;
    background: linear-gradient(135deg, #8b2252, #6b1d3a);
    color: #fff;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 34, 82, 0.3);
}
.btn-primario:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 34, 82, 0.5);
}
.btn-secundario {
    display: inline-block;
    border: 1px solid #c9a24b;
    color: #c9a24b;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}
.btn-secundario:hover { background: rgba(201, 162, 75, 0.1); }

/* Botao desabilitado (jornada sem link ainda) */
.btn-inativo {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}

/* ── Lista de recursos (comunidade) ── */
.feature-rose {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.feature-rose:last-child { border-bottom: 0; }
.feature-rose svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #d4778e;
}

/* ── Foto com moldura ── */
.foto-moldura { position: relative; border-radius: 16px; overflow: hidden; }
.foto-moldura::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(201, 162, 75, 0.2);
    pointer-events: none;
    z-index: 2;
}

/* ── Trigramas do I Ching ── */
.trigrama {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
}
.trigrama .linha-cont { width: 28px; height: 2px; background: #c9a24b; border-radius: 1px; }
.trigrama .linha-quebr { display: flex; width: 28px; justify-content: space-between; }
.trigrama .linha-quebr span { width: 11px; height: 2px; background: #c9a24b; border-radius: 1px; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .revelar { opacity: 1; transform: none; }
    .video-text-box { opacity: 1 !important; }
    .video-scroll-wrapper { height: auto; }
    .video-scroll-sticky { position: relative; height: auto; padding: 4rem 0; }
    .hero-slide.ativa { animation: none; transform: none; }
}
