/* ─────────────────────────────────────────
   HAMBURGER BUTTON (modern theme)
───────────────────────────────────────── */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  min-height: 44px;
  min-width: 44px;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─────────────────────────────────────────
   OVERLAY
───────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ─────────────────────────────────────────
   MOBILE DRAWER
───────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.mobile-nav-header img {
  height: 36px;
  width: auto;
}

.mobile-nav-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: #4a5568;
  background: none;
  border: none;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-links > a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1a202c;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
  min-height: 44px;
  transition: all 0.3s ease;
}

.mobile-nav-links > a:hover {
  color: #9c1303;
  padding-left: 8px;
}

.mobile-nav-group-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: none;
  font-size: inherit;
  font-weight: 500;
  color: #1a202c;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.mobile-nav-group-trigger:hover {
  color: #9c1303;
}

.mobile-nav-group-trigger .arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.mobile-nav-group-trigger.active .arrow {
  transform: rotate(180deg);
}

.mobile-nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f8fafc;
  margin: 0 -20px;
  padding: 0 20px;
}

.mobile-nav-sub.open {
  max-height: 500px;
  padding: 0.5rem 20px;
}

.mobile-nav-sub a {
  display: flex;
  align-items: center;
  padding: 10px 0;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-sub a:last-child {
  border-bottom: none;
}

.mobile-nav-sub a:hover {
  color: #9c1303;
  padding-left: 8px;
}

.mobile-nav-sub a i {
  margin-right: 8px;
  width: 16px;
  flex-shrink: 0;
}

.mobile-nav-cta {
  padding: 20px;
  flex-shrink: 0;
  border-top: 1px solid #e2e8f0;
}

.mobile-nav-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a32a0d 0%, #9c1303 100%);
  color: #ffffff !important;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 50px;
  text-decoration: none;
  min-height: 44px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(156, 19, 3, 0.3);
}

.mobile-nav-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(156, 19, 3, 0.4);
}

/* ─────────────────────────────────────────
   SHOW / HIDE RULES
───────────────────────────────────────── */
@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-nav,
  .nav-overlay {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .mobile-menu-toggle {
    display: flex;
  }
}
