.container.header {
  width: 100%;
}

header {
  font-size: 1rem;
  font-weight: 400;
  max-width: 1200px;
  height: 90px;
  margin: auto;
  background-color: white;
}

.header {
  background-color: white;
}

.header-scrolled header {
  background-color: #f3f3f3;
}

header img {
  height: 25px;
}

header .logo {
  margin-right: 1.5rem;
  margin-left: 1rem;
}

header .menu-item {
  margin-right: 1rem;
  max-width: fit-content;
  position: relative;
  font-weight: bold;
  opacity: 0.75;
}

header .menu-item:hover {
  cursor: pointer;
  font-weight: bold;
  color: #330033;
  opacity: 1;
}

/* Start underline effect */

.menu-item::before {
  transition: 300ms;
  height: 5px;
  content: "";
  position: absolute;
  background-color: #330033;
}

.menu-item-underline::before {
  width: 0%;
  bottom: -0.5rem;
}

.mobile .menu .menu-item.cta-button {
  align-self: center;
  margin-top: auto;
}

header .menu-item.menu-item-underline:hover::before {
  width: 100%;
}

/* End underline effect */

header a,
header a:visited {
  text-decoration: none;
  color: inherit;
}


.container.header {
  position: fixed;
  max-width: 100%;
  z-index: 2;
}

.container.header.desktop {
  display: none;
}

.container.header.mobile {
  min-width: 320px;
}

.mobile .logo,
.mobile .hamburger-icon {
  margin: 2rem;
}

.mobile .flex-row.flex-aic {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}


#expandable-menu {
  top: 90px;
  height: calc(100% - 90px);
  min-width: 320px;
  max-height: 0;
  width: 100%;
  position: fixed;
  display: flex;
  flex-direction: column;
  background-color: #f3f3f3;
  transition: max-height 0.5s ease-out;
  overflow: hidden;
  justify-content: flex-start;
  align-items: flex-start;
}

.header-scrolled {
  background-color: #f3f3f3;
  transition: all 0.3s ease-in-out;
  border-bottom: 2px #36383F solid;
}

.menu-toggle-button {
  position: relative;
}

#menu-toggle {
  display: flex;
  position: absolute;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
  height: 32px;
  width: 32px;
  right: 1.75rem;
  top: 1.75rem;
}

.mobile .menu .menu-item {
  opacity: 0;
  transition: opacity .1s linear 0.1s;
  font-size: 1.4rem;
  margin: 1rem 0 1rem 2rem;
}

.hamburger-icon .hamburger-button {
  padding: 0;
  border: none;
  background: none;
}

.hamburger-icon .hamburger-line {
  display: flex;
  width: 29px;
  height: 2px;
  margin: 5px 0 5px auto;
  position: relative;
  background: #36383F;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 5px 0px;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
  background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
  opacity 0.55s ease;
}

.hamburger-icon .hamburger-line:nth-last-child(1) {
  transform-origin: 0% 100%;
}

#menu-toggle:checked {
  top: 1.5rem;
  right: 2rem;
}

#menu-toggle:checked ~ .hamburger-icon .hamburger-line {
  opacity: 1;
  transform: rotate(45deg) translate(-3px, -1px);
  background: #36383F;
}

#menu-toggle:checked ~ .hamburger-icon .hamburger-line:nth-last-child(2) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menu-toggle:checked ~ .hamburger-icon .hamburger-line:nth-last-child(1) {
  transform: rotate(-45deg) translate(0, -1px);
}

#menu-toggle:checked ~ .menu {
  max-height: 100%;
}

#menu-toggle:checked ~ .menu .menu-item {
  opacity: 0.75;
  transition: opacity 0.1s linear 0.1s;
}

#menu-toggle:checked ~ .menu .menu-item:hover {
  opacity: 1;
}

@media only screen and (min-width: 820px) {
  .container.header.desktop {
    display: block;
  }

  .container.header.mobile {
    display: none;
  }
}

@media only screen and (min-width: 1440px) {
  header {
    min-width: 1440px;
  }
}