/* Responsive CSS - Mobile First Approach */

/* Base Mobile Styles (default) */
/* Already covered in main.css */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .navbar-brand {
        font-size: 1.58rem;
    }
    
    h1, .h1 {
        font-size: 2.88rem;
    }
    
    h2, .h2 {
        font-size: 2.30rem;
    }
    
    .lead {
        font-size: 1.52rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .navbar-brand {
        font-size: 1.68rem;
    }
    
    h1, .h1 {
        font-size: 3rem;
    }
    
    h2, .h2 {
        font-size: 2.73rem;
    }
    
    h3, .h3 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.50rem;
    }
    
    /* Hero section adjustments */
    #hero {
        min-height: 100vh;
    }
    
    /* Card hover effects enabled on tablets and up */
    .card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
    }
    
    /* Team member images */
    #team img {
        width: 180px;
        height: 180px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar-brand {
        font-size: 1.72rem;
    }
    
    h1, .h1 {
        font-size: 3.69rem;
    }
    
    h2, .h2 {
        font-size: 2.89rem;
    }
    
    h3, .h3 {
        font-size: 2.44rem;
    }
    
    .lead {
        font-size: 1.68rem;
    }
    
    /* Enhanced spacing for larger screens */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Team member images */
    #team img {
        width: 200px;
        height: 200px;
    }
    
    /* Gallery hover effects */
    #gallery img:hover {
        transform: scale(1.08);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .navbar-brand {
        font-size: 1.92rem;
    }
    
    h1, .h1 {
        font-size: 4rem;
    }
    
    h2, .h2 {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1.77rem;
    }
    
    /* Maximum spacing for very large screens */
    .py-5 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Mobile-specific styles (up to 767px) */
@media (max-width: 767.98px) {
    /* Disable animations on mobile as per requirements */
    .card:hover,
    .btn:hover,
    .btn:focus,
    #team img:hover,
    #gallery img:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    /* Mobile typography adjustments */
    .navbar-brand {
        font-size: 1.34rem;
    }
    
    h1, .h1 {
        font-size: 2.42rem;
        line-height: 1.1;
    }
    
    h2, .h2 {
        font-size: 2.03rem;
        line-height: 1.2;
    }
    
    h3, .h3 {
        font-size: 1.78rem;
    }
    
    h4, .h4 {
        font-size: 1.54rem;
    }
    
    h5, .h5 {
        font-size: 1.33rem;
    }
    
    .lead {
        font-size: 1.35rem;
    }
    
    /* Mobile spacing adjustments */
    .py-5 {
        padding-top: 2.69rem;
        padding-bottom: 2.90rem;
    }
    
    /* Mobile button sizing */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
    }
    
    /* Mobile card adjustments */
    .card-img-top {
        height: 180px;
    }
    
    /* Mobile form adjustments */
    .form-control {
        padding: 0.625rem 0.875rem;
    }
    
    /* Mobile team images */
    #team img {
        width: 150px;
        height: 150px;
    }
    
    /* Mobile navbar */
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Mobile hero section */
    #hero {
        min-height: 80vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Mobile gallery grid */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Mobile pricing cards */
    .card.border-primary .position-absolute {
        position: static !important;
        transform: none !important;
        margin-bottom: 1rem;
    }
    
    /* Mobile testimonials */
    .card-body .d-flex.align-items-center img {
        width: 40px;
        height: 40px;
    }
    
    /* Mobile contact info */
    #contact .row.g-4.mt-4 .col-md-4 {
        margin-bottom: 1.67rem;
    }
}

/* Tablet-specific styles (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Tablet-optimized card grid */
    .col-md-6 .card {
        min-height: 350px;
    }
    
    /* Tablet team layout */
    #team .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Tablet services grid */
    #services .col-md-6 .card {
        min-height: 400px;
    }
    
    /* Tablet hero adjustments */
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
}

/* Landscape phone styles */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 70vh;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.89rem;
    }
}

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

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover,
    #team img:hover,
    #gallery img:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
    
    .card:hover,
    .btn:hover,
    .btn:focus,
    #team img:hover,
    #gallery img:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    #gallery,
    footer,
    .breadcrumb {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black !important;
        background: white !important;
    overflow-x: hidden;
}
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    .card {
        border: 1px solid black !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    .py-5 {
        padding: 1rem 0 !important;
    }
    
    .text-primary,
    .text-success,
    .text-muted {
        color: black !important;
    }
    
    .bg-light,
    .bg-primary {
        background: white !important;
        color: black !important;
    }
}

/* Dark mode support (if system preference) */

/* Accessibility improvements */
@media (prefers-contrast: high) {
    /* High contrast mode adjustments */
    .card {
        border-width: 2px !important;
        border-color: #000 !important;
    }
    
    .btn-primary {
        background-color: #461cff !important;
        border-color: #160aff !important;
    }
    
    .btn-outline-primary {
        color: #162be2 !important;
        border-color: #0500e8 !important;
    }
    
    .text-primary {
        color: #1100ff !important;
    }
    
    .text-muted {
        color: #201f1f !important;
    }
}

/* Focus management for keyboard navigation */
@media (hover: none) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1, .h1 {
        font-size: 2.00rem;
    }
    
    h2, .h2 {
        font-size: 1.70rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1.10rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    #team img {
        width: 120px;
        height: 120px;
    }
}

/* Landscape tablet styles */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    #hero {
        min-height: 85vh;
    }
    
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
} 