/* ============================================
   Innovatica Solutions - Mobile Optimization
   ============================================ */

@media (max-width: 767px) {
    /* Global Mobile Reset */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    section {
        padding: 3rem 1.25rem !important;
    }

    /* Hero Section Scaling */
    #hero {
        padding-top: 140px !important;
        padding-bottom: 4rem !important;
        min-height: auto !important;
        text-align: center !important;
    }

    #hero h1 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }

    #hero p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px 8px !important;
    }

    /* Scale the service badges in hero so they don't overflow */
    #hero span.inline-block {
        display: inline-block !important;
        width: auto !important;
        font-size: 0.85rem !important;
        padding: 2px 8px !important;
    }

    /* Make the "Get in Touch" button smaller in the Hero section */
    #hero .flex a {
        padding: 0.5rem 0.75rem !important; /* Reduced horizontal padding for a narrower look */
        font-size: 0.875rem !important; /* Equivalent to Tailwind's text-sm */
        width: auto !important; /* Prevents the button from stretching to full width */
    }

    /* Service Details Layout Scaling */
    #services-details .grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    #services-details h2 {
        font-size: 1.85rem !important;
        text-align: center;
    }

    #services-details p {
        text-align: center;
        font-size: 0.95rem !important;
    }

    #services-details img {
        height: 220px !important;
        border-radius: 1rem !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important;
    }

    /* Core Values Grid */
    #values .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* FAQ Adjustments */
    .faq-item {
        padding: 1.5rem !important;
    }

    /* Footer Scaling */
    footer .grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem;
    }
    
    /* Force social icons into a row (series) instead of a vertical stack (parallel) */
    footer .flex.gap-4 {
        flex-direction: row !important;
        justify-content: center !important;
    }
    
    footer img {
        margin: 0 auto 1.5rem !important;
    }
}