/* HEADER */
header {
    display: flex;
    justify-content: center;
    padding: 20px 0px 8px 0px;
    position: relative;
    z-index: 100;
    background-color: #fff;
}

.header {
    display: flex;
    align-items: flex-end;
    gap: 120px;
    width: 100%;
    max-width: 1280px;
    padding: 0 20px;
}

.header-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

/* Icon wrapper para hover */
.btn__icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.btn__icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.btn__icon--default {
    position: relative;
}

.btn__icon--hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.btn:hover .btn__icon--default {
    opacity: 0;
}

.btn:hover .btn__icon--hover {
    opacity: 1;
}

/* Fallback para botões sem hover icon */
.btn__icon-wrapper:not(:has(.btn__icon--hover)) .btn__icon--default {
    opacity: 1 !important;
}

.header-menu {
    display: flex;
    flex-direction: column;
}

.nav-menu {
    margin-top: 20px;
}

.nav-menu ul {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu a {
    color: var(--Atai-Inst---Verde-Verde-Main, #024638);
    font-family: "Janson Text LT Std";
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    line-height: 32px;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--Atai-Inst---Terra-Terra-Main, #B58150);
}

.nav-menu a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--Atai-Inst---Terra-Terra-Main, #B58150);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--Atai-Inst---Verde-Verde-Main, #024638);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    header {
        padding: 15px 0;
    }
    
    .header {
        gap: 20px;
        align-items: center;
        justify-content: space-between;
    }
    
    .header-logo img {
        max-height: 50px;
        width: auto;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .header-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        padding: 80px 20px 40px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .header-menu.active {
        right: 0;
    }
    
    .header-buttons {
        order: 2;
        flex-direction: column;
        width: 100%;
        align-items: center;
        margin-top: 30px;
    }
    
    .nav-menu {
        margin-top: 0;
        width: 100%;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 24px;
    }
    
    /* Burger Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

body.no-scroll {
    overflow: hidden;
}