@font-face {
    font-family: 'Bradesco Sans';
    src: url('fonts/Bradesco Sans.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Bradesco Sans';
    src: url('fonts/Bradesco Sans Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Bradesco Sans';
    src: url('fonts/Bradesco Sans Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Bradesco Sans';
    src: url('fonts/Bradesco Sans Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Bradesco Sans';
    src: url('fonts/Bradesco Sans Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary-blue: #5881AB;
    --primary-pink: #E8BCBC;
    --primary-grey: #595959;
    --text-color: #595959;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --header-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Bradesco Sans', sans-serif;
}

.main-header {
    width: 100%;
    height: var(--header-height);
    background: #ffffff;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9999;
    /* Z-index bem alto para garantir visibilidade */
    display: flex;
    align-items: center;
    border-bottom: none;
    /* Removida a borda para o degradê fluir melhor */
}

/* Efeito de degradê para o conteúdo */
.main-header::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 120px;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo-wrapper {
    flex: 0 0 auto;
}

.main-logo {
    height: 38px;
    width: auto;
}

/* NAV MENU */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--primary-blue);
}

/* ACTIONS / BUTTONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.btn-menu {
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    color: var(--white);
    text-align: center;
    white-space: nowrap;
}

.btn-painel {
    background-color: var(--primary-pink);
}

.btn-medicos {
    background-color: var(--primary-blue);
}

.btn-agendar {
    background-color: var(--primary-grey);
}

.btn-menu:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* MOBILE TOGGLE */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-blue);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-toggle.active .hamburger {
    background: transparent;
}

.mobile-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .header-container {
        padding: 0 20px;
    }

    .nav-list {
        gap: 20px;
    }

    .btn-menu {
        padding: 8px 15px;
        font-size: 10px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 0;
        z-index: 999;
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-link {
        font-size: 18px;
        width: 100%;
        text-align: center;
    }

    .mobile-toggle {
        display: block;
        order: 4;
    }

    /* No mobile, podemos empilhar os botões ou esconder alguns */
    .header-actions {
        gap: 8px;
    }

    .btn-painel,
    .btn-medicos {
        display: none;
    }

    /* Esconde os menos importantes no mobile bar */
}