/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
    --c-blue-950: #172554;
    --c-blue-900: #1E3A8A;
    --c-green-700: #047857;
    --c-green-600: #059669;
    --h-green:     #10B981;
    --h-green-hi:  #34D399;
    --h-blue-hi:   #60A5FA;
    --h-teal-hi:   #2DD4BF;
    --radius-md: 12px;
    --motion-base: 250ms cubic-bezier(.2,.8,.2,1);
}

* { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
html { scroll-behavior: smooth; }
[x-cloak] { display: none !important; }

/* =========================================================
   A11Y — Foco e Acessibilidade
   ========================================================= */
:focus-visible { 
    outline: 2px solid var(--h-green-hi) !important; 
    outline-offset: 2px !important; 
}

.skip-link {
    position: absolute; left: 12px; top: -100px; z-index: 100;
    padding: 12px 20px; background: var(--c-blue-900); color: #fff;
    font-weight: 700; text-decoration: none; border-radius: var(--radius-md);
    transition: top var(--motion-base);
}
.skip-link:focus { top: 12px; }
main { scroll-margin-top: 96px; }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-animation { animation: fadeInDown var(--motion-base) ease-out; }

/* =========================================================
   HEADER CINEMATOGRÁFICO (BLINDADO CONTRA FUNDO BRANCO)
   ========================================================= */
#main-header {
    position: sticky; top: 0; left: 0; right: 0; z-index: 50;
    background-color: #020810 !important; /* Força fundo escuro em todas as páginas internas */
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .35s ease, box-shadow .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
#main-header.is-home {
    position: fixed;
    background-color: transparent !important;
    background-image: linear-gradient(to bottom, rgba(2,8,16,.7) 0%, rgba(2,8,16,0) 100%) !important;
    border-bottom-color: transparent;
}
#main-header.is-scrolled {
    background-color: rgba(2, 8, 16, .95) !important;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom-color: rgba(255,255,255,.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.header-inner {
    max-width: 1560px; margin: 0 auto; padding: 0 1.25rem;
    height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 1024px) { .header-inner { padding: 0 3rem; } }
@media (max-width: 1279px) { .header-inner { height: 80px; } }

/* =========================================================
   LOGO COM DROP-SHADOW (DESTAQUE)
   ========================================================= */
.logo-container { flex-shrink: 0; position: relative; }
.logo-container::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); width: 90px; height: 90px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 65%);
    border-radius: 50%; filter: blur(8px); z-index: 0;
    pointer-events: none; transition: opacity 0.3s ease;
}
.logo-link { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; position: relative; z-index: 1; }
.logo-img {
    height: 68px; width: auto; object-fit: contain; 
    /* Removido mix-blend-mode pois o JS do header.php já gera um PNG transparente real */
    filter: 
        drop-shadow(0px 4px 6px rgba(0,0,0,0.6))
        drop-shadow(0px 0px 12px rgba(16, 185, 129, 0.4))
        drop-shadow(0px 0px 24px rgba(30, 58, 138, 0.3));
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.logo-link:hover .logo-img {
    transform: scale(1.06) translateY(-2px);
    filter: 
        drop-shadow(0px 8px 12px rgba(0,0,0,0.7))
        drop-shadow(0px 0px 20px rgba(16, 185, 129, 0.7))
        drop-shadow(0px 0px 40px rgba(30, 58, 138, 0.5));
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: 'Montserrat', sans-serif; font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.logo-name b { color: var(--h-green); font-weight: 800; text-shadow: 0 0 15px rgba(16,185,129,0.5); }
.logo-sub { margin-top: .3rem; font-size: .55rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.7); text-shadow: 0 1px 4px rgba(0,0,0,0.8); }

@media (max-width: 1279px) {
    .logo-img { height: 54px; }
    .logo-name { font-size: 1.5rem; }
    .logo-sub  { font-size: .45rem; letter-spacing: .2em; }
    .logo-container::before { width: 70px; height: 70px; }
}
@media (max-width: 480px) { .logo-text { display: none; } }

/* =========================================================
   MENU DESKTOP
   ========================================================= */
.nav-desktop { display: none; align-items: center; gap: 1.8rem; }
@media (min-width: 1280px) { .nav-desktop { display: flex; } }

.nav-link {
    position: relative; display: inline-flex; align-items: center; gap: .4rem;
    padding: 1.9rem 0; font-family: 'Montserrat', sans-serif; font-size: .88rem; font-weight: 600; color: #fff;
    text-decoration: none; background: none; border: 0; cursor: pointer; transition: color 0.2s; white-space: nowrap;
}
.nav-link i.chev { font-size: .6rem; color: rgba(255,255,255,.7); transition: transform 0.3s; }
.nav-link:hover, .nav-link:focus-visible { color: var(--h-green-hi); }
.nav-link::after {
    content: ''; position: absolute; left: 0; bottom: 1.35rem; width: 0; height: 2px;
    border-radius: 2px; background: var(--h-green); box-shadow: 0 0 10px rgba(16,185,129,.8);
    transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--h-green-hi); }

/* =========================================================
   DROPDOWNS
   ========================================================= */
.dd-panel {
    position: absolute; top: calc(100% - .6rem); left: -1rem; width: 19rem;
    padding: .5rem; border-radius: 1.1rem; background: rgba(6, 14, 28, .98);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(16,185,129,.1);
    z-index: 60;
}
.dd-panel.right { left: auto; right: 0; }
.dd-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: .8rem; text-decoration: none; transition: background 0.2s; }
.dd-item:hover { background: rgba(255,255,255,.08); }
.dd-icon { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: .7rem; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.dd-title { display: flex; align-items: center; gap: .3rem; font-size: .88rem; font-weight: 700; color: #fff; font-family: 'Montserrat', sans-serif; }
.dd-desc  { display: block; margin-top: .1rem; font-size: .72rem; color: #94A3B8; font-weight: 400; }
.dd-sep   { height: 1px; margin: .4rem .5rem; background: rgba(255,255,255,.08); }

/* =========================================================
   BOTÕES DE AÇÃO (Empresas, Aluno, Fale Conosco)
   ========================================================= */
.header-actions { display: none; align-items: center; gap: 0.6rem; }
@media (min-width: 1280px) { .header-actions { display: flex; } }

/* Em telas intermediárias (1280–1599px), compacta a navegação para evitar
   rolagem horizontal e mantém os atalhos acessíveis por ícone. */
@media (min-width: 1280px) and (max-width: 1599px) {
    .header-inner { padding: 0 1.75rem; gap: .75rem; }
    .nav-desktop { gap: 1rem; }
    .nav-link { font-size: .8rem; }
    .header-actions { gap: .45rem; }
    .btn-empresa span, .btn-aluno span { display: none; }
    .btn-empresa, .btn-aluno { padding: .65rem .7rem; }
    .btn-cta { padding: .7rem .9rem; font-size: .78rem; }
}

.btn-action { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.65rem 1rem; font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 700; border-radius: var(--radius-md); text-decoration: none; white-space: nowrap; transition: all 0.3s; }

.btn-empresa { color: var(--h-teal-hi); border: 1.5px solid var(--h-teal-hi); background: transparent; }
.btn-empresa:hover { background: var(--h-teal-hi); color: #000; box-shadow: 0 0 15px rgba(45,212,191,0.4); }

.btn-aluno { color: var(--h-blue-hi); border: 1.5px solid var(--h-blue-hi); background: transparent; }
.btn-aluno:hover { background: var(--h-blue-hi); color: #000; box-shadow: 0 0 15px rgba(96,165,250,0.4); }

.btn-cta { color: #fff; background: linear-gradient(135deg, #1E3A8A 0%, #059669 100%); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 4px 14px rgba(30, 58, 138, 0.4); padding: 0.75rem 1.2rem; }
.btn-cta:hover { background: linear-gradient(135deg, #1E40AF 0%, #10B981 100%); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30, 58, 138, 0.6); }

/* =========================================================
   BADGES
   ========================================================= */
.badge-novo { background: linear-gradient(135deg, #0d9488, #06b6d4); color: #fff; font-size: 0.55rem; font-weight: 700; padding: 2px 10px; border-radius: 50px; text-transform: uppercase; }
.badge-curso { background: linear-gradient(135deg, var(--c-green-600), #0d9488); color: #fff; font-size: 0.5rem; font-weight: 700; padding: 2px 10px; border-radius: 50px; text-transform: uppercase; }
.badge-empresa { background: linear-gradient(135deg, #0f766e, #0891b2); color: #fff; font-size: 0.5rem; font-weight: 700; padding: 2px 8px; border-radius: 50px; text-transform: uppercase; }
.badge-exclusivo { background: linear-gradient(135deg, #7C3AED, #A855F7); color: #fff; font-size: 0.5rem; font-weight: 700; padding: 2px 10px; border-radius: 50px; text-transform: uppercase; }

/* =========================================================
   MOBILE MENU
   ========================================================= */
.mobile-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); cursor: pointer; }
.mobile-toggle:hover { background: rgba(255,255,255,.12); }
@media (min-width: 1280px) { .mobile-only { display: none !important; } }

#mobile-menu { background: rgba(4, 10, 20, .98); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 50px rgba(0,0,0,.6); }
.mobile-menu-overlay { max-height: calc(100vh - 80px); overflow-y: auto; }

.m-group { display: flex; align-items: center; gap: .5rem; padding: .75rem .75rem .4rem; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #64748B; }
.m-link { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-radius: .8rem; font-size: .92rem; font-weight: 600; color: #E2E8F0; text-decoration: none; transition: background 0.2s; }
.m-link i.ico { width: 1.25rem; text-align: center; color: var(--h-green-hi); }
.m-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.m-sep { height: 1px; margin: .5rem 0; background: rgba(255,255,255,.08); }

[tabindex="-1"]:focus { outline: none; }