/* Global overflow fix */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

section, header, footer {
  width: 100%;
  max-width: 100%;
}

/* Booking card width fix */
.booking-card {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1280px) {

  .navbar {
    position: fixed;
    top: 82px;
    right: -100%;
    width: 320px;
    max-width: min(320px, 92vw);
    height: calc(100vh - 82px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: 22px;
    box-shadow: var(--shadow);
    transition: 0.4s ease;
    overflow-y: auto;
    z-index: 1000;
  }

  .navbar a {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 15px;
  }

  .navbar a:hover,
  .navbar a.active {
    background: var(--gray);
  }

  .navbar.active {
    right: 0;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav-actions .btn-outline {
    display: none;
  }

  .site-header .container {
    width: min(1180px, 92%);
  }

  .hero-grid,
  .fare-grid,
  .contact-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .fleet-grid,
  .blog-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid,
  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .nav-wrapper {
    height: 74px;
  }

  .navbar {
    top: 74px;
    height: calc(100vh - 74px);
  }

  .logo {
    font-size: 20px;
  }

  .logo i {
    width: 40px;
    height: 40px;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 90px 0 70px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons a {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
  }

  .hero-stats div {
    width: 100%;
  }

  .booking-card {
    padding: 24px;
    border-radius: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .fleet-grid,
  .blog-grid,
  .testimonial-grid,
  .service-grid,
  .safety-grid,
  .steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 34px;
  }

  .fleet-card img,
  .blog-card img {
    height: 220px;
  }

  .app-mockup img {
    max-width: 280px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 94%;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .btn-primary,
  .btn-outline,
  .btn-light {
    padding: 12px 18px;
    font-size: 14px;
  }

  .booking-card h2 {
    font-size: 24px;
  }

  .feature-card,
  .service-card,
  .fleet-card,
  .step-card,
  .safety-card,
  .testimonial-card,
  .blog-card,
  .fare-card,
  .contact-form {
    padding: 22px;
  }

  .popup-box {
    padding: 28px 20px;
  }
}
