/*
 * Responsive Fixes for OmniSystems Website
 * Additional responsive styles to ensure optimal mobile experience
 */

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for Google Maps iframe */
.map-area iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .map-area iframe {
        height: 300px;
    }
}

/* Contact form improvements for mobile */
@media (max-width: 575px) {
    .get-inform input,
    .get-inform select,
    .get-inform textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    .get-inform .col-lg-6 {
        margin-bottom: 10px;
    }
    
    .contact-info {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info .icon {
        margin-bottom: 15px;
    }
}

/* Header phone button on tablets */
@media (max-width: 991px) {
    .call-version1 {
        padding: 8px 12px !important;
    }
    
    .call-version1 span {
        font-size: 12px !important;
    }
}

/* Fix for offcanvas menu on mobile */
@media (max-width: 575px) {
    .offcanvas__info {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .offcanvas__content {
        padding: 20px 15px;
    }
}

/* Breadcrumb section mobile fixes */
@media (max-width: 575px) {
    .bread-content {
        padding: 20px 10px !important;
    }
    
    .bread-content h2 {
        font-size: 24px !important;
        text-align: center;
        width: 100%;
    }
    
    .bread-content ul {
        justify-content: center;
        width: 100%;
    }
}

/* Service cards mobile fixes */
@media (max-width: 767px) {
    .service-items,
    .worke-items {
        padding: 20px !important;
    }
}

/* Team section mobile */
@media (max-width: 575px) {
    .team-items .thumb img {
        width: 100%;
    }
    
    .team-items .content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Blog section mobile */
@media (max-width: 575px) {
    .blog-items .content {
        padding: 15px !important;
    }
    
    .blog-items h3 {
        font-size: 18px !important;
        line-height: 26px !important;
    }
}

/* Footer mobile fixes */
@media (max-width: 767px) {
    .footer-widgets-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .social-adjustment {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer2-social {
        text-align: center;
    }
    
    .footer2-social .social-wrapper {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .condition {
        justify-content: center !important;
        margin-top: 10px;
    }
}

/* Shop/Cart table mobile */
@media (max-width: 767px) {
    .cart-area table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Pricing cards mobile */
@media (max-width: 575px) {
    .pricing-items {
        padding: 25px 20px !important;
    }
}

/* FAQ accordion mobile */
@media (max-width: 575px) {
    .accordion-button {
        font-size: 14px !important;
        padding: 15px !important;
    }
}

/* Hero section mobile improvements */
@media (max-width: 575px) {
    .hero-content-version1 h1 {
        font-size: 24px !important;
        line-height: 32px !important;
    }
    
    .banner-listing {
        padding: 20px !important;
    }
    
    .banner-listing h3 {
        font-size: 20px !important;
    }
}

/* Testimonial section mobile */
@media (max-width: 575px) {
    .testimonial-item,
    .testimonial-item2 {
        padding: 20px !important;
    }
}

/* Fix horizontal scroll issues */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure buttons don't overflow */
.common-btn {
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

/* Form alert messages responsive */
@media (max-width: 575px) {
    .alert {
        font-size: 14px;
        padding: 12px !important;
    }
}

/* Nice select dropdown fix for mobile */
@media (max-width: 575px) {
    .nice-select {
        width: 100% !important;
    }
    
    .nice-select .list {
        max-height: 200px;
        overflow-y: auto;
    }
}

/* Project/Portfolio grid mobile */
@media (max-width: 575px) {
    .project-items,
    .it-items {
        margin-bottom: 15px;
    }
}

/* Counter/Stats section mobile */
@media (max-width: 575px) {
    .tech-counter-item h2 {
        font-size: 32px !important;
    }
}

/* Touch-friendly tap targets */
@media (max-width: 767px) {
    a, button, .common-btn, .nav-link, .submenu a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}
