html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin-top: 80px !important;
}

body:has(.it-overlay.is-active) {
  overflow-y: hidden;
}

/* button reset */
.it-header button:hover {
  background-color: transparent !important;
}

.it-header {
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  border-bottom: 1px solid #000;
  background-color: #fbf0e5;
}

.it-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.it-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.it-header__brand {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 16px;
  border-right: 1px solid #000;
}

.it-header__logo {
  height: 100%;
}

.it-header__logo img {
  height: 100% !important;
}

.it-header__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 3rem;
  color: #000;
  background-color: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.it-header__hamburger:active,
.it-header__hamburger:focus {
  color: #000 !important;
  background-color: transparent !important;
}

@media (hover: hover) {
  .it-header__hamburger:hover {
    color: #fff;
    background-color: #000;
  }

  .it-header__hamburger:hover svg line {
    stroke: #fff;
  }
}

.it-header__drawer-top {
  position: sticky;
  top: 0;
  width: 100%;
  height: 80px;
  border-bottom: 1px solid #000;
  background-color: #fbf0e5;
}

.it-header__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-left: auto;
  padding: 0;
  border: none;
  border-left: 1px solid #000;
  border-radius: 0;
  font-size: 3rem;
  color: #000;
  background-color: transparent;
  -webkit-tap-highlight-color: transparent;
}

.it-header__close:active,
.it-header__close:focus {
  color: #000 !important;
  background-color: transparent !important;
}

@media (hover: hover) {
  .it-header__close:hover {
    background-color: #000;
  }

  .it-header__close:hover svg path {
    fill: #fff;
  }
}

.it-header__nav {
  position: fixed;
  top: 0;
  right: calc(-100% - 1px);
  width: calc(100% + 1px);
  height: 100%;
  border-left: 1px solid #000;
  background-color: #fbf0e5;
  overflow-y: auto;
  transition: right 0.3s;
  z-index: 20;
}

.it-header__nav.is-open {
  right: 0;
}

.it-header__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.it-header__nav-link {
  display: flex;
  align-items: flex-end;
  height: 80px;
  padding: 16px;
  border-bottom: 1px solid #000;
  font-family: "Gilda Display", Sans-serif !important;
  text-transform: uppercase;
  line-height: 1.2;
  color: #000;
  transition:
    color 0.3s,
    background-color 0.3s;
}

@media (hover: hover) {
  .it-header__nav-link:hover {
    color: #fff;
    background-color: #000;
  }
}

.it-header__nav-link br {
  display: none;
}

.it-dropdown__menu {
  list-style: none;
  padding: 0;
}

.it-dropdown__link {
  display: flex;
  align-items: flex-end;
  height: 80px;
  padding: 16px 16px 16px 32px;
  border-bottom: 1px solid #000;
  font-family: "Gilda Display", Sans-serif !important;
  text-transform: uppercase;
  line-height: 1.2;
  color: #000;
  transition:
    color 0.3s,
    background-color 0.3s;
}

@media (hover: hover) {
  .it-dropdown__link:hover {
    color: #fff;
    background-color: #000;
  }
}

.it-dropdown__link br {
  display: none;
}

@media (min-width: 768px) {
  .it-header__nav {
    right: calc(-50% - 1px);
    width: calc(50% + 1px);
  }
}

@media (min-width: 992px) {
  body:has(.it-overlay.is-active) {
    overflow-y: initial;
  }

  .it-overlay {
    display: none;
  }

  .it-header__hamburger {
    display: none;
  }

  .it-header__drawer-top {
    display: none;
  }

  .it-header__close {
    display: none;
  }

  .it-header__nav {
    position: relative;
    inset: auto;
    width: 62.5%;
    border-left: none;
    overflow-y: visible;
  }

  .it-header__nav-list {
    display: flex;
    height: 100%;
  }

  .it-header__nav-item {
    width: 20%;
    border-right: 1px solid #000;
  }

  .it-header__nav-item:last-child {
    border-right: none;
  }

  .it-header__nav-link br {
    display: inline;
  }

  .it-dropdown {
    position: relative;
  }

  .it-dropdown__wrapper {
    display: grid;
    grid-template-rows: 0fr;
    position: absolute;
    top: 100%;
    left: -1px;
    width: calc(100% + 2px);
    border: 1px solid #000;
    border-top: none;
    transition: grid-template-rows 0.3s;
    background-color: #fbf0e5;
  }

  .it-dropdown__menu {
    min-height: 0;
    overflow: hidden;
  }

  .it-dropdown__menu li {
    border-top: 1px solid #000;
  }

  .it-dropdown__link {
    padding: 16px;
    border-bottom: none;
  }

  .it-dropdown__link br {
    display: inline;
  }

  .it-dropdown:hover .it-dropdown__wrapper,
  .it-dropdown:focus-within .it-dropdown__wrapper {
    grid-template-rows: 1fr;
  }

  .it-dropdown:hover .it-dropdown__toggle,
  .it-dropdown:focus-within .it-dropdown__toggle {
    color: #fff;
    background-color: #000;
  }
}

/* admin bar */

body.admin-bar .it-header {
  top: 46px;
}

@media (min-width: 782px) {
  body.admin-bar .it-header {
    top: 32px;
  }
}
