/* ==========================================================================
   JasaCare Mobile-First Breakpoints & Mobile Bottom Navigation
   ========================================================================== */

/* Mobile Navigation Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 2000;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  transition: right 0.3s ease-in-out;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.5);
  z-index: 1999;
  display: none;
}

.drawer-backdrop.open {
  display: block;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--jc-border);
}

.mobile-drawer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-drawer-nav a {
  font-family: var(--jc-font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--jc-primary);
}

/* Sticky Mobile Bottom Navigation (#14 Requirement) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: #ffffff;
  border-top: 1px solid var(--jc-border);
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.06);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  min-height: 48px; /* Touch target size */
  color: var(--jc-text-muted);
  font-size: 0.72rem;
  font-family: var(--jc-font-heading);
  font-weight: 600;
  text-decoration: none;
  transition: var(--jc-transition);
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
  margin-bottom: 3px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--jc-accent);
}

.mobile-nav-item.nav-wa {
  color: #25D366;
}

/* Breakpoint 768px (Tablets) */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
}

/* Breakpoint 390px / 360px (Compact Mobile) */
@media (max-width: 480px) {
  .header-inner {
    height: 68px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
}
