/*Header*/

.header {
  width: 100%;
  height: 6rem;
  border-bottom: 1px solid var(--grey-light);
  box-sizing: border-box;
  padding: 1.5rem 3rem;
}

.header-wrapper {
  max-width: var(--max-screen-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 15.25rem;
  margin-right: 2rem;
}

.header-logo {
  display: flex;
}

.header-mobile-menu-icon {
  display: none;
  cursor: pointer;
}

.header-right {
  display: flex;
  gap: 0.5rem;
  width: 16.25rem;
  margin-left: 1rem;
  justify-content: flex-end;
}

.header-nav {
  height: 100%;
  display: flex;
  gap: 2rem;
}

.header-sub-nav {
  height: 100%;
  display: none;
  align-items: center;
  gap: 2.5rem;
  padding: 0 2rem;
  border-left: 1px solid var(--separator);
  border-right: 1px solid var(--separator);
}

.header-sub-nav.visible {
  display: flex;
}

.header-sub-nav-item {
  color: var(--main-text-color);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-l);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.header-sub-nav-item.active,
.header-sub-nav-item:hover {
  color: var(--blue);
}

.header-nav-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--main-text-color);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-l);
  cursor: pointer;
  position: relative;
  user-select: none;
}

.header-nav-item:hover {
  color: var(--blue);
}

.header-nav-item:hover > img {
  filter: invert(24%) sepia(95%) saturate(4809%) hue-rotate(225deg)
    brightness(102%) contrast(99%);
}

.header-nav-item-menu-wrapper {
  padding-top: 1rem;
  position: absolute;
  top: 2.5rem;
  left: -0.25rem;
  display: none;
  z-index: 10;
}

.header-nav-item-menu {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  width: 28.3125rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.1);
}

.header-nav-item-menu--small {
  width: 13.75rem;
}

.header-nav-item-menu-arrow {
  position: absolute;
  top: 0.5rem;
  left: 2.25rem;
  border-left: 0.5rem solid transparent;
  border-right: 0.5rem solid transparent;
  border-bottom: 0.75rem solid var(--white);
}

.header-nav-item-menu-link {
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  box-sizing: border-box;
}

.header-nav-item-menu-link-title {
  font-size: var(--font-size-l);
  font-weight: var(--font-weight-bold);
  color: var(--main-text-color);
  line-height: 1.375rem;
}

.header-nav-item-menu-link-desc {
  font-size: var(--font-size-m);
  color: var(--gray);
  line-height: 1.5rem;
  font-weight: var(--font-weight-regular);
}

.header-nav-item-menu-link:hover {
  background-color: var(--white);
  z-index: 11;
  transform: scale(1.05);
  box-shadow: 0 0 1.25rem rgba(31, 45, 61, 0.08);
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.header-nav-item-menu-link:hover > .header-nav-item-menu-link-title {
  color: var(--blue);
  transition: all 0.2s ease;
}

.header-nav-item-menu-link:hover > .header-nav-item-menu-link-desc {
  transition: all 0.2s ease;
}

.link:hover > img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(92%) saturate(2361%)
    hue-rotate(212deg) brightness(89%) contrast(93%);
}

.header-overlay {
  overflow-y: hidden;
  width: auto;
  position: fixed;
  inset: 0;
  z-index: 99;
}

.header-overlay.visible {
  width: 100%;
  background: rgba(245, 245, 245, 0.88);
  transition: background-color 0.3s ease-in;
}

.header-overlay.hidden {
  z-index: -1;
  background: transparent;
  transition: background-color 0.2s ease-in;
}

.header-mobile-menu {
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  min-height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--white);
  width: 18.125rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
}

.header-mobile-menu.active-menu {
  background-color: var(--white);
  z-index: 100;
  transform: translateX(0);
  transition: transform 0.3s ease-in;
}

.header-mobile-menu-top {
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  box-sizing: border-box;
  border-bottom: 1px solid var(--grey-light);
}

.header-mobile-close:hover {
  cursor: pointer;
  opacity: 0.7;
}

.header-mobile-menu-navigation {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-l);
  line-height: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--main-text-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.header-mobile-menu-text {
  padding: 1rem 0;
  height: 3.5rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.header-mobile-menu-text > img {
  transform: rotate(0deg);
  transition: all 0.3s ease-in-out;
}

.header-mobile-menu-text.expanded > img {
  transform: rotate(180deg);
  transition: all 0.3s ease-in-out;
}

.header-mobile-menu-submenu {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem 0 1.5rem;
  transition: all 0.5s ease-out;
  transition-delay: -0.2s;
}

.header-mobile-menu-submenu.visible {
  max-height: 12rem;
  transition: max-height 0.2s ease-in;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.header-mobile-menu-submenu > a,
.header-mobile-menu-submenu > a:visited {
  text-decoration: none;
  color: var(--main-text-color);
}

.header-mobile-menu-bottom {
  margin-top: auto;
  padding: 2rem 1rem;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.header-mobile-get-started,
.header-mobile-get-started > .main-btn {
  width: 100%;
}

.header-mobile-sub-nav {
  height: 100%;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--grey-light);
  border-bottom: 1px solid var(--grey-light);
}

.header-mobile-sub-nav.visible {
  display: flex;
}

.header-mobile-sub-nav-item {
  color: var(--main-text-color);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-l);
  cursor: pointer;
  text-decoration: none;
}

.header-mobile-sub-nav-item.active,
.header-mobile-sub-nav-item:hover {
  color: var(--blue);
}

.header-sign-in {
  min-width: 7.5rem;
  padding-right: 0.75rem;
}

/* Responsive */
@media only screen and (max-width: 1200px) {
  .header {
    height: 5rem;
    padding: 1.5rem;
  }

  .header-nav {
    display: none;
  }

  .header-mobile-menu-icon {
    display: block;
  }

  .header-logo > img {
    width: 6.5625rem;
  }

  .header-right .main-btn,
  .header-right .link {
    font-size: var(--font-size-xm);
    height: 2.5rem;
    padding: 0.5rem 1.5rem;
  }
}

@media only screen and (max-width: 1080px) {
  .header-left {
    margin-right: 0;
  }

  .header-right {
    gap: 0;
  }

  .header-right .link {
    padding: 0.5rem 1rem;
  }
}

@media only screen and (max-width: 480px) {
  .header {
    padding: 1.5rem 1rem;
  }

  .header,
  .header-mobile-menu-top {
    height: 4rem;
  }

  .header-right {
    display: none;
  }

  .header-mobile-menu-bottom {
    display: flex;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
  }
}
