/* ================================================================
   SJS Travels — Mobile Responsive CSS
   Clean, unified media queries for all breakpoints
   Linked AFTER style.css to override desktop styles
   ================================================================ */

/* ----------------------------------------------------------------
   GLOBAL MOBILE RESETS
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* Mobile Call Button base style (hidden on desktop, shown on mobile) */
.mobile-call-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0D47A1, #1976D2);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(13, 71, 161, 0.35);
  transition: all 0.3s;
  letter-spacing: 0.3px;
  line-height: 1;
}

.mobile-call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.5);
  color: #fff !important;
}

.mobile-call-btn i {
  font-size: 0.85rem;
  animation: ring-phone 2.5s ease-in-out infinite;
}

@keyframes ring-phone {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(-12deg);
  }

  20% {
    transform: rotate(12deg);
  }

  30% {
    transform: rotate(-8deg);
  }

  40% {
    transform: rotate(8deg);
  }

  50% {
    transform: rotate(0deg);
  }
}

/* ================================================================
   BREAKPOINT 1: TABLET — max-width: 991px
   ================================================================ */
@media (max-width: 991px) {

  /* --- NAVBAR --- */
  .navbar {
    padding: 8px 0;
  }

  /* Reset desktop negative margins so navbar height is natural */
  .navbar .container {
    align-items: center;
  }

  /* Show mobile actions, hide desktop actions */
  .navbar-mobile-actions {
    display: flex !important;
  }

  .navbar-desktop-actions {
    display: none !important;
  }

  /* Remove inline style overrides on logo */
  .navbar-brand {
    flex-shrink: 0;
    min-width: 0;
    gap: 10px !important;
  }

  /* Icon size */
  .navbar-icon {
    height: 45px !important;
    width: auto !important;
    margin: auto 0 !important;
    object-fit: contain !important;
  }

  .brand-name {
    font-size: 1.4rem !important;
    letter-spacing: 0px !important;
  }

  .brand-tagline {
    font-size: 0.6rem !important;
    letter-spacing: 1px !important;
  }

  /* Mobile call button - show on tablet as a fixed overlay */
  .mobile-call-btn {
    display: flex !important;
    position: fixed !important;
    top: 90px;
    right: 15px;
    z-index: 1050;
    padding: 10px 18px !important;
    font-size: 0.95rem !important;
    animation: float-pulse 2s infinite !important;
  }

  .mobile-call-btn:hover {
    transform: translateY(-2px) !important;
  }

  @keyframes float-pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(13, 71, 161, 0.7);
      transform: scale(1);
    }

    50% {
      transform: scale(1.05);
    }

    70% {
      box-shadow: 0 0 0 15px rgba(13, 71, 161, 0);
      transform: scale(1);
    }

    100% {
      box-shadow: 0 0 0 0 rgba(13, 71, 161, 0);
      transform: scale(1);
    }
  }

  /* Navbar collapse panel — dark overlay style */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: 0 0 16px 16px;
  }

  .navbar-collapse .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1rem !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin: 0 !important;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
  }

  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link.active {
    color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.05);
  }

  .navbar-collapse .nav-link.active::after {
    display: none;
    /* Remove desktop underline indicator */
  }

  .navbar-collapse .dropdown-menu {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    margin-top: 6px !important;
    padding: 8px !important;
  }

  .navbar-collapse .dropdown-item {
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 10px 16px !important;
    border-radius: 6px;
    font-size: 0.9rem;
  }

  .navbar-collapse .dropdown-item:hover {
    background: rgba(255, 193, 7, 0.12) !important;
    color: var(--accent-color) !important;
  }

  /* Hide desktop call number and book button in collapsed menu */
  .navbar-collapse .d-flex.align-items-center.gap-3 {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    gap: 10px !important;
  }

  .navbar-collapse .d-flex.align-items-center.gap-3 a.fw-bold {
    display: flex !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1rem;
  }

  .navbar-collapse .btn-custom {
    width: 100%;
    text-align: center;
  }

  /* Toggler styling — always show bars, never show X */
  .navbar-toggler {
    flex-shrink: 0;
    border: none !important;
    box-shadow: none !important;
    padding: 6px 8px;
    background: transparent !important;
  }

  .navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
  }

  /* Lock hamburger icon — never allow it to become a close/X icon */
  .navbar-toggler i {
    font-size: 1.5rem;
    color: var(--accent-color) !important;
    pointer-events: none;
    transition: color 0.3s;
  }

  /* When menu is open, keep bars icon — do NOT show X */
  .navbar-toggler[aria-expanded="true"] i.fa-bars-staggered::before {
    content: "\f0c9";
    /* Keep as fa-bars (≡), not X */
  }

  /* Hide Bootstrap's default toggler-icon span if present */
  .navbar-toggler .navbar-toggler-icon {
    display: none !important;
  }

  /* Sections */
  .section-padding {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title h2 {
    font-size: 2.2rem !important;
  }

  /* Why Choose Us */
  .editorial-content {
    padding-left: 15px !important;
    margin-top: 40px;
  }

  /* CTA */
  .cta-premium .display-4 {
    font-size: 2.5rem;
  }
}

/* ================================================================
   BREAKPOINT 2: LARGE MOBILE — max-width: 768px
   ================================================================ */
@media (max-width: 768px) {

  /* --- NAVBAR --- */
  .navbar-icon {
    height: 40px !important;
  }

  /* Navbar collapse is full width, centered links */
  .navbar-collapse .navbar-nav {
    width: 100%;
  }

  /* --- HERO V2 --- */
  .hero-v2,
  .hero-v2 .heroSwiper {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .hero-v2-slide {
    height: auto !important;
    min-height: auto !important;
    display: block !important;
    overflow: hidden;
    position: relative !important;
  }

  .hero-v2-bg {
    position: absolute !important;
    inset: 0 !important;
    min-height: 100% !important;
  }

  .hero-v2-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
  }

  .hero-v2-content {
    position: relative !important;
    z-index: 2 !important;
    padding: 90px 0 24px !important;
    margin-top: 0 !important;
    display: block !important;
    align-items: unset !important;
  }

  .hero-v2-heading {
    font-size: 2rem !important;
    letter-spacing: -0.5px !important;
    line-height: 1.15 !important;
  }

  .hero-v2-desc {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    max-width: 100% !important;
    margin-top: 14px !important;
  }

  .hero-v2-cta-row {
    margin-top: 22px !important;
    flex-wrap: wrap;
    gap: 10px !important;
  }

  .hero-v2-btn-primary,
  .hero-v2-btn-outline {
    padding: 12px 22px !important;
    font-size: 0.82rem !important;
  }

  /* Vehicle card on mobile */
  .hero-v2-vehicle-card {
    margin: 24px auto 0 !important;
    max-width: 340px;
    transform: none !important;
    opacity: 1 !important;
  }

  /* Stats bar flows below */
  .hero-v2-stats-bar {
    position: relative !important;
    bottom: auto !important;
    padding: 14px 0 !important;
  }

  .hero-v2-stat {
    padding: 0 12px !important;
  }

  .hero-v2-stat-info strong {
    font-size: 0.95rem !important;
  }

  .hero-v2-stat-divider {
    height: 24px !important;
  }

  /* Pagination — relative flow */
  .hero-v2-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex !important;
    justify-content: center !important;
    padding: 16px 0 8px !important;
    margin: 0 !important;
  }

  /* Hide scroll indicator */
  .hero-v2-scroll {
    display: none !important;
  }

  /* Booking widget — relative, centered */
  .hero-v2-booking-widget {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    margin: 20px auto 30px !important;
    width: 92% !important;
    max-width: 440px !important;
    z-index: 20 !important;
  }

  /* Nav arrows */
  .hero-v2-nav-prev,
  .hero-v2-nav-next {
    display: none !important;
  }

  /* --- SECTIONS --- */
  .section-padding {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 1.9rem !important;
  }

  .section-title p {
    font-size: 0.95rem !important;
  }

  /* --- SERVICES GRID --- */
  .service-premium-card {
    padding: 28px 24px;
    margin-bottom: 4px;
  }

  .service-premium-icon {
    font-size: 2.2rem !important;
    margin-bottom: 14px !important;
  }

  .service-premium-title {
    font-size: 1.1rem !important;
  }

  /* --- WHY CHOOSE US (EDITORIAL) --- */
  .editorial-layout {
    flex-direction: column !important;
  }

  .editorial-img-main {
    width: 100% !important;
    border-radius: 16px;
  }

  .editorial-img-sub {
    display: none !important;
  }

  .editorial-content {
    padding-left: 0 !important;
    margin-top: 30px !important;
  }

  .editorial-content h2 {
    font-size: 1.8rem !important;
    line-height: 1.25 !important;
  }

  .editorial-content .fs-5 {
    font-size: 0.95rem !important;
  }

  .feature-list-premium li {
    padding: 14px 16px;
    margin-bottom: 10px;
  }

  .feature-list-premium li h4 {
    font-size: 1rem !important;
  }

  .feature-list-premium li p {
    font-size: 0.85rem !important;
  }

  /* --- FLEET CARDS --- */
  .fleet-ultra-card {
    max-width: 380px;
    margin: 0 auto;
  }

  /* --- TARIFF CARDS --- */
  .tariff-elegant-card {
    padding: 30px 24px !important;
  }

  .tariff-elegant-card.popular {
    transform: none !important;
    margin-top: 0 !important;
  }

  .tariff-elegant-card.popular:hover {
    transform: translateY(-8px) !important;
  }

  /* --- PHILOSOPHY GLASS CARD (About page) --- */
  .philosophy-glass-card {
    margin-left: 0 !important;
    margin-top: 20px !important;
    padding: 30px !important;
  }

  /* --- ABOUT HERO --- */
  .about-hero {
    min-height: 50vh;
    background-attachment: scroll !important;
    /* Fix parallax on mobile */
  }

  /* --- STATS PARALLAX --- */
  .stats-parallax {
    background-attachment: scroll !important;
  }

  .stat-item h2 {
    font-size: 2.5rem !important;
  }

  /* --- CTA BANNER --- */
  .cta-premium {
    padding: 60px 0 !important;
    text-align: center;
  }

  .cta-premium .display-4 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  .cta-premium .lead {
    font-size: 0.95rem !important;
  }

  .cta-premium .d-flex {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .cta-premium .btn-lg {
    width: 100%;
    max-width: 320px;
  }

  /* --- FOOTER --- */
  .footer {
    padding: 50px 0 0 !important;
  }

  .footer .row.g-5>[class*="col-"] {
    margin-bottom: 30px;
  }

  .footer-widget {
    padding-right: 0 !important;
  }

  .footer .offset-lg-1 {
    margin-left: 0 !important;
  }

  .footer-bottom {
    text-align: center;
    padding: 20px 0;
  }

  /* --- WHATSAPP FLOAT --- */
  .whatsapp-float {
    width: 52px !important;
    height: 52px !important;
    font-size: 28px !important;
    bottom: 20px !important;
    right: 16px !important;
    z-index: 99999 !important;
  }

  /* --- PAGE HERO BANNERS --- */
  .page-hero-banner,
  .inner-page-banner {
    min-height: 200px !important;
    padding: 60px 0 !important;
  }

  .page-hero-banner h1,
  .inner-page-banner h1 {
    font-size: 2rem !important;
  }

  /* --- CONTACT PAGE --- */
  .contact-info-card {
    padding: 24px !important;
  }

  /* --- BOOKING FORM --- */
  .booking-form-wrap {
    padding: 24px !important;
  }

  /* --- GALLERY GRID --- */
  .gallery-grid .col-lg-4,
  .gallery-grid .col-md-6 {
    padding: 6px;
  }

  /* --- TESTIMONIALS --- */
  .testimonial-slider-container {
    padding: 40px 20px !important;
    border-radius: 16px !important;
  }

  .testimonial-slide-quote {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
  }

  .testimonial-premium-slide {
    padding: 0 10px !important;
  }
}

/* ================================================================
   BREAKPOINT 3: SMALL MOBILE — max-width: 576px
   ================================================================ */
@media (max-width: 576px) {

  /* --- NAVBAR --- */
  .navbar-icon {
    height: 38px !important;
  }

  .mobile-call-btn {
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
    gap: 5px !important;
  }

  .mobile-call-btn .mobile-number {
    font-size: 0.78rem !important;
  }

  /* --- HERO --- */
  .hero-v2-content {
    padding: 80px 0 16px !important;
  }

  .hero-v2-heading {
    font-size: 1.7rem !important;
  }

  .hero-v2-label {
    font-size: 0.68rem !important;
    padding: 6px 12px !important;
  }

  .hero-v2-desc {
    font-size: 0.85rem !important;
  }

  .hero-v2-vehicle-card {
    max-width: 100% !important;
    border-radius: 16px !important;
  }

  .hero-v2-vcard-img-wrap {
    height: 150px !important;
  }

  .hero-v2-vcard-specs {
    gap: 6px !important;
    flex-wrap: wrap;
  }

  .hero-v2-stats-inner {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding: 0 12px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hero-v2-stats-inner::-webkit-scrollbar {
    display: none;
  }

  .hero-v2-stat {
    padding: 0 10px !important;
    flex-shrink: 0 !important;
  }

  .hero-v2-booking-widget {
    width: 96% !important;
    margin: 16px auto 20px !important;
  }

  /* --- TYPOGRAPHY --- */
  .section-title h2 {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.6rem !important;
  }

  h3 {
    font-size: 1.2rem !important;
  }

  .section-padding {
    padding: 35px 0 !important;
  }

  /* --- SERVICES --- */
  .service-premium-card {
    padding: 22px 18px !important;
  }

  .service-premium-icon {
    font-size: 1.8rem !important;
  }

  /* --- WHY CHOOSE US --- */
  .editorial-content h2 {
    font-size: 1.55rem !important;
  }

  /* --- FLEET --- */
  .fleet-ultra-body {
    padding: 16px !important;
  }

  .fleet-ultra-specs span {
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
  }

  /* --- TARIFF --- */
  .tariff-elegant-features li {
    font-size: 0.88rem;
    padding: 8px 0;
  }

  /* --- CTA --- */
  .cta-premium .display-4 {
    font-size: 1.6rem !important;
  }

  .cta-premium .btn-lg {
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
  }

  /* --- FOOTER --- */
  .footer .row.g-5 {
    gap: 0 !important;
  }

  .footer h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .footer-links li {
    margin-bottom: 8px !important;
  }

  .social-icons a {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }

  /* --- PAGE BANNERS --- */
  .page-hero-banner h1,
  .inner-page-banner h1 {
    font-size: 1.6rem !important;
  }

  /* --- TESTIMONIALS --- */
  .testimonial-slider-container {
    padding: 30px 16px !important;
  }

  .testimonial-slide-quote {
    font-size: 1rem !important;
  }

  /* --- CONTACT --- */
  .contact-form-section .row.g-5 {
    gap: 20px !important;
  }

  /* --- STATS --- */
  .stat-item h2 {
    font-size: 2rem !important;
  }

  .stat-item p {
    font-size: 0.85rem !important;
  }
}

/* ================================================================
   BREAKPOINT 4: VERY SMALL — max-width: 400px
   ================================================================ */
@media (max-width: 400px) {

  .navbar-icon {
    height: 34px !important;
  }

  /* Kept brand text visible on narrow screens */

  .mobile-call-btn {
    padding: 7px 10px !important;
    font-size: 0.75rem !important;
  }

  .mobile-call-btn .mobile-number {
    font-size: 0.75rem !important;
    letter-spacing: -0.3px !important;
  }

  .navbar-toggler {
    padding: 4px 6px !important;
  }

  /* Hero */
  .hero-v2-heading {
    font-size: 1.55rem !important;
  }

  .hero-v2-btn-primary,
  .hero-v2-btn-outline {
    padding: 10px 16px !important;
    font-size: 0.78rem !important;
  }

  .hero-v2-cta-row {
    gap: 8px !important;
  }
}

/* --- ANIMATED STATUS (Innova & 24/7) --- */
.navbar-animated-status {
  display: none;
}

@media (max-width: 991px) {
  .navbar-animated-status {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 15px;
    width: 60px;
    height: 35px;
    overflow: visible;
    perspective: 500px;
  }

  .status-car {
    position: absolute;
    height: 30px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    animation:
      driveCarSlow 1.5s infinite linear,
      crossfadeCar 8s infinite linear;
  }

  .status-text {
    position: absolute;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: crossfadeText 8s infinite linear;
  }
}

@keyframes driveCarSlow {
  0% {
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateX(2px) translateY(-1px) rotate(1deg);
  }

  50% {
    transform: translateX(4px) translateY(0px) rotate(0deg);
  }

  75% {
    transform: translateX(2px) translateY(1px) rotate(-1deg);
  }

  100% {
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }
}

@keyframes crossfadeCar {

  0%,
  45% {
    opacity: 1;
  }

  50%,
  95% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes crossfadeText {

  0%,
  45% {
    opacity: 0;
  }

  50%,
  95% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* --- EXTRA SMALL SCREENS (Phones like Realme, < 575px) --- */
@media (max-width: 575px) {

  .navbar,
  .navbar .container {
    flex-wrap: nowrap !important;
  }

  .navbar-brand {
    gap: 5px !important;
    margin-right: 2px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  .brand-text {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .brand-name {
    font-size: 1.1rem !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }

  .brand-tagline {
    font-size: 0.55rem !important;
    white-space: nowrap !important;
  }

  .navbar-icon {
    height: 26px !important;
  }

  .navbar-animated-status {
    width: 45px !important;
    margin-right: 5px !important;
  }

  .status-car {
    max-width: 45px !important;
    height: 22px !important;
  }

  .status-text {
    font-size: 0.95rem !important;
  }

  .navbar-mobile-actions {
    gap: 0 !important;
    flex-shrink: 0 !important;
  }
}