/* ==========================================================================
   SKANDHA TOURS & TRAVELS RESPONSIVE GRID LAYOUTS
   ========================================================================== */

/* 1. LARGE DESKTOPS AND TV SCREENS (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* 2. LAPTOPS AND STANDARD MONITORS (1025px - 1399px) */
@media (max-width: 1399px) {
    .container {
        max-width: 1140px;
        padding: 0 30px;
    }
    
    .section-title {
        font-size: 2.75rem;
    }
    
    .nav-menu {
        gap: 25px;
    }
}

/* 3. TABLETS AND SMALL LAPTOPS (769px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px 0;
    }
    
    .container {
        max-width: 960px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    /* Header menu adaptations */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: rgba(5, 11, 20, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--color-gold-dim);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 60px 40px;
        gap: 30px;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* When active, transform hamburger lines */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background: var(--color-gold);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background: var(--color-gold);
    }
    
    .nav-cta {
        display: none; /* Relocate inside mobile menu or hide */
    }
    
    .nav-menu .nav-cta {
        display: block;
        margin-top: 20px;
        width: 100%;
    }
    
    .nav-menu .nav-cta .btn {
        width: 100%;
    }
    
    /* Grid adjustments */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .prestige-banner .section-title {
        font-size: 2.75rem;
    }

    /* Grid & Refactored Component Mobile Adapters */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 20px !important;
    }

    .destinations-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .destinations-grid .dest-card {
        grid-column: span 2 !important;
    }

    .corporate-grid {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }

    /* Swipeable Fleet track on mobile viewports */
    .horizontal-scroll-container {
        padding: 60px 0 !important;
        overflow: hidden !important;
    }
    .horizontal-scroll-grid {
        width: auto !important;
        max-width: 100vw !important;
        overflow-x: auto !important;
        padding: 20px 24px !important;
        gap: 20px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    .horizontal-scroll-grid::-webkit-scrollbar {
        display: none !important;
    }
    .fleet-card {
        width: 300px !important;
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
    }

    .tour-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        margin-bottom: 80px !important;
    }

    .specialty-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }

    .fleet-showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 30px !important;
    }

    .aviation-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        margin-bottom: 60px !important;
    }

    .story-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .operations-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

/* 4. LANDSCAPE MOBILE AND SMALL TABLETS (481px - 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .container {
        padding: 0 24px;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .trust-wrapper {
        justify-content: center;
        gap: 20px 40px;
    }
    
    .trust-item {
        flex: 0 1 40%;
        justify-content: center;
    }
    
    /* Floating button sizing */
    .whatsapp-float {
        bottom: 25px;
        right: 25px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    /* Responsive grid cards & corporate visual height adapters */
    .destinations-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .destinations-grid .dest-card {
        grid-column: span 1 !important;
        height: 250px !important;
    }

    .corporate-visual {
        height: 350px !important;
    }
}

/* 5. PORTRAIT MOBILE PHONES (Up to 480px) */
@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 1.85rem;
        line-height: 1.3;
    }
    
    .logo img {
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-text span {
        font-size: 0.6rem;
    }
    
    .nav-menu {
        width: 100%;
    }
    
    .trust-item {
        flex: 0 1 100%;
        justify-content: flex-start;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-about p {
        padding-right: 0;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        gap: 20px;
    }
    
    /* Clean touch highlights */
    .glass-card {
        padding: 25px;
    }
    
    .prestige-banner .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.75rem;
    }

    /* Glass card card dimensions inside mobile heights */
    .corporate-visual .glass-card {
        bottom: 15px !important;
        left: 15px !important;
        right: 15px !important;
        padding: 15px !important;
    }
    .corporate-visual .glass-card h4 {
        font-size: 0.95rem !important;
    }
    .corporate-visual .glass-card p {
        font-size: 0.75rem !important;
    }
}

/* 6. DISABLE CURSOR EFFECT ON TOUCH DEVICES */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
    }
}
