/* ============================================
   AEROWASH MOBILE MENU — Full-Screen Drawer
   Professional slide-in navigation
   ============================================ */

/* --- Hide Astra's default broken mobile menu --- */
@media (max-width: 921px) {
  .ast-mobile-header-content {
    display: none !important;
  }

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

/* --- Custom Hamburger Button --- */
.aw-mobile-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 16px;
  z-index: 99999;
  width: 48px;
  height: 48px;
  background: transparent !important;
  background-color: transparent !important;
  border: none;
  cursor: pointer;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 921px) {
  .aw-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.aw-mobile-toggle .aw-bar {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.77, 0, 0.18, 1);
  position: absolute;
}

.aw-mobile-toggle .aw-bar:nth-child(1) { transform: translateY(-8px); }
.aw-mobile-toggle .aw-bar:nth-child(2) { opacity: 1; }
.aw-mobile-toggle .aw-bar:nth-child(3) { transform: translateY(8px); }

/* Animate to X when open */
.aw-mobile-toggle.is-active .aw-bar:nth-child(1) {
  transform: rotate(45deg);
  background: #fff;
}
.aw-mobile-toggle.is-active .aw-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}
.aw-mobile-toggle.is-active .aw-bar:nth-child(3) {
  transform: rotate(-45deg);
  background: #fff;
}

/* Hide hamburger when drawer is open — drawer has its own close button */
.aw-mobile-toggle.is-active {
  display: none !important;
}

/* --- Fullscreen Drawer Overlay --- */
.aw-mobile-drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 25, 40, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.aw-mobile-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* --- Drawer Panel --- */
.aw-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(195deg, #1B3A5C 0%, #132C48 40%, #0E2238 100%);
  z-index: 99995;
  transform: translateX(105%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: -10px 0 40px rgba(0,0,0,0.3);
}

.aw-mobile-drawer.is-active {
  transform: translateX(0);
}

/* --- Drawer Header --- */
.aw-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.aw-drawer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.aw-drawer-close {
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.aw-drawer-close:hover,
.aw-drawer-close:active {
  background: rgba(232,113,42,0.15);
  border-color: rgba(232,113,42,0.3);
}

.aw-drawer-close svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255,255,255,0.7);
  transition: stroke 0.25s ease;
}

.aw-drawer-close:hover svg { stroke: #E8712A; }

/* --- Navigation Items --- */
.aw-drawer-nav {
  flex: 1;
  padding: 8px 0;
  list-style: none;
  margin: 0;
}

.aw-drawer-nav li {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.aw-mobile-drawer.is-active .aw-drawer-nav li {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger animation */
.aw-mobile-drawer.is-active .aw-drawer-nav li:nth-child(1) { transition-delay: 0.08s; }
.aw-mobile-drawer.is-active .aw-drawer-nav li:nth-child(2) { transition-delay: 0.13s; }
.aw-mobile-drawer.is-active .aw-drawer-nav li:nth-child(3) { transition-delay: 0.18s; }
.aw-mobile-drawer.is-active .aw-drawer-nav li:nth-child(4) { transition-delay: 0.23s; }
.aw-mobile-drawer.is-active .aw-drawer-nav li:nth-child(5) { transition-delay: 0.28s; }
.aw-mobile-drawer.is-active .aw-drawer-nav li:nth-child(6) { transition-delay: 0.33s; }
.aw-mobile-drawer.is-active .aw-drawer-nav li:nth-child(7) { transition-delay: 0.38s; }

.aw-drawer-nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
}

.aw-drawer-nav > li > a:hover,
.aw-drawer-nav > li > a:active {
  color: #fff;
  background: rgba(255,255,255,0.04);
  border-left-color: #E8712A;
}

.aw-drawer-nav > li.current > a {
  color: #E8712A;
  border-left-color: #E8712A;
  background: rgba(232,113,42,0.06);
}

/* Arrow indicator for parent items */
.aw-nav-arrow {
  width: 20px;
  height: 20px;
  stroke: rgba(255,255,255,0.4);
  transition: transform 0.3s ease, stroke 0.3s ease;
  flex-shrink: 0;
}

.aw-drawer-nav li.is-expanded .aw-nav-arrow {
  transform: rotate(180deg);
  stroke: #E8712A;
}

/* --- Sub-menu --- */
.aw-sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0,0,0,0.12);
}

.aw-drawer-nav li.is-expanded .aw-sub-menu {
  max-height: 600px;
}

.aw-sub-menu li a {
  display: block;
  padding: 11px 24px 11px 40px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  position: relative;
}

.aw-sub-menu li a::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.2s ease;
}

.aw-sub-menu li a:hover,
.aw-sub-menu li a:active {
  color: #fff;
  background: rgba(255,255,255,0.03);
}

.aw-sub-menu li a:hover::before {
  background: #E8712A;
}

/* --- Divider --- */
.aw-drawer-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 8px 24px;
}

/* --- CTA Button --- */
.aw-drawer-cta {
  padding: 16px 24px;
  flex-shrink: 0;
}

.aw-drawer-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #E8712A 0%, #D4601A 100%);
  color: #fff !important;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(232,113,42,0.35);
}

.aw-drawer-cta a:hover {
  box-shadow: 0 6px 24px rgba(232,113,42,0.5);
  transform: translateY(-1px);
}

.aw-drawer-cta svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

/* --- Contact Info in Drawer --- */
.aw-drawer-contact {
  padding: 0 24px 20px;
  flex-shrink: 0;
}

.aw-drawer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.aw-drawer-contact a:hover { color: #fff; }

.aw-drawer-contact svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

/* --- Lock body scroll when drawer is open --- */
body.aw-drawer-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* --- Hamburger button refinements --- */
button.aw-mobile-toggle,
button.aw-mobile-toggle:hover,
button.aw-mobile-toggle:focus,
button.aw-mobile-toggle:active {
  background: rgba(232,113,42,0.85) !important;
  background-color: rgba(232,113,42,0.85) !important;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

button.aw-mobile-toggle.is-active,
button.aw-mobile-toggle.is-active:hover {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Ensure drawer logo is white */
.aw-drawer-logo {
  filter: brightness(0) invert(1) !important;
  max-height: 36px;
}

/* Smooth scroll inside drawer */
.aw-mobile-drawer {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.aw-mobile-drawer::-webkit-scrollbar {
  display: none;
}
