/* animacoes-teste.css - Animacoes e estados interativos do site-teste (curso.php e cursos.php).
   Tudo depende da classe .zc-js no <html> (colocada por um script no <head>): sem JavaScript a
   pagina continua totalmente visivel. Respeita prefers-reduced-motion. */

:root {
    --zc-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Entrada do hero (CSS puro, ao carregar) ---------- */
@keyframes zc-subir {
    from {
        opacity: 0;
        transform: translate3d(0, 26px, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes zc-aparecer {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zc-entrar-direita {
    from {
        opacity: 0;
        transform: translate3d(36px, 0, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.zc-js .zc-hero-texto>* {
    animation: zc-subir .8s var(--zc-ease) both;
}

.zc-js .zc-hero-texto>*:nth-child(1) {
    animation-delay: .05s;
}

.zc-js .zc-hero-texto>*:nth-child(2) {
    animation-delay: .15s;
}

.zc-js .zc-hero-texto>*:nth-child(3) {
    animation-delay: .27s;
}

.zc-js .zc-hero-texto>*:nth-child(4) {
    animation-delay: .39s;
}

.zc-js .zc-hero-foto img {
    animation: zc-entrar-direita 1.1s var(--zc-ease) .1s both;
}

.zc-js .zc-hero-banner .zc-hero-foto img {
    animation-name: zc-aparecer;
    animation-duration: 1.2s;
}

.zc-js .zc-stats-card {
    animation: zc-subir .8s var(--zc-ease) both;
}

.zc-js .zc-stats-card:nth-child(1) {
    animation-delay: .5s;
}

.zc-js .zc-stats-card:nth-child(2) {
    animation-delay: .62s;
}

.zc-js .zc-stats-card:nth-child(3) {
    animation-delay: .74s;
}

/* Numero dos contadores do hero: largura fixa para o card nao mudar de tamanho enquanto conta */
.zc-contador {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ---------- Revelar ao rolar (classes aplicadas pelo JS) ---------- */
.zc-js .zc-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity .75s var(--zc-ease) var(--zc-atraso, 0ms), transform .75s var(--zc-ease) var(--zc-atraso, 0ms);
    will-change: opacity, transform;
}

.zc-js .zc-reveal.zc-visivel {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* ---------- Cards: estados de hover/foco (sem transform nos itens revelados) ---------- */
.zc-stats-card {
    transition: box-shadow .3s, background-color .3s;
}

.zc-stats-card:hover {
    box-shadow: 0 14px 34px rgba(10, 29, 66, .18), 0 2px 6px rgba(10, 29, 66, .1);
}

.zc-stat-icone {
    transition: transform .35s var(--zc-ease);
}

.zc-stat:hover .zc-stat-icone {
    transform: scale(1.12) rotate(-4deg);
}

.zc-publico-icone {
    transition: transform .35s var(--zc-ease);
}

.zc-lista-publico li:hover .zc-publico-icone {
    transform: translateY(-3px) scale(1.08);
}

.zc-lista-check li::before {
    transition: transform .25s var(--zc-ease), box-shadow .25s;
}

.zc-lista-check li:hover::before {
    transform: scale(1.18);
    box-shadow: 0 0 0 5px rgba(30, 87, 182, .16);
}

.zc-modulo-icone img,
.zc-modulo-icone svg {
    transition: transform .35s var(--zc-ease);
}

.zc-modulo-nome {
    transition: transform .3s var(--zc-ease), box-shadow .3s, background-color .3s;
}

.zc-modulo:hover .zc-modulo-icone img,
.zc-modulo:hover .zc-modulo-icone svg {
    transform: translateY(-5px) scale(1.08);
}

.zc-modulo:hover .zc-modulo-nome {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .28);
    background: #fffdf2;
}

.zc-projeto {
    overflow: hidden;
    transition: box-shadow .35s, border-color .35s;
}

.zc-projeto img {
    transition: transform .6s var(--zc-ease);
}

.zc-projeto:hover {
    border-color: #c9d4ea;
    box-shadow: 0 18px 40px rgba(10, 29, 66, .16);
}

.zc-projeto:hover img {
    transform: scale(1.06);
}

.zc-numero-icone {
    transition: transform .35s var(--zc-ease);
}

.zc-numero:hover .zc-numero-icone {
    transform: translateY(-3px) scale(1.08);
}

.zc-certificado-img,
.zc-avaliacao-img {
    transition: transform .25s ease-out, box-shadow .3s;
    will-change: transform;
}

.zc-certificado-img:hover,
.zc-avaliacao-img:hover {
    box-shadow: 0 18px 44px rgba(10, 29, 66, .28);
}

/* ---------- Botoes: seta, pressao e onda (ripple) ---------- */
.zc-btn {
    position: relative;
    overflow: hidden;
    transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}

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

.zc-btn:active {
    transform: translateY(0) scale(.98);
}

.zc-btn-seta {
    transition: transform .25s var(--zc-ease);
}

.zc-btn:hover .zc-btn-seta {
    transform: translateX(5px);
}

.zc-onda {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    transform: scale(0);
    pointer-events: none;
    animation: zc-onda .6s ease-out forwards;
}

.zc-btn-contorno .zc-onda,
.zc-btn-contorno-claro .zc-onda {
    background: rgba(10, 29, 66, .16);
}

@keyframes zc-onda {
    to {
        transform: scale(1);
        opacity: 0;
    }
}

/* ---------- FAQ ---------- */
.zc-faq details {
    transition: background-color .25s;
}

.zc-faq details[open] {
    background: #fbfcfe;
}

.zc-faq details.zc-fechando .zc-faq-seta {
    transform: none;
}

.zc-faq summary {
    transition: background-color .2s, color .2s;
}

.zc-faq details[open] summary {
    color: var(--zc-azul);
}

/* ---------- Barra de progresso de leitura ---------- */
.zc-progresso {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: 3px;
    background: linear-gradient(90deg, #3ea8ff, #9bd6ff); /* azul claro */
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}

/* (sombra do header ao rolar: css/cabecalho-rodape-teste.css, classe .zc-rolou no <html>) */

/* ---------- Voltar ao topo ---------- */
.zc-topo {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: #fff;
    background: var(--zc-navy, #0a1d42);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0, 19, 44, .35);
    cursor: pointer;
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(.9);
    pointer-events: none;
    transition: opacity .3s, transform .3s var(--zc-ease), background-color .2s, bottom .3s;
}

.zc-topo svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.zc-topo.zc-visivel {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.zc-topo:hover {
    background: var(--zc-azul, #1e57b6);
}

.zc-topo:focus-visible {
    outline: 3px solid #6aa5ff;
    outline-offset: 3px;
}

.zc-topo.zc-acima-whats {
    bottom: 96px;
}

/* ---------- Barra de CTA no celular ---------- */
.zc-cta-movel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: none;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 26px rgba(0, 19, 44, .16);
    transform: translate3d(0, 110%, 0);
    transition: transform .35s var(--zc-ease);
}

.zc-cta-movel.zc-visivel {
    transform: none;
}

.zc-cta-movel .zc-btn {
    height: 54px;
}

@media (max-width: 980px) {
    .zc-cta-movel {
        display: block;
    }

    .zc-cta-ativa .zc-topo {
        bottom: 86px;
    }

    .zc-cta-ativa .zc-aviso-demo {
        bottom: 86px;
    }
}

/* ---------- Modal: transicao de abertura ---------- */
.zc-modal {
    z-index: 1200; /* acima do header fixo e da barra de progresso */
}

.zc-js .zc-modal-fundo {
    opacity: 0;
    transition: opacity .25s ease;
}

.zc-js .zc-modal-caixa {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(.97);
    transition: opacity .25s ease, transform .3s var(--zc-ease);
}

.zc-js .zc-modal.zc-aberto .zc-modal-fundo {
    opacity: 1;
}

.zc-js .zc-modal.zc-aberto .zc-modal-caixa {
    opacity: 1;
    transform: none;
}

.zc-modal-fechar {
    transition: background-color .2s, transform .25s;
    border-radius: 50%;
}

.zc-modal-fechar:hover {
    background: #eef1f6;
    transform: rotate(90deg);
}

/* ---------- Formulario: validacao inline ---------- */
.zc-erro-campo {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #c62828;
}

#zc-form .zc-invalido {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, .12);
    animation: zc-tremer .4s ease;
}

@keyframes zc-tremer {

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

/* ---------- Foco visivel e rolagem sob o header fixo ---------- */
.zc-page :focus-visible {
    outline: 3px solid #6aa5ff;
    outline-offset: 2px;
}

.zc-page section[id] {
    scroll-margin-top: 110px;
}

/* ---------- Sem animacao para quem prefere menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {

    .zc-js .zc-hero-texto>*,
    .zc-js .zc-hero-foto img,
    .zc-js .zc-stats-card {
        animation: none;
    }

    .zc-js .zc-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .zc-btn,
    .zc-btn:hover,
    .zc-projeto img,
    .zc-projeto:hover img,
    .zc-modulo:hover .zc-modulo-icone img,
    .zc-modulo:hover .zc-modulo-nome,
    .zc-js .zc-modal-caixa,
    .zc-js .zc-modal-fundo,
    .zc-topo,
    .zc-cta-movel {
        transition: none;
    }

    .zc-js .zc-modal-caixa {
        transform: none;
    }

    .zc-js .zc-modal-caixa,
    .zc-js .zc-modal-fundo {
        opacity: 1;
    }

    .zc-onda {
        display: none;
    }
}

/* ---------- Impressao: tudo visivel ---------- */
@media print {

    .zc-js .zc-reveal {
        opacity: 1;
        transform: none;
    }

    .zc-progresso,
    .zc-topo,
    .zc-cta-movel {
        display: none;
    }
}
