/* ==========================================================================
   ESTRUTURA INDESTRUTÍVEL ATUALIZADA
   ========================================================================== */
   :root {
    --primary: #D4AF37;
    --dark: #0a0a0a;
    --dark-light: #161616;
    --light: #ffffff;
    --gray: #a0a0a0;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 110px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: var(--header-height);
    margin: 0;
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 25px;
}

/* ==========================================================================
   CABEÇALHOS DESKTOP
   ========================================================================== */

.top-header {
    background-color: var(--dark);
    height: 35px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 75px;
    position: fixed;
    top: 35px;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.top-container,
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-info {
    display: flex;
    gap: 25px;
}

.top-info span {
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-info span i {
    color: var(--primary);
}

.top-login a {
    color: var(--light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.top-login a:hover {
    color: var(--primary);
}

.logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 100002;
}

.logo span {
    color: var(--primary);
    margin-left: 4px;
}

.main-header .nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-matricular {
    background-color: var(--primary);
    color: var(--light) !important;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(255, 30, 39, 0.25);
    transition: var(--transition);
}

.btn-matricular:hover {
    background-color: var(--dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   MENU MOBILE
   ========================================================================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    padding: 0;
    z-index: 100002;
    position: relative;
}

.menu-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--dark);
    border-radius: 10px;
    transition: var(--transition);
}

/* BOTÃO X PRETO */

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
    background-color: #000000;
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
    background-color: #000000;
}

.menu-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(0, 0, 0, 0.72);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #0a0a0a;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition:
        opacity 1.2s ease-in-out,
        transform 8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slider .slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(10, 10, 10, 0.85) 0%,
            rgba(10, 10, 10, 0.4) 60%,
            rgba(10, 10, 10, 0.9) 100%
        );
    z-index: 3;
}

.hero-container {
    position: relative;
    z-index: 4;
}

.hero-content {
    max-width: 750px;
    animation: fadeInUpHero 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    color: #ffffff;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title span {
    color: #D4AF37;
}

.hero-subtitle {
    color: #a0a0a0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-buttons .btn-primary-hero,
.hero-buttons .btn-secondary-hero {
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.hero-buttons .btn-primary-hero {
    background-color: #D4AF37;
    color: #131212;
}

.hero-buttons .btn-secondary-hero {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ==========================================================================
   AJUSTE DE ALTURA DO HERO EM TELAS MENORES
   ========================================================================== */

   @media (max-width: 992px) {
    .hero {
        height: 85vh;
        min-height: 520px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 420px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 65vh;
        min-height: 380px;
    }
}

@keyframes fadeInUpHero {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {

    /* =========================
       TOP HEADER (CORREÇÃO REAL)
       ========================= */

    .top-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .top-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }

    .top-info span {
        font-size: 11.5px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .top-login {
        flex-shrink: 0;
        margin-left: 15px;
    }

    .top-login a {
        font-size: 12px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* =========================
       MENU HAMBURGUER
       ========================= */

    .menu-toggle {
        display: flex;
    }

    .main-header .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 240px;
        height: calc(100vh - var(--header-height));
        background-color: #0a0a0a;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 25px;
        padding: 40px 25px;
        z-index: 9999;
        transition: right 0.35s ease;
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.35);
    }

    .main-header .nav-menu.active {
        right: 0;
    }

    .main-header .nav-menu .nav-link {
        color: #ffffff;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }

    .main-header .nav-menu .nav-link::after {
        display: none;
    }

    .main-header .nav-menu .btn-matricular {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .hero-title {
        font-size: 38px;
    }
}