/* Additional responsive fixes for PWA */

/* Hero section fixes for better responsiveness */
.hero {
    min-height: auto !important; /* Remove fixed height that causes overflow */
    padding: 100px 0 60px !important; /* Reduce padding on mobile */
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 40px !important;
    }

    .hero-content {
        width: 100%;
        overflow: hidden;
    }

    .hero-image {
        width: 100%;
        height: auto;
        margin-bottom: 2rem;
    }
    
    .hero-img {
        height: auto !important; /* Override fixed height */
        max-height: 300px;
        width: 100%;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important; /* Force 3 columns on all screens */
        gap: 1rem !important;
    }
    
    .stat-item {
        padding: 1rem !important;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .stat-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 70px 0 30px !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-stats {
        margin-top: 2rem !important;
    }
    
    .stat-item {
        padding: 0.75rem !important;
    }
    
    .stat-item h3 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem !important;
    }
    
    .stat-item p {
        font-size: 0.8rem;
        margin-bottom: 0 !important;
    }
}

/* PWA specific fixes for iOS and Android */
@media screen and (display-mode: standalone) {
    .hero {
        padding-top: 120px !important; /* Add more padding for PWA mode to account for status bar */
    }
    
    .header {
        padding-top: env(safe-area-inset-top) !important; /* iOS safe area support */
        height: auto !important;
    }
    
    body {
        overflow-x: hidden !important;
        width: 100vw !important;
    }
}

/* Fix horizontal overflow issues */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
