/* ========================================
   RESPONSIVE CSS - Mobile First Approach
   No animations on mobile per requirements
   ======================================== */

/* Base Mobile Styles (320px and up) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    .navbar-brand {
        font-size: 1.34rem !important;
    }
    
    .display-4 {
        font-size: 1.63rem !important;
        line-height: 1.3;
    }
    
    h1, .h1 {
        font-size: 1.59rem !important;
    }
    
    h2, .h2 {
        font-size: 1.50rem !important;
    }
    
    h3, .h3 {
        font-size: 1.32rem !important;
    }
    
    .lead {
        font-size: 1.06rem !important;
    }
    
    /* Section padding reduction for mobile */
    section {
        padding: 2rem 0 !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Hero section mobile adjustments */
    #hero {
        min-height: 80vh;
        padding-top: 4rem;
    }
    
    #hero .container {
        text-align: center;
    }
    
    #hero .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Card spacing mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Form adjustments */
    .form-control {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 1.08rem;
    }
    
    /* Gallery grid mobile */
    #gallery .col-sm-6 {
        margin-bottom: 0.63rem;
    }
    
    /* Team section mobile */
    .team-image,
    img[style*="120px"] {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Navigation mobile */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid #dce5f4;
        padding-top: 1rem;
    }
    
    /* Footer mobile */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer .row.align-items-center .col-md-6 {
        text-align: center !important;
    }
    
    /* Contact info mobile */
    #contacts .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    #contacts .fa-2x {
        margin-bottom: 0.56rem;
        margin-right: 0 !important;
    }
    
    /* Services cards mobile spacing */
    #services .card {
        margin-bottom: 1.67rem;
    }
    
    /* Process steps mobile */
    #process .col-lg-2 {
        margin-bottom: 1.57rem;
    }
    
    /* FAQ mobile */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* No animations on mobile per requirements */
    .card:hover {
        transform: none !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
    
    .fa:hover {
        transform: none !important;
    }
    
    /* Remove hover effects on mobile */
    .team-image:hover {
        border-color: #ffe8d2 !important;
    }
    
    /* Mobile-specific utility classes */
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 1.88rem;
    }
    
    h1, .h1 {
        font-size: 1.86rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-sm-6 {
        margin-bottom: 1rem;
    }
    
    /* Team layout */
    .team-image,
    img[style*="120px"] {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Services grid adjustment */
    #services .col-lg-4 {
        margin-bottom: 1.63rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.43rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 90vh;
    }
    
    /* Card grid spacing */
    .card {
        margin-bottom: 2rem;
    }
    
    /* Process steps */
    #process .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Team layout optimization */
    .team-image,
    img[style*="120px"] {
        width: 110px !important;
        height: 110px !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full desktop features enabled */
    .navbar-brand {
        font-size: 1.60rem;
    }
    
    /* Team images standard size */
    .team-image,
    img[style*="120px"] {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Hover effects enabled on desktop */
    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
    
    .fa:hover {
        transform: scale(1.1);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Optimal desktop experience */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing on large screens */
    section {
        padding: 4rem 0;
    }
    
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Gallery enhanced spacing */
    #gallery .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Hero section full height */
    #hero {
        min-height: 100vh;
    }
}

/* High DPI / Retina Display Support */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    
    /* Crisp borders and shadows for high-DPI */
    .card {
        border-width: 0.5px;
    }
    
    .form-control {
        border-width: 1px;
    }
    
    .btn {
        border-width: 1px;
    }
}

/* Landscape orientation optimizations */
@media screen and (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    #hero .display-4 {
        font-size: 1.59rem;
    }
    
    #hero .lead {
        font-size: 1.03rem;
    }
}

/* Print optimizations */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .container {
        max-width: none;
        width: auto;
    }
    
    .row {
        display: block;
    }
    
    .col-lg-6,
    .col-md-6,
    .col-lg-4,
    .col-md-4 {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .card {
        border: 1px solid #d3cac9;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .btn,
    .navbar,
    footer,
    #gallery {
        display: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions when user prefers reduced motion */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Remove hover transforms */
    .card:hover,
    #gallery img:hover,
    .fa:hover {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Dark mode support (if browser supports it) */

/* Container max-width adjustments for better content flow */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .btn {
        min-height: 44px; /* Touch target size */
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.75rem; /* Larger touch targets */
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Ultra-wide screen optimizations */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
} 