/**
 * NFTT World - Responsive CSS
 * Tablet, mobile layouts, bottom sheet transitions, and prefers-reduced-motion
 */

/* ==========================================================================
   1. Laptop & Large Tablet (max-width: 1200px)
   ========================================================================== */
@media (max-width: 1366px) {
  .main-navigation .nav-menu {
    gap: 0.95rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .action-btn {
    padding: 0.48rem 0.85rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 1200px) {
  .main-navigation .nav-menu {
    gap: 0.75rem;
  }

  .call-header-btn .btn-label {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .footer-col.contact-col {
    grid-column: span 4;
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 2rem;
  }

  .differentiator-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .destination-preview-card {
    right: 2rem;
    width: 360px;
  }
}

/* ==========================================================================
   2. Tablet View (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
  /* Navigation */
  .main-navigation,
  .action-btn.call-header-btn,
  .action-btn.call-btn {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Category Grid */
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .category-card {
    height: 380px;
  }

  /* Tour & Departures Grid */
  .featured-tours-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .departures-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

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

  .destination-preview-card {
    right: 1.5rem;
    width: 280px;
  }

  .hero-globe-bg-mount,
  .nftt-globe-mount {
    width: 100%;
    opacity: 0.55;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .hero-editorial-backdrop {
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 50%, rgba(255, 255, 255, 0.70) 100%);
  }

  .hero-main-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-preview-slot {
    min-height: auto;
  }

  .hero-two-col-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-editorial-col {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .hero-subtitle {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-trust-strip {
    justify-content: center;
  }

  .culinary-split-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

/* ==========================================================================
   3. Mobile View (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Show Mobile Sticky Quick Action Bar */
  .mobile-sticky-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .sticky-action-btn {
    flex: 1;
    min-width: 0;
  }

  .nftt-back-to-top {
    bottom: 75px !important;
    right: 15px !important;
    z-index: 995 !important;
  }

  body {
    padding-bottom: 58px; /* space for sticky bar */
  }

  .site-header {
    padding: 0.85rem 0;
  }

  .site-header.scrolled {
    padding: 0.65rem 0;
  }

  /* Hero Section Mobile Adaptation */
  .hero-globe-section {
    min-height: auto;
    height: auto;
    padding: 2.5rem 0 2rem;
  }

  .hero-title {
    font-size: 2.1rem;
    margin-bottom: 0.85rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }

  .hero-cta-group .btn-nftt {
    width: 100%;
  }

  .globe-header-toolbar,
  .globe-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .globe-category-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    gap: 0.85rem;
  }

  .globe-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .globe-secondary-controls {
    justify-content: space-between;
  }

  .globe-natural-mount,
  .globe-canvas-wrapper,
  .hero-globe-bg-mount,
  .nftt-globe-mount {
    height: 360px;
  }

  .globe-bottom-caption {
    display: none; /* remove clutter on mobile */
  }

  /* Destination Preview as True Mobile Bottom Sheet */
  .destination-preview-card {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 75vh;
    overflow-y: auto;
    transform: translateY(105%);
    margin: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 -10px 30px rgba(17, 26, 70, 0.12);
    padding-bottom: calc(58px + 1rem); /* avoid sticky bar overlap */
    z-index: 1001;
  }

  .destination-preview-card.active {
    transform: translateY(0);
  }

  .sheet-drag-bar {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 0.25rem;
  }

  .sheet-pill {
    width: 36px;
    height: 4px;
    background: var(--color-border);
    border-radius: 99px;
  }

  .dp-media {
    height: 140px;
  }

  .dp-body {
    padding: 1.25rem;
  }

  .dp-title {
    font-size: 1.35rem;
  }

  /* Single Column Below-the-fold Grids */
  .featured-tours-grid,
  .departures-grid,
  .differentiator-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-categories,
  .section-culinary-promise,
  .section-differentiators,
  .section-featured-tours,
  .section-departures,
  .section-dest-directory,
  .section-faq,
  .section-cta {
    padding: 4.5rem 0;
  }

  .purity-pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .culinary-visual-card {
    padding: 2rem 1.5rem;
  }

  .search-input-wrap {
    width: 100% !important;
  }

  .search-input-wrap .search-input {
    width: 100% !important;
  }

  .search-dropdown {
    width: 100% !important;
  }

  .promo-flex {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    text-align: center;
  }

  .exit-form-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .inquiry-form .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .result-highlights-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .trip-wizard-card,
  .wizard-result-box {
    padding: 1.5rem 1.25rem !important;
  }

  .custom-sangh-banner {
    padding: 1.5rem 1.25rem !important;
  }

  .pdf-modal-container,
  .emi-modal-container,
  .exit-modal-card {
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .section-intro-split {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .tours-filter-bar {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tours-filter-bar::-webkit-scrollbar {
    display: none;
  }

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

  .footer-col.contact-col {
    grid-column: auto;
    padding-top: 0;
    border-top: none;
  }

  .bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .legal-links {
    justify-content: center;
  }
}

/* ==========================================================================
   4. Ultra-Small Mobile (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .site-container {
    padding: 0 1rem;
  }

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

  .btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 0.875rem;
  }

  .cta-title {
    font-size: 2.1rem;
  }

  .culinary-guarantee-strip {
    grid-template-columns: 1fr !important;
  }

  .visual-stat-row {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   5. Accessibility: Respect prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .preloader-ring-outer,
  .preloader-orbit,
  .btn-glow,
  .hint-pulse {
    animation: none !important;
  }

  .category-card:hover,
  .tour-card:hover,
  .diff-card:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   6. Responsive Layout for 52 Updates (Milestones, Reviews, Wizard, Modals)
   ========================================================================== */
@media (max-width: 992px) {
  .stats-milestone-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .customer-reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

  .culinary-guarantee-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .panel-layout-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .maharaj-team-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .wizard-options-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .seasonal-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .senior-care-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

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

  .transparency-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

@media (max-width: 768px) {
  .stats-milestone-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .video-reel-grid {
    grid-template-columns: 1fr;
  }

  .wall-of-love-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .wall-item-lg {
    grid-column: span 2;
    grid-row: span 1;
  }

  .culinary-guarantee-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .seasonal-cards-grid {
    grid-template-columns: 1fr;
  }

  .senior-care-cards-grid {
    grid-template-columns: 1fr;
  }

  .care-reassurance-box,
  .ashirwad-card,
  .sangh-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

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

  .itinerary-modal-container {
    width: 96vw;
    max-height: 94vh;
    border-radius: 14px;
  }

  .modal-action-banner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .nftt-callback-dock {
    bottom: 75px;
    right: 15px;
    z-index: 9990;
  }

  .callback-dock-card {
    width: min(340px, calc(100vw - 30px));
    right: 0;
  }
}

