/**
 * @file
 * The header components.
 *
 * It includes styles for the header itself and their
 * component as the logotype or the main menu.
 */

/**
 * Global header rules
 */
.main__header-brand{
  position: relative;
}
.main__header-menu.is-active{
  display: block;
}
ul.menu a.is-active {
  color: #000 !important;
}
.menu__item--active-trail {
  border-bottom: solid 1px #000 !important;
}
@media all and (min-width: 1000px) {
  .main__header-menu{
    display: block;
  }
  ul.menu a.is-active {
    color: #7B1E30 !important;
  }
  .menu__item--active-trail {
    border-bottom: solid 1px #7B1E30 !important;
  }
}

/**
 * Main menu
 */

.main__header {
  position: absolute;
  z-index: 1;
  top: 0;
  display: flex;
  flex-direction: column;
  margin-top: 9px;
  width: 100%;
  font-family: 'Hammersmith One', sans-serif;
  font-size: 1.25rem;
}
.region-primary-menu {
  display: flex;
  flex-direction: column;
}
.region-primary-menu .menu-level-0 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
  gap: 30px;
}
.region-primary-menu .menu-level-0 li {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: solid 1px white;
  padding-bottom: 10px;
  width: 140px;
  text-align: center;
  transition: ease 0.3s;
}

.region-primary-menu .menu.menu-level-0 > li:last-child {
  min-width: 250px;
  border-bottom: unset;
}


.region-primary-menu .menu.menu-level-0 > li:last-child a.menu-phone:hover {
  background-color: #943649;
}

.region-primary-menu .menu.menu-level-0 > li:last-child a.menu-phone {
  background-color: #7B1E30;
  color: white;
  padding: 10px 20px 10px 55px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  align-items: center;
  transition: background-color 0.3s ease;
  position: relative;
  font-size: 18px;
  font-family: 'Albert Sans', sans-serif;
  font-weight: 700;
}

.region-primary-menu .menu.menu-level-0 > li:last-child a.menu-phone::before {
  content: '';
  background-image: url(../../iie/images/phone-menu.svg);
  background-size: 25px 25px;
  background-repeat: no-repeat;
  width: 25px;
  height: 25px;
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}






.region-primary-menu .menu-level-0 a {
  color: white;
  transition: ease 0.3s;
  padding: 1.2rem;
  margin: -1.2rem;
}
.region-primary-menu .menu-level-0 a:hover {
  color: #7B1E30;
}
.region-primary-menu .menu-level-0 li:hover {
  border-bottom: solid 1px #7B1E30;
}
.main__header-brand {
  flex: 1;
}
.main__header-menu {
  flex: 1;
  transform: translateX(-2000px);
  background: #7B1E30;
  transition: 0.5s;
}
.site-logo img {
  max-width: 160px;
  height: auto;
}
.main__header-menu.is-active {
  background :#7B1E30;
  position: absolute;
  top: 95px;
  left: 0;
  width: 100%;
  transform: translateX(0);
}
.page-node-type-page .region-primary-menu .menu-level-0 a {
    color: white;
}
.page-node-type-page .region-primary-menu .menu-level-0 li {
  border-bottom: solid 1px white;
}
.page-node-type-page .region-primary-menu .menu-level-0 a:hover {
  color: #7B1E30;
}
.page-node-type-page .region-primary-menu .menu-level-0 li:hover {
  border-bottom: solid 1px #7B1E30;
}
.main__header .file {
  padding:0;
  background: none;
}
.main__header span.menu-file {
  display: none;
}
@media screen and (min-width: 750px) {
  .site-logo img {
    max-width: 220px;
    height: auto;
  }
  .main__header-menu.is-active {
    top: 155px;
  }
}
@media screen and (min-width: 1000px) {
  .main__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 86%;
    margin-left: 3%;
  }
  .site-logo img {
    max-width: 300px;
    height: auto;
  }
  .main__header-menu {
    transform: translateX(0);
    background: none;
  }
  .region-primary-menu {
    align-items: end;
  }
  .region-primary-menu .menu-level-0 {
    flex-direction: row;
    gap: 40px;
    align-items: unset;
  }
  .page-node-type-page .region-primary-menu .menu-level-0 a {
    color: #414141;
  }
  .page-node-type-page .region-primary-menu .menu-level-0 li {
    border-bottom: solid 1px #414141;
  }
}
/**
 * Mobile menu button
 */
.menu-toggle{
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 22px;
  height: 16px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}
.menu-toggle__button{
  border: none;
  width: 22px;
  height: 16px;
  padding: 0;
  text-indent: 100px;
  background-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  z-index:1;
  position: absolute;
  left:0;
  top:0;
}
.menu-toggle span {
  position: absolute;
  left: 1px;
  display: block;
  width: 20px;
  height: 2px;
  background-color:#7B1E30;
  transition: all ease .25s;
  -webkit-transition: all ease .25s;
  -moz-transition: all ease .25s;
  -ms-transition: all ease .25s;
  -o-transition: all ease .25s;
  border-radius: 0px;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  -ms-border-radius: 0px;
  -o-border-radius: 0px;
}
.menu-toggle span:nth-child(1) {
  top: 1px;
}
.menu-toggle span:nth-child(2) {
  top: 7px;
}
.menu-toggle span:nth-child(3) {
  top: 13px;
}
.menu-toggle:hover span:nth-child(1),
.menu-toggle.is-active span:nth-child(1),
.menu-toggle:hover span:nth-child(3),
.menu-toggle.is-active span:nth-child(3){
  width: 20px;
}
.menu-toggle.is-active span:nth-child(1) {
  top: 7px;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
  width: 0;
  left: 22px;
}
.menu-toggle.is-active span:nth-child(3) {
  top: 7px;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
}
@media all and (min-width: 1000px) {
  .menu-toggle{
    display: none;
  }
}
