/* Responsive Design for Mobile and Tablet */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    #hero h1 {
        font-size: 3rem;
    }
    
    section h2 {
        font-size: 2.44rem;
    }
}

/* Large Devices (997px to 1199px) */
@media (max-width: 1199.98px) {
    #hero h1 {
        font-size: 2.63rem;
    }
    
    #services .card-img-top {
        height: 220px;
    }
}

/* Medium Devices (768px to 991px) - Tablets */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.40rem;
    }
    
    #hero {
        padding-top: 100px;
    }
    
    #hero h1 {
        font-size: 2.49rem;
        text-align: center;
    }
    
    #hero h2 {
        font-size: 1.41rem;
        text-align: center;
    }
    
    #hero .lead {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    section h2 {
        font-size: 2.00rem;
    }
    
    #services .card-img-top {
        height: 200px;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Small Devices (576px to 767px) - Large Phones */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.28rem;
    }
    
    #hero {
        padding-top: 80px;
        min-height: 80vh;
    }
    
    #hero h1 {
        font-size: 2rem;
        margin-bottom: 0.96rem;
    }
    
    #hero h2 {
        font-size: 1.20rem;
        margin-bottom: 1rem;
    }
    
    #hero .lead {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.93rem;
        margin-bottom: 1.01rem;
    }
    
    section h3 {
        font-size: 1.26rem;
    }
    
    #services .card-img-top {
        height: 180px;
    }
    
    #team img {
        width: 80px;
        height: 80px;
    }
    
    #team .col-lg-2 {
        margin-bottom: 1.69rem;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 1.03rem;
    }
    
    .py-5 {
        padding-top: 2.82rem !important;
        padding-bottom: 2.82rem !important;
    }
    
    /* Disable hover animations on mobile */
    @media (prefers-reduced-motion: reduce) {
        .card:hover,
        .btn:hover,
        img:hover {
            transform: none;
        }
    }
}

/* Extra Small Devices (575px and below) - Small Phones */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    #hero {
        padding-top: 70px;
        min-height: 70vh;
    }
    
    #hero h1 {
        font-size: 1.83rem;
        line-height: 1.2;
    }
    
    #hero h2 {
        font-size: 1rem;
    }
    
    #hero .lead {
        font-size: 1.17rem;
    }
    
    section h2 {
        font-size: 1.71rem;
    }
    
    section h3 {
        font-size: 1rem;
    }
    
    section p {
        font-size: 1.13rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .card-title {
        font-size: 1.20rem;
    }
    
    .card-text {
        font-size: 1.06rem;
    }
    
    #services .card-img-top {
        height: 160px;
    }
    
    #services h4 {
        font-size: 1.37rem;
    }
    
    #team img {
        width: 70px;
        height: 70px;
    }
    
    #team h5 {
        font-size: 1.14rem;
    }
    
    #team p {
        font-size: 0.86rem;
    }
    
    #process .rounded-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.09rem;
    }
    
    .btn-primary {
        padding: 8px 20px;
        font-size: 0.90rem;
    }
    
    .form-control {
        font-size: 1.07rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Gallery adjustments for small screens */
    #gallery .col-lg-3 {
        margin-bottom: 0.93rem;
    }
    
    /* Contact form adjustments */
    #contacts .row {
        margin-top: 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        margin-bottom: 1.79rem;
        text-align: center;
    }
    
    #footer h5 {
        font-size: 1.19rem;
    }
    
    #footer p, #footer li {
        font-size: 1.05rem;
    }
}

/* Landscape Orientation for Small Devices */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .py-5 {
        padding-top: 1.60rem !important;
        padding-bottom: 1.78rem !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .card {
        box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
    }
    
    .card:hover {
        box-shadow: 0 8px 8px rgba(0, 0, 0, 0.15);
    }
}

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

/* Accessibility Improvements */
@media (max-width: 767.98px) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 12px 16px;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card:hover,
    .btn:hover,
    img:hover,
    #team img:hover,
    #gallery img:hover {
        transform: none !important;
    }
} 