﻿@media (max-width: 1199px) {
  .section-padding {
    padding: 5rem 0;
  }

  .hero-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }

  .cta-card {
    padding: 2.5rem;
  }
}

@media (max-width: 991px) {
  .nav-scroll {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: normal;
    margin-top: 0.5rem;
  }

  .navbar-brand {
    margin-right: 0.5rem;
  }
  .navigation-wrap {
    background: rgba(5, 6, 8, 0.98);
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .navbar-collapse {
    background: rgba(5, 6, 8, 0.95);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 1rem;
  }

  .theme-toggle {
    margin-right: 0;
    margin-top: 1rem;
  }

  .hero {
    padding-top: 6.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-media {
    margin-top: 2rem;
  }

  .journey-track {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-contacts {
    right: 16px;
    bottom: 16px;
  }

  /* Disable hover lifts on tablets/large phones to prevent tap jitter */
  .journey-step:hover,
  .experience-card:hover,
  .fleet-card:hover,
  .highlight-card:hover,
  .assurance-card:hover,
  .terms-card:hover {
    transform: none !important;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .section-padding {
    padding: 4.5rem 0;
  }

  .container,
  .container-fluid {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  .hero {
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.75), rgba(5, 5, 8, 0.6)),
      url("../images/img/bg-mobile.jpg") center/cover no-repeat;
  }

  body.light-theme .hero {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9),
        rgba(234, 239, 250, 0.7)
      ),
      url("../images/img/bg-mobile.jpg") center/cover no-repeat;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-stats li {
    min-width: calc(50% - 0.75rem);
  }

  .about-story,
  .contact-card {
    padding: 2rem;
  }

  .experience-media img,
  .experience-media video {
    height: 200px;
  }

  .gallery-item img {
    height: 180px;
  }

  .cta-card h2 {
    font-size: 2rem;
  }

  .terms-card {
    padding: 1.5rem;
  }

  .journey-track {
    gap: 1.75rem;
  }

  .terms-grid {
    gap: 1.75rem;
  }

  .day-picker {
    flex-direction: column;
    align-items: flex-start;
  }

  .journey-step,
  .about-panel,
  .highlight-card,
  .experience-card,
  .fleet-card,
  .assurance-card,
  .terms-card {
    min-height: unset;
    margin-bottom: 2rem !important;
    gap: 1.5rem;
  }

  .faq .accordion {
    grid-template-columns: 1fr;
  }

  .floating-btn span {
    display: none;
  }

  .floating-btn {
    padding: 0.55rem 0.75rem;
  }

  .row.g-4 {
    --bs-gutter-x: 1.35rem;
    --bs-gutter-y: 2rem;
  }

  .modal-video-frame {
    max-height: 60vh;
  }

  /* Avoid hover jank on touch */
  .journey-step:hover,
  .experience-card:hover,
  .fleet-card:hover,
  .highlight-card:hover,
  .assurance-card:hover,
  .terms-card:hover,
  .about-panel:hover {
    transform: translateY(0) !important;
  }
}

@media (max-width: 575px) {
  .hero-stats li {
    min-width: 100%;
  }

  .navbar-collapse {
    max-height: 70vh;
  }

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

  .experience-content,
  .fleet-body {
    padding: 1.5rem;
  }

  .cta-card {
    padding: 2rem;
  }

  .footer {
    text-align: center;
  }

  .footer-links,
  .footer-contact {
    justify-items: center;
  }
  .footer-social {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
  .footer-social span {
    width: 100%;
    text-align: center;
  }

  .terms-grid {
    grid-template-columns: 1fr;
  }

  .gallery-image {
    max-height: 70vh;
  }
  .gallery-caption {
    padding: 0.85rem 1rem 1rem;
  }
  .gallery-caption p {
    font-size: 0.9rem;
  }
  .gallery-nav {
    width: 40px;
    height: 40px;
  }
  .gallery-nav.prev {
    left: 10px;
  }
  .gallery-nav.next {
    right: 10px;
  }
  .gallery-close-btn {
    width: 38px;
    height: 38px;
  }

  .row.g-4 {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 2.75rem;
  }

  .modal-video-frame {
    max-height: 55vh;
  }

  .container,
  .container-fluid {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .experience-modal .modal-body {
    padding: 1.5rem;
  }

  .experience-modal .btn-close {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 400px) {
  .journey-step,
  .about-panel,
  .highlight-card,
  .experience-card,
  .fleet-card,
  .assurance-card,
  .terms-card {
    min-height: unset;
    margin-bottom: 2rem !important;
  }

  .contact-card {
    padding: 1.75rem;
  }

  .footer-social span {
    font-size: 0.8rem;
  }
}
