/* ==========================================================================
   HIMALAYAN WHITE CLOUD CLEANING SERVICES — SIDEBAR & DRAWER STYLES
   ========================================================================== */

/* Hidden Checkbox Toggle */
.menu-toggle {
  display: none !important;
}

/* Floating Hamburger Menu Button */
.menu-btn {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  cursor: pointer !important;
  z-index: 6000 !important;
  position: fixed !important;
  left: 18px !important;
  top: 45px !important;
  transform: translateY(-50%) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.25s ease !important;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(0, 229, 255, 0.45) !important;
  transform: translateY(-50%) scale(1.05) !important;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35) !important;
}

.menu-btn span {
  display: block !important;
  height: 2px !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  transition: all 0.25s ease !important;
}

.menu-btn span:nth-child(1) { width: 20px !important; }
.menu-btn span:nth-child(2) { width: 14px !important; margin-left: auto !important; margin-right: 11px !important; }
.menu-btn span:nth-child(3) { width: 20px !important; }

/* Morph hamburger into X when drawer is active */
.menu-toggle:checked ~ .navbar .menu-btn span:nth-child(1),
body.sidebar-open .menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg) !important;
}

.menu-toggle:checked ~ .navbar .menu-btn span:nth-child(2),
body.sidebar-open .menu-btn span:nth-child(2) {
  opacity: 0 !important;
  width: 0 !important;
}

.menu-toggle:checked ~ .navbar .menu-btn span:nth-child(3),
body.sidebar-open .menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg) !important;
}

/* Backdrop Overlay */
.menu-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(2, 10, 25, 0.72) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 99990 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
}

.menu-toggle:checked ~ .menu-overlay,
body.sidebar-open .menu-overlay {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Sidebar Drawer Panel */
.menu-panel {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 290px !important;
  max-width: 85vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  padding: 20px 18px max(24px, env(safe-area-inset-bottom)) 18px !important;
  background: linear-gradient(180deg, rgba(7, 29, 54, 0.98) 0%, rgba(4, 18, 38, 0.99) 100%) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border-right: 1px solid rgba(114, 221, 255, 0.22) !important;
  box-shadow: 16px 0 48px rgba(0, 5, 20, 0.7) !important;
  z-index: 99995 !important;
  transform: translateX(-100%) !important;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
}

.menu-toggle:checked ~ .menu-panel,
body.sidebar-open .menu-panel {
  transform: translateX(0) !important;
}

/* Sidebar Brand Header */
.hwc-sidebar-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 14px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid rgba(114, 221, 255, 0.16) !important;
}

.hwc-sidebar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  color: #ffffff !important;
}

.hwc-sidebar-logo {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  background: #ffffff !important;
  border: 1.5px solid rgba(0, 229, 255, 0.45) !important;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3) !important;
}

.hwc-sidebar-brand-text {
  display: flex !important;
  flex-direction: column !important;
}

.hwc-sidebar-brand-main {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
}

.hwc-sidebar-brand-sub {
  font-size: 0.72rem !important;
  color: #00e5ff !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.menu-close-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  cursor: pointer !important;
  outline: none !important;
  color: #ffffff !important;
  transition: all 0.2s ease !important;
}

.menu-close-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(0, 229, 255, 0.5) !important;
  color: #00e5ff !important;
  transform: rotate(90deg) !important;
}

/* Navigation Section Titles & Items */
.menu-section-title {
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: rgba(114, 221, 255, 0.75) !important;
  margin: 14px 0 6px 4px !important;
  font-weight: 700 !important;
}

.hwc-sidebar-nav-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.menu-panel a {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 9px 12px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  transition: all 0.2s ease !important;
}

.menu-panel a svg {
  width: 18px !important;
  height: 18px !important;
  color: #00e5ff !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease !important;
}

.menu-panel a:hover {
  background: rgba(0, 229, 255, 0.1) !important;
  border-color: rgba(0, 229, 255, 0.25) !important;
  color: #00e5ff !important;
  transform: translateX(4px) !important;
}

.menu-panel a:hover svg {
  transform: scale(1.1) !important;
}

.menu-panel a.active {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.18), rgba(4, 38, 68, 0.8)) !important;
  color: #00e5ff !important;
  font-weight: 700 !important;
  border-color: rgba(0, 229, 255, 0.35) !important;
}

/* Quick Action CTA */
.hwc-sidebar-cta-wrap {
  margin: 16px 0 6px 0 !important;
}

.hwc-sidebar-cta-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  background: linear-gradient(135deg, #00e5ff 0%, #1c3ec9 100%) !important;
  color: #ffffff !important;
  border-radius: 11px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.25) !important;
  text-decoration: none !important;
  border: none !important;
  transition: all 0.25s ease !important;
}

.hwc-sidebar-cta-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(0, 229, 255, 0.45) !important;
  color: #ffffff !important;
}

.hwc-sidebar-cta-btn svg {
  color: #ffffff !important;
}

/* Footer Section */
.hwc-sidebar-footer {
  margin-top: auto !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(114, 221, 255, 0.14) !important;
}

.hwc-sidebar-copyright {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin: 0 !important;
}

/* Responsive adjustment */
@media (max-width: 640px) {
  .menu-btn {
    left: 12px !important;
    top: 40px !important;
    width: 38px !important;
    height: 38px !important;
  }
}
