/* ===================== MOBILE HAMBURGER MENU ===================== */

/* Hamburger button — hidden on desktop, visible at ≤768px */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate hamburger → X when open */
body.mobile-nav-open .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
body.mobile-nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}
body.mobile-nav-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay backdrop */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.mobile-nav-open .mobile-nav-overlay {
  display: block;
  opacity: 1;
}

/* Mobile nav panel */
.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1000;
  padding: 80px 24px 32px;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
}
body.mobile-nav-open .mobile-nav-panel {
  right: 0;
}

/* Mobile nav links */
.mobile-nav-panel a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  color: #B91C1C;
}
.mobile-nav-panel a:last-of-type {
  border-bottom: none;
}

/* Mobile nav phone number */
.mobile-nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
}
.mobile-nav-phone svg {
  width: 18px;
  height: 18px;
  color: #B91C1C;
  flex-shrink: 0;
}
.mobile-nav-phone:hover {
  background: #f0f0f0;
}

/* Mobile nav CTA button */
.mobile-nav-cta {
  display: block;
  margin-top: 16px;
  padding: 14px;
  background: #B91C1C;
  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: none !important;
  transition: background 0.2s;
}
.mobile-nav-cta:hover {
  background: #991B1B;
  color: #fff !important;
}

/* ===== RESPONSIVE: Show hamburger + panel at ≤768px ===== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    order: 3;
  }
  .mobile-nav-panel {
    display: block;
  }
  /* Hide desktop "Request a Ride" button on mobile to save space */
  .header-actions .btn-sm {
    display: none;
  }
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hamburger span,
  .mobile-nav-overlay,
  .mobile-nav-panel {
    transition: none;
  }
}
