/**
 * Simple Hamburger Menu
 * File: css/simple-hamburger.css
 */

/* ============================================
   MENU TOGGLE BUTTON (Top Right Corner)
   ============================================ */

.simple-hamburger-menu {
  position: relative;
}

.menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001; /* Always on top */
  padding: 10px;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 3px;
}

/* Toggle Icon Container */
.toggle-icon {
  display: block;
  width: 30px;
  height: 20px;
  position: relative;
}

/* The 3 Lines */
.line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.line-1 {
  top: 0;
}

.line-2 {
  top: 50%;
  transform: translateY(-50%);
}

.line-3 {
  bottom: 0;
}

/* Transform to X when menu is open */
.menu-toggle.active .line-1 {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active .line-2 {
  opacity: 0;
  transform: translateY(-50%) scale(0);
}

.menu-toggle.active .line-3 {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Change color to white when menu is open */
.menu-toggle.active .line {
  background: #fff;
}

/* ============================================
   DROPDOWN MENU (Full Width, Slides Down)
   ============================================ */

.dropdown-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  display: block !important;
  background: #0082B7 !important;
  z-index: 1000 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.5s ease !important;
  box-shadow: none !important; /* Remove shadow when closed */
  border: none !important; /* Remove any border */
  border-radius: 0 !important; /* Remove all rounding */
  padding: 0 !important;
}

.dropdown-menu.active .menu-inner {
  padding: 100px 40px 40px !important;
}

.dropdown-menu.active {
  max-height: 100vh !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important; /* Shadow only when open */
  border-radius: 0 0 20px 20px !important; /* Rounded bottom corners only */
}
/* Menu Inner Container */
.menu-inner {
  padding: 100px 40px 40px; /* Top padding to avoid button */
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   MENU ITEMS STYLING
   ============================================ */

/* Remove default Drupal menu styles */
.dropdown-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-menu .menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dropdown-menu .menu-item {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Fade in menu items when menu is active */
.dropdown-menu.active .menu-item {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation */
.dropdown-menu.active .menu-item:nth-child(1) { transition-delay: 0.1s; }
.dropdown-menu.active .menu-item:nth-child(2) { transition-delay: 0.15s; }
.dropdown-menu.active .menu-item:nth-child(3) { transition-delay: 0.2s; }
.dropdown-menu.active .menu-item:nth-child(4) { transition-delay: 0.25s; }
.dropdown-menu.active .menu-item:nth-child(5) { transition-delay: 0.3s; }
.dropdown-menu.active .menu-item:nth-child(6) { transition-delay: 0.35s; }

/* Menu Links */
.dropdown-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 0;
}

.dropdown-menu a:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateX(10px);
}

/* Active link */
.dropdown-menu a.is-active {
  color: #fff;
  font-weight: 700;
}

/* Underline animation on hover */
.dropdown-menu a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 0;
  height: 3px;
  background: #fff;
  transition: width 0.3s ease;
}

.dropdown-menu a:hover::after {
  width: 100px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .menu-inner {
    padding: 80px 20px 40px;
  }
  
  .dropdown-menu a {
    font-size: 1.5rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 10px 15px;
}

.menu-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Change label color to white when menu is open */
.menu-toggle.active .menu-label {
  color: #fff;
}

.menu-label::before {
  content: 'MENU';
}

.menu-toggle.active .menu-label::before {
  content: 'CLOSE';
}

