/* css/header.css */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(254, 254, 254, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 20px rgba(212, 175, 55, 0.05);
    padding: var(--spacing-6) 0;
    transform: translateY(0);
    opacity: 1;
}

.header.scrolled {
    background: rgba(254, 254, 254, 0.95);
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-marble);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: var(--spacing-3) 0;
    transform: translateY(0);
    opacity: 1;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header.scrolled .nav {
    justify-content: flex-start;
}

.nav-brand {
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.header.scrolled .nav-brand {
    transform: scale(0.85);
}

/* Integração com logo.css - Estados iniciais grandes */
.hg-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    font-family: var(--font-family);
}

.hg-logo-circle {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Estado scrolled - tamanhos menores */
.header.scrolled .hg-logo-circle {
    width: 40px;
    height: 40px;
}

.hg-logo-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 2s ease;
}

.nav-brand:hover .hg-logo-circle::before {
    left: 100%;
}

.hg-logo-letters {
    font-size: 20px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header.scrolled .hg-logo-letters {
    font-size: 16px;
}

.hg-logo-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-2);
}

.hg-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.hg-logo-main {
    font-size: 26px;
    font-weight: 700;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

footer .hg-logo-main{
    color: var(--white);
    text-align: left;
}

.header.scrolled .hg-logo-main {
    font-size: 20px;
}

.hg-logo-divider {
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    margin-bottom: 3px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header.scrolled .hg-logo-divider {
    width: 35px;
    height: 2px;
}

.hg-logo-subtitle {
    font-size: 10px;
    font-weight: 500;
    color: var(--warm-gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

footer .hg-logo-subtitle{
    color: var(--warm-gray-300);
    text-align: left;
}

.header.scrolled .hg-logo-subtitle {
    font-size: 8px;
    opacity: 0.7;
}


/* Hover effects */
.nav-brand:hover {
    transform: translateY(-2px);
}

.header.scrolled .nav-brand:hover {
    transform: scale(0.85) translateY(-2px);
}

.nav-brand:hover .hg-logo-circle {
    transform: scale(1.05);
    box-shadow: var(--shadow-marble);
    animation: logoGlow 2s ease-in-out infinite;
}

.nav-brand:hover .hg-logo-main {
    color: var(--gold);
}

/* Animações especiais do logo.css */
@keyframes logoGlow {
    0%, 100% {
        box-shadow: var(--shadow-gold);
    }
    50% {
        box-shadow: 
            var(--shadow-gold),
            0 0 20px rgba(212, 175, 55, 0.4),
            inset 0 0 10px rgba(255, 255, 255, 0.1);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .header {
        padding: var(--spacing-4) 0;
    }

    .header.scrolled {
        padding: var(--spacing-2) 0;
    }

    .hg-logo {
        gap: var(--spacing-3);
    }

    .hg-logo-circle {
        width: 52px;
        height: 52px;
    }

    .header.scrolled .hg-logo-circle {
        width: 36px;
        height: 36px;
    }

    .hg-logo-letters {
        font-size: 16px;
    }

    .header.scrolled .hg-logo-letters {
        font-size: 14px;
    }

    .hg-logo-main {
        font-size: 22px;
    }

    .header.scrolled .hg-logo-main {
        font-size: 18px;
    }

    .hg-logo-divider {
        width: 45px;
    }

    .header.scrolled .hg-logo-divider {
        width: 32px;
    }

    .hg-logo-subtitle {
        font-size: 9px;
    }

    .header.scrolled .hg-logo-subtitle {
        font-size: 7px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: var(--spacing-3) 0 !important; /* Reduz bastante o padding */
        backdrop-filter: blur(15px); /* Efeito de blur mais leve */
    }

    .header.scrolled {
        padding: var(--spacing-1) 0 !important; /* Versão minimizada ainda menor */
    }

    .hg-logo {
        gap: var(--spacing-2); /* Espaço menor entre elementos */
    }

    .hg-logo-circle {
        width: 44px !important;
        height: 44px !important;
    }

    .header.scrolled .hg-logo-circle {
        width: 32px !important;
        height: 32px !important;
    }

    .hg-logo-letters {
        font-size: 14px !important;
    }

    .header.scrolled .hg-logo-letters {
        font-size: 12px !important;
    }

    .hg-logo-main {
        font-size: 18px !important; /* Texto principal menor */
        letter-spacing: 1px !important;
    }

    .header.scrolled .hg-logo-main {
        font-size: 16px !important;
    }

    .hg-logo-divider {
        width: 35px !important;
        margin-bottom: 2px !important;
    }

    .header.scrolled .hg-logo-divider {
        width: 28px !important;
    }

    .hg-logo-subtitle {
        font-size: 8px !important;
        letter-spacing: 0.5px !important;
    }

    .header.scrolled .hg-logo-subtitle {
        font-size: 6px !important;
    }

    .hg-logo-content {
        gap: var(--spacing-1) !important; /* Espaçamento interno reduzido */
    }
}

/* Ajustes extras para telas muito pequenas (menos de 360px) */
@media (max-width: 360px) {
    .header {
        padding: var(--spacing-2) 0 !important;
    }

    .hg-logo-circle {
        width: 40px !important;
        height: 40px !important;
    }

    .header.scrolled .hg-logo-circle {
        width: 28px !important;
        height: 28px !important;
    }

    .hg-logo-main {
        font-size: 16px !important;
    }

    .header.scrolled .hg-logo-main {
        font-size: 14px !important;
    }

    /* Opcional: Esconder o subtítulo em telas muito pequenas */
    .hg-logo-subtitle {
        display: none;
    }
}