/**
 * شركة القصد - Responsive Stylesheet
 * Fix: overflow-x gap on mobile
 */

/* ===== Overflow Prevention (ALL sizes) ===== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

main,
.hero,
.section,
.section-divider,
footer {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 1200px) {
    .services-grid { gap: 1.5rem; }
    .vmv-grid { gap: 2rem; }
}

@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }

    .nav-logo-img { height: 70px; }
    nav.scrolled .nav-logo-img { height: 50px; }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image { order: -1; }
    .about-image-frame { display: none; }

    .vmv-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section { padding: 5rem 0; }
}

@media (max-width: 768px) {
    .hero { min-height: 600px; }

    .hero-title { font-size: 2rem; }

    .hero-subtitle { font-size: 1rem; }

    .hero-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        letter-spacing: 2px;
        padding: 6px 18px;
    }

    .section-title { font-size: 1.8rem; }

    .container { padding: 0 1.5rem; }

    .section { padding: 4rem 0; }

    .service-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .service-icon { margin: 0 auto; }

    .about-image-wrapper img { height: 300px; }

    .contact-form-wrapper { padding: 2rem; }

    .footer-content { padding: 0 1.5rem; }

    .section-divider-line { max-width: 80px; }
}

@media (max-width: 480px) {
    nav { padding: 1rem 3%; }

    .nav-logo-img { height: 55px; }
    nav.scrolled .nav-logo-img { height: 42px; }

    .hero-title { font-size: 1.7rem; }

    .section-title { font-size: 1.5rem; }

    .vmv-card { padding: 2rem 1.5rem; }

    .service-card { padding: 1.5rem; }

    .contact-form-wrapper { padding: 1.5rem; }

    .mobile-menu { width: 90%; }

    .hero-content { padding: 0 1rem; }

    .scroll-indicator { display: none; }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-tooltip { display: none; }

    .back-to-top {
        bottom: 1.5rem;
        left: 1.5rem;
    }
}
