/* Responsive Styles - Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.64rem;
    }
    
    .hero-section p {
        font-size: 0.99rem;
    }
    
    .navbar-brand {
        font-size: 1.39rem;
    }
    
    .feature-card,
    .service-card,
    .pricing-card {
        margin-bottom: 1.61rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.27rem;
    }
    
    .process-step,
    .timeline-item {
        margin-bottom: 1.74rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .gallery-img {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .accordion-button {
        font-size: 0.92rem;
        padding: 0.75rem;
    }
    
    .feature-icon {
        font-size: 2.60rem;
    }
    
    .price {
        font-size: 1.33rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.31rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.81rem;
    }
    
    .gallery-img {
        height: 220px;
    }
    
    .team-member {
        margin-bottom: 1.64rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.62rem;
    padding-top: 125px;
}
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    .feature-card,
    .service-card {
        height: auto;
        min-height: 350px;
    }
    
    .pricing-card {
        min-height: 400px;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    .gallery-img {
        height: 240px;
    }
    
    .review-card {
        min-height: 180px;
    }
    
    .case-card,
    .info-card {
        min-height: 200px;
    }
    
    .career-card {
        min-height: 250px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .feature-card,
    .service-card {
        min-height: 380px;
    }
    
    .pricing-card {
        min-height: 450px;
    }
    
    .gallery-img {
        height: 260px;
    }
    
    .team-photo {
        width: 110px;
        height: 110px;
    }
    
    .contact-form,
    .contact-info {
        padding: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 2.34rem;
    }
    
    .container {
        max-width: 1200px;
    }
    
    .feature-card,
    .service-card {
        min-height: 400px;
    }
    
    .pricing-card {
        min-height: 480px;
    }
    
    .gallery-img {
        height: 280px;
    }
    
    .team-photo {
        width: 130px;
        height: 130px;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.80rem;
    }
}

/* Extra extra large devices (extra large desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3.59rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 2.56rem;
    }
    
    .gallery-img {
        height: 300px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.73rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.55rem;
        margin-bottom: 0.70rem;
    }
    
    .hero-section p {
        font-size: 0.91rem;
        margin-bottom: 0.60rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .contact-form,
    footer {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        page-break-after: always;
    }
    
    .service-card,
    .feature-card,
    .pricing-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #c7bdbe;
    }
    
    .py-5 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .gallery-img {
        height: auto;
    }
    
    .accordion-collapse {
        display: block;
    }
    
    .accordion-button {
        pointer-events: none;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('../STR_images/hero-bg@2x.webp');
    }
}

/* Dark mode support (respects user preference) */

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .gallery-img:hover,
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .step-number {
        animation: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .gallery-img:hover {
        transform: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover {
        transform: none;
    }
    
    .accordion-button {
        min-height: 48px;
    }
}

/* Accessibility improvements for small screens */
@media (max-width: 767.98px) {
    .navbar-toggler {
        padding: 0.5rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
    }
    
    .form-control {
        min-height: 44px;
        padding: 0.75rem;
    }
    
    .accordion-button {
        min-height: 48px;
        padding: 1rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Disable all scroll animations on mobile devices */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    .sal-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    .fade-in-up {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* Container fluid adjustments for gallery */
@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Specific responsive adjustments for team section */
@media (max-width: 991.98px) {
    .team-member {
        margin-bottom: 2rem;
    }
}

@media (min-width: 992px) {
    .team-member {
        margin-bottom: 0;
    }
}

/* Process and timeline responsive adjustments */
@media (max-width: 767.98px) {
    .process-step,
    .timeline-item {
        margin-bottom: 2rem;
    }
}

/* Footer responsive adjustments */
@media (max-width: 767.98px) {
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer .col-lg-6 {
        text-align: center;
    }
    
    footer .text-end {
        text-align: center;
    }
}

/* Blog grid responsive adjustments */
@media (max-width: 767.98px) {
    #blog_grid .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Services responsive grid */
@media (min-width: 768px) and (max-width: 991.98px) {
    .services-grid .col-lg-4:nth-child(2n+1) {
        clear: left;
    }
}

/* Contact section responsive layout */
@media (max-width: 991.98px) {
    .contact-info {
        margin-top: 2rem;
    }
}

/* Ensure proper spacing on all devices */
@media (max-width: 575.98px) {
    .mb-4 {
        margin-bottom: 1rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
} 