/* ============================= HEADER ============================= */

.site-header {
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);

  @media screen and (min-width: 1400px) {
    padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--90);
  }
}

.site-header__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--wp--preset--spacing--60);
  justify-content: space-between;
}

/* ============================= NAVIGATION ============================= */

.site-header__nav-wrapper {
  align-items: center;
  display: none;
  column-gap: var(--wp--preset--spacing--60);
  justify-content: flex-end;
  margin: 0;
  width: 100%;

  @media screen and (min-width: 1200px) {
    display: flex;
    flex: 1;
    flex-direction: row;
    width: unset;
  }
}
.site-header__nav-wrapper.is-visible {
  display: flex;
  flex-direction: column;

  @media screen and (min-width: 1200px) {
    flex-direction: row;
  }
}

ul.site-header__navigation {
  flex: 1;
  gap: var(--wp--preset--spacing--60);
}
ul.site-header__navigation .wp-block-navigation-item {
  width: unset;
}
ul.site-header__navigation .wp-block-navigation-item__content {
  text-align: right;
  text-decoration: none;
}

.site-header__actions {
  margin: 0;
}

/* ============================= SEARCH ============================= */

/* Search Toggle */
.site-header__search-wrapper {
  margin: 0;
  position: relative;
  width: 100%;

  @media screen and (min-width: 1200px) {
    width: unset;
  }
}

.site-header__search-toggle {
  align-items: center;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  display: none;
  padding: var(--wp--preset--spacing--20);
  transition: opacity 0.2s ease;

  @media screen and (min-width: 1200px) {
    display: flex;
  }
}

.site-header__search-toggle:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.site-header__search-toggle[aria-expanded="true"] svg path {
  fill: var(--wp--preset--color--sky);
}

/* Hide search by default */
.site-header__search {
  margin: 0;
  width: 100%;

  @media screen and (min-width: 1200px) {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin-block-start: var(--wp--preset--spacing--40);
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 100%;
    transition: opacity 0.3s ease;
    width: 1px;
  }
}

/* Show search when active */
.site-header__search-wrapper.is-active .site-header__search {
  clip: auto;
  height: auto;
  opacity: 1;
  pointer-events: auto;
  width: auto;
  min-width: 250px;
  z-index: 2;

  @media screen and (min-width: 1200px) {
    min-width: 300px;
  }
}

.site-header__search-wrapper .wp-block-search__inside-wrapper {
  border-radius: 100px;
  padding: 0 20px;
}

.site-header__search-wrapper .wp-block-search__button {
  background-color: var(--wp--preset--color--white);
  padding: var(--wp--preset--spacing--20);
}

.site-header__search-wrapper .wp-block-search__button svg path{
  fill: var(--wp--preset--color--marine);
}

/* ============================= MOBILE TOGGLE ============================= */

.site-header__mobile-toggle {
  background-color: transparent;
  border: none;
  cursor: pointer;
  height: 20px;
  margin: 0;
  position: relative;
  width: 28px;

  @media screen and (min-width: 1200px) {
    display: none;
  }
}

.site-header__mobile-toggle__line {
  background-color: var(--wp--preset--color--white);
  height: 2px;
  position: absolute;
  left: 50%;
  width: 28px;
  transform: translateX(-50%);
  transition: all .3s ease;
}

.site-header__mobile-toggle__line:nth-child(1) {
  transform-origin: top left;
  top: 0;
}

.site-header__mobile-toggle__line:nth-child(2) {
  bottom: 9px;
}

.site-header__mobile-toggle__line:nth-child(3) {
  transform-origin: bottom left;
  bottom: 0;
}

.site-header__mobile-toggle.is-open .site-header__mobile-toggle__line:nth-child(1) {
  left: 3px;
  transform: rotate(45deg);
  width: 26px;
}

.site-header__mobile-toggle.is-open .site-header__mobile-toggle__line:nth-child(2) {
  opacity: 0;
}

.site-header__mobile-toggle.is-open .site-header__mobile-toggle__line:nth-child(3) {
  left: 3px;
  transform: rotate(-45deg);
  width: 26px;
}