header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.header-size {
  margin: 0 auto;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 3rem);
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.header-size a {
  text-decoration: transparent;
  color: var(--misc-dark);
  transition: 300ms;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-right: 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--primary);
}

.search-container {
  border: 1px solid var(--neutral-n75);
  border-radius: 4rem;
  width: 15rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0.38rem;
}

.search-bar {
  border: none;
  outline: none;
  background-color: transparent;
  padding-left: 0.25rem;
  padding-top: 5px;
}

input::placeholder {
  font-size: 1rem;
  font-style: normal;
  line-height: 1.3rem;
  color: var(--misc-dark);
}

input:focus::placeholder {
  color: transparent;
}

.masthead-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.masthead-logo img {
  width: 12.6rem;
  height: 3.6rem;
  flex-shrink: 0;
}

.header-button {
  background-image: var(--gradient-brand);
  border-radius: 8rem;
  box-sizing: border-box;
  color: var(--primary-p400);
  display: flex;
  height: 2.5rem;
  padding: 1px;
  width: 8.8rem;
  text-decoration: none;
}

.header-button svg path {
  transition: stroke 0.5s ease;
}

.header-button:hover {
  color: #fff;
}

.header-button:hover svg path {
  stroke: #fff;
}

.get-started {
  align-items: center;
  border-radius: 4rem;
  display: flex;
  justify-content: center;
  background: #fff;
  color: var(--primary-p400);
  transition: background 0.5s ease;
  width: 100%;
  gap: 5px;
  margin: 1px;
  padding: 0.5rem 0.4rem 0.5rem 0.75rem;
  line-height: 100%;
}

.header-button:hover span {
  background: var(--primary-p400);
  color: #fff;
}

.nav-mobile {
  display: none;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  border-radius: 25px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--misc-dark);
}

@media (max-device-width: 1080px), (width <= 1080px) {
  .header-size {
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.5rem;
  }

  .header-nav {
    position: absolute;
    flex-direction: column;
    width: 100vw;
    left: 0;
    background-color: #fff;
    transition: 0.3s;
    gap: 0;
    top: 100%;
    height: 2px;
    overflow: hidden;
    opacity: 0;
  }

  .header-nav.active {
    opacity: 1;
    height: 21rem;
  }

  .nav-mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
  }

  .nav-mobile h6 {
    margin: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--neutral-n75);
    padding-top: 0.5rem;
    margin-right: 0;
  }

  .nav-links a {
    text-decoration: none !important;
    width: 100vw;
    border-bottom: 1px solid var(--neutral-n75);
    padding-left: 1.5rem;
    padding-bottom: 1rem;
    box-sizing: border-box;
  }

  .search-container {
    height: 2.5rem;
    display: flex;
    width: calc(100vw - 3rem);
    align-items: center;
    justify-content: space-between;
    padding-left: 0.75rem;
    padding-right: 0;
  }

  .header-button {
    background-image: var(--gradient-brand);
    color: var(--primary-p400);
    display: flex;
    width: 100%;
    border-radius: 0%;
    align-items: center;
    padding: 1.5rem 0;
  }

  .get-started {
    background: none;
    color: #fff;
    flex-direction: column;
    align-items: flex-start;
    margin: 0.5rem;
  }

  .get-started svg {
    display: none;
  }

  .nav-links a,
  .search-container,
  .header-button {
    margin: 0.5rem 0;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }

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

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

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

@media (prefers-reduced-motion) {
  .header-nav {
    transition: none;
  }
}
