/* Barra de Progresso de Leitura (Scroll Indicator) */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--color-primary);
    width: 0%;
    z-index: 1100; /* Fica acima de todo o header e do menu mobile */
    transition: width 0.1s ease-out;
}

header.fixed-header {
    position: fixed;
    top: 18px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 30px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent !important;
}

header.fixed-header .header-capsule {
    max-width: 1300px;
    margin: 0 auto;
    background-color: rgba(250, 249, 246, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 100px;
    padding: 10px 30px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(78, 54, 41, 0.08), 0 2px 5px rgba(78, 54, 41, 0.03);
    border: 1px solid rgba(78, 54, 41, 0.07);
}

/* Scroll: header se expande suavemente */
header.fixed-header.scroll {
    top: 0;
    padding: 0;
}

header.fixed-header.scroll .header-capsule {
    max-width: 100%;
    border-radius: 0;
    background-color: rgba(250, 249, 246, 0.98);
    padding: 12px 50px;
    box-shadow: 0 6px 25px rgba(78, 54, 41, 0.08);
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(78, 54, 41, 0.08);
}

/* Logo */
.logoH {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logoH img, .logoH svg {
    max-width: 70px;
    height: auto;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.fixed-header.scroll .logoH img, header.fixed-header.scroll .logoH svg {
    max-width: 58px;
}

/* Header Actions */
.header-actions {
    margin-left: auto;
    flex-shrink: 0;
}

/* Hamburger Button Base */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger-btn span {
    display: block;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.hamburger-btn span:first-child {
    width: 25px;
}

.hamburger-btn span:last-child {
    width: 18px;
    align-self: flex-end;
}

/* Responsividade do Header */
@media (max-width: 991px) {
    header.fixed-header {
        top: 10px;
        padding: 0 12px;
    }

    header.fixed-header .header-capsule {
        padding: 10px 18px;
    }

    header.fixed-header.scroll .header-capsule {
        padding: 10px 20px;
    }
}
