/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .display-5 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    /* No animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
    
    /* Container adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Section spacing */
    section {
        padding: 40px 0;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    #hero .row {
        text-align: center;
    }
    
    #hero img {
        margin-top: 2rem;
        max-width: 100%;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 0;
        text-align: center;
    }
    
    /* Cards mobile layout */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    /* Team section mobile */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Footer mobile */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery mobile */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Process steps mobile */
    .process-step {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    /* Statistics mobile */
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Price cards mobile */
    .price-card {
        margin-bottom: 2rem;
    }
    
    .price-card.featured {
        transform: none;
        border: 2px solid var(--primary-color);
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    .display-5 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    /* No animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Section spacing */
    section {
        padding: 50px 0;
    }
    
    /* Hero adjustments */
    #hero {
        padding: 70px 0;
    }
    
    /* Cards */
    .card-body {
        padding: 2rem;
    }
    
    /* Team images */
    .team-member img {
        width: 130px;
        height: 130px;
    }
    
    /* Buttons */
    .btn-lg {
        width: auto;
        display: inline-block;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    .display-5 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    /* Section spacing */
    section {
        padding: 60px 0;
    }
    
    /* Hero section */
    #hero {
        padding: 80px 0;
    }
    
    /* Navigation */
    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }
    
    /* Cards in grid */
    .card {
        height: 100%;
    }
    
    /* Team section */
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    /* Process steps */
    .process-step {
        height: 100%;
    }
    
    /* Footer columns */
    #footer .row > div {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full desktop features enabled */
    .container {
        max-width: 960px;
    }
    
    /* Section spacing */
    section {
        padding: 80px 0;
    }
    
    /* Hero full height */
    #hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    /* Typography full size */
    .display-5 {
        font-size: 2.5rem;
    }
    
    /* Team images full size */
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    /* Cards with hover effects */
    .card:hover {
        transform: translateY(-5px);
    }
    
    /* Price card featured */
    .price-card.featured {
        transform: scale(1.05);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    /* Full spacing */
    section {
        padding: 100px 0;
    }
    
    /* Hero section full */
    #hero {
        min-height: 100vh;
    }
    
    /* Typography enhanced */
    .display-5 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    /* Enhanced animations */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    section {
        padding: 40px 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

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

/* Print media queries */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    #footer,
    .gallery-item::before,
    .gallery-item::after {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card:hover,
    .btn:hover,
    .team-member:hover,
    .process-step:hover {
        transform: none !important;
    }
}

/* Dark mode support */

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    .card:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none;
        background-color: initial;
    }
}

/* Touch device optimizations */
@media (any-pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    .nav-link {
        padding: 12px 16px;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Container queries for modern browsers */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .card-body {
            padding: 1rem;
        }
        
        .card-title {
            font-size: 1rem;
        }
    }
}

/* Flexbox fallbacks for older browsers */
@supports not (display: flex) {
    .d-flex {
        display: block;
    }
    
    .justify-content-center {
        text-align: center;
    }
    
    .align-items-center {
        vertical-align: middle;
    }
} 