/* ==========================================================================
   FAHIMA TRAVEL & TOURISM - RESPONSIVE STYLESHEET
   Mobile-First and Breakpoint Adjustments
   ========================================================================== */

/* Off-canvas Mobile Drawer */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 27, 56, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #FFFFFF;
  z-index: 1050;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  padding: 24px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  display: flex;
  animation: slideDrawerIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDrawerIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
}

.mobile-drawer-close {
  background: var(--bg-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--primary-navy);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 30px;
}

.mobile-drawer-nav .nav-link {
  color: var(--primary-navy);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-nav .nav-link.active,
.mobile-drawer-nav .nav-link:hover {
  background: rgba(8, 126, 187, 0.08);
  color: var(--secondary-blue);
}

.mobile-submenu {
  list-style: none;
  padding-left: 16px;
  margin-top: 4px;
  display: none;
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu li a {
  display: block;
  padding: 6px 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.mobile-submenu li a:hover {
  color: var(--secondary-blue);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */

/* Laptop & Large Tablets (<= 1199px) */
@media (max-width: 1199.98px) {
  .hero-slider-section {
    height: 80vh;
    min-height: 550px;
  }
  
  .quick-form-grid {
    grid-template-columns: repeat(2, 1fr) auto;
  }
  
  .quick-search-box {
    margin-top: -30px;
  }
  
  .quick-search-card {
    padding: 20px 24px;
  }
}

/* Tablets (<= 991.98px) */
@media (max-width: 991.98px) {
  .top-bar-regions {
    display: none;
  }
  
  .site-header {
    top: 0;
    height: 70px;
    padding: 0;
    display: flex;
    align-items: center;
    background: #FFFFFF !important;
  }
  
  .site-nav {
    display: none !important; /* Replaced by mobile drawer */
  }
  
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--bg-light);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--primary-navy);
    font-size: 1.25rem;
    cursor: pointer;
  }
  
  .hero-slider-section {
    height: 75vh;
    min-height: 500px;
  }
  
  .hero-caption {
    padding-top: 20px;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .hero-slider-nav {
    right: 20px;
    bottom: 20px;
  }
  
  .hero-pagination {
    left: 20px;
    bottom: 25px;
  }
  
  .quick-search-box {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .quick-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .service-detail-item .row {
    flex-direction: column-reverse;
  }
  
  .service-detail-img {
    height: 220px;
    min-height: auto;
  }
  
  .service-detail-content {
    padding: 24px;
  }
  
  .b2b-card-banner {
    padding: 30px 20px;
  }
}

/* Mobile Devices (<= 767.98px) */
@media (max-width: 767.98px) {
  .top-bar {
    text-align: center;
    padding: 6px 0;
  }
  
  .top-bar .top-bar-right {
    display: none;
  }
  
  .site-header {
    height: 64px;
    padding: 0;
    display: flex;
    align-items: center;
  }
  
  .site-logo {
    height: 36px;
    max-width: 170px;
  }
  
  .header-logo-card {
    padding: 0;
  }
  
  .hero-slider-section {
    height: auto;
    min-height: 560px;
    padding: 30px 0 60px 0;
  }
  
  .hero-caption {
    padding-top: 10px;
    padding-bottom: 25px;
  }
  
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 12px;
  }
  
  .hero-desc {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  .hero-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .hero-slider-nav {
    display: none !important; /* Swipe enabled on mobile */
  }
  
  .hero-pagination {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 18px !important;
    width: auto !important;
  }
  
  .hero-btn-group .btn-primary-gradient,
  .hero-btn-group .btn-outline-white {
    width: 100%;
    justify-content: center;
  }
  
  .section-py {
    padding: 55px 0;
  }
  
  .section-title {
    font-size: 1.85rem;
  }
  
  .section-header {
    margin-bottom: 35px;
  }
  
  .service-card-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    height: 320px;
  }
  
  .hajj-img-container img {
    height: 300px;
  }
  
  .contact-form-card {
    padding: 24px 18px;
  }
  
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-pulse-btn {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
  
  .back-to-top {
    bottom: 80px;
    right: 24px;
    width: 40px;
    height: 40px;
  }
  
  .inner-hero {
    height: 280px;
  }
  
  .inner-hero-title {
    font-size: 2rem;
  }
}

/* Small Screens (<= 480px) */
@media (max-width: 575.98px) {
  .btn-whatsapp-header {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.65rem;
  }
  
  .service-feature-checklist {
    grid-template-columns: 1fr;
  }
  
  .filter-btn {
    padding: 6px 14px;
    font-size: 0.8125rem;
  }
}
