/* Fullscreen navigation component, adapted from the isolated Youth experiment. */
.juan-menu-toggle {
  position: fixed;
  top: 50px;
  left: 50px;
  z-index: 10002;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.juan-menu-toggle-icon { position: relative; display: block; width: 40px; height: 25px; }
.juan-menu-toggle-bar {
  position: absolute;
  left: 0;
  width: 40px;
  height: 2px;
  background: #fff;
  transform-origin: 0 50%;
  transition: all 300ms cubic-bezier(.77, 0, .175, 1);
}
.juan-menu-toggle-bar:nth-child(1) { top: 0; width: 20px; }
.juan-menu-toggle-bar:nth-child(2) { top: calc(50% - 1.5px); }
.juan-menu-toggle-bar:nth-child(3) { bottom: 0; width: 20px; }
.juan-menu-toggle:hover .juan-menu-toggle-bar { width: 100%; }
.juan-menu-toggle:focus { outline: 0; box-shadow: none; }
.juan-menu-toggle.is-open .juan-menu-toggle-bar { width: 32px; }
.juan-menu-toggle.is-open .juan-menu-toggle-bar:nth-child(1) { opacity: 0; transform: translateX(-100%); }
.juan-menu-toggle.is-open .juan-menu-toggle-bar:nth-child(3) { opacity: 0; transform: translateX(100%); }

.juan-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  background: #000;
  transition: opacity 1s ease;
}

.juan-menu {
  position: fixed;
  top: 85px;
  bottom: 55px;
  left: 50%;
  z-index: 10001;
  display: none;
  width: calc(100% - 50px);
  transform: translateX(-50%);
  text-align: center;
}

.juan-menu.is-open { display: flex; justify-content: center; }
.juan-menu.is-open + .juan-menu-overlay { pointer-events: auto; opacity: 1; }
.juan-menu__content { display: table; width: 100%; height: 100%; }
.juan-menu__center { display: table-cell; vertical-align: middle; }
.juan-menu__links { margin: -28px 0 0; padding: 0; list-style: none; }
.juan-menu__item { margin: 0 0 17px; opacity: 0; transition: opacity 300ms ease; }
.juan-menu.is-open .juan-menu__item { opacity: 1; }
.juan-menu__link {
  position: relative;
  color: #fff;
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}
.juan-menu__link::after { content: ""; position: absolute; bottom: -8px; left: 0; width: 0; height: 4px; background: #fff; transition: width 300ms cubic-bezier(.77, 0, .175, 1); }
.juan-menu__link:hover { color: #fff; }
.juan-menu__link:hover::after { width: 100%; }

.juan-menu__social { position: absolute; bottom: -25px; left: 50%; width: 100%; transform: translateX(-50%); }
.juan-menu__social-list { margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1; }
.juan-menu__social-list li { display: inline-block; padding-left: 5px; }
.juan-menu__social-list a { color: #fff; text-decoration: none; transition: opacity .5s linear; }
.juan-menu__social-list a:hover { color: #fff; opacity: .3; }

@media (max-width: 1200px) {
  .juan-menu-toggle { top: 25px; left: 25px; }
}
@media (max-width: 640px) {
  .juan-menu__item { margin-bottom: 10px; }
  .juan-menu__link { font-size: 20px; }
  .juan-menu__link::after { bottom: -6px; height: 2px; }
}
