/* ===========================
   التصميم المتجاوب
   =========================== */

/* الأجهزة اللوحية */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 2px;
    }
    .nav-menu a {
        padding: 6px 10px;
        font-size: 14px;
    }
    .logo-text h1 {
        font-size: 18px;
    }
    .logo-text p {
        font-size: 12px;
    }
}

/* الأجهزة اللوحية الصغيرة */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 100;
    }
    
    .nav-menu.active {
        max-height: 600px;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .top-bar .container {
        justify-content: center;
        text-align: center;
    }
    
    .social-links {
        display: none;
    }
    
    .hero {
        min-height: 70vh;
    }
}

/* الهواتف الكبيرة */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 12px 28px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .features .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .feature-item {
        padding: 20px 12px;
    }
    
    .feature-icon {
        font-size: 36px;
    }
    
    .feature-item h3 {
        font-size: 16px;
    }
    
    .feature-item p {
        font-size: 13px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        flex-direction: row;
        justify-content: center;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        left: 20px;
    }
    
    .contact-info {
        font-size: 12px;
        gap: 10px;
    }
    
    .phone-item {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

/* الهواتف الصغيرة */
@media (max-width: 480px) {
    .features .container {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .logo-icon {
        font-size: 28px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .logo-text p {
        font-size: 11px;
    }
    
    .branch-card {
        padding: 30px 20px;
    }
    
    .page-header {
        padding: 60px 20px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
}

/* شاشات كبيرة */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}
