/* 
 * KlickWay Athletics - Responsive Stylesheet
 * This stylesheet contains all the responsive styles for different screen sizes
 */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content,
    .contest-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-image,
    .contest-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-text,
    .contest-text {
        text-align: center;
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .hero, .hero-main {
        min-height: 80vh;
        height: auto;
        padding: 200px 0 80px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    /* No spacing for Six Core Pillars on mobile */
    .fitness-components {
        padding-top: 0 !important;
        margin-top: 0 !important;
        transform: none !important;
        will-change: auto !important;
    }
    
    .section-description {
        font-size: 1rem;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero, .hero-main {
        min-height: 70vh;
        height: auto;
        padding: 80px 0 60px 0;
    }
    
    .hero-content {
        height: auto !important;
    }
    
    .hero-grid {
        height: auto !important;
        display: block !important;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-text {
        font-size: 0.9rem;
    }
    
    /* Ensure form is fully accessible on mobile */
    .hero-form {
        margin-top: 2rem;
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }

    .form-card {
        margin-bottom: 2rem;
    }

    .btn-submit {
        min-height: 48px;
        margin-top: 1rem;
        font-size: 1.1rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(224, 31, 38, 0.3);
    }

    /* Ensure all interactive elements have proper touch targets */
    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .form-card {
        max-height: none !important;
    }
    
    /* Let Core Pillars section display normally */
    
    /* Ensure the entire body is scrollable */
    body {
        overflow-x: hidden;
        overflow-y: auto !important;
        height: auto !important;
    }
    
    html {
        overflow-y: auto !important;
        height: auto !important;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-title,
    .feature-title {
        font-size: 1.3rem;
    }
    
    .service-description,
    .feature-description {
        font-size: 0.9rem;
    }
    
    .accordion-header {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .accordion-item.active .accordion-content {
        padding: 0 1rem 1rem;
    }
    
    .accordion-content p {
        font-size: 0.9rem;
    }
    
    .form-group input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .form-disclaimer {
        font-size: 0.7rem;
    }
    
    .footer-info {
        font-size: 0.8rem;
    }
}

/* Fix for very small devices */
@media (max-width: 359.98px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Enhancements for larger screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Portrait orientation fixes for mobile */
@media (orientation: portrait) and (max-width: 768px) {
    .hero, .hero-main {
        min-height: 75vh;
        height: auto;
        overflow: visible !important;
    }

    .hero-grid {
        display: block !important;
        height: auto !important;
    }

    body, html {
        height: auto !important;
        overflow-y: auto !important;
    }
}

/* Landscape orientation fixes for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 450px;
        height: auto;
        padding: 100px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-text {
        margin-bottom: 1.5rem;
    }
}
