/* Menu */

.menu--desktop {
  display: block;
}

.menu--mobile {
  display: none;
}

@media (max-width: 767px) {
  .menu--desktop {
    display: none;
  }

  .menu--mobile {
    display: block;
  }
}

/* Menu items */

.menu__item {
  position: relative;
}

.menu__link {
  display: block;
    font-family: Roboto;
    font-size: 15px;
    font-weight: bold;
    opacity: 0.6;
    padding: 24px 15px;
  text-decoration:none;
  text-transform:none !important;
}

.menu__link:hover,
.menu__link:focus,
.menu__link:active {
  display: block;
    font-family: Roboto;
    font-size: 15px;
    font-weight: bold;
    opacity: 1;
    padding: 24px 15px;
  text-decoration:none;
  text-transform:none !important;
  color:#FFFFFF !important;
}

.menu__link--active-link,
.menu__link--active-branch {
  font-weight: bold;
}

@media (min-width: 768px) and (max-width: 1150px) {
  .menu__link {
    font-size: 0.833rem;
  }
}

@media (max-width: 767px) {
  .menu__item {
    display: block;
    width: 100%;
  }

  .menu__link {
    display: block;
    font-size: 1.083rem;
  }
}

/* Menu items - top level */

.menu__item--depth-1 {
  display: inline-block;
  padding: 0;
  text-transform: uppercase;
}

{#.menu__item--depth-1 > .menu__link--active-link:after {
  bottom: -3px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
} #}

@media (max-width: 767px) {
  .menu__item--depth-1 {
    border-top: 2px solid #CED4DB;
    padding: 0;
  }

  .menu__item--depth-1 > .menu__link {
    padding: 0.35rem 1.225rem;
  }

  .menu__item--depth-1 > .menu__link--active-link:after {
    content: none;
  }
}

/* Menu items - submenus */

.menu__submenu {
  box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  display: none;
  left: 0;
  position: absolute;
  text-align: left;
  text-transform: none;
  top: 100%;
  width: 270px;
  z-index: 99;
}

.menu__item--open > .menu__submenu {
  display: block;
}

.menu__submenu--level-2 {
  transform: translateX(-50%);
}

/* Keeps the first menu item's drop down menu aligned to the left of the top level menu item */

.menu__item--depth-1:first-child .menu__submenu--level-2 {
  transform: unset;
}

.menu__submenu .menu__item {
  border-bottom: 1px solid #D1D6DC;
  padding: 0;
  width: 100%;
}

.menu__submenu .menu__link {
  display: block;
  padding: 0.7rem 1.05rem;
  transition: background-color 0.3s;
  width: 100%;
}

.menu__submenu--level-3 {
  left: 100%;
  top: 0;
}

/* Flyouts for the last two top level menu items go left to keep page responsive */

.menu__item--depth-1:nth-last-child(-n+2) .menu__submenu--level-3 {
  left: auto;
  right: 100%;
  top: 0;
}

/* Accounts for child toggle */

.menu__submenu .menu__item--has-submenu > .menu__link {
  padding-right: 3rem;
}

/* Creates the triangle at the top of the submenu drop down */

@media (min-width: 768px) {
  .menu__submenu--level-2 > .menu__item:first-child:before {
    border-radius: 6px;
    box-shadow: 0 2px 9px 0 rgb(0 0 0 / 20%);
    content: '';
    display: block;
    height: 30px;
    left: 125px;
    margin-left: 1rem;
    overflow: hidden;
    position: absolute;
    top: -12px;
    transform: rotate(45deg);
    transition: background-color .3s;
    width: 30px;
    z-index: 2;
  }

  /* Keeps triangle to the left for the first menu item's drop down menu */

  .menu__item--depth-1:first-child > .menu__submenu--level-2 > .menu__item:first-child:before {
    left: 0;
  }

  .menu__submenu--level-2 > .menu__item:first-child > .menu__link {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 767px) {
  .menu__submenu {
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: static;
    transform: unset;
    width: 100%;
  }

  .menu__submenu .menu__item {
    background-color: #FFF;
    border-bottom: none;
    border-top: 2px solid #EBEFF3;
    padding: 0;
  }

  .menu__submenu .menu__link {
    display: block;
    padding: 0.7rem 2rem;
    transition: none;
    width: 100%;
  }

  .menu__submenu .menu__item .menu__link:hover,
  .menu__submenu .menu__item .menu__link:focus {
    background-color: inherit;
    transition: none;
  }

  .menu__item--has-submenu > .menu__link {
    width: 70%;
  }

  .menu__submenu--level-3 .menu__item .menu__link {
    padding: 0.7rem 3rem;
  }
}

/* Menu icons */

@media(min-width: 768px) {
  .menu__submenu .menu__child-toggle {
    margin-left: 0;
    padding: 0;
  }

  .menu__child-toggle {
    position: absolute;
    right: 5px;
    top: 30px;
    z-index: 2;

  }

  .menu__item--depth-1 > .menu__child-toggle {
    position: static;
    right: 0;
    top: 0;
    vertical-align: middle;
        display:none;
  }

  .menu__child-toggle-icon {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top-style: solid;
    border-top-width: 7px;
    display: block;
    height: 0;
    margin-left: 1px;
    width: 0;
  }
}

@media (max-width: 767px) {
  .menu__child-toggle {
    background-position: center right 30px;
    background-repeat: no-repeat;
    background-size: 20px;
    border: none;
    cursor: pointer;
    height: 55px;
    padding: 15px 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
  }

  .menu__child-toggle-icon {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgc3Ryb2tlPSIjOTc5ODlGIiBzdHJva2Utd2lkdGg9IjIuNCIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB4PSIxLjIiIHk9IjkuNiIgd2lkdGg9IjE2LjgiIGhlaWdodD0iMSIgcng9Ii41Ii8+PHJlY3QgdHJhbnNmb3JtPSJyb3RhdGUoOTAgOS42IDkuNikiIHg9IjEuMiIgeT0iOS42IiB3aWR0aD0iMTYuOCIgaGVpZ2h0PSIxIiByeD0iLjUiLz48L2c+PC9zdmc+);
    background-repeat: no-repeat;
    display: block;
    height: 20px;
    margin-left: auto;
    margin-right: 1.05rem;
    transition: transform 0.4s;
    width: 20px;
  }

  .menu__item--open > .menu__child-toggle .menu__child-toggle-icon {
    transform: rotate(45deg);
    transition: transform 0.4s;
  }
}

/* Sticky Navigation Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
  background-color: transparent;
}

/* Initial transparent state */
.header.nav-transparent {
  background-color: transparent;
  backdrop-filter: none;
  box-shadow:none;
}

/* Scrolled state with background */
.header.nav-solid {
  background-color: #212121;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Font color changes for transparent state */
.header.nav-transparent .menu__link {
  color: #BFBFC0;
  opacity: 0.9;
}

.header.nav-transparent .menu__link:hover,
.header.nav-transparent .menu__link:focus {
  color: rgba(255, 255, 255, 1);
  opacity: 1;
}

.header.nav-transparent .menu__child-toggle-icon {
  border-top-color: rgba(255, 255, 255, 0.9);
}

/* Logo color changes for transparent state (if needed) */
.header.nav-transparent .header__logo img {
  /* Add logo filter if you need to invert logo colors for transparent state */
  /* filter: brightness(0) invert(1); */
}

/* Font color changes for solid state */
.header.nav-solid .menu__link {
  color: #BFBFC0;
  opacity: 0.8;
}

.header.nav-solid .menu__link:hover,
.header.nav-solid .menu__link:focus {
  color: rgba(0, 0, 0, 1);
  opacity: 1;
}

.header.nav-solid .menu__child-toggle-icon {
  border-top-color: rgba(0, 0, 0, 0.8);
}

/* Logo color changes for solid state (if needed) */
.header.nav-solid .header__logo img {
  /* Remove any filters applied in transparent state */
  /* filter: none; */
}

/* Ensure body has top padding to account for fixed navigation */
body {
  padding-top: 80px; /* Adjust this value based on your nav height */
}

/* Mobile navigation remains unchanged */
@media (max-width: 767px) {
  .menu--mobile {
    position: relative; /* Keep mobile nav non-sticky */
    background-color: #fff;
  }
  
  body {
    padding-top: 0; /* Remove top padding on mobile */
  }
}
/* Mobile Navigation Styles */
button.mobile-menu-toggle.menu-open {
  background:transparent !important;
}
/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: fixed;
  top: 20px;
  right: 20px;
}

.hamburger {
  width: 25px;
  height: 20px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

/* Hamburger to X animation */
.mobile-menu-toggle.menu-open .hamburger span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.mobile-menu-toggle.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-menu-toggle.menu-open .hamburger span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000000;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  overflow-y: auto;
  padding-top: 80px; /* Space for header */
}

.mobile-menu-overlay.menu-open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Content */
.mobile-menu-content {
  padding: 20px;
  transform: translateY(20px);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay.menu-open .mobile-menu-content {
  transform: translateY(0);
}

/* Mobile Menu Items */
.menu--mobile-overlay {
  display: block !important;
}

.menu--mobile-overlay .menu__wrapper {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu--mobile-overlay .menu__item {
  display: block !important;
  width: 100% !important;
  border: none !important;
  margin-bottom: 10px;
}



/* Show all submenu items - no toggles needed */
.menu--mobile-overlay .menu__submenu {
  display: block !important;
  position: static !important;
  width: 100% !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  margin-left: 20px;
  margin-top: 10px;
}

.menu--mobile-overlay .menu__submenu .menu__item {
  border: none !important;
  background: none !important;
}

.menu--mobile-overlay .menu__submenu .menu__link {
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  text-transform: none !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu--mobile-overlay .menu__submenu .menu__link:hover {
  color: rgba(255, 255, 255, 1) !important;
}

/* Third level menus */
.menu--mobile-overlay .menu__submenu .menu__submenu {
  margin-left: 20px;
}

.menu--mobile-overlay .menu__submenu .menu__submenu .menu__link {
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Hide child toggles since we're showing everything */
.menu--mobile-overlay .menu__child-toggle {
  display: none !important;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
  /* Show hamburger button */
  .mobile-menu-toggle {
    display: block;
    background-color:transparent !important;
  }

  /* Hide original mobile menu */
  .menu--mobile {
    display: none !important;
  }

  /* Ensure body doesn't scroll when menu is open */
  body.mobile-menu-open {
    overflow: hidden;
  }
}

/* Desktop - hide mobile menu elements */
@media (min-width: 768px) {
  .mobile-menu-toggle,
  .mobile-menu-overlay {
    display: none !important;
  }
}

.hamburger {
  width: 25px;
  height: 20px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

/* Hamburger to X animation */
.mobile-menu-toggle.menu-open .hamburger span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.mobile-menu-toggle.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-menu-toggle.menu-open .hamburger span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000000;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  overflow-y: auto;
  padding-top: 80px; /* Space for header */
}

.mobile-menu-overlay.menu-open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Content */
.mobile-menu-content {
  padding: 20px;
  transform: translateY(20px);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay.menu-open .mobile-menu-content {
  transform: translateY(0);
}

/* Mobile Menu Items */
.menu--mobile-overlay {
  display: block !important;
}

.menu--mobile-overlay .menu__wrapper {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu--mobile-overlay .menu__item {
  display: block !important;
  width: 100% !important;
  border: none !important;
  margin-bottom: 10px;
}

.menu--mobile-overlay .menu__link {
  display: block !important;
  color: #bfbfc0 !important;
   padding: 12px 0 !important;
  text-decoration: none !important;
  text-transform: none !important;
  opacity: 0.8 !important;
  border-bottom: none;
  transition: opacity 0.2s ease-in-out !important;
  text-align:center !important;
  font-weight: bold;
    font-size: 18px;
    letter-spacing: -1px;
}

.menu--mobile-overlay .menu__link:hover,
.menu--mobile-overlay .menu__link:focus {
  opacity: 1 !important;
  color: white !important;
  background: none !important;
}

/* Show all submenu items - no toggles needed */
.menu--mobile-overlay .menu__submenu {
  display: block !important;
  position: static !important;
  width: 100% !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  margin-left: 20px;
  margin-top: 10px;
}

.menu--mobile-overlay .menu__submenu .menu__item {
  border: none !important;
  background: none !important;
}

.menu--mobile-overlay .menu__submenu .menu__link {
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  text-transform: none !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu--mobile-overlay .menu__submenu .menu__link:hover {
  color: rgba(255, 255, 255, 1) !important;
}

/* Third level menus */
.menu--mobile-overlay .menu__submenu .menu__submenu {
  margin-left: 20px;
}

.menu--mobile-overlay .menu__submenu .menu__submenu .menu__link {
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Hide child toggles since we're showing everything */
.menu--mobile-overlay .menu__child-toggle {
  display: none !important;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
  /* Show hamburger button */
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
  }

  /* Hide original mobile menu */
  .menu--mobile {
    display: none !important;
  }

  /* Ensure body doesn't scroll when menu is open */
  body.mobile-menu-open {
    overflow: hidden;
  }

  /* Adjust header for mobile */
  .header {
    position: fixed !important;
  }

  /* If you want to keep header fixed on mobile too */
  .header.mobile-fixed {
    position: fixed;
  }
}

/* Desktop - hide mobile menu elements */
@media (min-width: 768px) {
  .mobile-menu-toggle,
  .mobile-menu-overlay {
    display: none !important;
  }
}

