/* =============================================
   لحاف التجارية — Responsive v2
   ============================================= */
@media (max-width: 1200px) {
    :root { --space-xl: 5rem; --space-xxl: 6rem; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
    .hero__content { padding: 60px 40px 60px 50px; }
}

@media (max-width: 992px) {
    :root { --space-xl: 4rem; --space-lg: 3rem; }
    .header__toggle { display: flex; }
    .header__nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 350px; height: 100vh; background: var(--footer-dark); flex-direction: column; justify-content: center; padding: var(--space-lg); gap: var(--space-md); transition: right 0.4s cubic-bezier(.4,0,.2,1); z-index: 1000; }
    .header__nav.active { right: 0; }
    .header__nav a { color: var(--pure-white) !important; font-size: 1.1rem; }
    .hero__content { padding: 140px var(--space-md) 160px; }
    .hero__stats { grid-template-columns: repeat(2, 1fr); }
    .about-section { grid-template-columns: 1fr; gap: 30px; }
    .about-section__content { padding-left: 0; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .vision-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr; }
}

.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; transition: 0.3s; }
.nav-overlay.active { display: block; opacity: 1; }

@media (max-width: 768px) {
    :root { --space-xl: 3rem; --space-lg: 2.5rem; --space-md: 1.5rem; }
    .hero__title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
    .hero__desc { font-size: 0.92rem; }
    .hero__stats { flex-wrap: wrap; gap: 20px; }
    .hero__stat-number { font-size: 1.5rem; }
    .project-card__image { height: 260px; }
    .projects-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .page-hero { height: 40vh; min-height: 280px; }
    .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
    .cta-section { padding: 40px 24px; border-radius: 16px; }
}

@media (max-width: 480px) {
    :root { --space-xl: 2.5rem; --space-lg: 2rem; --space-md: 1rem; }
    .header__logo img { height: 36px; }
    .btn { width: 100%; justify-content: center; }
    .hero__actions { flex-direction: column; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-item__number { font-size: 1.6rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .sections-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
