/* ===================================
   RESPONSIVE STYLES
   Template 244 - AccelerateX
   Mobile-first approach
   =================================== */

/* Mobile First - Base styles (320px+) */
body {
    overflow-x: hidden;
}

/* Conservative font scaling for mobile */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    h4, .h4 {
        font-size: 1.125rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    /* Hero section mobile adjustments */
    #hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    #hero .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Card adjustments for mobile */
    .card-img-top {
        height: 150px;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Navigation mobile */
    .navbar-nav .nav-link {
    font-size: 12px;
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Team member images */
    .team-member img,
    .rounded-circle {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Process steps mobile layout */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Timeline mobile adjustments */
    .timeline-item::before {
        left: 15px;
    }
    
    /* Footer mobile */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery mobile - 2 columns */
    .gallery-mobile {
        column-count: 2;
        column-gap: 1rem;
    }
    
    /* Form mobile adjustments */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Disable animations on mobile per requirements */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .card-img-top {
        height: 180px;
    }
    
    #hero .btn {
        width: auto;
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    .team-member img,
    .rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    h1, .h1 {
        font-size: 1.875rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 2.25rem !important;
    }
    
    #hero {
        min-height: 100vh;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Timeline tablet adjustments */
    .timeline-item::before {
        left: 20px;
    }
    
    /* Team grid adjustments */
    .team-member img,
    .rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Gallery tablet - 3 columns */
    .gallery-tablet {
        column-count: 3;
        column-gap: 1rem;
    }
    
    /* Services grid tablet */
    .services-tablet .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Footer tablet layout */
    footer .row {
        text-align: left;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    h1, .h1 {
        font-size: 1.875rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 2.25rem !important;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Hero desktop enhancements */
    #hero {
        min-height: 100vh;
    }
    
    /* Team desktop layout */
    .team-member img,
    .rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Gallery desktop - 4 columns */
    .gallery-desktop {
        column-count: 4;
        column-gap: 1rem;
    }
    
    /* Services grid desktop */
    .services-grid .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Process desktop enhancements */
    .process-desktop .d-flex {
        align-items: center;
        margin-bottom: 2rem;
    }
    
    /* Contact form desktop */
    .contact-form {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1, .h1 {
        font-size: 1.875rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 2.25rem !important;
    }
    
    .card-img-top {
        height: 240px;
    }
    
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    
    /* Hero extra large */
    #hero .container {
        max-width: 1140px;
    }
    
    /* Team extra large */
    .team-member img,
    .rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .img-fluid {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Print media queries */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, .h1 { font-size: 18pt; }
    h2, .h2 { font-size: 16pt; }
    h3, .h3 { font-size: 14pt; }
    h4, .h4 { font-size: 12pt; }
    
    .container {
        max-width: none;
        width: 100%;
    }
    
    .col-lg-4,
    .col-lg-6,
    .col-md-6 {
        width: 50% !important;
        float: left;
    }
    
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .bg-light,
    .bg-primary {
        background: transparent !important;
    }
    
    .text-white {
        color: black !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .card-img-top {
        transition: none;
    }
    
    [data-sal] {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark mode support (optional) */

/* Focus and accessibility improvements */
@media (min-width: 768px) {
    .btn:focus,
    .form-control:focus {
        outline-width: 3px;
    }
}

/* Container breakpoint customizations */
@media (min-width: 576px) {
    .container-sm { max-width: 540px; }
}

@media (min-width: 768px) {
    .container-md { max-width: 720px; }
}

@media (min-width: 992px) {
    .container-lg { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container-xl { max-width: 1140px; }
}

@media (min-width: 1400px) {
    .container-xxl { max-width: 1320px; }
} 