/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    width: 100%;
    background-color: #422556; /* Primária03 */
    border-bottom: none;
    margin-bottom: 0;
}


.navbar .row {
    margin: 0;
    width: 100%;
}

/* Logo */
.navbar .col-auto {
    flex: 0 0 auto;
    width: auto;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

/* Remove padding padrão do Bootstrap das colunas */
.navbar .row > [class*="col"] {
    padding-left: 0;
    padding-right: 0;
}

.navbar-logo img {
    height: 70px;
    width: auto;
}

/* Nav Links - Coluna que ocupa o resto e alinha à direita */
.navbar .col {
    flex: 1 1 0% !important;
    min-width: 0;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 20px;
}

.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    justify-content: flex-end;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    position: relative;
    padding: 8px 16px;
    transition: color 0.4s ease;
    overflow: hidden;
    border-radius: 4px;
    z-index: 1;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #F9A10E;
    transition: height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.nav-link:hover {
    color: #000000;
}

.nav-link:hover::after {
    height: 100%;
    bottom: 0;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Navbar */
@media (max-width: 1100px) {
    .navbar-nav {
        gap: 15px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 960px) {
    .navbar-nav {
        gap: 10px;
    }

    .nav-link {
        padding: 8px 8px;
        font-size: 12px;
    }
}

@media (max-width: 880px) {
    .navbar {
        padding: 15px 0;
    }
    
    .navbar .row {
        justify-content: space-between;
    }
    
    .navbar .col {
        flex: 0 0 auto !important;
        width: auto;
    }
    
    .hamburger {
        display: flex;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
    }
    
    .navbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 250px;
        height: 100vh;
        background-color: #422556; /* Primária03 */
        flex-direction: column !important;
        align-items: flex-start;
        padding: 80px 20px 30px;
        gap: 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 1000;
        justify-content: flex-start;
    }
    
    /* Ajuste para tablets dentro da media query mobile */
    @media (min-width: 768px) and (max-width: 880px) {
        .navbar-nav {
            width: 60%;
            max-width: 320px;
            padding: 80px 30px 30px;
        }
    }

    .navbar-nav.active {
        right: 0;
    }

    .nav-link {
        font-size: 16px;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #ffffff;
        border-radius: 0;
    }

    .nav-link::after {
        height: 2px;
        bottom: 0;
    }

    .nav-link:hover::after {
        height: 100%;
    }

    .nav-link:last-child {
        border-bottom: none;
    }
}
