/* ========================================
   RESPONSIVE UTILITIES
======================================== */

/* Hide elements on different screen sizes */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media screen and (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-hide {
        display: none !important;
    }
}

/* Touch-friendly buttons on mobile */
@media screen and (max-width: 768px) {
    button,
    .button,
    a[role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Ensure tap targets are large enough */
    .nav-links a,
    .footer-nav a {
        padding: 0.75rem 1rem;
        display: block;
    }
}

/* Improve readability on small screens */
@media screen and (max-width: 480px) {
    p, 
    .description-text {
        line-height: 1.6;
    }
    
    /* Prevent horizontal scroll from long words */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        hyphens: auto;
    }
}

/* Performance optimizations for mobile */
@media screen and (max-width: 768px) {
    /* Reduce animation complexity on mobile */
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Optimize background images for mobile */
    .home-hero .hero-img,
    .mission-img,
    .team-img {
        image-rendering: optimizeSpeed;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Reserved for future dark mode implementation */
}

/* Mobile landscape optimization */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .home-mission,
    .home-team {
        height: auto;
        min-height: 100vh;
        padding: 1.5rem;
    }
    
    .main-header {
        padding: 0.75rem 1.5rem;
    }
    
    .home-hero {
        height: 100vh;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media screen and (max-width: 375px) {
    .main-title {
        font-size: 1.3rem;
    }
    
    .home-mission .text h1,
    .home-team .text .title {
        font-size: 1.3rem;
    }
    
    .home-service-offering .services .service-card .service-title {
        font-size: 1.1rem;
    }
}

/* Services & Careers specific responsive utilities */
@media screen and (max-width: 768px) {
    /* Services page specific */
    .services-industries .industry-image-container {
        display: none !important;
    }
    
    .services-industries .industries-list li {
        touch-action: manipulation;
        user-select: none;
    }
    
    /* Careers page specific */
    .careers-open-roles .role-card {
        touch-action: manipulation;
    }
    
    .careers-open-roles .role-apply {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Enhanced touch targets for better accessibility */
@media screen and (max-width: 768px) {
    .services-industries .industries-list li,
    .careers-open-roles .role-apply,
    .services-how-we-work .how-we-work-steps .step {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Prevent text selection on interactive elements */
    .services-industries .industries-list li,
    .careers-open-roles .role-card {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}