/* ====== HEADER BASE ====== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 40px;
  background: transparent;
  transition: all 0.4s ease;
  z-index: 10000;
}

@media (max-width: 768px) {
	.header {
		padding: 1.5rem;
	}
}

/* ====== LOGO ====== */
.logo {
  display: block;
  height: 80px;
  width: auto;
  transition: opacity 0.4s ease, height 0.4s ease;
}


@media (max-width: 768px) {
	.logo {
		height: 3.75rem;
	}
}

.logo--scrolled {
  display: none;
}

.header.scrolled {
  background: #fff;
  height: 80px;
  align-items: center;
}

.header.scrolled .logo--default {
  display: none;
}

.header.scrolled .logo--scrolled {
  display: block;
  height: 50px;
}

/* ====== MENU LIST ====== */
.menu-list {
  display: flex;
  gap: 60px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list li {
  position: relative;
}

.menu-list a {
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 23px;
  color: #fff;
  transition: color 0.3s ease;
}

/* underline effect */
.menu-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 3px;
  width: 0;
  background: var(--tag-wealth-primary-color-100);
  transition: width 0.3s ease;
}

.menu-item.current_page_item::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: -1px;
    height: 3px;
    width: 1rem;
    background-color: var(--tag-wealth-primary-color-100);
    transition: width 0.4s 
ease;
}

.menu-list a:hover::after,
.menu-list a.active::after {
  width: 100%;
}

.header.scrolled .menu-list a {
  color: #000;
}

/* ====== HAMBURGER BUTTON ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
}


.menu-toggle__line {
  width: 100%;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.active .menu-toggle__line {
	background: var(--tag-wealth-primary-color-100);
}

.header.scrolled .menu-toggle__line {
  background: #000;
}

/* ====== MOBILE MENU ====== */
@media (max-width: 768px) {
  .menu-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    transition: right 0.4s ease;
  }

  .menu-list.open {
    right: 0;
  }

  .menu-list a {
    color: #000;
    font-size: 24px;
  }

  .menu-toggle {
    display: flex;
  }
	
	button.menu-toggle {
    padding: 0;
	background: none;
	border: none;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-block-start: 0.5rem;
}

  .menu-toggle.active .menu-toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle.active .menu-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .menu-toggle__line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}
