/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    :root {
        --font-size-h1: 1.75rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.25rem;
        --font-size-h4: 1.125rem;
        --font-size-h5: 1rem;
        --font-size-h6: 0.875rem;
    }
    
    .hero-section {
        padding: 60px 0 40px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: var(--font-size-h1);
        margin-bottom: 0.75rem;
    }
    
    .hero-section h2 {
        font-size: var(--font-size-h3);
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: var(--font-size-base);
        margin-bottom: 1.5rem;
    }
    
    /* Disable autoplay and effects on mobile for Swiper */
    .swiper {
        --swiper-navigation-size: 0px;
    }
    
    .navbar-brand {
        font-size: var(--font-size-base) !important;
    }
    
    section {
        padding: 40px 0;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card img {
        height: 150px;
    }
    
    .blog-card img {
        height: 150px;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    .review-card {
        height: auto;
        min-height: 200px;
        padding: 1.5rem;
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .price-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 1.875rem;
    }
    
    .hero-section h2 {
        font-size: 1.375rem;
    }
    
    .service-card img {
        height: 180px;
    }
    
    .team-member img {
        width: 90px;
        height: 90px;
    }
    
    .review-card {
        height: 220px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 70px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .service-card img {
        height: 200px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .review-card {
        height: 240px;
    }
    
    /* Enable Swiper effects on tablets and above */
    .swiper {
        --swiper-navigation-size: 44px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        padding: 80px 0 0;
    }
    
    .hero-section h1 {
        font-size: var(--font-size-h1);
    }
    
    .hero-section h2 {
        font-size: var(--font-size-h3);
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .feature-item:hover {
        transform: translateY(-10px);
    }
    
    .price-card.featured {
        transform: scale(1.05);
    }
    
    .price-card.featured:hover {
        transform: scale(1.1) translateY(-10px);
    }
    
    .review-card {
        height: 250px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section .container {
        max-width: 1200px;
    }
    
    .service-card img {
        height: 220px;
    }
    
    .feature-card,
    .service-card,
    .price-card {
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section h2 {
        font-size: 1.625rem;
    }
}

/* High DPI / Retina Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('../FLA_images/hero-paintball.webp');
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 60px 0 30px;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 30px 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .swiper-pagination,
    .swiper-button-prev,
    .swiper-button-next,
    footer {
        display: none !important;
    }
    
    body {
  overflow-x: hidden;
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .hero-section {
        background: none;
        color: #000;
        padding: 20px 0;
    }
    
    .hero-section::before {
        display: none;
    }
    
    .service-card,
    .feature-card,
    .price-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .feature-card,
    .service-card,
    .price-card,
    .feature-item,
    .team-member,
    .review-card,
    .form-control,
    .btn-primary,
    .swiper {
        transition: none !important;
        animation: none !important;
    }
    
    .fade-in,
    .slide-in-left,
    .slide-in-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #000;
        --accent-color: #000;
        --neutral-color: #000;
        --text-light: #fff;
        --text-dark: #000;
        --bg-light: #fff;
        --bg-dark: #000;
    }
    
    .service-card,
    .feature-card,
    .price-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-light: #000;
        --text-dark: #fff;
        --bg-light: #2d3436;
        --bg-dark: #fff;
        --neutral-color: #ddd;
        --neutral-light: #bbb;
    }
    
    body {
  overflow-x: hidden;
        background-color: var(--neutral-dark);
        color: var(--text-dark);
    }
    
    .service-card,
    .feature-card,
    .price-card,
    .review-card {
        background: var(--neutral-dark);
        color: var(--text-dark);
    }
    
    .accordion-button {
        background: var(--neutral-dark);
        color: var(--text-dark);
    }
    
    .form-control {
        background: var(--neutral-dark);
        color: var(--text-dark);
        border-color: var(--neutral-light);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .feature-item:hover {
        transform: none;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .btn-primary {
        padding: 1rem 2rem;
        font-size: var(--font-size-lg);
    }
}

/* Focus Visible Support */
@supports selector(:focus-visible) {
    .btn:focus {
        outline: none;
    }
    
    .btn:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .form-control:focus {
        outline: none;
    }
    
    .form-control:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
} 