/* ===================================
   NAVBAR - GOVHUB
   =================================== */

/* Estilos globais para scroll e header */
html {
    scroll-behavior: smooth;
}

#topo {
    scroll-margin-top: 5rem;
}

header.fixed {
    position: fixed;
    width: 100%;
    z-index: 9999;
}

/* Variáveis CSS locais para a navbar */
:root {
    --primary-purple: #7A34F3;
    --secondary-purple: #8b5cf6;
    --accent-orange: #f97316;
    --accent-orange-hover: #ea580c;
    --text-white: #ffffff;
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition-normal: all 0.3s ease;
}

/* Header e Navbar */
header {
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Navbar principal */
.custom-navbar {
    background: #7A34F3 !important;
    height: 60px !important;
    position: relative !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Container da navbar com Bootstrap Grid System */
.custom-navbar .container {
    margin: 0 auto;
}

.custom-navbar .row {
    flex-wrap: nowrap;
}

/* Logo Section */
.logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    height: 60px !important;
    min-height: 50px !important;
    min-width: 120px !important;
    padding: 0 0.5rem 0 2rem !important;
    overflow: visible !important;
}


.logo-text {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
}

/* Transição gradativa da logo entre 1400px e 1250px */
@media (max-width: 1400px) {
    .logo-img {
        max-height: 38px;
    }
}

@media (max-width: 1350px) {
    .logo-img {
        max-height: 34px;
    }
}

@media (max-width: 1300px) {
    .logo-img {
        max-height: 30px;
    }
}

@media (max-width: 1250px) {
    .logo-img {
        max-height: 28px;
    }
}

/* Logo como link (outras páginas) */
a.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    height: 60px;
    min-height: 50px;
    min-width: 120px;
    padding: 0 0.5rem 0 0;
    overflow: visible;
    text-decoration: none;
}

/* Imagem da logo nas outras páginas */
.navbar-left a.logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* Navigation Links */
.navbar-center {
    display: flex !important;
    gap: 0.5rem !important;
    align-items: center !important;
}

.nav-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    background: none !important;
    border: none !important;
}

.nav-link:hover {
    background: #F19F42 !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

/* Social Icons */
.social-icons {
    display: flex !important;
    gap: 1.25rem !important;
    align-items: center !important;
    margin-left: auto !important;
}

.social-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 32px !important;
    width: 32px !important;
    height: 32px !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.social-icon:hover {
    transform: scale(1.15) !important;
}

.social-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
}

/* Estilos para ícones SVG na navbar */
.social-icon-img {
    width: 32px !important;
    height: 32px !important;
    transition: all 0.3s ease !important;
}

/* Estilos para página ativa na navbar */
.nav-link.active {
    background: #F19F42 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
}

.nav-link.active:hover {
    transform: translateY(-1px) !important;
}

/* Estilos para página ativa no menu mobile */
.mobile-menu li a.active {
    background: #F19F42 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-weight: 600 !important;
    margin: 0.25rem 0 !important;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none !important;
    color: #ffffff !important;
    background: none !important;
    border: none !important;
    padding: 0.5rem !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0.5rem !important;
}

.mobile-menu-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.mobile-menu-button svg {
    width: 24px !important;
    height: 24px !important;
    transition: transform 0.3s ease;
}

/* Botão de fechar no menu mobile */
.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 9999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.mobile-menu {
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: -100vh !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%) !important;
    box-shadow: var(--shadow-lg) !important;
    z-index: 9998 !important;
    transition: top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    overflow-y: auto !important;
}


/* Bootstrap collapse states */
.mobile-menu.collapse {
    display: none;
}

.mobile-menu.collapse.show {
    display: block;
}

.mobile-menu.active {
    top: 0 !important;
}

/* Overlay para escurecer o fundo quando menu mobile estiver aberto */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 6rem 2rem 8rem 2rem !important;
    margin: 0 !important;
    height: 100% !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Telas maiores que ainda usam menu mobile (992px - 1249px) */
@media (min-width: 992px) and (max-width: 1249.98px) {
    .mobile-menu ul {
        padding: 1rem 0;
    }
    
    .mobile-menu li a {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Ícones sociais dentro do menu mobile */
    .mobile-menu .social-icons {
        display: flex !important;
        justify-content: center;
        gap: 1.5rem;
        padding: 1rem 0 1rem 0;
        margin-top: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
    }
    
    .mobile-menu .social-icon {
        width: 40px;
        height: 40px;
        font-size: 40px;
        color: #ffffff;
        transition: all 0.3s ease;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }
    
    .mobile-menu .social-icon:hover {
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.1);
    }
}

.mobile-menu li {
    list-style: none !important;
}

.mobile-menu li a {
    display: block !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 1.25rem 1.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    text-align: center !important;
    border-radius: 8px !important;
    margin: 0.25rem 0 !important;
}

.mobile-menu li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}




/* Responsive Design - Bootstrap Grid System */

/* Large screens (1200px+) - Default styles already defined */
@media (min-width: 1200px) {    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
    
    .navbar-center {
        gap: 0.5rem;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }
}
/* Medium screens (992px - 1199px) */
@media (max-width: 1249.98px) {
    .custom-navbar .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 0.08rem;
    }

    .logo-img {
        max-height: 32px;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.4rem;
    }
    
    .social-icon {
        width: 24px;
        height: 24px;
    }
    
    .navbar-center {
        gap: 0.2rem;
    }
    /* Esconder navegação principal */
    .custom-navbar .col.d-none.d-lg-flex {
        display: none !important;
    }
    
    /* Esconder ícones sociais da navbar principal */
    .custom-navbar .col-auto.d-none.d-md-flex {
        display: none !important;
    }
    
    /* Mostrar botão do menu hambúrguer */
    .custom-navbar .col-auto.d-lg-none {
        display: flex !important;
        margin-left: auto; /* Move para a margem direita */
    }
    
    .mobile-menu-button {
        display: flex !important;
    }
}

/* Small screens (768px - 991px) */
@media (max-width: 991.98px) {
    .nav-link {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }

    .custom-navbar {
        height: auto;
        min-height: 60px;
    }
    
    .logo {
        min-height: 40px;
        min-width: 80px;
        padding: 0 0.2rem 0 0.1rem;
    }
    
    a.logo {
        min-height: 40px;
        min-width: 80px;
        padding: 0 0.2rem 0 0.1rem;
    }
    
    .logo-img {
        max-height: 35px;
    }
    
    /* Reorganizar a estrutura da navbar no mobile */
    .custom-navbar .row {
        justify-content: space-between;
        align-items: center;
    }
    
    /* Logo fica na esquerda */
    .custom-navbar .row .col-auto:first-child {
        order: 1;
    }
    
    /* Esconder ícones sociais da navbar principal no mobile */
    .custom-navbar .row .col-auto.d-none.d-md-flex {
        display: none !important;
    }
    
    /* Menu hambúrguer fica na direita */
    .custom-navbar .row .col-auto.d-lg-none {
        order: 2;
        margin-left: auto;
    }
    
    .mobile-menu-button {
        width: 36px;
        height: 36px;
    }
    
    .mobile-menu-button svg {
        width: 20px;
        height: 20px;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }
    
    /* Ajustar espaçamento dos ícones sociais */
    .social-icons {
        gap: 0.75rem;
        margin-left: 0;
    }
    
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu ul {
        padding: 1rem 0 !important;
        justify-content: center !important;
    }
    
    .mobile-menu li a {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Ícones sociais dentro do menu mobile */
    .mobile-menu .social-icons {
        display: flex !important;
        justify-content: center;
        gap: 1.5rem;
        padding: 1rem 0 1rem 0;
        margin-top: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
    }
    
    .mobile-menu .social-icon {
        width: 40px;
        height: 40px;
        font-size: 40px;
        color: #ffffff;
        transition: all 0.3s ease;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }
    
    .mobile-menu .social-icon:hover {
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Ajuste para telas muito pequenas para evitar sobreposição */
@media (max-width: 480px) {
    .mobile-menu ul {
        padding: 4rem 2rem 6rem 2rem !important;
        justify-content: center !important;
    }
    
    .mobile-menu .social-icons {
        position: absolute !important;
        bottom: 1rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 0 !important;
    }
}

/* Ajuste para telas extra pequenas (menos de 400px) */
@media (max-width: 400px) {
    .mobile-menu ul {
        padding: 3rem 1.5rem 5rem 1.5rem !important;
        gap: 0.3rem !important;
    }
    
    .mobile-menu li a {
        padding: 0.7rem 0.8rem !important;
        font-size: 0.75rem !important;
        margin: 0.15rem 0 !important;
    }
    
    .mobile-menu .social-icons {
        bottom: 0.8rem !important;
        gap: 1rem !important;
        padding: 0.8rem 0 !important;
    }
    
    .mobile-menu .social-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 32px !important;
    }
    
    .mobile-menu .social-icon-img {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Ajuste do conteúdo principal para a navbar fixa */
body {
    margin: 0;
    padding: 0;
}

/* Reset global para remover espaços indesejados */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#topo {
    margin: 0;
    padding: 0;
    height: 0;
    display: block;
}

