/* Hamburger Overlay Mobile Menu Styles */
/* Unique class prefix: esk-hb-menu-overlay-* */

/* Main Overlay Container */
.esk-hb-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.esk-hb-menu-overlay.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Backdrop */
.esk-hb-menu-overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

/* Content Container */
.esk-hb-menu-overlay-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex;
  flex-direction: column;
  padding: 40px 60px;
  box-sizing: border-box;
}

/* Desktop Sidebar Behavior */
@media (min-width: 901px) {
  .esk-hb-menu-overlay .esk-hb-menu-overlay-content {
    width: 26% !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3) !important;
    padding-top: 40px;
  }
  
  .esk-hb-menu-overlay .esk-hb-menu-overlay-backdrop {
    background: rgba(0, 0, 0, 0.5) !important;
  }
}

/* Header */
.esk-hb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  width: 100%;
}

/* Logo */
.esk-hb-logo {
  display: flex;
  align-items: center;
}

.esk-hb-logo-img {
  max-height: 130px !important;
  width: 130px !important;
}

.esk-hb-logo-text {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Close Button Wrapper */
.esk-hb-close-wrapper {
  position: absolute;
  right: 30px;
  z-index: 10;
}

/* Close Button */
.esk-hb-menu-overlay-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 50px !important;
  height: 50px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.esk-hb-menu-overlay-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Close Icon */
.esk-hb-close-icon {
  width: 16px;
  height: 16px;
}

/* Close Lines */
.esk-hb-close-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 50%;
  height: 2px;
  background: white;
  border-radius: 1px;
  left: 25%;
}

.esk-hb-close-line:first-child {
  transform: translateY(-50%) rotate(45deg);
}

.esk-hb-close-line:last-child {
  transform: translateY(-50%) rotate(-45deg);
}

/* Menu Navigation */
.esk-hb-menu-nav {
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.esk-hb-menu-list {
  display: flex;
  flex-direction: column;
  gap: 20px !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Menu Items */
.esk-hb-menu-item {
  position: relative;
}

.esk-hb-menu-link {
  color: #ccc;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  transition: all 0.3s ease;
}

/* Hover Effects - Different from fullscreen */
.esk-hb-menu-link:hover,
.esk-hb-menu-link:active,
.esk-hb-menu-link:focus,
.esk-hb-menu-link.touch-active {
  color: #fff !important;
  transform: scale(1.05) !important;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* Active Menu Item */
.esk-hb-menu-link.current-menu-item {
  color: #fff !important;
  font-weight: 600 !important;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8) !important;
}

/* Dropdown Toggle */
.esk-hb-dropdown-toggle {
  position: absolute;
  right: 100px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.esk-hb-dropdown-toggle::before {
  content: '▼';
  color: #ccc;
  font-size: 0.6em;
  transition: transform 0.3s ease;
}

.esk-hb-menu-item.menu-item-has-children:hover .esk-hb-dropdown-toggle,
.esk-hb-dropdown-toggle.esk-active {
  background: rgba(255, 255, 255, 0.2);
}

.esk-hb-menu-item.menu-item-has-children:hover .esk-hb-dropdown-toggle::before,
.esk-hb-dropdown-toggle.esk-active::before {
  transform: rotate(180deg);
}

/* Submenu - Clean Card Style Design */
.esk-hb-sub-menu {
  position: relative;
  top: 0;
  left: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 0 0 0 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
}

.esk-hb-menu-item.menu-item-has-children:hover .esk-hb-sub-menu,
.esk-hb-sub-menu.esk-active {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
}

.esk-hb-sub-menu .esk-hb-menu-link {
  font-size: 16px;
  padding: 8px 20px;
  color: #ccc;
  transition: all 0.3s ease;
  background: transparent;
}

.esk-hb-sub-menu .esk-hb-menu-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px) !important;
}

.esk-hb-sub-menu .esk-hb-menu-link.current-menu-item {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  font-weight: 600 !important;
}

/* Company Information */
.esk-hb-company-info {
  margin-top: auto;
  padding-top: 60px;
}

.esk-hb-company-name {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  max-width: 400px;
}

.esk-hb-company-description {
  color: #999;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 400px;
}

.esk-hb-contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.esk-hb-contact-item {
  color: #999;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

.esk-hb-contact-item:hover {
  color: #fff;
}

.esk-hb-contact-icon {
  font-size: 16px;
  opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .esk-hb-menu-overlay-content {
    padding: 30px 40px;
    padding-top: 80px; /* Add clearance at the top on mobile */
  }
  
  .esk-hb-header {
    margin-bottom: 60px;
  }
  
  .esk-hb-close-wrapper {
    top: 100px; /* Adjust close button position for mobile */
  }
  
  .esk-hb-menu-list {
    gap: 30px;
  }
  
  .esk-hb-menu-link {
    font-size: 16px;
  }
  
  /* Mobile dropdown behavior */
  .esk-hb-sub-menu {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    border: none !important;
    background: rgba(255,255,255,0.1) !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1), padding 0.3s cubic-bezier(0.4,0,0.2,1), margin 0.3s cubic-bezier(0.4,0,0.2,1);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
  }
  
  .esk-hb-sub-menu.esk-active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    padding: 8px 0 8px 0 !important;
    margin: 10px 0 0 15px !important;
  }
  
  /* Disable hover states on mobile */
  .esk-hb-menu-item.menu-item-has-children:hover .esk-hb-sub-menu {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .esk-hb-menu-item.menu-item-has-children {
    padding-bottom: 0;
  }
  
  .esk-hb-sub-menu .esk-hb-menu-link {
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 6px;
    margin: 2px 8px;
    background: transparent;
  }
  
  .esk-hb-sub-menu .esk-hb-menu-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: none !important;
    box-shadow: none !important;
  }
  
  .esk-hb-company-info {
    padding-top: 40px;
  }
  
  .esk-hb-company-description {
    font-size: 13px;
  }
  
  .esk-hb-contact-item {
    font-size: 13px;
  }
}

/* Device Visibility Classes */
.esk-mobile-only {
  display: none;
}

.esk-tablet-only {
  display: none;
}

.esk-desktop-only {
  display: none;
}

@media (max-width: 767px) {
  .esk-mobile-only {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .esk-tablet-only {
    display: block;
  }
}

@media (min-width: 1025px) {
  .esk-desktop-only {
    display: block;
  }
} 