/* Responsive CSS - Mobile Optimizations */

/* Mobile-First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    /* No animations on mobile */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Typography adjustments */
    .display-5 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.28rem;
    }
    
    h1, .h1 {
        font-size: 1.81rem;
    }
    
    h2, .h2 {
        font-size: 1.65rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 80vh;
        padding-top: 100px;
    }
    
    #hero .container {
        padding: 0 15px;
    }
    
    /* Navbar mobile */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Cards mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Services grid mobile */
    #services .col-md-6,
    #services .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Team section mobile */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form mobile */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Button sizing */
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    /* Gallery mobile */
    #gallery .col-md-4,
    #gallery .col-lg-3 {
        margin-bottom: 0.58rem;
    }
    
    /* Footer mobile */
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 1.71rem;
        text-align: center;
    }
    
    /* Process steps mobile */
    .process-step::after {
        display: none;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero {
        min-height: 85vh;
    }
    
    /* Services grid */
    #services .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Team grid */
    .team-member {
        margin-bottom: 1.68rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Pricing cards */
    #priceplan .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Services grid */
    #services .col-lg-4:nth-child(3n+1) {
        clear: left;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
    /* Hero full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Container max-width adjustment */
    .container {
        max-width: 1140px;
    }
    
    /* Services hover effects (desktop only) */
    #services .card:hover {
        transform: translateY(-8px);
    }
    
    /* Team hover effects */
    .team-member:hover img {
        transform: scale(1.05);
    }
}

/* Extra extra large devices (extra large desktops, 1400px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    /* Hero spacing */
    #hero .container {
        padding: 0 50px;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    #gallery {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
}

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

/* Accessibility - Large text preferences */
@media (prefers-reduced-data: reduce) {
    /* Disable background images for low data usage */
    #hero::before {
        background: none;
    }
}

/* Dark mode support */

/* Reduced motion - reinforce mobile no-animation rule */
@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;
    }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    .card:hover {
        transform: none;
    }
    
    .team-member:hover img {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
} 