/* ============================
   HEADER SADISSA
   ============================ */

.header {
    background: var(--white);
    padding: 18px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: 0.3s ease;
}

/* Modo escuro ao rolar */
.header.dark {
    background: #010a13;
    box-shadow: none;
}

/* Troca logo automaticamente */
.header.dark .logo img {
    content: url("img/logo-white.png");
}

/* Layout interno */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================
   LOGO
   ============================ */

.logo img {
    width: 140px;
    height: auto;
    transition: 0.3s ease;
}

@media (max-width: 600px) {
    .logo img {
        width: 110px;
    }
}

/* ============================
   NAVEGAÇÃO DESKTOP
   ============================ */

.nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: 0.2s;
}

/* CORREÇÃO: links ficam brancos no modo dark */
.header.dark .nav a {
    color: var(--white);
}

.header.dark .nav a:hover {
    color: var(--sadissa-orange);
}

/* ============================
   BOTÕES DESKTOP
   ============================ */

.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-profissional {
    background: var(--sadissa-orange);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.btn-profissional:hover {
    background: #d97a20;
    transform: translateY(-2px);
}

.btn-entrar {
    background: var(--sadissa-blue);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.btn-entrar:hover {
    background: #081d33;
    transform: translateY(-2px);
}

/* CORREÇÃO: botões ficam visíveis no modo dark */
.header.dark .btn-entrar {
    background: #081d33;
}

.header.dark .btn-profissional {
    background: var(--sadissa-orange);
}

/* ============================
   ÍCONE HAMBÚRGUER
   ============================ */

.menu-mobile-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 30px;
    height: 22px;
    justify-content: center;
}

.menu-mobile-btn span {
    width: 100%;
    height: 3px;
    background: var(--sadissa-orange);
    border-radius: 3px;
    transition: 0.35s ease;
}

/* Hambúrguer vira X */
.menu-mobile-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-mobile-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-mobile-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================
   MENU MOBILE
   ============================ */

.menu-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;

    backdrop-filter: blur(18px);
    background: rgba(255,255,255,0.75);

    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    padding: 25px;
    transition: right 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1000;
}

/* Botão fechar */
.close-menu {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--sadissa-orange);
    margin-bottom: 20px;
}

/* ============================
   LINKS MOBILE
   ============================ */

.menu-mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 18px;
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;

    opacity: 0;
    transform: translateX(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-mobile.show-links a {
    opacity: 1;
    transform: translateX(0);
}

.menu-mobile.show-links a:nth-child(1) { transition-delay: 0.10s; }
.menu-mobile.show-links a:nth-child(2) { transition-delay: 0.20s; }
.menu-mobile.show-links a:nth-child(3) { transition-delay: 0.30s; }
.menu-mobile.show-links a:nth-child(4) { transition-delay: 0.40s; }
.menu-mobile.show-links a:nth-child(5) { transition-delay: 0.50s; }

/* Botões mobile */
.btn-mobile-profissional,
.btn-mobile-login {
    display: block;
    margin-top: 15px;
    background: var(--sadissa-orange);
    color: var(--white);
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
}

/* ============================
   FUNDO ESCURECIDO
   ============================ */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 900;
}

/* ============================
   RESPONSIVIDADE
   ============================ */

@media (max-width: 600px) {
    .nav,
    .header-buttons {
        display: none;
    }

    .menu-mobile-btn {
        display: flex;
    }
}
