/* Navbar CSS */
.navbar {
    width: 100%;
    background: var(--color-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
    font-family: inherit;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

.navbar-brand img {
    height: 80px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar-menu li {
    list-style: none;
    position: relative;
}

.navbar-menu li a {
    font-weight: 500;
    padding: 8px 12px;
    color: var(--color-dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.navbar-menu li a:hover {
    color: var(--color-primary);
}

/* Dropdown */
.navbar-menu li.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 180px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    z-index: 999;
}

.navbar-menu li.dropdown .dropdown-menu li a {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.navbar-menu li.dropdown .dropdown-menu li a:hover {
    color: var(--color-primary);
}

/* Arrow indicator */
.navbar-menu li.dropdown>a::after {
    content: "▼";
    font-size: 0.6rem;
    margin-left: 5px;
    transition: transform 0.3s;
}

/* Desktop hover dropdown */
@media (min-width: 993px) {
    .navbar-menu li.dropdown:hover .dropdown-menu {
        display: flex;
    }

    .navbar-menu li.dropdown:hover>a::after {
        transform: rotate(-180deg);
    }
}

/* Hamburger toggle button (mobile) */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.navbar-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animate hamburger to cross */
.navbar-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.open span:nth-child(2) {
    opacity: 0;
}

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

/* Responsive styles */
@media (max-width: 992px) {
    .navbar-menu {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        width: 250px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow);
    }

    .navbar-menu.open {
        max-height: 1000px;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu li a {
        padding: var(--space-md);
        border-bottom: 1px solid #eee;
    }

    /* Mobile dropdowns */
    .navbar-menu li.dropdown .dropdown-menu {
        position: static;
        display: flex;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-menu li.dropdown.open .dropdown-menu {
        max-height: 1000px;
    }

    /* Mobile arrow rotation */
    .navbar-menu li.dropdown.open>a::after {
        transform: rotate(-180deg);
    }
}
