/* hamburger-menu.css */

/* === Hamburger Toggle Button === */
.hamburger-button {
  position: absolute;
  top: 30px; /* adjust to match your logo vertical alignment */
  left: 30px; /* adjust to place it left of the logo */
  z-index: 1100; /* must be higher than the menu's z-index */
  background: none;
  border: none;
  padding: 10px;
  margin: 0;
  cursor: pointer;
}

/* === Hamburger Icon === */
.hamburger-icon {
  display: inline-block;
  width: 40px;
  height: 30px;
  position: relative;
  z-index: 1101; /* optional, only if needed */
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #F67323; /* Enetgize orange */
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.3s ease-in-out; /* key change */
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}
.hamburger-icon span:nth-child(2) {
  top: 7px;
}
.hamburger-icon span:nth-child(3) {
  top: 14px;
}

/* X Transformation */
.hamburger-icon.active span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.hamburger-icon.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

/* === Slide-Out Menu Panel === */
.hamburger-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: auto;
  max-height: 100vh; /* Optional: prevents it from overflowing the screen */
  background: #0D1E32;
  color: white;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 20px;
  z-index: 1000;
  /*Newly added*/
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hamburger-menu.active {
  transform: translateX(0);
}

/* === Menu Close Button === */
.hamburger-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1003;
}

/* === Menu Content === */
.hamburger-menu-content {
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 30px 20px 40px 20px;
  flex-grow: 1;

  /* Hide scrollbars */
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE/Edge */
}

.hamburger-menu-content::-webkit-scrollbar {
  display: none;                   /* Chrome, Safari */
}

/* === Menu Links === */
.hamburger-links {
  list-style: none;
  padding: 0;
  margin: 60px 0 0 0; /* account for close button space */
}

.hamburger-links > li {
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

.hamburger-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  display: block;
}

.hamburger-links a:hover {
  color: #F67323;
}

/* === Submenus === */
.hamburger-links li > ul {
  padding-left: 15px;
  margin-top: 5px;
}

.hamburger-links li > ul > li {
  border: none;
  padding: 5px 0;
}

.hamburger-links span {
  font-weight: bold;
  color: #F67323;
  display: block;
  margin-top: 10px;
}

.hamburger-links span:hover {
  color: #F67323;
  cursor: default;
}

/* === Optional === */
/* Prevent body scroll when menu is open */
.no-scroll {
  overflow: hidden;
  height: 100%;
}

body.no-scroll,
body.no-scroll html {
  overflow: hidden;
  height: 100%;
  position: fixed;
  width: 100%;
}

.site-logo {
  max-width: 220px;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 30px;
  left: 130px;
  z-index: 1001;
}

.logo-default {
  display: block;
}
.logo-menu {
  display: none;
}

body.menu-open .logo-default {
  display: none;
}
body.menu-open .logo-menu {
  display: block;
}


.logo-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 12px; /* Adjust spacing between hamburger and logo */
}

@media (max-width: 600px) {
  .hamburger-icon {
    width: 32px;
    height: 24px;
  }
  .site-logo {
  max-width: 176px;
  top: 24px;
  left: 104px;
  }
  .hamburger-button {
  top: 24px; /* adjust to match your logo vertical alignment */
  left: 24px; /* adjust to place it left of the logo */
  }
  .hamburger-links {
  margin: 54px 0 0 0; /* account for close button space */
  }
  .hamburger-menu {
    width: 100vw;
  }  
}
/* Used to block menu items from showing behind X button and Enetgize Logo */
.hamburger-blocker {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px; /* same width as the menu */
  height: 120px; /* same height as the header */
/*  background: #0D1E32;  match the menu background */
  z-index: 1001; /* higher than menu items, lower than header/logo */
  pointer-events: none; /* so it doesn’t interfere with clicks */
}

.header-container {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px; /* match the blocker height */
  background: transparent; /* or your actual header bg */
  z-index: 1501; /* higher than blocker (1001) and menu (1000) */
}