/**
 * Hire With MHS - Mobile-First & Native App Experience
 * Tailored for iOS & Android Viewports
 */

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  z-index: 1040;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 8px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: #64748b;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  gap: 3px;
  transition: all 0.2s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.bottom-nav-item i {
  font-size: 1.25rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active i {
  transform: translateY(-2px) scale(1.1);
  color: var(--primary);
}

.bottom-nav-item:active {
  transform: scale(0.92);
}

/* Floating Action / Primary CTA in Bottom Nav */
.bottom-nav-item.highlight-nav {
  color: var(--primary);
}

.bottom-nav-item.highlight-nav .nav-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  margin-top: -16px;
  transition: transform 0.2s ease;
}

.bottom-nav-item.highlight-nav:active .nav-icon-circle {
  transform: scale(0.92);
}

/* Mobile Viewport Queries (< 992px) */
@media (max-width: 991.98px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0));
  }

  .mobile-bottom-nav {
    display: block;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .hero-search-box {
    border-radius: var(--radius-lg);
    padding: 16px;
  }

  .search-field-divider {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  /* Touch Cards */
  .job-card, .category-card, .service-card {
    touch-action: manipulation;
  }

  .job-card:active, .category-card:active {
    transform: scale(0.985);
  }

  /* Mobile Sticky Job Action Bar */
  .mobile-job-action-bar {
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    z-index: 1035;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  /* Horizontal Scrollable Categories on Mobile */
  .mobile-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 6px 4px 16px;
    scrollbar-width: none;
  }

  .mobile-horizontal-scroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-horizontal-scroll > * {
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

/* Extra small screens (< 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.95rem;
  }

  .hero-section {
    padding: 40px 0 30px;
  }

  .stat-value {
    font-size: 2.2rem;
  }

  .cta-section {
    padding: 40px 20px;
  }

  .newsletter-box {
    padding: 24px 16px;
  }
}

