/**
 * HEADER PREMIUM - Portal Turístico Igrejinha
 * Design refinado e profissional
 */

/* ==========================================================================
   HEADER ESTRUTURA PRINCIPAL
   ========================================================================== */
.turismo-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 1px 0 rgba(61, 84, 115, 0.05),
                0 4px 16px rgba(61, 84, 115, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ajuste para WordPress Admin Bar */
.admin-bar .turismo-header {
    top: 32px;
}

/* Mobile admin bar (menor que 783px) */
@media screen and (max-width: 782px) {
    .admin-bar .turismo-header {
        top: 46px;
    }
}

.turismo-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(61, 84, 115, 0.1) 20%,
        rgba(61, 84, 115, 0.1) 80%,
        transparent 100%
    );
}

/* Container interno removido - agora direto no nav */
.header-wrapper {
    /* Removido - não precisamos mais desta camada */
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    height: 60px;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================================================
   BRAND/LOGO REFINADO
   ========================================================================== */
.brand-container {
    flex-shrink: 0;
    z-index: 2;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    margin: -0.75rem -1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.brand-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 84, 115, 0.05) 0%,
        rgba(24, 197, 217, 0.05) 100%
    );
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-link:hover::before {
    opacity: 1;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(61, 84, 115, 0.08));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-link:hover .brand-logo {
    transform: scale(1.05) translateY(-1px);
    filter: drop-shadow(0 4px 12px rgba(24, 197, 217, 0.15));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--igrejinha-azul-montanha);
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--igrejinha-turquoise);
    font-weight: 500;
    opacity: 0.9;
}

/* ==========================================================================
   NAVEGAÇÃO PRINCIPAL REFINADA
   ========================================================================== */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-list li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-list li a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 0.75rem;
    color: var(--igrejinha-azul-montanha);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Indicador inferior elegante */
.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--igrejinha-turquoise);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px 3px 0 0;
}

.nav-list li a:hover::after,
.nav-list li.current-menu-item a::after {
    width: calc(100% - 2rem);
}

/* Efeito de hover no texto */
.nav-list li a:hover {
    color: var(--igrejinha-turquoise);
}

/* Item ativo */
.nav-list li.current-menu-item a {
    color: var(--igrejinha-turquoise);
    font-weight: 600;
}

/* ==========================================================================
   AÇÕES DO HEADER - BOTÕES HARMONIZADOS
   ========================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Botão Explorar - Cor principal */
.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(
        135deg,
        var(--igrejinha-azul-montanha) 0%,
        var(--igrejinha-turquoise) 100%
    );
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.btn-header:hover::before {
    left: 100%;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 84, 115, 0.2);
}

/* Botão Entrar - Outline harmonizado */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--igrejinha-azul-montanha);
    text-decoration: none;
    border: 2px solid var(--igrejinha-azul-montanha);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--igrejinha-azul-montanha);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-login:hover::before {
    left: 0;
}

.btn-login:hover {
    color: white;
    border-color: var(--igrejinha-azul-montanha);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 84, 115, 0.15);
}

/* Menu de usuário */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    background: rgba(61, 84, 115, 0.05);
    border-radius: 50px;
    color: var(--igrejinha-azul-montanha);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-menu:hover {
    background: rgba(61, 84, 115, 0.08);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(61, 84, 115, 0.15);
}

/* ==========================================================================
   MENU MOBILE ELEGANTE
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 2px solid var(--igrejinha-azul-montanha);
    border-radius: 10px;
    cursor: pointer;
    padding: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--igrejinha-azul-montanha);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle:hover {
    background: var(--igrejinha-azul-montanha);
}

.mobile-menu-toggle:hover span {
    background: white;
}

.mobile-menu-toggle.active {
    background: var(--igrejinha-azul-montanha);
}

.mobile-menu-toggle.active span {
    background: white;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   MOBILE MENU OVERLAY
   ========================================================================== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-menu-content {
    position: absolute;
    right: -100%;
    top: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-content {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, var(--igrejinha-azul-montanha) 0%, var(--igrejinha-turquoise) 100%);
    color: white;
}

.mobile-menu-header .brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-header .brand-logo {
    width: 40px;
    height: 40px;
}

.mobile-menu-header .brand-text {
    display: flex;
    flex-direction: column;
}

.mobile-menu-header .brand-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.mobile-menu-header .brand-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
}

.mobile-menu-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin: 0;
}

.mobile-nav-list li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-list li a:hover {
    background: #f5f5f5;
    color: var(--igrejinha-turquoise);
    border-left-color: var(--igrejinha-turquoise);
}

.mobile-nav-list li.current-menu-item a {
    background: #f0f9fa;
    color: var(--igrejinha-turquoise);
    border-left-color: var(--igrejinha-turquoise);
}

/* Submenu mobile */
.mobile-nav-list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f8f8;
}

.mobile-nav-list .sub-menu li a {
    padding-left: 3rem;
    font-size: 0.9rem;
}

.mobile-menu-actions {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    background: #f8f8f8;
}

.btn-mobile-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.btn-mobile-action:last-child {
    margin-bottom: 0;
}

.btn-mobile-action:hover {
    background: #f5f5f5;
    border-color: var(--igrejinha-turquoise);
    color: var(--igrejinha-turquoise);
}

.btn-mobile-action.btn-primary {
    background: linear-gradient(135deg, var(--igrejinha-azul-montanha) 0%, var(--igrejinha-turquoise) 100%);
    color: white;
    border: none;
}

.btn-mobile-action.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 197, 217, 0.3);
}

/* ==========================================================================
   ESTADOS DO HEADER
   ========================================================================== */

/* Header scrolled */
.turismo-header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 1px 0 rgba(61, 84, 115, 0.08),
                0 8px 32px rgba(61, 84, 115, 0.08);
}

.turismo-header.scrolled .header-nav {
    height: 70px;
}

/* Header hidden */
.turismo-header.hidden {
    transform: translateY(-100%);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 1024px) {
    .header-nav {
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .nav-list li a {
        padding: 0 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header-nav {
        height: 55px;
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .brand-text {
        display: none;
    }
    
    .header-actions {
        gap: 0.75rem;
    }
    
    .btn-header,
    .btn-login {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .btn-header {
        display: none;
    }
    
    .btn-login {
        padding: 0.6rem 1rem;
    }
}