/* Variáveis */
:root {
    --header-height: 80px;
    --menu-bg: rgba(70, 63, 47, 0.98);
    --menu-text: #fff;
    --transition: 0.3s ease-in-out;
}

/* Reset */
body.menu-open {
    overflow: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--menu-bg);
    z-index: 1000;
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Logo Verde Fixa */
.logo-verde-fixed {
    position: fixed;
    top: 0;
    left: 40px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1010;
}

.logo-verde-fixed img {
    height: 40px;
    width: auto;
}

/* Logo */
.header .logo {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    z-index: 1002;
}

.header .logo img {
    height: 100%;
    width: auto;
}

/* Menu Desktop */
.header_nav {
    height: 100%;
    margin-left: 180px;
}

.header_nav-list {
    height: 100%;
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header_nav-list_item {
    height: 100%;
    margin: 0;
}

.header_nav-list_item a {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
    font-weight: 300;
    text-transform: none;
}

.header_nav-list_item a:hover {
    color: rgba(70, 63, 47, 0.98);
}

/* Ajuste Container */
.header .container {
    padding: 0 10px;
}

/* Botão Mobile */
.header_trigger {
    display: none;
    position: fixed;
    top: 30px;
    right: 30px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1002;
    outline: none;
}

.header_trigger .line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

.header_trigger .line:nth-child(1) { top: 2px; }
.header_trigger .line:nth-child(2) { top: 11px; }
.header_trigger .line:nth-child(3) { top: 20px; }

/* Menu Mobile */
@media (max-width: 1200px) {
    .header .container {
        padding: 0;
    }

    /* Mostrar botão */
    .header_trigger {
        display: block;
    }

    /* Menu */
    .header_nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--menu-bg);
        padding: 30px;
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 999;
        margin: 0;
        overflow-y: auto;
    }

    .header_nav.show {
        transform: translateX(0);
    }

    /* Lista */
    .header_nav-list {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        width: 100%;
        padding-bottom: 50px;
    }

    .header_nav-list_item {
        width: 100%;
        height: auto;
        margin: 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all var(--transition);
    }

    .header_nav.show .header_nav-list_item {
        opacity: 1;
        transform: translateX(0);
    }

    .header_nav-list_item a {
        width: 100%;
        height: auto;
        padding: 15px 0;
        color: var(--menu-text);
        font-size: 20px;
        font-weight: 300;
    }

    .header_nav-list_item a:hover {
        color: rgba(70, 63, 47, 0.98);
    }

    /* Animação do X */
    .menu-open .header_trigger .line {
        background: #fff;
    }

    .menu-open .header_trigger .line:nth-child(1) {
        top: 11px;
        transform: rotate(45deg);
    }

    .menu-open .header_trigger .line:nth-child(2) {
        opacity: 0;
    }

    .menu-open .header_trigger .line:nth-child(3) {
        top: 11px;
        transform: rotate(-45deg);
    }

    /* Delay na animação dos itens */
    .header_nav-list_item:nth-child(1) { transition-delay: 0.1s; }
    .header_nav-list_item:nth-child(2) { transition-delay: 0.15s; }
    .header_nav-list_item:nth-child(3) { transition-delay: 0.2s; }
    .header_nav-list_item:nth-child(4) { transition-delay: 0.25s; }
    .header_nav-list_item:nth-child(5) { transition-delay: 0.3s; }
    .header_nav-list_item:nth-child(6) { transition-delay: 0.35s; }
    .header_nav-list_item:nth-child(7) { transition-delay: 0.4s; }
    .header_nav-list_item:nth-child(8) { transition-delay: 0.45s; }
    .header_nav-list_item:nth-child(9) { transition-delay: 0.5s; }
    .header_nav-list_item:nth-child(10) { transition-delay: 0.55s; }
}
