/* ================================================
   HEADER HOME - Mesmo estilo do questionário
   ================================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #007c8c;
    padding: 0.75rem 0;
    box-shadow: none !important;
    border: none !important;
    margin-bottom: 0 !important;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 20px;
}

/* Agrupar navegação e menu sanduíche à direita */
.header .container > *:not(.logo) {
    margin-left: auto;
}

#header-navigation {
    margin-left: auto;
    margin-right: 0;
}

#header-navigation + .btn-menu-toggle {
    margin-left: 15px;
}

.header .logo img {
    height: 40px;
    width: auto;
}

.header .logo a {
    display: flex;
    align-items: center;
}

.user-greeting {
    color: white;
    font-size: 0.95rem;
    margin-right: 1rem;
}

.btn-logout {
    background: white;
    color: #007c8c;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-logout:hover {
    background: #8B7355;
    color: white;
}

.btn-logout i {
    font-size: 1rem;
}

.btn-login {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.btn-login:hover {
    opacity: 0.8;
    color: white;
}

.btn-start {
    background: white;
    color: #007c8c;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-start:hover {
    background: #8B7355;
    color: white;
}

/* Compensação para header fixo - REMOVIDO PARA EVITAR GAP */
/* body {
    padding-top: 70px;
} */

/* Responsividade */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }

    .header .logo img {
        height: 32px;
    }

    .user-greeting {
        font-size: 0.85rem;
        margin-right: 0.5rem;
    }

    .btn-logout,
    .btn-start {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .btn-login {
        display: none; /* Oculta "Fazer login" em mobile */
    }

    /* body {
        padding-top: 60px;
    } */
}

@media (max-width: 480px) {
    .user-greeting {
        display: none; /* Oculta saudação em telas muito pequenas */
    }

    .btn-start {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ================================================
   MENU SANDUICHE
   ================================================ */

/* Botao do Menu */
.btn-menu-toggle {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.btn-menu-toggle:hover {
    opacity: 0.8;
}

.btn-menu-toggle svg {
    display: block;
}

/* Menu Offcanvas */
.menu-offcanvas {
    width: 320px !important;
    max-width: 85vw;
    border-left: none !important;
}

.menu-offcanvas .offcanvas-body {
    background: #007c8c;
}

/* Header do Menu */
.menu-header {
    background: transparent;
}

.menu-header p,
.menu-header h5 {
    color: #fff;
}

.menu-header #menu-login-link {
    color: rgba(255, 255, 255, 0.8);
}

.menu-header #menu-login-link:hover {
    color: #fff;
}

.menu-header .btn-close {
    filter: brightness(0) invert(1);
}

.menu-avatar img {
    width: 80px;
    height: auto;
    object-fit: contain;
    background: transparent;
}

.menu-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* Navegacao */
.menu-nav ul {
    padding: 0;
}

.menu-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-nav li:last-child {
    border-bottom: none;
}

.menu-nav a {
    display: block;
    padding: 14px 0;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.menu-nav a:hover {
    color: #fff;
    opacity: 0.8;
}

/* CTA Box */
.cta-box {
    background: #f8f7f5;
    padding: 20px;
    border-radius: 12px;
}

.btn-anamnese {
    background: #007c8c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.3s;
}

.btn-anamnese:hover {
    background: #006570;
    color: white;
}

/* ================================================
   RESPONSIVIDADE MOBILE
   ================================================ */

/* Em mobile: mostrar apenas logo e menu sanduiche */
@media (max-width: 768px) {
    #header-navigation {
        display: none !important;
    }

    .btn-menu-toggle {
        display: flex;
    }
}

/* Em desktop: mostrar navegacao e menu sanduiche */
@media (min-width: 769px) {
    #header-navigation {
        display: flex !important;
    }

    .btn-menu-toggle {
        display: flex;
        margin-left: 15px;
    }
}
