/* cabecalho-rodape-v2.css - Cor e estetica do cabecalho/menu e do rodape das paginas novas
   (index.php/index-novo.php, cursos.php e curso.php). Migrado de site-teste/css/cabecalho-rodape-teste.css.
   Carregado depois de style.css (e de animacoes-v2.css, quando houver). Nao altera o HTML do header.html / footer.html:
   so sobrepoe o visual (azul-marinho + amarelo, cantos arredondados, sombras suaves).

   O header.html traz um <style> no corpo da pagina (depois dos links do <head>) e botoes com
   style="..." inline. Por isso os seletores abaixo usam "body > header" / "body > footer" (maior
   especificidade) e, nos botoes, !important apenas nas propriedades definidas inline.
   Para voltar ao visual original basta remover o <link> deste arquivo de index.php, curso.php e cursos.php.

   Paginas antigas (equipe, cultura, historia, certificacoes, contato, blog, links-*, index.php antigo...)
   carregam o header.html/footer.html por JavaScript dentro de #header-placeholder / #footer-placeholder.
   Para elas, cada seletor tem tambem a variante "#header-placeholder>header" / "#footer-placeholder>footer",
   e o js/common.js inclui este CSS automaticamente (funcao zkIncluirCabecalhoNovo). */

:root {
    --zh-navy: #0a1d42;
    --zh-navy-2: #12306b;
    --zh-azul: #1e57b6;
    --zh-azul-claro: #eef3fc;
    --zh-amarelo: #fcc101;
    --zh-amarelo-hover: #f0b400;
    --zh-contorno-botao: #1e57b6; /* contorno azul do botao "Agendar Aula" (branco) */
    --zh-azul-progresso: #5ab8ff; /* azul claro de destaque (hover do "Agendar Aula"); a barra de progresso fica em animacoes-v2.css */
    --zh-borda: #e4e7ec;
    --zh-fonte: 'Inter', 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --zh-ease: cubic-bezier(.2, .7, .2, 1);
}

/* =====================================================================
   CABECALHO
   ===================================================================== */
/* Fundo azul escuro solido (sem filter/backdrop-filter: eles quebrariam o menu lateral do celular,
   que e position: fixed dentro do header) */
body>header,
#header-placeholder>header {
    font-family: var(--zh-fonte);
    background: linear-gradient(135deg, var(--zh-navy) 0%, #0e2755 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 28px rgba(0, 19, 44, .28);
    transition: box-shadow .3s;
}

.zc-rolou body>header,
.zc-rolou #header-placeholder>header {
    box-shadow: 0 12px 34px rgba(0, 19, 44, .42);
}

body>header .header-top,
#header-placeholder>header .header-top {
    padding: 9px clamp(16px, 3.6vw, 56px);
    gap: 24px;
}

body>header .logo,
#header-placeholder>header .logo {
    height: 62px;
    width: auto;
    transition: height .3s var(--zh-ease);
}

/* ---------- Menu ---------- */
body>header .nav-menu,
#header-placeholder>header .nav-menu {
    gap: clamp(14px, 1.9vw, 30px);
}

body>header .nav-link,
#header-placeholder>header .nav-link {
    padding: 12px 2px;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: .005em;
    color: #fff;
    transition: color .2s;
}

body>header .nav-link:hover,
#header-placeholder>header .nav-link:hover {
    color: #fff;
}

body>header .nav-link::after,
#header-placeholder>header .nav-link::after {
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%); /* tracinho centralizado, cresce do meio para as pontas */
    transition: width .3s var(--zh-ease);
    height: 3px;
    border-radius: 3px;
    background-color: #fff;
}

body>header .dropdown-toggle.show-dropdown::after,
#header-placeholder>header .dropdown-toggle.show-dropdown::after {
    width: 100%;
}

/* "CONECTE-SE" tambem em branco (o header.html original o deixa azul) */
body>header .conecte-se-link,
#header-placeholder>header .conecte-se-link {
    color: #fff;
}

body>header .conecte-se-link:hover,
#header-placeholder>header .conecte-se-link:hover {
    color: #fff;
}

body>header .conecte-se-link::after,
#header-placeholder>header .conecte-se-link::after {
    background-color: #fff;
}

body>header .dropdown-icon,
#header-placeholder>header .dropdown-icon {
    font-size: .7rem;
    opacity: .75;
}

/* ---------- Submenus ---------- */
body>header .dropdown-menu,
#header-placeholder>header .dropdown-menu {
    min-width: 190px;
    margin-top: 8px;
    padding: 8px;
    background: #0f2755;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(0, 10, 30, .42);
}

body>header .dropdown-menu.show,
#header-placeholder>header .dropdown-menu.show {
    animation: zh-menu .22s var(--zh-ease) both;
}

@keyframes zh-menu {
    from {
        opacity: 0;
        transform: translate3d(0, -6px, 0);
    }

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

body>header .dropdown-item,
#header-placeholder>header .dropdown-item {
    padding: 10px 14px;
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .9);
    border-radius: 8px;
}

body>header .dropdown-item:hover,
#header-placeholder>header .dropdown-item:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* ---------- Botoes ---------- */
body>header .header-btn,
#header-placeholder>header .header-btn {
    padding: 10px 18px !important;
    border: 2px solid transparent;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .005em;
    transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}

body>header .header-btn:hover,
#header-placeholder>header .header-btn:hover {
    transform: translateY(-1px);
}

body>header .header-btn:active,
#header-placeholder>header .header-btn:active {
    transform: translateY(0);
}

/* Agendar Aula: branco com contorno azul */
body>header .header-buttons .header-btn:not(.area-aluno-btn),
#header-placeholder>header .header-buttons .header-btn:not(.area-aluno-btn) {
    background-color: #fff !important;
    color: var(--zh-navy) !important;
    border-color: var(--zh-contorno-botao);
}

body>header .header-buttons .header-btn:not(.area-aluno-btn):hover,
#header-placeholder>header .header-buttons .header-btn:not(.area-aluno-btn):hover {
    background-color: var(--zh-azul-claro) !important;
    border-color: var(--zh-azul-progresso);
    box-shadow: 0 8px 20px rgba(90, 184, 255, .28);
}

/* Portal do Aluno (desktop, menu lateral e botao do celular): igual ao Agendar Aula, branco com contorno azul */
body>header .area-aluno-btn,
#header-placeholder>header .area-aluno-btn,
body>header .mobile-agendar-btn,
#header-placeholder>header .mobile-agendar-btn {
    background-color: #fff;
    color: var(--zh-navy);
    border: 2px solid var(--zh-contorno-botao);
}

body>header .area-aluno-btn:hover,
#header-placeholder>header .area-aluno-btn:hover,
body>header .mobile-agendar-btn:hover,
#header-placeholder>header .mobile-agendar-btn:hover {
    background-color: var(--zh-azul-claro);
    color: var(--zh-navy);
    border-color: var(--zh-azul-progresso);
    box-shadow: 0 8px 20px rgba(90, 184, 255, .28);
}

body>header .mobile-agendar-btn,
#header-placeholder>header .mobile-agendar-btn {
    border-radius: 8px;
    font-weight: 700;
}

/* Agendar Aula no menu lateral do celular (acima do Portal do Aluno): igual ao do desktop, branco com contorno azul */
body>header .mobile-agendar-aula,
#header-placeholder>header .mobile-agendar-aula {
    background-color: #fff !important;
    color: var(--zh-navy) !important;
    border: 2px solid var(--zh-contorno-botao);
}

body>header .mobile-agendar-aula:hover,
#header-placeholder>header .mobile-agendar-aula:hover {
    background-color: var(--zh-azul-claro) !important;
    border-color: var(--zh-azul-progresso);
    box-shadow: 0 8px 20px rgba(90, 184, 255, .28);
}

body>header .mobile-menu-btn,
#header-placeholder>header .mobile-menu-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    color: #fff;
    border-radius: 10px;
    transition: background-color .2s;
}

body>header .mobile-menu-btn:hover,
#header-placeholder>header .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, .12);
}

body>header a:focus-visible,
#header-placeholder>header a:focus-visible,
body>header button:focus-visible,
#header-placeholder>header button:focus-visible {
    outline: 3px solid #6aa5ff;
    outline-offset: 2px;
}

/* Menu e botoes nunca quebram de linha no desktop */
body>header .nav-link,
#header-placeholder>header .nav-link,
body>header .header-btn,
#header-placeholder>header .header-btn {
    white-space: nowrap;
}

@media (min-width: 992px) {
    body>header .nav-menu,
    #header-placeholder>header .nav-menu {
        flex-wrap: nowrap;
    }
}

/* Desktop estreito (992-1239 px): tudo cabe numa linha so */
@media (min-width: 992px) and (max-width: 1239px) {
    body>header .header-top,
    #header-placeholder>header .header-top {
        gap: 14px;
        padding-left: clamp(14px, 2vw, 28px);
        padding-right: clamp(14px, 2vw, 28px);
    }

    body>header .logo,
    #header-placeholder>header .logo {
        height: 54px;
    }

    body>header .nav-menu,
    #header-placeholder>header .nav-menu {
        gap: 14px;
    }

    body>header .nav-link,
    #header-placeholder>header .nav-link {
        font-size: 14px;
    }

    body>header .header-buttons,
    #header-placeholder>header .header-buttons {
        gap: 8px;
    }

    body>header .header-btn,
    #header-placeholder>header .header-btn {
        padding: 9px 12px !important;
        font-size: 13px;
    }

    body>header .header-buttons .header-btn i,
    #header-placeholder>header .header-buttons .header-btn i {
        display: none;
    }
}

/* ---------- Celular e tablet: menu lateral ---------- */
@media (max-width: 991px) {
    body>header .header-top,
    #header-placeholder>header .header-top {
        padding: 8px 14px;
    }

    body>header .nav-menu,
    #header-placeholder>header .nav-menu {
        width: min(320px, 86vw);
        padding: 12px 18px 28px;
        background: linear-gradient(180deg, var(--zh-navy) 0%, #0e2755 100%);
        border-radius: 18px 0 0 18px;
        box-shadow: -14px 0 40px rgba(0, 10, 30, .45);
    }

    body>header .nav-item,
    #header-placeholder>header .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    body>header .nav-link,
    #header-placeholder>header .nav-link {
        padding: 14px 6px;
        font-size: 16px;
    }

    body>header .nav-link::after,
    #header-placeholder>header .nav-link::after {
        display: none;
    }

    body>header .dropdown-menu,
    #header-placeholder>header .dropdown-menu {
        margin: 0 0 8px;
        padding: 6px;
        background: rgba(255, 255, 255, .07);
        border: 0;
        border-radius: 10px;
        box-shadow: none;
    }

    body>header .dropdown-menu.show,
    #header-placeholder>header .dropdown-menu.show {
        animation: none;
    }

    body>header .nav-overlay,
    #header-placeholder>header .nav-overlay {
        background-color: rgba(0, 10, 30, .6);
    }
}

/* =====================================================================
   RODAPE
   ===================================================================== */
body>footer,
#footer-placeholder>footer {
    position: relative;
    padding: 64px 0 0;
    overflow: hidden;
    font-family: var(--zh-fonte);
    color: rgba(255, 255, 255, .78);
    background: linear-gradient(135deg, var(--zh-navy) 0%, #0e2755 55%, var(--zh-navy-2) 100%);
}

/* faixa de destaque no topo */
body>footer::before,
#footer-placeholder>footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, .3) 100%);
}

/* brilho suave no canto */
body>footer::after,
#footer-placeholder>footer::after {
    content: '';
    position: absolute;
    top: -240px;
    right: -160px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(30, 87, 182, .38), transparent 65%);
    pointer-events: none;
}

body>footer .container,
#footer-placeholder>footer .container {
    position: relative;
    z-index: 1;
    padding: 0 clamp(20px, 4vw, 56px);
}

body>footer .footer-grid,
#footer-placeholder>footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 44px;
}

@media (min-width: 640px) {
    body>footer .footer-grid,
    #footer-placeholder>footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    body>footer .footer-grid,
    #footer-placeholder>footer .footer-grid {
        grid-template-columns: 1.35fr .9fr .9fr 1.25fr;
        gap: clamp(28px, 4vw, 64px);
    }
}

body>footer .footer-logo,
#footer-placeholder>footer .footer-logo {
    height: 64px;
    margin-bottom: 18px;
}

body>footer .footer-grid p,
#footer-placeholder>footer .footer-grid p {
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .74);
}

/* Titulos das colunas */
body>footer .footer-title,
#footer-placeholder>footer .footer-title {
    position: relative;
    font-family: var(--zh-fonte);
    margin-bottom: 22px;
    padding-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
}

body>footer .footer-title::after,
#footer-placeholder>footer .footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background: #fff;
}

/* Links e contatos */
body>footer .footer-links li,
#footer-placeholder>footer .footer-links li {
    margin-bottom: 12px;
}

body>footer .footer-link,
#footer-placeholder>footer .footer-link {
    font-size: 14.5px;
    color: rgba(255, 255, 255, .78);
}

body>footer .footer-link a,
#footer-placeholder>footer .footer-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px !important;
    color: rgba(255, 255, 255, .78);
    transition: color .2s, transform .2s;
}

body>footer .footer-link a:hover,
#footer-placeholder>footer .footer-link a:hover {
    color: #fff !important;
    transform: translateX(3px);
}

body>footer .footer-link i,
#footer-placeholder>footer .footer-link i {
    min-width: 18px;
    font-size: 15px;
    text-align: center;
    color: #fff;
}

body>footer .city-item,
#footer-placeholder>footer .city-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

body>footer .city-item:last-child,
#footer-placeholder>footer .city-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

body>footer .city-item p.footer-link,
#footer-placeholder>footer .city-item p.footer-link {
    margin: 6px 0 0;
}

/* Redes sociais: botoes redondos brancos (os icones ja trazem gradiente proprio) */
body>footer .social-links,
#footer-placeholder>footer .social-links {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin: 22px 0 0;
}

body>footer .social-link,
#footer-placeholder>footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
    transition: transform .25s var(--zh-ease), box-shadow .25s;
}

body>footer .social-link:hover,
#footer-placeholder>footer .social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .3), 0 0 0 3px rgba(255, 255, 255, .55);
}

/* Direitos autorais */
body>footer .copyright,
#footer-placeholder>footer .copyright {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 24px;
    padding: 22px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px;
    text-align: left;
    color: rgba(255, 255, 255, .62);
    /* espaco para o botao "voltar ao topo" nao cobrir o texto */
    padding-right: 68px;
}

body>footer .copyright p,
#footer-placeholder>footer .copyright p {
    margin: 0;
    font-size: 13px;
    color: inherit;
}

body>footer .copyright a,
#footer-placeholder>footer .copyright a {
    color: #9dbcff !important;
    font-weight: 600;
}

body>footer .copyright a:hover,
#footer-placeholder>footer .copyright a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

@media (max-width: 639px) {
    body>footer,
    #footer-placeholder>footer {
        padding-top: 52px;
    }

    body>footer .copyright,
    #footer-placeholder>footer .copyright {
        flex-direction: column;
        text-align: center;
        padding: 22px 0 84px;
    }
}

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {

    body>header .dropdown-menu.show,
    #header-placeholder>header .dropdown-menu.show,
    body>header .header-btn,
    #header-placeholder>header .header-btn,
    body>footer .footer-link a,
    #footer-placeholder>footer .footer-link a,
    body>footer .social-link,
    #footer-placeholder>footer .social-link {
        animation: none;
        transition: none;
    }

    body>header .header-btn:hover,
    #header-placeholder>header .header-btn:hover,
    body>footer .footer-link a:hover,
    #footer-placeholder>footer .footer-link a:hover,
    body>footer .social-link:hover,
    #footer-placeholder>footer .social-link:hover {
        transform: none;
    }
}

@media print {

    body>footer::before,
    #footer-placeholder>footer::before,
    body>footer::after,
    #footer-placeholder>footer::after {
        display: none;
    }
}
