/**
 * PARVATHI TRAVELS - COMPREHENSIVE RESPONSIVE SUITE
 * Fully responsive across all devices: Large Desktops, Laptops, Tablets, and Mobiles.
 * Guarantees zero horizontal overflow, fluid stacking, and accessible touch targets.
 */

/* ==========================================================================
   1. Laptops & Small Desktops (max-width: 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 2rem;
  }

  .contact-grid {
    gap: 2.5rem;
  }

  .contact-info-card,
  .contact-form-panel {
    padding: 2rem;
  }

  .additional-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   2. Tablets (Landscape & Portrait: max-width: 960px)
   ========================================================================== */
@media (max-width: 960px) {
  :root {
    --nav-height: 70px;
  }

  /* Navigation Drawer (Luxury Midnight & Gold Theme) */
  .mobile-nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    height: 100vh;
    background: var(--color-midnight);
    border-left: 1px solid var(--border-gold-subtle);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + 1.5rem) 2rem 2rem;
    gap: 1.4rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal), visibility var(--transition-normal);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 920;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.5rem 0;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link:hover, .nav-link.active {
    color: var(--color-gold-bright);
  }

  /* Page Banner Tablet Responsiveness - Fill Viewport */
  .page-banner {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--nav-height);
    padding-bottom: 0;
  }

  /* Hero Section Stacking & Viewport Freedom */
  .hero-section {
    height: auto !important;
    min-height: 100svh;
    min-height: 100vh;
    overflow: visible !important;
    padding-top: calc(var(--nav-height) + 1.8rem);
    padding-bottom: 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-showcase-stage {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    height: clamp(250px, 42vw, 320px);
  }

  /* Auto Spotlight Section */
  .auto-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: auto;
    text-align: center;
  }

  .auto-motion-track {
    justify-content: center;
    overflow: hidden;
  }

  .animated-auto-vehicle {
    max-width: 440px;
    margin: 0 auto;
  }

  .auto-availability-panel {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border-blue-subtle);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .auto-contact-dialer {
    justify-content: center;
  }

  /* About Page Responsive Stacking */
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Reference-Inspired About Page Tablet Styles */
  .about-ref-showcase-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ref-collage-stage {
    height: 400px;
    max-width: 520px;
    margin: 0 auto;
  }

  .ref-collage-badge {
    top: 130px;
    right: 0;
  }

  .about-ref-peaceful-grid {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .about-ref-peaceful-visual {
    max-width: 540px;
    margin: 0 auto;
  }

  .ref-peaceful-dual-card {
    left: 10px;
    right: 10px;
  }

  .about-commitments-horizontal,
  .about-commitments-list.about-commitments-horizontal {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .about-visual-shell-full .about-visual-frame {
    height: clamp(260px, 46vw, 380px);
  }

  .about-interiors-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-approach-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .about-mission-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Services Page Responsive Stacking */
  .service-detail-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
  }

  .service-detail-col-img {
    order: -1 !important; /* Always show vehicle photo at the top on tablets/mobiles */
  }

  .service-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Vehicles Page Responsive Stacking */
  .vehicle-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vehicle-detail-col-img {
    order: -1 !important; /* Image appears first cleanly */
  }

  /* Fleet Gallery Grid (Tablet 2-col) */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Tours Grid */
  .tours-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Contact Page Stacking */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Airport Routes & Contract Driver Stacking */
  .airport-routes-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .contract-driver-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Callout Banners */
  .callout-banner-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .callout-banner-inner div:first-child {
    max-width: 100%;
  }

  .callout-banner-inner p {
    margin: 0 auto 1.5rem;
  }

  .callout-banner-actions {
    justify-content: center;
  }

  /* Footer 2-column stacking */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  /* Scenic Highway Section Responsive Stacking */
  .section-bg-scenic-highway .site-container,
  .scenic-highway-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .scenic-highway-desc {
    max-width: 100%;
  }

  .scenic-inquiry-box {
    padding: 2rem;
  }

  /* Modal Dialog Single Column */
  .modal-content-shell {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-visual-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-blue-subtle);
    padding: 1.6rem;
  }

  .modal-info-pane {
    padding: 1.6rem;
  }
}

/* ==========================================================================
   3. Mobile Phones (max-width: 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .site-container, .site-container-compact {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  /* Mobile Hero Section Optimization */
  .hero-section {
    height: auto !important;
    min-height: 100svh;
    min-height: 100vh;
    overflow: visible !important;
    padding-top: calc(var(--nav-height) + 1.25rem);
    padding-bottom: 2.8rem;
  }

  .hero-grid {
    gap: 1.75rem;
  }

  .hero-showcase-stage {
    height: 230px;
    margin-top: 0.25rem;
  }

  .page-banner {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--nav-height);
    padding-bottom: 0;
  }

  .page-banner-title {
    font-size: clamp(1.4rem, 6.2vw, 2.2rem);
    margin-bottom: 0.6rem;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .page-banner-desc {
    font-size: 0.94rem;
  }

  .banner-breadcrumbs {
    font-size: 0.74rem;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
  }

  .brand-logo-link {
    gap: 0.65rem;
  }

  .brand-logo-icon {
    width: 38px;
    height: 38px;
  }

  .brand-text-main {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
  }

  .brand-text-sub {
    font-size: 0.56rem;
    letter-spacing: 0.28em;
  }

  .nav-actions .btn-call {
    display: none;
  }

  /* Stacking all grids to 1 column on mobile */
  .showcase-grid {
    grid-template-columns: 1fr;
  }

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

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

  .about-pillars-grid {
    grid-template-columns: 1fr;
  }

  .about-facility-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

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

  .about-stats-grid,
  .about-stats-horizontal,
  .about-stats-grid.about-stats-horizontal {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .about-visual-shell-full .about-visual-frame {
    height: 240px;
  }

  /* Reference-Inspired About Page Mobile Styles */
  .about-ref-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .ref-stats-2x2 {
    gap: 0.9rem 1rem;
    margin-bottom: 1.6rem;
  }

  .ref-collage-stage {
    height: 310px;
    max-width: 100%;
  }

  .ref-item-top {
    width: 50%;
    height: 100px;
  }

  .ref-item-center {
    width: 62%;
    height: 180px;
    top: 55px;
    right: 0;
  }

  .ref-item-bottom {
    width: 50%;
    height: 105px;
  }

  .ref-collage-badge {
    top: 95px;
    right: -5px;
    padding: 0.65rem 0.85rem;
    max-width: 175px;
  }

  .ref-badge-icon {
    width: 30px;
    height: 30px;
  }

  .ref-badge-main {
    font-size: 0.78rem;
  }

  .about-ref-panorama {
    min-height: 360px;
    padding: 4rem 1.25rem;
  }

  .about-ref-peaceful-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-ref-peaceful-visual {
    padding-bottom: 1rem;
  }

  .ref-peaceful-frame-top {
    width: 55%;
    height: 105px;
    margin-bottom: -30px;
  }

  .ref-peaceful-frame-main {
    width: 95%;
    height: 240px;
  }

  .ref-peaceful-dual-card {
    position: static;
    margin-top: 1.2rem;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.1rem;
  }

  .ref-feature-rows {
    gap: 1.2rem;
  }

  .ref-feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .vehicle-card-detailed {
    padding: 1.25rem;
  }

  .modal-specs-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-input, .form-select, .form-textarea {
    font-size: 16px !important; /* Prevents iOS Safari auto-zoom on input focus */
  }

  /* Mobile AOS Vertical Normalization (Prevents off-canvas shifts) */
  [data-aos="fade-right"],
  [data-aos="fade-left"] {
    transform: translate3d(0, 24px, 0) !important;
  }
  [data-aos="fade-right"].aos-animate,
  [data-aos="fade-left"].aos-animate {
    transform: translate3d(0, 0, 0) !important;
  }

  /* Airport Taxi Featured Mobile Optimization */
  .airport-taxi-featured {
    padding: clamp(1.4rem, 4.5vw, 1.8rem) clamp(1rem, 3.5vw, 1.4rem);
    border-radius: var(--radius-sm);
  }

  .airport-taxi-header {
    margin-bottom: 1.6rem;
  }

  .airport-taxi-desc {
    font-size: 0.92rem;
  }

  .airport-routes-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.3rem;
  }

  .airport-route-card {
    padding: clamp(1.2rem, 4vw, 1.5rem) clamp(1rem, 3.5vw, 1.25rem);
    min-width: 0;
    max-width: 100%;
  }

  .airport-route-top {
    gap: 0.6rem;
  }

  .airport-route-dest {
    font-size: clamp(1.2rem, 5.2vw, 1.55rem);
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .airport-route-hub {
    font-size: 0.82rem;
  }

  .airport-price-box {
    padding: 0.9rem 1rem;
    gap: 0.4rem;
  }

  .airport-price-amount {
    font-size: 1.85rem;
  }

  .airport-route-features {
    font-size: 0.84rem;
    gap: 0.5rem;
    margin-bottom: 1.3rem;
  }

  .airport-route-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .airport-route-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Additional Services Mobile Stacking */
  .additional-services-header {
    margin-top: 2.5rem;
    margin-bottom: 1.8rem;
    padding: 0 0.5rem;
  }

  .additional-services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.3rem;
  }

  .add-service-card {
    padding: clamp(1.3rem, 4vw, 1.6rem) clamp(1rem, 3.5vw, 1.3rem);
    min-width: 0;
    max-width: 100%;
  }

  .add-service-title {
    font-size: 1.2rem;
  }

  .add-service-fleet {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .add-service-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Services Detail Rows Mobile Optimization */
  .service-detail-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.8rem;
  }

  .service-detail-col-img {
    order: -1 !important;
    width: 100%;
  }

  .service-detail-col-img img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
  }

  .service-detail-row ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .service-detail-row ul li svg {
    flex-shrink: 0;
    min-width: 18px;
    margin-top: 2px;
  }

  .service-detail-row .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
  }

  /* Compact Fleet Showcase Cards on Mobile */
  .showcase-body {
    padding: 1rem 1.1rem;
  }

  /* Scenic Highway Section Mobile Optimization */
  .section-bg-scenic-highway {
    padding: 3.5rem 0 !important;
  }

  .section-bg-scenic-highway .site-container,
  .scenic-highway-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .scenic-highway-title {
    font-size: 1.85rem;
  }

  .scenic-title-br {
    display: none;
  }

  .scenic-highway-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .scenic-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .scenic-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .scenic-inquiry-box {
    padding: 1.5rem 1.25rem;
  }

  /* Floating controls on mobile */
  .floating-whatsapp-wrap {
    left: 14px;
    bottom: 16px;
  }

  .floating-whatsapp-btn {
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }

  .floating-whatsapp-tooltip {
    display: none;
  }

  .back-to-top-btn {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .animated-auto-vehicle {
    max-width: 310px;
  }

  .modal-actions {
    flex-direction: column;
  }

  /* Contact Page Mobile Optimization */
  .contact-form-panel {
    padding: 1.6rem 1.25rem;
  }

  .contact-info-card {
    padding: 1.6rem 1.25rem;
  }

  .contact-detail-row {
    gap: 0.85rem;
  }

  .contact-icon-box {
    width: 40px;
    height: 40px;
  }

  .contact-val {
    font-size: 0.98rem;
  }

  .booking-inquiry-form .btn {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }

  .contact-callout-section {
    padding: 2.75rem 0;
  }

  .contact-callout-btn {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
  }

  .hero-showcase-stage {
    height: clamp(260px, 60vw, 320px);
    overflow: hidden;
  }

  .hero-showcase-item {
    bottom: 12px;
  }

  .hero-showcase-img {
    object-fit: contain;
    object-position: bottom center;
  }

  .vehicle-sedan .hero-showcase-img,
  .vehicle-sedan-luxury .hero-showcase-img {
    max-height: clamp(155px, 40vw, 200px);
    max-width: min(90vw, 380px);
  }

  .vehicle-suv .hero-showcase-img,
  .vehicle-suv-premium .hero-showcase-img {
    max-height: clamp(170px, 43vw, 220px);
    max-width: min(90vw, 380px);
  }

  .vehicle-minibus .hero-showcase-img {
    max-height: clamp(185px, 47vw, 240px);
    max-width: min(92vw, 400px);
  }
}

/* ==========================================================================
   4. Small Mobile Phones (max-width: 400px)
   ========================================================================== */
@media (max-width: 400px) {
  .site-container, .site-container-compact {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-showcase-stage {
    height: clamp(230px, 65vw, 270px);
  }

  .vehicle-auto .hero-showcase-img,
  .vehicle-auto-premium .hero-showcase-img {
    max-height: 175px;
    max-width: 280px;
  }

  .vehicle-sedan .hero-showcase-img,
  .vehicle-sedan-luxury .hero-showcase-img {
    max-height: 150px;
    max-width: 310px;
  }

  .vehicle-suv .hero-showcase-img,
  .vehicle-suv-premium .hero-showcase-img {
    max-height: 160px;
    max-width: 310px;
  }

  .vehicle-traveller .hero-showcase-img,
  .vehicle-minibus .hero-showcase-img {
    max-height: 175px;
    max-width: 325px;
  }

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

  .auto-headline-24 {
    font-size: 1.8rem;
  }

  .auto-phone-link {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
  }

  .page-banner-title {
    font-size: clamp(1.2rem, 5.8vw, 1.55rem);
  }

  /* Contact Page Super-Compact Optimization */
  .contact-info-card,
  .contact-form-panel {
    padding: 1.35rem 0.95rem;
  }

  .contact-icon-box {
    width: 36px;
    height: 36px;
  }

  .contact-icon-box svg {
    width: 17px;
    height: 17px;
  }

  .contact-detail-row {
    gap: 0.7rem;
  }

  .contact-val {
    font-size: 0.9rem;
  }

  .booking-inquiry-form .btn {
    padding: 0.82rem 0.85rem;
    font-size: 0.82rem;
  }

  .contact-callout-btn {
    padding: 0.8rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Super Compact Services Optimization */
  .airport-taxi-featured {
    padding: 1.6rem 1.1rem;
  }

  .airport-price-amount {
    font-size: 1.85rem;
  }

  .add-service-card {
    padding: 1.5rem 1.1rem;
  }

  /* Service Marquee Mobile Optimization */
  .service-marquee-section {
    padding: 0.8rem 0;
  }

  .marquee-keyword {
    font-size: 0.84rem;
    padding: 0 0.45rem;
  }

  .marquee-separator {
    padding: 0 0.3rem;
  }

  .marquee-separator svg {
    width: 10px;
    height: 10px;
  }
}
