/* ===== FitMirror Responsive CSS ===== */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 250px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    /* Remove animations on mobile */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
    
    .card:hover,
    .feature-card:hover,
    .info-card:hover,
    .btn-primary:hover {
        transform: none;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-section {
        padding-top: 100px;
        min-height: 100vh;
    }
    
    /* Team member images */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Step numbers */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Contact form */
    .form-control {
        padding: 0.75rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        width: 100%;
    }
    
    /* Process section mobile layout */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Timeline mobile layout */
    .timeline-item {
        margin-bottom: 1rem;
    }
    
    /* Gallery spacing */
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        margin-bottom: 0.5rem;
    }
    
    /* Navbar brand size */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Card spacing */
    .card-body {
        padding: 1rem;
    }
    
    /* Feature card padding */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Pricing card spacing */
    .pricing-card.featured {
        transform: none;
        margin-bottom: 1rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 250px;
}
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.375rem;
    }
    
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Remove animations on mobile */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
    
    .card:hover,
    .feature-card:hover,
    .info-card:hover,
    .btn-primary:hover {
        transform: none;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.375rem;
    padding-top: 250px;
}
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    .step-number {
        width: 58px;
        height: 58px;
        font-size: 1.4375rem;
    }
    
    /* Enable subtle animations for tablets */
    .card {
        transition: transform 0.2s ease;
    }
    
    .card:hover {
        transform: translateY(-2px);
    }
    
    .feature-card {
        transition: transform 0.2s ease;
    }
    
    .feature-card:hover {
        transform: translateY(-2px);
    }
    
    .btn-primary {
        transition: background-color 0.2s ease;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 250px;
}
    
    /* Full animations enabled */
    .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }
    
    .feature-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }
    
    .btn-primary {
        transition: all 0.3s ease;
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 2.75rem;
    padding-top: 250px;
}
    
    .container {
        max-width: 1200px;
    }
    
    /* Enhanced animations for large screens */
    .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 20px rgba(0,0,0,0.15);
    }
    
    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 20px rgba(0,0,0,0.15);
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 250px;
}
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
}

/* Portrait tablets and small desktops */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-section {
        padding-top: 120px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Landscape tablets */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        padding-top: 80px;
        min-height: 90vh;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .team-member img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb-nav,
    footer,
    .btn,
    #gallery {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .card,
    .feature-card,
    .info-card {
        box-shadow: none;
        border: 1px solid #d6d6d6;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    section {
        page-break-inside: avoid;
        margin-bottom: 1in;
    }
}

/* Accessibility - Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card:hover,
    .feature-card:hover,
    .info-card:hover,
    .btn-primary:hover {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card,
    .feature-card,
    .info-card {
        border: 2px solid currentColor;
    }
    
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .form-control {
        border: 2px solid currentColor;
    }
}

/* Dark mode support */

/* Focus management for keyboard navigation */
@media (hover: none) and (pointer: coarse) {
    .card:hover,
    .feature-card:hover,
    .info-card:hover {
        transform: none;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Landscape phone specific adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding-top: 60px;
        min-height: 100vh;
    }
    
    .py-5 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .team-member img {
        width: 60px;
        height: 60px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .btn-primary {
        padding: 1rem 2rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    padding-top: 250px;
}
    
    .hero-section h2 {
        font-size: 2rem;
    }
}

/* Small height screens */
@media (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    
    .py-5 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
} 