/* header.css */

#navbar {
 position: fixed;
 width: 100%;
 height: 50px;
 background-color: var(--navbar-bg);
 -webkit-backdrop-filter: blur(2px);
 backdrop-filter: blur(2px);
 opacity: 1;
 transform: translateY(0);
 transition: transform 1s ease-in-out, opacity 1s ease-in-out;
 z-index: 1000;
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 20px 50px;
}

.nav-left,
.nav-right {
 display: flex;
 align-items: center;
}

.nav-right ul:not(.sub-menu) {
 display: flex;
 list-style: none;
 gap: 20px;
}

.nav-left img {
 height: 34px;
 width: auto;
 display: block;
 object-fit: contain;
}

nav a {
 font-family: "Poppins", sans-serif;
 text-decoration: none;
 font-weight: 300;
 text-transform: uppercase;
 font-size: 14px;
 letter-spacing: 1px;
 color: var(--text-color);
}

nav a:not(.nav-icon):hover {
 text-decoration: underline;
}

.nav-right ul li i {
 display: block;
 height: 44px;
 width: auto;
 font-size: 20px;
 line-height: 44px;
 text-align: center;
}

.wp-block-social-links .wp-social-link svg {
 display: block;
  height: 1.65em;
  width: 1.65em;
}

.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg {
 color: var(--text-color);
}

.nav-right ul li {
 display: flex;
 align-items: center;
}

.remaining-nav-items {
 margin-left: 1rem;
}

.hidden-menu-item {
 display: none !important;
}


.menu-item-has-children:hover>.sub-menu:empty,
.menu-item-has-children:hover>.sub-menu:has(.hidden-menu-item:not(:first-child):last-child) {
 display: none !important;
 opacity: 0 !important;
 visibility: hidden !important;
 pointer-events: none;
}

nav ul li.menu-item-has-children {
 position: relative;
}

nav ul>li.menu-item-has-children {
 position: relative;
 line-height: 310%;
}

.menu-item-has-children>a {
 cursor: pointer;
}

.sub-menu {
 opacity: 0;
 visibility: hidden;
 transform: translateY(-10px);
 transition: all 0.3s ease;
 position: absolute;
 top: 100%;
 left: -20px;
 color: var(--text-color);
 background-color: var(--navbar-bg);
 list-style: none;
 padding-bottom: 5px;
 z-index: 999;
 display: block;
 width: 220px;
 line-height: normal;
 border-bottom-left-radius: 12px;
 border-bottom-right-radius: 12px;
 box-shadow: 0 6px 6px rgba(0, 0, 0, 0.05);
}

.submenu-blur-global {
 position: fixed;
 background-color: rgba(250, 252, 248, 0.05);
 backdrop-filter: blur(2px);
 -webkit-backdrop-filter: blur(2px);
 z-index: 998;
 pointer-events: none;
 opacity: 0;
 top: 200%;
 visibility: hidden;
 transition: opacity 0.3s ease;
 border-bottom-left-radius: 12px;
 border-bottom-right-radius: 12px;
}

.submenu-blur-global.active {
 opacity: 1;
 visibility: visible;
}


.menu-item-has-children.current-menu-ancestor>a,
.menu-item-has-children:hover>a {
 text-decoration: underline;
}

.menu-item-has-children:hover>.sub-menu {
 opacity: 1;
 visibility: visible;
 transform: translateY(0);
}

.sub-menu li {
 display: block;
 padding: 10px 20px;
}

.wp-block-navigation ul li {
 padding-left: 1rem;
}


.current-menu-item {
 text-decoration: underline;
}

.carousel {
 position: relative;
 width: 100vw;
 height: 100vh;
}

.slide {
 position: absolute;
 width: 100%;
 height: 100%;
 background-size: cover;
 background-position: center;
 opacity: 0;
 transition: opacity 1s ease-in;
}

.slide.active {
 opacity: 1;
 z-index: 1;
}

.fab .fa-instagram {
 color: var(--text-color);
}


.theme-switch {
 display: flex;
 align-items: center;
 justify-content: center;
 height: 40px;
}

.theme-switch input {
 display: none;
}

.slider {
 width: 30px;
 height: 14px;
 outline: 1px solid var(--text-color);
 border-radius: 50px;
 display: block;
 position: relative;
 cursor: pointer;
}

.slider::before {
 content: "";
 position: absolute;
 width: 12px;
 height: 12px;
 left: 1px;
 top: 1px;
 background: var(--text-color);
 border-radius: 50%;
 transition: 0.3s;
}


input:checked+.slider::before {
 transform: translateX(16px);
}

.hamburger {
 display: none;
}


@media screen and (min-width: 768px) {
 .mobile-menu {
  display: none;
 }
}

@media screen and (max-width: 767px) {


 #navbar {
  flex-direction: row;
  align-items: center;
  height: 54px;
  transition: height 0.3s ease;
  overflow: hidden;
 }


 #navbar .nav-left {
  position: absolute;
  top: 5px;
  left: 20px;
 }

 .hamburger {
  display: flex;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 35px;
  height: 44px;
  cursor: pointer;
  color: var(--text-color);
  z-index: 1001;
 }

 .theme-switch {
  position: absolute;
  top: 10px;
  right: 70px;
  height: 35px;
 }

 .slider {
  width: 44px;
  height: 24px;
 }

 .slider::before {
  width: 22px;
  height: 22px;
  top: 1px;
  left: 1px;
 }

 input:checked+.slider::before {
  transform: translateX(20px);
 }

 .main-menu {
  display: none;
 }

 .nav-right ul:not(.sub-menu):not(.remaining-nav-items) {
  display: none;
 }

 .nav-right .remaining-nav-items li {
  display: none;
 }

 .nav-right .remaining-nav-items li:first-child {
  display: flex;
 }

 #navbar.expanded {
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
 }

 #navbar.expanded .main-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1;
  width: 100%;
  transition: all 0.3s ease;
 }

 #navbar.expanded .main-menu li {
  list-style: none;
 }

 #navbar.expanded .main-menu a {
  font-size: 24px;
  color: var(--text-color);
  text-decoration: none;
 }

 /* Instagram icon at the bottom of menu */
 #navbar.expanded .main-menu::after {
  content: "";
  display: block;
  margin-top: 20px;
 }

 #navbar.expanded .instagram-link {
  display: flex;
  justify-content: center;
  margin-top: 20px;
 }

 #navbar.expanded .hamburger i::before {
  content: "\f00d";
  font-size: 38px;
  /* Font Awesome close (X) */
 }

 #navbar ul.sub-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  width: 100vw;
  text-align: center;
 }

 #navbar .sub-menu li {
  list-style: none;
  margin: 10px 0;
 }

 #navbar .sub-menu.submenu-open {
  opacity: 1;
 }

 /* Split effect: top moves up, bottom moves down */
 .menu-top,
 .menu-bottom {
  transition: transform 0.3s ease;
 }

 .menu-top,
 .menu-bottom {
  transform: translateY(0);
  transition: transform 0.3s ease;
 }

 #navbar.submenu-open .sub-menu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  opacity: 1;
  max-height: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navbar-bg);
  border-radius: 0;
 }

 nav ul>li.menu-item-has-children {
  position: relative;
  line-height: 100%;
 }


 #navbar .menu-item-has-children>.sub-menu {
  background-color: transparent;
  margin-top: 50px;
  padding: 0;
  box-shadow: none;
 }

 #navbar .menu-item-has-children>.sub-menu li {
  width: 100vw;
  justify-content: center;
  align-items: center;
  margin: 0;
 }

 #navbar.expanded .main-menu li,
 #navbar.expanded .main-menu a {
  height: 50px;
  line-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
 }

 #navbar .sub-menu li,
 #navbar .sub-menu li a {
  height: 50px;
  /* match the main menu */
  line-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
 }

 #navbar .main-menu li,
 #navbar .sub-menu li {
  margin: 0;
  padding: 0;
 }


 #navbar .main-menu a,
 #navbar .sub-menu a {
  padding: 0;
 }
}

#navbar .main-menu .wp-block-navigation__container {
 display: flex;
 list-style: none;
 gap: 0;
}

#navbar .main-menu .wp-block-navigation-item__content {
 font-family: "Poppins", sans-serif;
 text-decoration: none;
 font-weight: 300;
 text-transform: uppercase;
 font-size: 14px;
 letter-spacing: 1px;
 color: var(--text-color);
}

#navbar .main-menu .wp-block-navigation-item__content:hover {
 text-decoration: underline;
}

#navbar .main-menu li.has-child {
 position: relative;
}

#navbar .main-menu .wp-block-navigation__submenu-container {
 opacity: 0;
 visibility: hidden;
 transform: translateY(-10px);
 transition: all .3s ease;
 position: absolute;
 top: 155%;
 left: 0;
 background-color: var(--navbar-bg);
 list-style: none;
 padding-bottom: 1rem;
 padding-top: 1rem;
 z-index: 999;
 width: 220px;
 line-height: normal;
 border: 0;
 border-bottom-left-radius: 12px;
 border-bottom-right-radius: 12px;
 box-shadow: 0 6px 6px rgba(0, 0, 0, .05);
}

#navbar .main-menu .wp-block-navigation-item {
 background-color: transparent;
}

.wp-block-navigation .wp-block-navigation__submenu-icon {
 display: none;
}

#navbar .main-menu li.has-child:hover>.wp-block-navigation__submenu-container {
 opacity: 1;
 visibility: visible;
 transform: translateY(0);
}

@media screen and (max-width: 767px) {
 #navbar .main-menu .wp-block-navigation__container {
  display: none;
 }

 #navbar.expanded .main-menu .wp-block-navigation__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
 }


 #navbar .main-menu .wp-block-navigation__submenu-container {
  position: static;
  width: 100vw;
  box-shadow: none;
  border-radius: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: transparent;
  margin-top: 50px;
  padding: 0;
 }

 .nav-left img {
  margin: 6px;
  height: 38px;
 }

}

@media (max-width: 767px) {

  #navbar .nav-left,
  #navbar .nav-left figure {
    display: inline-flex;
    align-items: center;
    margin: 0;
  }

  #navbar .nav-left img,
  #navbar .nav-left figure img,
  #navbar .nav-left .wp-block-site-logo img,
  #navbar .nav-left .custom-logo {
    height: 38px !important;
    width: auto !important;
    max-width: none !important;
    display: block;
  }

}


/* Mobile visual parity patch */

.hamburger {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.hamburger i {
  display: block;
}

.theme-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.theme-switch input {
  display: none;
}

.slider {
  width: 30px;
  height: 14px;
  outline: 1px solid var(--text-color);
  border-radius: 50px;
  display: block;
  position: relative;
  cursor: pointer;
}

.slider::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 1px;
  top: 1px;
  background: var(--text-color);
  border-radius: 50%;
  transition: 0.3s;
}

input:checked+.slider::before {
  transform: translateX(16px);
}

@media (max-width: 767px) {

  .hamburger {
    display: flex;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    height: 44px;
    cursor: pointer;
    color: var(--text-color);
    z-index: 1001;
  }

  .theme-switch {
    position: absolute;
    top: 10px;
    right: 70px;
    height: 35px;
  }

  .slider {
    width: 44px;
    height: 24px;
  }

  .slider::before {
    width: 22px;
    height: 22px;
    top: 1px;
    left: 1px;
  }

  input:checked+.slider::before {
    transform: translateX(20px);
  }

  #navbar .nav-left,
  #navbar .nav-left figure {
    display: inline-flex;
    align-items: center;
    margin: 0;
  }

  #navbar .nav-left img,
  #navbar .nav-left figure img,
  #navbar .nav-left .wp-block-site-logo img,
  #navbar .nav-left .custom-logo {
    height: 38px !important;
    width: auto !important;
    max-width: none !important;
    display: block;
  }
}