/* assets/css/responsive.css - MAJOR MOBILE IMPROVEMENTS */

/* Mobile First - Complete Overhaul */
@media (max-width: 768px) {
    /* ===== HERO SECTION FIXES ===== */
    .relative.min-h-screen {
        min-height: 100vh !important;
        padding-top: 70px !important;
        padding-bottom: 2rem !important;
    }
    
    /* Fix carousel - much better proportions */
    .carousel-container {
        height: 60vh !important;
        max-height: 400px !important;
        margin: 0.5rem !important;
    }
    
    /* Hero text - perfect mobile sizing */
    .carousel-slide h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    
    .carousel-slide p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }
    
    /* Center everything on mobile */
    .carousel-slide .absolute.inset-0.flex.items-center .max-w-2xl {
        margin: 0 auto !important;
        text-align: center !important;
        padding: 0 1rem !important;
    }
    
    /* Better hero buttons */
    .carousel-slide .flex a, 
    .carousel-slide .flex button {
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
        margin: 0.3rem !important;
        min-height: 48px !important;
        width: 100% !important;
        max-width: 200px !important;
    }
    
    .carousel-slide .flex {
        justify-content: center !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* Hide carousel arrows on mobile */
    .carousel-prev, .carousel-next {
        display: none !important;
    }
    
    /* Better carousel dots */
    .carousel-dot {
        width: 8px !important;
        height: 8px !important;
    }
    
    /* ===== PARTNERSHIP SECTION ===== */
    .partnership-section .flex {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }
    
    /* ===== STATS SECTION ===== */
    .stats-section .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        padding: 1rem !important;
    }
    
    .stats-section .text-3xl {
        font-size: 1.8rem !important;
        font-weight: 800 !important;
    }
    
    .stats-section .text-sm {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    /* ===== FEATURES SECTION ===== */
    .features-section .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 0.5rem !important;
    }
    
    .features-section .text-3xl {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .features-section .text-lg {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    /* Feature cards mobile optimization */
    .features-section .bg-gradient-to-br {
        padding: 1.5rem !important;
        margin: 0.5rem !important;
    }
    
    .features-section .w-16 {
        width: 50px !important;
        height: 50px !important;
    }
    
    .features-section .text-xl {
        font-size: 1.2rem !important;
    }
    
    /* ===== HOW IT WORKS SECTION ===== */
    .steps-section .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem !important;
    }
    
    .steps-section .w-16 {
        width: 70px !important;
        height: 70px !important;
    }
    
    .steps-section .text-lg {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }
    
    .steps-section .text-sm {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    /* Step numbers */
    .steps-section .absolute {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9rem !important;
    }
    
    /* ===== CTA SECTION ===== */
    .cta-section .flex {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .cta-section a {
        width: 100% !important;
        margin-bottom: 0 !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .cta-section .text-3xl {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    .cta-section .text-lg {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
    
    /* ===== FOOTER ===== */
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    footer .flex.items-center {
        justify-content: center !important;
    }
    
    footer .flex.space-x-3 {
        justify-content: center !important;
    }
    
    /* ===== GENERAL IMPROVEMENTS ===== */
    
    /* Better section spacing */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Better container padding */
    .max-w-7xl.mx-auto.px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Improve text readability */
    body {
        font-size: 16px !important; /* Prevent zoom on iOS */
        line-height: 1.5 !important;
    }
    
    /* Better images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix partnership banner positioning */
    .absolute.top-4 {
        top: 80px !important;
        width: 90% !important;
    }
    
    .bg-white\\/90 {
        padding: 0.5rem 1rem !important;
    }
}

/* ===== SMALL PHONES (iPhone SE etc.) ===== */
@media (max-width: 380px) {
    .carousel-container {
        height: 50vh !important;
        max-height: 350px !important;
    }
    
    .carousel-slide h1 {
        font-size: 1.5rem !important;
    }
    
    .carousel-slide p {
        font-size: 0.8rem !important;
    }
    
    .stats-section .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .features-section .bg-gradient-to-br {
        padding: 1rem !important;
        margin: 0.25rem !important;
    }
}

/* ===== TABLET OPTIMIZATIONS ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-container {
        height: 500px !important;
    }
    
    .features-section .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .steps-section .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===== TOUCH DEVICE ENHANCEMENTS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets */
    .btn, a, button {
        min-height: 44px !important;
        min-width: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Remove hover effects on touch devices */
    .hover-lift:hover,
    .hover\\:scale-105:hover,
    .group:hover .transform {
        transform: none !important;
    }
    
    /* Add active states for touch feedback */
    .btn:active, 
    a:active, 
    button:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* Mobile menu active state */
    #mobileMenuButton:active {
        background-color: #e5e7eb !important;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
/* Better focus states */
button:focus, 
a:focus, 
input:focus, 
select:focus {
    outline: 2px solid #dc2626 !important;
    outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000 !important;
    }
    
    .text-gray-400 {
        color: #333 !important;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== MOBILE MENU ENHANCEMENTS ===== */
#mobileMenu {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    max-height: calc(100vh - 70px) !important;
    overflow-y: auto !important;
}

#mobileMenuButton {
    transition: all 0.3s ease !important;
}

/* Smooth scrolling for mobile */
html {
    scroll-behavior: smooth !important;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden !important;
    width: 100% !important;
}