.header {
  background: var(--color-light);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* Header elements */
.header .menu {
  display: flex;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}
.header-icon {
  display: grid;
  place-content: center;
  background-color: var(--color-dark);
  color: #ffffff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.header-icon:hover {
  background-color: var(--color-primary);
}
/* Header top */
.region-header-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}
.region-header-top i {
  color: var(--color-primary);
}
.region-header-top .block p:last-of-type {
  margin: 0;
}
.region-header-top ul {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
/* Header main */
.header-main {
  padding-top: 0.5rem;
}
.header-main-container {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
}
/* Header main -> site branding */
.site-branding-region {
  align-self: center;
}
.site-brand {
  display: flex;
  align-items: center;
}
.site-brand img {
  display: block;
  max-height: 30px;
  width: auto;
  max-width: unset;
}
.site-name-slogan {
  display: flex;
  flex-direction: column;
}
.site-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1.1;
}
.site-name a,
.site-name a:hover {
  color: var(--color-secondary);
}
.site-slogan {
  font-size: 0.9rem;
  line-height: 1;
}
/* Header right */
.header-seperator-line {
  width: 3px;
  background-color: var(--color-secondary);
  align-self: stretch;
  transform: skewX(20deg);
  transform-origin: bottom;
  margin-left: 1.5rem;
}
.header-right {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: end;
  flex-grow: 1;
  border-bottom: 3px solid var(--color-secondary);
}
/* Header menu */
.mobile-menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 30px;
  overflow: hidden;
  cursor: pointer;
}
.mobile-menu-icon span {
  width: 100%;
  height: 3px;
  background-color: var(--color-dark);
  transform-origin: left;
  transition: all 0.5s ease;
}
.mobile-menu-icon span:nth-child(2) {
  background-color: var(--color-primary);
}
.menu-icon-active span:first-child {
  transform: rotate(45deg);
}
.menu-icon-active span:last-child {
  transform: rotate(-45deg);
}
.menu-icon-active span:nth-child(2) {
  display: none;
}
.close-mobile-menu {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  place-content: center;
  background-color: var(--color-primary);
  color: #ffffff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 105;
}
.primary-menu-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--color-dark);
  padding: 1rem;
  transform: translateX(-100%);
  transition: all 0.3s linear;
  z-index: 100;
}
.active-menu {
  transform: translateX(0);
  box-shadow: 6px 0 12px #111111;
}
.region-primary-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.region-primary-menu .menu {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.region-primary-menu .menu,
.region-primary-menu .submenu {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.region-primary-menu .menu li {
  position: relative;
}
.region-primary-menu .menu > li {
  border-bottom: 1px solid var(--color-text2);
}
.region-primary-menu .menu > li:hover,
.region-primary-menu .menu > li:hover > a {
  color: var(--color-primary);
}
.region-primary-menu .menu a,
.region-primary-menu .menu span {
  display: block;
  color: #ffffff;
  padding: 0.5rem 0;
}
.menu-item-has-children {
  position: relative;
}
.region-primary-menu .submenu {
  padding: 0 0  0 2rem;
}
.region-primary-menu .submenu li {
  border-bottom: 1px solid var(--color-text2);
}
.region-primary-menu .submenu li:last-child {
  border: 0;
}
.region-primary-menu .submenu li:first-child {
  border-top: 1px solid var(--color-text2);
}
/* Header search */
.header-search {
  position: relative;
}
.header-icon-search {
  cursor: pointer;
}
.header-search-wrap {
  position: fixed;
  left: 0;
  top: -100%;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  transition: background-color 0.3s linear;
  will-change: top, background-color;
  z-index: 90;
}
.header-search-active .header-search-wrap {
  top: 0;
  background-color: rgb(0, 0, 0, 0.2);
}
.header-search-block {
  background-color: #1d1d1d;
  width: 100%;
  height: 50vh;
  transform: translateY(-100%);
  transition: transform 0.3s linear 0.3s;
}
.header-search-active .header-search-block {
  transform: translateY(0);
}
.header-search-shadow {
  cursor: url("../images/cursor.svg"), auto;
}
.close-header-search {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #ffffff;
  font-size: 2rem;
  width: 2rem;
  height: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 92;
}
.close-header-search:hover {
  color: var(--color-primary);
  transform: rotate(90deg);
}
.header-search-section {
  flex: 1 1 50%;
}
.region-header-search {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 50vh;
}
.region-header-search .form-search {
  position: relative;
  background-color: transparent;
  color: var(--color-text2);
  width: 100%;
  font-size: 1.5rem;
  border: 0;
  outline: 0;
  box-shadow: none;
  white-space: pre-wrap;
  word-wrap: break-word;
  resize: none;
}
.region-header-search .form-search:focus {
  background-color: transparent;
  box-shadow: none;
}
.region-header-search .form-type-search {
  position: relative;
}
.region-header-search .form-type-search::before {
  position: absolute;
  content: '';
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  transition: all 0.4s linear 1s;
}
.header-search-active .region-header-search .form-type-search::before {
  width: 100%;
}
.region-header-search .form-actions {
  opacity: 0;
  transition: opacity 0.3s linear 1.4s;
}
.header-search-active .region-header-search .form-actions {
  opacity: 1;
}
.region-header-search input[type="submit"] {
  background-color: transparent;
  border: 2px solid var(--color-text2);
  padding: 12px 20px;
  border-radius: 0;
}
.region-header-search input[type="submit"]:hover {
  background-color: var(--color-primary);
}
/* page header */
.region-page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 0;
}
/* contextual-links  */
.header .contextual-links {
  display: none;
}