@charset "UTF-8";

:root {
    --cor-fundo-menu: #14161c;      
    --cor-fundo-lateral: #1b1e26;   
    --cor-borda: #2a2e39;           
    --cor-texto: #e8e6e1;           
    --cor-texto-suave: #9a9eab;     
    --cor-laranja: #e05718;         
    --cor-dourado: #d0a933;         

    --altura-cabecalho: 76px;
    --largura-lateral: 340px;
    --fonte-menu: "Barlow Condensed", Arial, sans-serif;
}

body {
    margin: 0;
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

.cabecalho,
.cabecalho * {
    box-sizing: border-box;
}

.cabecalho {
    position: sticky;
    top: 0;

    z-index: 1000;

    height: var(--altura-cabecalho);
    background-color: var(--cor-fundo-menu);

    border-bottom: 2px solid var(--cor-laranja);

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;

    padding: 0 24px;
}

.logo {
    grid-column: 1;
    justify-self: start;

    display: flex;
}

.logo img {
    height: 54px;
    width: auto;

    transition: transform 0.2s ease;
}

.logo:hover img {
    transform: scale(1.04);
}

.menu-principal ul {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    gap: 8px;
}

.menu-principal a {
    position: relative;

    display: inline-block;
    padding: 10px 12px;

    color: var(--cor-texto);
    text-decoration: none;        
    font-family: var(--fonte-menu);
    font-size: 1.15rem;             
    font-weight: 600;
    text-transform: uppercase;      
    letter-spacing: 0.06em;         

    transition: color 0.2s ease;
}

.menu-principal a::after {
    content: "";                    

    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background-color: var(--cor-laranja);

    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.menu-principal a:hover::after,
.menu-principal a.ativo::after {
    transform: scaleX(1);
}

.menu-principal a:hover,
.menu-principal a.ativo {
    color: var(--cor-dourado);
}

.menu-toggle {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;           
}

.botao-hamburguer {
    grid-column: 3;
    justify-self: end;
    width: 46px;
    height: 46px;

    
    display: flex;
    flex-direction: column;         
    justify-content: center;
    align-items: center;
    gap: 6px;

    border-radius: 8px;             
    cursor: pointer;                
    transition: background-color 0.2s ease;
}

.botao-hamburguer:hover {
    background-color: rgba(255, 255, 255, 0.08);   
}

.botao-hamburguer span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--cor-texto);
    transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.menu-toggle:checked ~ .botao-hamburguer span {
    background-color: var(--cor-laranja);
}
.menu-toggle:checked ~ .botao-hamburguer span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle:checked ~ .botao-hamburguer span:nth-child(2) {
    opacity: 0;
}
.menu-toggle:checked ~ .botao-hamburguer span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.menu-toggle:focus-visible ~ .botao-hamburguer {
    outline: 2px solid var(--cor-dourado);
    outline-offset: 2px;
}

.fundo-escuro {
    position: fixed;
    top: var(--altura-cabecalho);
    right: 0;
    bottom: 0;
    left: 0;

    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-toggle:checked ~ .fundo-escuro {
    opacity: 1;
    pointer-events: auto;           
}

.menu-lateral {
    position: fixed;
    top: var(--altura-cabecalho);
    right: 0;

    width: min(var(--largura-lateral), 100%);

    height: calc(100dvh - var(--altura-cabecalho));

    background-color: var(--cor-fundo-lateral);
    border-left: 1px solid var(--cor-borda);

    display: flex;
    flex-direction: column;
    padding: 24px;

    overflow-y: auto;
    scrollbar-width: none;

    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s;
}

.menu-toggle:checked ~ .menu-lateral {
    transform: translateX(0);
    visibility: visible;
}

.menu-lateral h2 {
    margin: 0 0 8px;
    font-family: var(--fonte-menu);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cor-texto-suave);
}

.menu-lateral ul {
    list-style: none;
    margin: 0 0 28px;               
    padding: 0;
}

.menu-lateral a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;

    border-left: 3px solid transparent;

    color: var(--cor-texto);
    text-decoration: none;
    font-family: var(--fonte-menu);
    font-size: 1.2rem;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.menu-lateral a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--cor-laranja);
    color: var(--cor-dourado);
}

body:has(.menu-toggle:checked) {
    overflow: hidden;
}

.redes-sociais {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--cor-borda);
}

.redes-sociais ul {
    display: flex;
    flex-wrap: wrap;                
    gap: 6px;
    margin: 0;
}

.redes-sociais a {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--cor-borda);
    border-radius: 50%;             

    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.redes-sociais img {
    width: 18px;
    height: 18px;
}

.redes-sociais a:hover {
    background-color: var(--cor-laranja);
    border-color: var(--cor-laranja);
    transform: translateY(-3px);    
}

@media (max-width: 960px) {
    .menu-principal {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --altura-cabecalho: 64px;
    }
    .cabecalho {
        padding: 0 16px;
    }
    .logo img {
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cabecalho *,
    .cabecalho *::after {
        transition: none !important;
    }
}
