/* Base Reset e Variáveis */
:root {
    --newm-primary: #007bff; /* Azul primário */
    --newm-secondary: #fff; /* Fundo mais limpo (Branco puro) */
    --newm-text: #333; /* Texto escuro */
    --newm-text-light: #fff; /* Texto claro */
    --newm-hover: #0056b3; /* Azul escuro no hover */
}

/* Base Styling */
.newm_header {
    background-color: var(--newm-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); 
    position: fixed; 
    top: 0;	
    width: 100%;
    z-index: 1000;
}

.newm_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 15px 25px;
}

/* Logo */
.newm_logo a {
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.5px;
    color: var(--newm-text);
}

/* Menu Desktop */
.newm_menu_desktop {
    display: none; 
}

.newm_ul_desktop {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.newm_ul_desktop li {
    position: relative; /* Necessário para posicionar o submenu */
}

.newm_ul_desktop li a {
    text-decoration: none;
    color: var(--newm-text);
    font-size: 0.95rem; 
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.newm_ul_desktop li a:hover {
    color: var(--newm-primary);
}

/* --- SUBMENU DESKTOP --- */
.newm_submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--newm-secondary);
    min-width: 200px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 3px solid var(--newm-primary);
}

.newm_ul_desktop li:hover .newm_submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.newm_submenu li {
    width: 100%;
}

.newm_submenu li a {
    padding: 10px 20px !important;
    font-size: 0.9rem;
    border-bottom: none !important;
}

.newm_submenu li a:hover {
    background-color: #f8f9fa;
    color: var(--newm-primary) !important;
}

/* Botão Contact */
.newm_contact_button {
    background-color: var(--newm-primary);
    color: var(--newm-text-light) !important;
    padding: 8px 18px !important;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.newm_contact_button:hover {
    background-color: var(--newm-hover);
    transform: translateY(-1px);
}

/* Menu Mobile */
.newm_menu_toggle {
    display: block; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1002;
}

.newm_icon_bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--newm-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.newm_menu_mobile {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--newm-secondary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    overflow: hidden;
}

.newm_menu_mobile.newm_open {
    display: block;
}

.newm_ul_mobile {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.newm_ul_mobile li a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--newm-text);
    border-bottom: 1px solid #f0f0f0;
}

/* --- SUBMENU MOBILE --- */
.newm_submenu_mobile {
    display: none; /* Escondido por padrão */
    background-color: #f9f9f9;
    list-style: none;
    padding: 0;
    margin: 0;
}

.newm_submenu_mobile li a {
    padding-left: 45px; /* Indentação para sub-itens */
    font-size: 0.9rem;
}

.newm_submenu_mobile.active {
    display: block;
}

/* Media Query Desktop */
@media (min-width: 900px) {
    .newm_menu_desktop {
        display: flex; 
    }

    .newm_menu_toggle {
        display: none; 
    }

    .newm_menu_mobile {
        display: none !important; 
    }
}