/* =========================================
   OCEAN SKY 007 - HEADER / NAVIGATION
========================================= */

/* =========================================
   HEADER SHELL
========================================= */

.os-site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  background: transparent;
  color: var(--os-white);
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.os-site-header.is-scrolled,
.os-site-header.is-open {
  background: var(--os-white);
  color: var(--os-ink);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.os-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 64px);
  min-height: 82px;
  margin: 0 auto;
}


/* =========================================
   LOGO
========================================= */

.os-header-logo {
  position: relative;
  z-index: 1001;
  color: inherit;
  font-family: var(--os-font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}


/* =========================================
   DESKTOP NAVIGATION
========================================= */

.os-header-nav {
  display: flex;
  align-items: center;
}

.os-header-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.os-header-menu li {
  display: flex;
  align-items: center;
}

.os-header-menu a {
  position: relative;
  color: inherit;
  font-family: var(--os-font-heading);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.os-header-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.os-header-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* =========================================
   HAMBURGER
========================================= */

.os-header-toggle {
  position: relative;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: var(--os-radius-sm);
}

.os-header-toggle span {
  position: absolute;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.os-header-toggle span:first-child {
  transform: translateY(-4px);
}

.os-header-toggle span:last-child {
  transform: translateY(4px);
}

.os-site-header.is-open .os-header-toggle span:first-child {
  transform: rotate(45deg);
}

.os-site-header.is-open .os-header-toggle span:last-child {
  transform: rotate(-45deg);
}


/* =========================================
   DRAWER MENU
========================================= */

.os-header-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  width: min(420px, 100%);
  height: 100vh;
  height: 100svh;
  padding: 118px 34px 34px;
  background: var(--os-white);
  color: var(--os-ink);
  border-left: 1px solid rgba(17, 17, 17, 0.08);
  transform: translateX(100%);
  transition: transform 260ms ease;
}

.os-site-header.is-open .os-header-drawer {
  transform: translateX(0);
}

.os-drawer-nav {
  width: 100%;
}

.os-drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.os-drawer-menu li {
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.os-drawer-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 0;
  color: var(--os-ink);
  font-family: var(--os-font-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.os-drawer-menu a::after {
  content: "→";
  font-size: 18px;
}


/* =========================================
   TABLET
========================================= */

@media screen and (max-width: 1024px) {
  .os-header-inner {
    width: calc(100% - 40px);
    min-height: 76px;
  }

  .os-header-nav {
    display: none;
  }

  .os-header-toggle {
    display: inline-flex;
  }
}


/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 768px) {
  .os-header-inner {
    width: calc(100% - 22px);
    min-height: 72px;
  }

  .os-header-logo {
    max-width: 230px;
    font-size: 14px;
    letter-spacing: 0.16em;
  }

  .os-header-toggle {
    width: 42px;
    height: 40px;
  }

  .os-header-drawer {
    width: 100%;
    padding: 104px 22px 28px;
  }

  .os-drawer-menu a {
    padding: 21px 0;
    font-size: 22px;
  }
}