/* ============================================================
   صيدلية الإمارات - ملف التنسيقات المتجاوبة
   ============================================================ */

/* ============================================================
   1. شاشات كبيرة (لابتوب - أقل من 1024px)
   ============================================================ */

@media (max-width: 1024px) {
    .page-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero h1 {
        font-size: 34px;
    }
    
    .hero p {
        font-size: 17px;
    }
    
    .page-hero h1 {
        font-size: 32px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-cta-buttons {
        justify-content: center;
    }
}

/* ============================================================
   2. شاشات متوسطة (تابلت - أقل من 768px)
   ============================================================ */

@media (max-width: 768px) {
    /* ===== القائمة ===== */
    .menu-toggle {
        display: block;
    }
    
    .nav-content {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 16px 0;
        border-top: 1px solid #eee;
    }
    
    .nav-content.open {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 16px;
        width: 100%;
        border-bottom: none;
        border-radius: var(--border-radius-sm);
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: var(--bg-light);
        border-bottom: none;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding-right: 20px;
        background: transparent;
    }
    
    .dropdown-menu a {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .dropdown-menu a:hover {
        background: var(--bg-light);
    }
    
    .language-switch {
        margin-top: 8px;
    }
    
    /* ===== الهيرو ===== */
    .hero {
        padding: 40px 0 30px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-cta-group .whatsapp-cta-btn,
    .hero-cta-group .hero-secondary-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-divider {
        display: none;
    }
    
    /* ===== رأس الصفحة الداخلية ===== */
    .page-hero {
        padding: 35px 0 25px;
    }
    
    .page-hero h1 {
        font-size: 26px;
    }
    
    .page-hero p {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .breadcrumb {
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    /* ===== شارات الثقة ===== */
    .trust-badges-grid {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .trust-badge {
        font-size: 12px;
    }
    
    .trust-badge i {
        font-size: 18px;
    }
    
    .trust-divider {
        display: none;
    }
    
    /* ===== الأقسام ===== */
    .page-section {
        padding: 40px 0;
    }
    
    .page-text h2 {
        font-size: 24px;
    }
    
    .page-text h3 {
        font-size: 20px;
    }
    
    .features-section {
        padding: 40px 0;
    }
    
    .features-section h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card .icon-box {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    
    .feature-card h3 {
        font-size: 16px;
    }
    
    /* ===== المنتجات ===== */
    .products-section {
        padding: 40px 0;
    }
    
    .products-section h2 {
        font-size: 26px;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .product-image {
        width: 90px;
        height: 90px;
    }
    
    /* ===== الشهادات ===== */
    .testimonials-section {
        padding: 40px 0;
    }
    
    .testimonials-section h2 {
        font-size: 26px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* ===== الأطباء ===== */
    .doctors-section {
        padding: 40px 0;
    }
    
    .doctors-section h2 {
        font-size: 26px;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    /* ===== المدونة ===== */
    .blog-grid-section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-img img {
        height: 180px;
    }
    
    .blog-content h3 {
        font-size: 17px;
    }
    
    /* ===== الأسئلة الشائعة ===== */
    .faq-category h2 {
        font-size: 20px;
    }
    
    .faq-question {
        font-size: 15px;
        padding: 14px 16px;
    }
    
    .faq-answer {
        font-size: 14px;
    }
    
    .faq-answer.show {
        padding: 14px 16px;
    }
    
    /* ===== الاتصال ===== */
    .contact-cards-section {
        padding: 40px 0;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-card {
        padding: 24px;
    }
    
    .contact-link {
        font-size: 16px;
    }
    
    /* ===== ساعات العمل ===== */
    .working-hours-section {
        padding: 30px 0;
    }
    
    .working-hours-section h3 {
        font-size: 20px;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    /* ===== أزرار التواصل السريع ===== */
    .quick-contact-section {
        padding: 30px 0;
    }
    
    .quick-contact-section h3 {
        font-size: 18px;
    }
    
    .quick-buttons {
        gap: 10px;
    }
    
    .quick-btn {
        padding: 12px 20px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .quick-btn i {
        font-size: 22px;
    }
    
    /* ===== قسم الاستشارة ===== */
    .contact-cta-section {
        padding: 40px 0;
    }
    
    .contact-cta-text h2 {
        font-size: 24px;
    }
    
    .contact-cta-text p {
        font-size: 15px;
    }
    
    .contact-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-cta-image .doctor-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    /* ===== المناطق ===== */
    .regions-section {
        padding: 40px 0;
    }
    
    .regions-section h2 {
        font-size: 26px;
    }
    
    .regions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .region-card {
        padding: 14px;
    }
    
    .region-card h4 {
        font-size: 15px;
    }
    
    /* ===== الإحصائيات ===== */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    /* ===== النشرة البريدية ===== */
    .newsletter-section {
        padding: 35px 0;
    }
    
    .newsletter-content h3 {
        font-size: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        min-width: auto;
        width: 100%;
        max-width: 350px;
    }
    
    .newsletter-form button {
        width: 100%;
        max-width: 350px;
    }
    
    /* ===== الروابط الشبكية ===== */
    .network-section {
        padding: 20px 0;
    }
    
    .network-links {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .network-links a {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    /* ===== الفوتر ===== */
    footer {
        padding: 35px 0 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-logo img {
        width: 160px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* ===== زر واتساب العائم ===== */
    .wa-fab {
        bottom: 16px;
        left: 16px;
        padding: 12px 16px;
    }
    
    .wa-fab-label {
        display: none;
    }
    
    .wa-fab-icon {
        font-size: 24px;
    }
    
    /* ===== جدول المقارنة ===== */
    .comparison-table {
        font-size: 12px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px;
    }
    
    /* ===== الصناديق ===== */
    .info-box,
    .warning-box {
        padding: 16px;
    }
    
    .cta-box {
        padding: 24px 20px;
    }
    
    .cta-box h3 {
        font-size: 20px;
    }
    
    /* ===== الإشعار الطبي ===== */
    .medical-safety-notice {
        padding: 16px;
    }
    
    .medical-safety-notice h3 {
        font-size: 16px;
    }
    
    .emergency-block {
        padding: 12px;
    }
}

/* ============================================================
   3. شاشات صغيرة (موبايل - أقل من 480px)
   ============================================================ */

@media (max-width: 480px) {
    /* ===== الهيدر ===== */
    .site-header .logo img {
        width: 130px;
    }
    
    .site-header nav {
        padding: 8px 0;
    }
    
    /* ===== الهيرو ===== */
    .hero {
        padding: 30px 0 24px;
    }
    
    .hero h1 {
        font-size: 22px;
    }
    
    .hero p {
        font-size: 14px;
        padding: 0 4px;
    }
    
    .hero-cta-group .whatsapp-cta-btn,
    .hero-cta-group .hero-secondary-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* ===== رأس الصفحة الداخلية ===== */
    .page-hero {
        padding: 28px 0 20px;
    }
    
    .page-hero h1 {
        font-size: 20px;
    }
    
    .page-hero p {
        font-size: 14px;
    }
    
    /* ===== الأقسام ===== */
    .page-section {
        padding: 30px 0;
    }
    
    .page-text h2 {
        font-size: 20px;
    }
    
    .page-text h3 {
        font-size: 18px;
    }
    
    .page-text p {
        font-size: 14px;
    }
    
    .page-text ul li {
        font-size: 14px;
        padding: 6px 0 6px 24px;
    }
    
    .features-section {
        padding: 30px 0;
    }
    
    .features-section h2 {
        font-size: 22px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-card {
        padding: 16px;
    }
    
    .feature-card .icon-box {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .feature-card h3 {
        font-size: 15px;
    }
    
    .feature-card p {
        font-size: 13px;
    }
    
    /* ===== المنتجات ===== */
    .products-section {
        padding: 30px 0;
    }
    
    .products-section h2 {
        font-size: 22px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-card {
        padding: 16px;
    }
    
    .product-image {
        width: 80px;
        height: 80px;
    }
    
    .product-card h3 {
        font-size: 16px;
    }
    
    /* ===== الشهادات ===== */
    .testimonials-section {
        padding: 30px 0;
    }
    
    .testimonials-section h2 {
        font-size: 22px;
    }
    
    .testimonial-card {
        padding: 16px;
    }
    
    /* ===== المدونة ===== */
    .blog-grid-section {
        padding: 30px 0;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    .blog-content .meta {
        font-size: 12px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .blog-content h3 {
        font-size: 16px;
    }
    
    .blog-content p {
        font-size: 13px;
    }
    
    /* ===== الأسئلة الشائعة ===== */
    .faq-category h2 {
        font-size: 18px;
    }
    
    .faq-question {
        font-size: 14px;
        padding: 12px 14px;
    }
    
    .faq-answer {
        font-size: 13px;
    }
    
    .faq-answer.show {
        padding: 12px 14px;
    }
    
    /* ===== الاتصال ===== */
    .contact-card {
        padding: 20px;
    }
    
    .contact-card .icon-box {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    
    .contact-link {
        font-size: 14px;
    }
    
    .contact-btn {
        font-size: 13px;
        padding: 8px 18px;
    }
    
    /* ===== المناطق ===== */
    .regions-section {
        padding: 30px 0;
    }
    
    .regions-section h2 {
        font-size: 22px;
    }
    
    .regions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .region-card {
        padding: 12px;
    }
    
    .region-card h4 {
        font-size: 13px;
    }
    
    .region-card p {
        font-size: 11px;
    }
    
    /* ===== الإحصائيات ===== */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* ===== الفوتر ===== */
    footer {
        padding: 28px 0 12px;
    }
    
    .footer-logo img {
        width: 130px;
    }
    
    .footer-logo p {
        font-size: 13px;
    }
    
    .footer-links h3,
    .footer-contact h3 {
        font-size: 16px;
    }
    
    .footer-links ul li a,
    .footer-contact p {
        font-size: 13px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
    
    .footer-bottom-links a {
        font-size: 12px;
    }
    
    /* ===== زر واتساب العائم ===== */
    .wa-fab {
        bottom: 12px;
        left: 12px;
        padding: 10px 14px;
    }
    
    .wa-fab-icon {
        font-size: 20px;
    }
    
    /* ===== النشرة البريدية ===== */
    .newsletter-content h3 {
        font-size: 18px;
    }
    
    .newsletter-content p {
        font-size: 14px;
    }
    
    /* ===== جدول المقارنة ===== */
    .comparison-table {
        font-size: 11px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 6px 8px;
    }
    
    /* ===== الصناديق ===== */
    .info-box h3,
    .warning-box h3 {
        font-size: 16px;
    }
    
    .cta-box h3 {
        font-size: 18px;
    }
    
    .cta-box p {
        font-size: 14px;
    }
    
    /* ===== الإشعار الطبي ===== */
    .medical-safety-notice h3 {
        font-size: 15px;
    }
    
    .medical-safety-notice p,
    .medical-safety-notice ul li {
        font-size: 13px;
    }
    
    .emergency-block h4 {
        font-size: 14px;
    }
}

/* ============================================================
   4. شاشات صغيرة جداً (موبايل صغير - أقل من 360px)
   ============================================================ */

@media (max-width: 360px) {
    .hero h1 {
        font-size: 18px;
    }
    
    .page-hero h1 {
        font-size: 18px;
    }
    
    .regions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .region-card h4 {
        font-size: 12px;
    }
    
    .quick-btn {
        padding: 10px 14px;
        font-size: 11px;
        min-width: 60px;
    }
    
    .quick-btn i {
        font-size: 18px;
    }
    
    .network-links a {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .trust-badge {
        font-size: 10px;
    }
    
    .trust-badge i {
        font-size: 14px;
    }
}

/* ============================================================
   5. التوجيه الأفقي (Landscape) للموبايل
   ============================================================ */

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 30px 0 20px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .page-hero {
        padding: 25px 0 18px;
    }
    
    .page-hero h1 {
        font-size: 22px;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }
    
    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================================
   6. شاشات كبيرة جداً (أكثر من 1400px)
   ============================================================ */

@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .page-hero h1 {
        font-size: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}