/* ==========================================================================
   BABU CAR TRAVELS KOLKATA - Master Mobile Responsive System
   ========================================================================== */

/* Global Overflow Prevention */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

/* Fix iOS Safari Input Zoom */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="date"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* ==========================================================================
   Desktop / Laptop Breakpoints (<= 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .destinations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Tablets (<= 992px)
   ========================================================================== */
@media (max-width: 992px) {
  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-gold);
    color: #121417;
    border-radius: 8px;
    font-size: 1.25rem;
    border: none;
    cursor: pointer;
  }
  .nav-menu {
    position: fixed;
    top: 66px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 66px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 20px;
    gap: 12px;
    transition: left 0.35s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    overflow-y: auto;
    z-index: 9999;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-link {
    font-size: 1.1rem;
    padding: 12px 16px;
    width: 100%;
    text-align: center;
    border-radius: 8px;
  }
  .hero {
    min-height: auto !important;
    padding: 40px 0 60px 0;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-text {
    padding-right: 0;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-usps {
    justify-content: center;
  }
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Smartphones & Mobile Devices (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {

  /* 1. Hide top dark bar on mobile to save vertical screen space */
  .top-bar {
    display: none !important;
  }

  /* 2. Compact Sticky Navbar */
  .navbar {
    background: #FFFFFF !important;
    padding: 10px 0 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  }
  .navbar-container {
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .site-logo {
    height: 48px !important;
    max-width: 220px !important;
    width: auto !important;
    object-fit: contain !important;
    mix-blend-mode: multiply !important;
  }
  .navbar-container > div > .btn-primary {
    display: none !important;
  }

  /* 3. Hero Section - Rich Cinematic Visible Background Image on Mobile */
  .hero {
    position: relative !important;
    min-height: auto !important;
    padding: 35px 0 45px 0 !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.82) 100%),
                url('../images/hero-bg.jpg') center/cover no-repeat !important;
    color: #FFFFFF !important;
  }
  .hero-overlay {
    display: none !important;
  }
  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  .hero-badge {
    font-size: 0.76rem !important;
    padding: 5px 14px !important;
    margin-bottom: 10px !important;
    background: rgba(244, 180, 0, 0.25) !important;
    color: #F4B400 !important;
    border: 1px solid rgba(244, 180, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    display: inline-block !important;
  }
  .hero-title {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6) !important;
  }
  .hero-title span {
    color: #F4B400 !important;
    display: block !important;
    margin-top: 4px !important;
  }
  .hero-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    margin-bottom: 14px !important;
    color: #E2E8F0 !important;
  }
  .hero-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }
  .hero-buttons .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 11px 16px !important;
    font-size: 0.9rem !important;
  }
  .hero-usps {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px 10px !important;
    font-size: 0.78rem !important;
    margin-bottom: 10px !important;
  }
  .usp-item {
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 10px !important;
    color: #FFFFFF !important;
  }
  .usp-text {
    color: #FFFFFF !important;
  }
  .usp-text span {
    color: #F4B400 !important;
  }
  .usp-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.88rem !important;
    background: var(--primary-gold) !important;
    color: #121417 !important;
  }

  /* 4. Compact Floating Booking Card on Mobile */
  .hero-booking-wrapper {
    margin-top: 5px !important;
  }
  .hero-booking-card {
    padding: 18px 14px !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 36px rgba(0,0,0,0.25) !important;
    background: #FFFFFF !important;
  }
  .booking-form-header h3 {
    font-size: 1.2rem !important;
    color: var(--text-dark) !important;
  }
  .booking-form-header p {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
  }
  .form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .form-group {
    margin-bottom: 10px !important;
  }
  .form-control {
    padding: 9px 12px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }

  /* 5. Mobile Floating WhatsApp & Call Buttons */
  .floating-widgets {
    bottom: 15px !important;
    right: 12px !important;
    gap: 8px !important;
    z-index: 10000 !important;
  }
  .floating-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.2rem !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3) !important;
  }
  .btn-top {
    display: none !important;
  }

  /* 6. Section Headings & Cards */
  .section-header h2 {
    font-size: 1.65rem !important;
  }
  .bengali-title {
    font-size: 1.75rem !important;
  }
  .destinations-grid,
  .cars-grid,
  .features-grid,
  .packages-grid,
  .packages-section .container > div,
  .contact-section .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  section .container > div[style*="repeat(3, 1fr)"],
  section .container > div[style*="repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* 7. Footer Layout */
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center !important;
  }

  /* 8. Booking Modal on Mobile */
  .modal-content {
    width: 95% !important;
    padding: 18px 14px !important;
    margin: 10px auto !important;
    border-radius: 14px !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
  }
}

/* ==========================================================================
   Very Small Mobile Screens (<= 400px)
   ========================================================================== */
@media (max-width: 400px) {
  .site-logo {
    height: 40px !important;
    max-width: 180px !important;
  }
  .hero-title {
    font-size: 1.4rem !important;
  }
  .hero-booking-card {
    padding: 14px 10px !important;
  }
  .form-control {
    padding: 8px 10px !important;
  }
}
