/* ------------------------------
   MENU PRINCIPAL
   ------------------------------ */

header {
    width: 100%;
    background: #410A09;
    padding: 20px 0;
}

.navbar {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left img {
    width: 75px;
}

/* ------ LINKS DO MENU ------ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-right a {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.25s;
}

.nav-right a:hover {
    opacity: 0.7;
}

/* ------------------------------
   LOGIN + LANGUAGE GROUP
   ------------------------------ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px; /* aqui controlas o quão perto ficam */
}


/* ------ BOTÃO LOGIN ------ */
.btn-login {
    border: 1px solid #E54419;
    color: #E54419 !important;
    padding: 10px 28px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.25s;
}

.btn-login:hover {
    background-color: #E54419;
    color: #410A09 !important;
}


/* ------ LANGUAGE SELECT (PT / ENG) ------ */

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    

    border: 1px solid #E54419;
    background-color: transparent;
    color: #E54419;

    font-family: "Source Sans Pro", sans-serif;
    font-size: 12px;
    font-weight: 600;

    height: 40px;
    padding: 0 25px 0 12px; /* direita maior para a seta */
    border-radius: 10px;

    cursor: pointer;
    outline: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23E54419' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* foco */
.lang-select:hover {
    background: #E54419;
    color: #410A09 !important;
    
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23410A09' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;

}

.lang-select:focus {
    
}

/* opções ao abrir */
.lang-select option {
    color: #410A09;
}



/* ------------------------------
   SMOOTH SCROLL
   ------------------------------ */
html {
    scroll-behavior: smooth;
}

/* ------------------------------
   OFFSET PARA NÃO FICAR COLADO AO TOPO
   (ajusta o valor à altura da barra de menu)
   ------------------------------ */
.about,
.howworks,
.portfolio,
.ourculture {
    scroll-margin-top: 100px; /* ajusta se a navbar for maior/menor */
}

/* ------------------------------
   MENU FIXO (APARECE AO SCROLL)
   ------------------------------ */
.menu-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #410A09;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25); /* sobra/destaque */
    z-index: 9999;

    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}

/* quando ativo */
.menu-fixed.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Ajuste: no menu fixo não queremos a margin-top grande */
.menu-fixed .navbar {
    margin: 12px auto; /* em vez de 70px */
}

/* No topo normal mantém o teu espaçamento */
.menu-normal .navbar {
    margin: 70px auto;
}

/* ------------------------------
   MENU NORMAL / MENU FIXO
   ------------------------------ */

/* O menu fixo começa SEMPRE escondido */
.menu-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #410A09;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 9999;

    display: none;          /* <- garante que não aparece */
}

/* Quando ativo */
.menu-fixed.is-visible {
    display: block;
}

/* Quando o fixo está ativo, escondemos o normal */
body.menu-fixed-on .menu-normal {
    visibility: hidden;
}

/* Ajuste de margem do navbar no fixo */
.menu-fixed .navbar {
    margin: 12px auto;
}

/* Mantém o teu espaçamento no normal */
.menu-normal .navbar {
    margin: 70px auto;
}


    

/* ------------------------------
   RESPONSIVE (mobile)
   ------------------------------ */
@media (max-width: 900px) {
    .nav-right {
        gap: 20px;
    }
}

@media (max-width: 700px) {
    header {
        padding: 15px 0;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
    }
}
