/* ============================================
   وطن ستوديو - responsive.css
   التجاوب مع جميع المقاسات
   ============================================ */

/* ============ شاشات كبيرة (1200px+) ============ */
@media (min-width: 1200px) {
    .container {
        max-width: 1150px;
    }
}

/* ============ شاشات متوسطة كبيرة (992px - 1200px) ============ */
@media (max-width: 1200px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.3rem; }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .services-grid,
    .why-us-grid,
    .values-grid,
    .team-full-grid,
    .seo-packages {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .team-grid-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 30px;
    }
}

/* ============ شاشات متوسطة (768px - 992px) ============ */
@media (max-width: 992px) {
    :root {
        --header-height: 65px;
        --section-padding: 55px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    
    /* القائمة المتنقلة */
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        right: 0;
        left: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        z-index: 100;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
    
    .main-nav.open {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .nav-list > li > a {
        padding: 12px 16px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    /* Hero */
    .hero {
        padding: 70px 0;
    }
    
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero-stats {
        gap: 25px;
    }
    
    /* الشبكات */
    .services-grid,
    .why-us-grid,
    .values-grid,
    .team-full-grid,
    .seo-packages {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid-preview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid,
    .news-grid-full,
    .seo-services {
        grid-template-columns: 1fr;
    }
    
    .about-preview-content,
    .about-story-content,
    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .founder-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .founder-avatar {
        margin: 0 auto;
    }
    
    .founder-social {
        justify-content: center;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .why-seo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============ شاشات صغيرة (576px - 768px) ============ */
@media (max-width: 768px) {
    :root {
        --section-padding: 45px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.15rem; }
    
    /* الشعار */
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
        border-radius: 10px;
    }
    
    .logo-text h2 {
        font-size: 1.1rem;
    }
    
    /* Hero */
    .hero {
        padding: 55px 0;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .stat-item span {
        font-size: 0.8rem;
    }
    
    /* الشبكات */
    .services-grid,
    .why-us-grid,
    .values-grid,
    .team-grid-preview,
    .team-full-grid,
    .seo-packages,
    .achievements-grid,
    .why-seo-grid {
        grid-template-columns: 1fr;
    }
    
    .service-features-grid {
        grid-template-columns: 1fr;
    }
    
    /* البطاقات */
    .service-card,
    .team-member-card,
    .team-member-full,
    .news-card,
    .news-article-card,
    .seo-package,
    .partner-logo-card,
    .why-us-item,
    .value-item,
    .seo-service,
    .tech-article-card {
        padding: 20px;
    }
    
    /* المقالات */
    .news-article-card {
        flex-direction: column;
    }
    
    .news-article-date {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
    }
    
    /* الفوتر */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* الأزرار */
    .btn {
        padding: 11px 22px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* زر العودة */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 15px;
        left: 15px;
    }
    
    /* الصفحات القانونية */
    .legal-text {
        padding: 25px;
    }
    
    /* الخطوات */
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step-card {
        max-width: 100%;
        width: 100%;
    }
}

/* ============ شاشات صغيرة جداً (480px - 576px) ============ */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    
    .hero h1 {
        font-size: 1.35rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-header {
        margin-bottom: 35px;
    }
    
    .section-tag {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .achievement-item h3 {
        font-size: 1.75rem;
    }
    
    .founder-avatar {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }
    
    .about-highlights {
        gap: 15px;
    }
    
    .about-highlight h3 {
        font-size: 1.5rem;
    }
}

/* ============ شاشات صغيرة جداً (360px - 480px) ============ */
@media (max-width: 480px) {
    h1 { font-size: 1.35rem; }
    h2 { font-size: 1.2rem; }
    
    .logo-text h2 {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .stat-item h3 {
        font-size: 1.25rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .contact-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ============ شاشات صغيرة جداً (أقل من 360px) ============ */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    h1 { font-size: 1.25rem; }
    
    .btn {
        padding: 9px 18px;
        font-size: 0.85rem;
    }
}

/* ============ شاشات أفقية ============ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }
    
    .hero-stats {
        display: none;
    }
}

/* ============ دعم الطباعة ============ */
@media print {
    .header,
    .footer,
    .back-to-top,
    .cta-section,
    .mobile-toggle,
    .ad-banner {
        display: none !important;
    }
    
    body {
        background: var(--white);
    }
}

/* ============ تقليل الحركة ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============ نهاية responsive.css ============ */