/*********************/
/* Navigation Desktop */
/*********************/

.fox-logo {
  display: inline-block;
  max-width: 165px;
  margin-bottom: 56px;
}

.fox-mobile-header-logo {
    display: none;
}

.fox-logo img {
  width: 90%;
}

.fox-sidebar {
  border-right: 0;
}

.fox-menu,
.fox-language-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fox-menu li {
  margin: 0 0 10px;
}

.fox-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 18px;
}

.fox-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  padding: 5px 0 5px 32px;
  color: var(--fox-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.25;
  border-radius: 3px;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  background: transparent;
  box-sizing: border-box;
  transition:
    color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.fox-menu a:hover {
  color: var(--fox-accent);
}

.fox-menu .current-menu-item > a,
.fox-menu .current_page_item > a {
  color: var(--fox-accent);
  border-left-color: rgba(209, 0, 90, 0.9);
  border-right-color: rgba(209, 0, 90, 0.9);
  background: linear-gradient(
      90deg,
      rgba(209, 0, 90, 0.45) 0%,
      rgba(209, 0, 90, 0.14) 1.6%,
      rgba(2, 6, 23, 0.96) 7%,
      rgba(2, 6, 23, 0.96) 93%,
      rgba(209, 0, 90, 0.14) 98.4%,
      rgba(209, 0, 90, 0.45) 100%
  );
}

.fox-nav--language {
  margin-top: auto;
  padding-top: 18px;
  padding-left: 26px;
}

.fox-language-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fox-language-menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none !important;
  color: rgba(255,255,255,0.78);
  opacity: 1;
}

.fox-language-menu img {
  width: 18px;
  height: auto;
  display: block;
}

/* Mobile overlay logo */
.fox-mobile-logo {
  display: none;
}


/*********************/
/* Navigation Mobile */
/*********************/

.fox-menu-toggle {
  position: fixed;
  top: 74px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: var(--fox-accent);
  color: #ffffff;
  cursor: pointer;
  z-index: 9999;
  box-shadow: none;
  transition:
    opacity 180ms ease,
    background 180ms ease;
  border: solid 8px var(--fox-bg);
}

.fox-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  position: relative;
  transition: transform 180ms ease;
}

.fox-menu-toggle span::before,
.fox-menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0px;
  width: 20px;
  height: 2px;
  background: #ffffff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.fox-menu-toggle span::before {
  top: -7px;
}

.fox-menu-toggle span::after {
  top: 7px;
}

body.fox-mobile-nav-open {
  overflow: hidden;
}
body.fox-mobile-nav-open .fox-menu-toggle span {
  background: transparent;
}

body.fox-mobile-nav-open .fox-menu-toggle span::before {
  transform: translateY(7px) rotate(45deg);
}

body.fox-mobile-nav-open .fox-menu-toggle span::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 980px) {

  .fox-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .fox-sidebar {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    padding: 0px 65px 40px;
    background:
            radial-gradient(
               circle at top right,
               rgba(209, 0, 90, 0.18) 0%,
               rgba(209, 0, 90, 0.08) 18%,
               rgba(2, 6, 23, 0) 42%
      ),
               rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    max-height: 0;
   /* transform: translateY(-70px);*/
    transition:
      max-height 500ms cubic-bezier(0.8, 1, 0.4, 1),
      transform 500ms cubic-bezier(0.8, 1, 0.4, 1),
      visibility 500ms ease;
    border: 0;
    border-top: 2px solid var(--fox-accent);
  }
  
  .fox-sidebar .fox-nav {
      padding-top: 140px;;
  }

  body.fox-mobile-nav-open .fox-sidebar {
    visibility: visible;
    pointer-events: auto;
    max-height: 100vh;
    transform: translateY(0);
    overflow-y: auto;
  }

  .fox-sidebar-inner {
    min-height: 100%;
  }

  .fox-sidebar .fox-logo {
    display: none;
  }

  .fox-mobile-header-logo {
      display: block;
  }
  
  .fox-mobile-header-logo .fox-logo img {
    display: block;
    width: 70px;
    margin: 20px 0 0 33px;
    padding: 0;
  }

  /* added mobile logo styles */
  .fox-mobile-logo {
    display: block;
    margin-bottom: 0px;
    padding-left: 2px;
  }

  .fox-mobile-logo img {
    width: 70px;
    height: auto;
    display: block;
    opacity: 1;
    position: fixed;
    top: 64px;
    left: 33px;
  }

  .fox-menu {
    gap: 10px;
    padding-left: 0;
    align-items: flex-end;
  }

  .fox-menu a {
    width: fit-content;
    justify-content: flex-end;
    text-align: right;
    padding: 0px 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background: none !important;

    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.08;
    text-transform: uppercase;
  }

  .fox-menu a:hover,
  .fox-menu .current-menu-item > a,
  .fox-menu .current_page_item > a {
    color: var(--fox-accent);
    background: none !important;
    border: 0 !important;
  }

  .fox-nav--language {
    margin-top: 42px;
    padding-left: 0;
  }

  .fox-language-menu {
    gap: 10px;
    align-items: flex-end;
  }

  .fox-language-menu a {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.2;
    justify-content: flex-end;
    text-align: right;
    text-transform: none !important;
  }
}

/* =========================================================
   SitePress / WPML Language Switcher
   The plugin outputs wpm-ls-* classes, not wpml-ls-*.
   These rules override the main uppercase sidebar menu style.
   ========================================================= */

.fox-menu li.wpml-ls-item {
    margin-bottom: 0;
    line-height: 1.2em !important;
    letter-spacing: 0.1rem;
}

.fox-menu li.wpml-ls-item.wpml-ls-first-item {
  margin-top: 22px !important;
}

.fox-menu li.wpml-ls-item > a,
.fox-menu li.wpml-ls-menu-item > a {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  gap: 6px;
  border-left: 0 !important;
  border-right: 0 !important;
  background: none !important;
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  padding: 0px 0 2px 32px !important;
}

.fox-menu .wpml-ls-menu-item .wpml-ls-flag+span {
  text-transform: none !important;
}

.fox-menu li.wpml-ls-item > a,
.fox-menu li.wpml-ls-current-language > a {
  color: #ffffff !important;
}

.fox-menu li.wpml-ls-item > a:hover,
.fox-menu li.wpml-ls-menu-item > a:hover {
    color: var(--fox-accent) !important;
}

.fox-menu .wpml-ls-flag {
  width: 18px;
  height: auto;
  display: block;
}

/* =========================================================
   MOBILE
========================================================== */

@media (max-width: 980px) {

    .fox-logo {
       margin-bottom: 0;
    }

}
