/* Header */
header{
    width: 100%;
    height: 120px;
    background-color: white;
    display: flex;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
}

/* Hamburger */
.hamburger{
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    top: 40px;
    left: 35px;
    z-index: 1001;
    display: none;
}

.bar {
    display: block;
    width: 30px;
    height: 4px;
    background-color: var(--gold-primary);
    margin: 6px auto;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Nav container */
.navigation_container{
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo_container{
    width: 25%;
    height: 100%;
    padding: 10px;
}

.logo{
    width: auto;
    height: 100%;
    cursor: pointer;
}

/* Navigation */
nav{
    display: flex;
}

.nav_container{
    display: flex;
    align-items: center;
}

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

.nav_item{
    width: auto;
    min-width: 70px;
    padding: 20px;
}

.drop_arrow{
    font-size: 12px;
    color: var(--gold-primary);
    margin-left: 5px;
}

.nav_link{
    width: 100%;
    text-align: left;
    transition: 0.2s all ease;
}

.nav_link:hover{
    color: var(--gold-primary);
}

@media screen and (max-width: 1000px){
    .nav_container{
        display: none;
    }

    .hamburger{
        display: block;
    }

    .logo_container{
        width: 100%;
        display: flex;
        justify-content: end;
    }

    header{
        height: 80px;
    }

    .hamburger{
        left: 20px;
        top: 20px;
    }
}

/* Hamburger overlay menu */
.hamburger_overlay {
    position: fixed;
    top: 0;
    left: -100%; 
    width: 100%;
    max-width: 300px;
    height: 100dvh;
    background-color: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
    z-index: 999;
    transition: left 0.17s ease;
}

.hamburger_overlay.active {
    left: 0; 
}

/* Hamburger logo */
.overlay_logo_container{
    width: 100%;
    height: auto;
    padding: 25px;
    padding-top: 70px;
    display: flex;
    justify-content: center;
}

.overlay_logo{
    width: 100%;
    height: auto;
}

/* Hamburger navigation */
.hamburger_overlay_content{
    width: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.hamburger_nav_container{
    width: 100%;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hamburger_nav_item{
    width: 100%;
    font-size: 22px;
}

.hamburger_nav_link{
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: 0.2s all ease;
}

@media screen and (max-width: 370px){
    .hamburger_overlay{
        max-width: 220px;
    }

    .hamburger_nav_item{
        font-size: 17px;
    }

    .hamburger.active {
        transform: translateX(150px) !important;
        transition: transform 0.3s ease;
    }
}

/* Hamburger active (bars turn into cross) */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

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

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.hamburger.active {
    transform: translateX(220px);
    transition: transform 0.3s ease;
}

/* Dropdown menu navigation */
.nav_container li {
    position: relative;
}

.nav_container li ul.dropdown_menu {
    position: absolute;
    top: 80%;
    left: 0;
    min-width: 180px;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-left: none;
    max-height: none;
    z-index: 1000;
}

.nav_container li.active > ul.dropdown_menu,
.nav_container li:hover > ul.dropdown_menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav_container li ul.dropdown_menu li a {
    font-size: 16px;
    color: black;
    text-decoration: none;
    padding: 12px 20px;
    transition: background 0.3s;
    display: block;
}

.nav_container li ul.dropdown_menu li a:hover {
    color: var(--gold-primary);
}

.drop_arrow {
    transition: transform 0.3s ease;
}

.nav_container li.active .drop_arrow,
.nav_container li:hover .drop_arrow {
    transform: rotate(-90deg);
}

/* dropdown menu hamburger menu overlay */
.hamburger_nav_container li ul.dropdown_menu {
    display: flex; 
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    gap: 5px;
    width: 100%;
    margin-top: 8px;
    border-left: 2px solid rgba(255,255,255,0.2);
}

.hamburger_nav_container li.active > ul.dropdown_menu {
    max-height: 500px;
}

.hamburger_nav_container li ul.dropdown_menu li a {
    font-size: 16px;
    color: black;
    text-decoration: none;
    padding: 10px 20px;
    transition: background 0.3s;
}

.hamburger_nav_container li ul.dropdown_menu li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.drop_arrow {
    transition: transform 0.3s ease;
}

.hamburger_nav_container li.active .drop_arrow {
    transform: rotate(-90deg);
}

.dropdown_menu {
    display: flex; 
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--red-primary);
    gap: 5px;
    width: 100%;
    margin-top: 8px;
    border-left: 2px solid rgba(255,255,255,0.2);
    color: black;
}

.hamburger_nav_container li.active > .dropdown_menu {
    max-height: 500px; 
}

.dropdown_menu li a {
    font-size: 16px;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    transition: background 0.3s;
}

.dropdown_menu li:hover {
    background: rgba(255, 255, 255, 0.1);
}