/* FitForce Boot Camp - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 2rem !important;
    }
    
    .h1, h1 {
        font-size: 1.8rem !important;
    }
    
    .h2, h2 {
        font-size: 1.5rem !important;
    }
    
    .h3, h3 {
        font-size: 1.3rem !important;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 4rem 0 !important;
        min-height: 80vh !important;
    }
    
    /* Sections */
    section {
        padding: 3rem 0 !important;
    }
    
    /* Cards */
    .service-card,
    .feature-card,
    .price-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team Grid */
    .col-lg-2 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.5rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Gallery */
    #gallery img {
        height: 200px;
    }
    
    /* FAQ */
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    /* Contact Form */
    .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    /* Footer */
    footer .col-md-4 {
        margin-bottom: 2rem !important;
    }
    
    /* Hide Swiper on Mobile for reduced motion */
    .swiper-pagination {
        display: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section {
        padding: 5rem 0;
        min-height: 85vh;
    }
    
    /* Team Grid */
    .col-lg-2 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Gallery */
    #gallery img {
        height: 220px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 90vh;
    }
    
    /* Services */
    .service-card img {
        height: 180px;
    }
    
    /* Team Grid */
    .col-lg-2 {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }
    
    /* Gallery */
    #gallery img {
        height: 240px;
    }
    
    /* Process Steps on Tablet */
    .process-step {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Fixed Navigation on Desktop */
    .navbar.fixed-top {
        backdrop-filter: blur(10px);
        background: rgba(44, 62, 80, 0.95) !important;
    }
    
    /* Hover Effects for Desktop */
    .navbar-nav .nav-link:hover {
        transform: translateY(-2px);
    }
    
    /* Enhanced Card Hovers */
    .service-card:hover,
    .feature-card:hover,
    .price-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }
    
    /* Team Member Hover */
    .team-member:hover img {
        transform: scale(1.1);
    }
    
    /* Gallery Grid Enhancement */
    #gallery .col-md-4:nth-child(even) img {
        transform: translateY(20px);
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container Max Width */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced Typography */
    .display-4 {
        font-size: 3.5rem !important;
    }
    
    /* Hero Section Enhancement */
    .hero-section .row {
        align-items: center;
        min-height: 100vh;
    }
    
    /* Service Cards Layout */
    .service-card {
        max-width: 100%;
    }
    
    /* Enhanced Gallery */
    #gallery img {
        height: 300px;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Larger sections padding */
    section {
        padding: 6rem 0;
    }
    
    /* Enhanced Hero */
    .hero-section {
        background-attachment: fixed;
    }
}

/* Mobile Landscape Orientation */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh !important;
        padding: 2rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    section {
        padding: 2rem 0 !important;
    }
    
    .navbar-collapse {
        background: rgba(44, 62, 80, 0.95);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .blog-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-nav .nav-link {
  font-size: 10px !important;
        padding: 1rem 1.5rem;
    }
    
    /* Disable Swiper autoplay and effects on mobile */
    .swiper {
        --swiper-navigation-size: 24px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper images for retina displays */
    .hero-section::before {
        background-image: url('../WEA_images/hero-bg@2x.webp');
    }
    
    /* Crisp icons */
    .fa-2x {
        font-size: 1.8em !important;
    }
    
    .fa-3x {
        font-size: 2.8em !important;
    }
}



/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable animations for users who prefer reduced motion */
    .hero-section {
        background-attachment: scroll;
    }
    
    .swiper {
        --swiper-transition-duration: 0ms;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
    
    /* Remove all transforms and transitions */
    * {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
    
    /* Keep essential focus indicators */
    .btn:focus,
    .form-control:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Print Specific Responsive */
@media print {
    /* Optimize for printing */
    .container {
        max-width: none !important;
        width: 100% !important;
    }
    
    .col-md-4,
    .col-lg-3,
    .col-lg-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .row {
        break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Accessibility Enhancements */
@media (prefers-contrast: high) {
    /* High contrast mode adjustments */
    .btn-primary {
        background: #000 !important;
        border-color: #000 !important;
        color: #fff !important;
    }
    
    .text-primary {
        color: #000 !important;
    }
    
    .border {
        border-color: #000 !important;
        border-width: 2px !important;
    }
}

/* Focus Management for Keyboard Navigation */
@media (any-hover: none) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 3px;
    }
}

/* Flexible Grid System Enhancement */
@media (min-width: 576px) {
    .row-cols-sm-auto > * {
        flex: 0 0 auto;
        width: auto;
    }
}

@media (min-width: 768px) {
    .row-cols-md-auto > * {
        flex: 0 0 auto;
        width: auto;
    }
}

@media (min-width: 992px) {
    .row-cols-lg-auto > * {
        flex: 0 0 auto;
        width: auto;
    }
}

/* Container Queries Support (Progressive Enhancement) */
@supports (container-type: inline-size) {
    .service-card {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .service-card img {
            height: 150px;
        }
        
        .service-card .h5 {
            font-size: 1rem;
        }
    }
} 