// i18n — Arabic / English content store and language toggle.
//
// Usage:
//   <I18nProvider><App /></I18nProvider>
//   const { lang, t, setLang } = useI18n();
//   <h1>{t('hero.title')}</h1>
//
// Strings are keyed with dot-paths. `t('nav.home')` returns the AR or EN value
// depending on the current language. Falls back to AR if a key is missing in EN
// (or vice versa), then to the raw key as a last resort.
//
// Persistence: language is stored in localStorage and on <html lang="" dir="">
// so a reload restores the user's choice and the browser/screen reader sees
// the correct attributes.

const STRINGS = {
  ar: {
    // ──────────────── BRAND ────────────────
    brand: {
      name: 'أسبلد',
      sub: 'TRADING & INVESTMENT CO.',
      full: 'شركة أسبلد التجارية للإستثمار',
    },
    // ──────────────── NAV ────────────────
    nav: {
      home: 'الرئيسية',
      about: 'عن أسبلد',
      why: 'لماذا أسبلد',
      sectors: 'القطاعات',
      bundles: 'الحلول',
      products: 'المنتجات',
      faq: 'الأسئلة',
      contact: 'تواصل',
      cta: 'تواصل',
      lang_toggle: 'EN',
    },
    // ──────────────── HERO ────────────────
    hero: {
      eyebrow: 'دمشق وحلب · سوريا',
      h1_1: 'أنظمةُ',
      h1_2: 'التواصل البصريّ',
      h1_3: 'للمؤسسات.',
      lede: 'أسبلد هي الوكيلُ الحصريُّ في سوريا لـ PeopleLink الهندية. نُجهّز المشافي، والجامعات، والشركات بكاميرات 4K، شاشاتٍ تفاعلية، ومنصّاتٍ للتعليم الهجين والاجتماعات والإعلانات الطرقية.',
      cta_sectors: 'القطاعات',
      cta_products: 'المنتجات',
      stat1_num: '+2,100',
      stat1_lbl: 'مؤسسةٌ تستخدم PeopleLink عالمياً',
      stat2_num: '03',
      stat2_lbl: 'قطاعاتٌ نُخدمها',
      stat3_num: '4K',
      stat3_lbl: 'معيارُ الجودة الافتراضي',
      cred_eyebrow: 'الوكيل الحصري · سوريا',
      cred_partner_sub: 'Unified Communications · India',
      cred_stat_lbl: 'مؤسسةٌ حول العالم تستخدم حلول PeopleLink.',
      cred_hq_k: 'المركز',
      cred_hq_v: 'دمشق وحلب · سوريا',
      cred_sectors_k: 'القطاعات',
      cred_sectors_v: 'صحي · تعليمي · أعمال',
    },
    // ──────────────── PARTNER STRIP ────────────────
    partner: {
      eyebrow: 'يستخدمها · TRUSTED BY',
      sub: 'مؤسساتٌ حول العالم تعتمد على PeopleLink',
    },
    // ──────────────── ABOUT ────────────────
    about: {
      eyebrow: 'عن أسبلد',
      title: 'وكيلٌ حصريٌّ، فريقٌ محليٌّ.',
      p1: 'شركة أسبلد التجارية للإستثمار تجلب إلى السوق السوري علامةً هنديةً معتمدةً في أكثر من ـ 2,100 مؤسسةٍ عالمية، بحلولٍ جاهزةٍ للطبّ، والتعليم، والأعمال.',
      p2: 'فريقنا في دمشق وحلب يُصمّم، يُركّب، يُدرّب، ويُصون — لكل محافظةٍ سورية.',
      pl_name: 'Unified Communications',
      pl_sub: 'HYDERABAD · INDIA · SINCE 2002',
      row_partnership_k: 'الشراكة',
      row_partnership_v: 'وكيلٌ حصريٌّ لسوريا',
      row_coverage_k: 'التغطية',
      row_coverage_v: 'كل المحافظات السورية',
      row_services_k: 'الخدمات',
      row_services_v: 'تصميم · تركيب · تدريب · صيانة',
    },
    // ──────────────── WHY CHOOSE US ────────────────
    why: {
      eyebrow: 'لماذا أسبلد',
      title: 'لماذا نحن.',
      sub: 'وكالةٌ حصرية، تنفيذٌ محلي، ومنتجاتٌ موثّقةٌ عالمياً.',
      items: [
        { k: '01', t: 'وكالةٌ حصرية', d: 'الممثّل الوحيد لشركة PeopleLink الهندية في سوريا — أسعارٌ مباشرة، ضمانةٌ رسمية، وتحديثاتٌ من المصنع.' },
        { k: '02', t: 'فريقٌ محليٌّ في دمشق وحلب', d: 'مهندسون سوريّون يزورون الموقع، يصمّمون النظام، يدرّبون فريقك، ويعودون للصيانة.' },
        { k: '03', t: 'تكنولوجيا أجنبيةٌ بأيدٍ سورية', d: 'حلولٌ من 35+ دولةً صُمّمت لمعايير عالمية — متاحةٌ هنا بسعرٍ مدروسٍ ودعمٍ بالعربية.' },
        { k: '04', t: 'تغطيةٌ شاملة', d: 'كل المحافظات السورية مشمولة.' },
        { k: '05', t: 'تدريبٌ كامل', d: 'لا نُسلّمك صندوقاً ونغادر. ندرّب فريقك على كل وحدة، ونوثّق التشغيل اليومي بالعربية والإنجليزية.' },
        { k: '06', t: 'صيانةٌ مستمرة', d: 'دعمٌ هاتفي ومُيدانيٌّ خلال يوم عمل واحد، وقطعُ غيارٍ من مستودعاتنا في دمشق وحلب.' },
      ],
    },
    // ──────────────── SECTORS ────────────────
    sectors: {
      eyebrow: 'القطاعات',
      title: 'نخدم كل القطاعات.',
      sub: 'أنظمةٌ معدّةٌ للصحة، والتعليم، والأعمال — وكل القطاعات.',
      medical: {
        num: '01',
        nm: 'القطاع الصحي',
        en_sub: 'Healthcare · Telemedicine',
        headline: 'بثٌّ جراحيٌّ مباشر، واستشاراتٌ بين المختصين.',
        problem: 'توصيل المشافي بالمراكز الطبية العالمية عبر النقل الجراحي المباشر.',
        kw: 'TELEMEDICINE',
        solution: 'بثٌّ 4K للعمليات، استشاراتٌ افتراضية، وأرشفةٌ للتعليم والمراجعة.',
        products: [
          ['01', 'كاميرات 4K PTZ', '4K PTZ Cameras'],
          ['02', 'منصة inClinic', 'inClinic Virtual Consultations'],
          ['03', 'بث العمليات الجراحية', 'Live Surgical Broadcast'],
        ],
      },
      edu: {
        num: '02',
        nm: 'القطاع التعليمي',
        en_sub: 'Education · Hybrid Classrooms',
        headline: 'فصولٌ هجينةٌ تصلُ لكلّ طالب.',
        problem: 'تصميم فصول تفاعليةٍ للمدارس والجامعات تدمج الحضوريّ والبُعديّ.',
        kw: 'HYBRID LEARNING',
        solution: 'شاشاتٌ تفاعلية 4K، منصّة إدارة حية، ومنصّاتٌ للإلقاء تجمع القاعة بالبُعد.',
        products: [
          ['01', 'شاشات تفاعلية 4K UHD', 'Interactive Panels'],
          ['02', 'منصة inClass', 'inClass Virtual Learning'],
          ['03', 'منصات الإلقاء الرقمية', 'Smart Podiums'],
        ],
      },
      biz: {
        num: '03',
        nm: 'القطاع التجاري',
        en_sub: 'Business · Meetings & Outdoor',
        headline: 'اجتماعاتٌ عبر المواقع، وإعلاناتٌ على الشارع.',
        problem: 'أتمتة قاعات الإدارة، وحلولٌ إعلانيةٌ خارجيةٌ عالية السطوع.',
        kw: 'ENTERPRISE AV',
        solution: 'أنظمة مؤتمراتٍ للإدارة، حلول Huddle للفرق الصغيرة، وشاشاتٌ طرقيةٌ للحملات.',
        products: [
          ['01', 'أنظمة مؤتمرات الفيديو', 'Video Conferencing'],
          ['02', 'الشاشات الطرقية Outdoor LED', 'Outdoor LED Displays'],
          ['03', 'حلول Huddle Rooms', 'Huddle Room Kits'],
        ],
      },
      dg: {
        medical_tag: 'TELEMEDICINE TOPOLOGY',
        edu_tag: 'HYBRID CLASSROOM TOPOLOGY',
        biz_tag: 'ENTERPRISE COMMS TOPOLOGY',
        medical_src: 'مشفىً محلي',
        medical_dst: 'مختصٌّ عن بُعد',
        edu_src: 'القاعة الفعلية',
        edu_dst: 'طلابٌ عن بُعد',
        biz_src: 'قاعةُ الإدارة',
        biz_dst: 'مكاتبُ متعددة',
        medical_pipe: 'بثٌّ مُشفّر',
        edu_pipe: 'محاضرةٌ مباشرة',
        biz_pipe: 'مشاركةٌ متزامنة',
      },
    },
    // ──────────────── BUNDLES ────────────────
    bundles: {
      eyebrow: 'الحلول الجاهزة',
      title: 'حزمٌ متكاملةٌ لقاعةٍ واحدة.',
      sub: 'تجهيزٌ يومَ التركيب — كل ما يلزم في صندوقٍ واحد، بسعرٍ ثابت.',
      items: [
        {
          id: 'smart-classroom',
          tag: 'EDUCATION',
          nm: 'حزمة الفصل الذكي',
          en: 'Smart Classroom Bundle',
          desc: 'كل ما تحتاجه قاعةٌ تعليميةٌ حديثة، يُركَّب في يومٍ واحد.',
          parts: [
            'شاشة تفاعلية 4K UHD (75″ أو 86″)',
            'منصة إلقاء رقمية ePodium',
            'كاميرا تتبّع المحاضر',
            'مصفوفةُ مايكروفوناتٍ سقفية Dante',
            'مكبراتُ صوتٍ جدارية + معالجٌ صوتيٌّ DSP',
            'منصة inClass للتعليم الهجين',
            'تركيبٌ كاملٌ + تدريبُ فريق',
          ],
          fit: 'مناسبٌ لقاعاتٍ تتسع لـ 30–80 طالباً.',
        },
        {
          id: 'hybrid-ot',
          tag: 'HEALTHCARE',
          nm: 'حزمة العمليات الهجينة',
          en: 'Hybrid Operating Theatre Bundle',
          desc: 'تحويل غرفة العمليات إلى مركزٍ تعليميٍّ واستشاريٍّ عالمي.',
          parts: [
            'كاميراتُ 4K PTZ فوق العمليات',
            'وحدةُ مزجٍ سمعيٍّ بصري متكاملة',
            'تسجيلٌ متوافقٌ مع HIPAA',
            'تكاملٌ مع أجهزة ECG و X-ray و Ultrasound',
            'بثٌّ مباشرٌ لمدرّجاتٍ تعليمية',
            'استشاراتٌ ثنائيةُ الاتجاه مع مختصين عالميين',
            'تركيبٌ + تدريبٌ + شهادةٌ للفريق',
          ],
          fit: 'مناسبٌ لمشافي التعليم الجامعي والمراكز المتخصصة.',
        },
        {
          id: 'boardroom',
          tag: 'BUSINESS',
          nm: 'حزمة قاعة الإدارة',
          en: 'Executive Boardroom Bundle',
          desc: 'قاعةُ اجتماعاتٍ تنفيذيةٌ تُجمعُ مكاتبَ متعددةً في غرفةٍ واحدة.',
          parts: [
            'شاشتان مزدوجتان 86″ بدقة 4K',
            'كاميرتا PTZ بتتبّع المتحدث',
            'مصفوفةُ مايكروفوناتٍ سقفية + إلغاءُ ضوضاء',
            'وحدةُ مؤتمراتٍ Boardroom VC',
            'مشاركةُ شاشةٍ لاسلكية',
            'تحكّمٌ مركزيٌّ بلوحةٍ موحّدة',
            'تركيبٌ + تدريبُ المساعدين التنفيذيين',
          ],
          fit: 'مناسبٌ لقاعاتٍ تنفيذيةٍ من 8 إلى 24 شخصاً.',
        },
        {
          id: 'huddle',
          tag: 'BUSINESS',
          nm: 'حزمة Huddle Room',
          en: 'Huddle Room Bundle',
          desc: 'غرفةُ اجتماعاتٍ صغيرةٌ بضغطة زر.',
          parts: [
            'شاشة 55″ أو 65″ بدقة 4K',
            'حزمةُ PeopleLink Huddle 4K (كاميرا + ميكروفون + سماعات)',
            'مشاركةٌ لاسلكيةٌ بنقرة',
            'تركيبٌ خفيف ولا يحتاج إلى مهندسٍ مقيم',
          ],
          fit: 'مناسبٌ لـ 3–8 أشخاص.',
        },
      ],
    },
    // ──────────────── PRODUCTS ────────────────
    products: {
      eyebrow: 'المنتجات · PEOPLELINK CATALOG',
      title: 'المنتجات.',
      filter_all: 'الكل',
      filter_health: 'الصحي',
      filter_edu: 'التعليمي',
      filter_biz: 'الأعمال',
      tags: { health: 'الصحي', edu: 'التعليمي', biz: 'الأعمال' },
      // Per-product strings used by products.jsx
      panel: {
        cat: 'شاشات تفاعلية', catEn: 'INTERACTIVE PANELS',
        nm: 'الشاشة التفاعلية', en: 'Interactive Touch Display',
        desc: 'شاشةُ لمسٍ بدقة 4K UHD، بمقاسات من 55″ إلى 110″. عشرون نقطةَ لمسٍ ودعمٌ للكتابة اليدوية، نظامُ أندرويد مدمج، ومشاركةُ شاشةٍ لاسلكية.',
      },
      inclass: {
        cat: 'منصاتٌ برمجية', catEn: 'PLATFORM',
        nm: 'inClass', en: 'Virtual Classroom Platform',
        desc: 'منصةُ تعليمٍ سحابية SaaS تجعل الفصل الواحدَ يضمّ الحضوريَّ والبُعديَّ معاً، بإدارةِ حضورٍ واختباراتٍ وتسجيلِ محاضرات.',
        deep_label: 'استكشف inClass',
      },
      epodium: {
        cat: 'منصاتُ إلقاء', catEn: 'EPODIUM',
        nm: 'ePodium', en: 'Smart Podium Delta / Ultra / Elite',
        desc: 'منصةُ إلقاءٍ متكاملة بحاسوبٍ ولوحةِ تحكمٍ تُدير العرضَ والمايكروفونات والإضاءة. شاشةُ لمسٍ 21.5″ وميكروفونٌ Gooseneck.',
      },
      tracking: {
        cat: 'كاميرات', catEn: 'TRACKING CAMERAS',
        nm: 'كاميرا تتبّع المحاضر', en: 'Teacher / Student Tracking — CM Alpha',
        desc: 'كاميرا 1080p60 بتكبيرٍ بصري 20× وتتبّعٍ تلقائيٍّ للمتحدث. مجالُ رؤيةٍ 59.5° واتصالُ USB 3.0 و SDI و DVI.',
      },
      ceiling: {
        cat: 'صوت', catEn: 'AUDIO',
        nm: 'ميكروفون السقف Dante', en: 'Dante Ceiling Microphone',
        desc: 'مصفوفةُ مايكروفوناتٍ سقفية بسبعِ كبسولات، اتصالُ PoE، وشبكة Dante منخفضةُ زمنِ الاستجابة لقاعاتٍ متوسطةٍ وكبيرة.',
      },
      inclinic: {
        cat: 'منصاتٌ برمجية', catEn: 'PLATFORM',
        nm: 'inClinic', en: 'Virtual Clinic Platform',
        desc: 'عيادةٌ سحابيةٌ افتراضيةٌ مع غرفةِ انتظار، سجلاتٍ صحيةٍ إلكترونية، وبوابةِ دفعٍ مدمجةٍ لتحويلِ أتعاب الاستشارة مباشرة.',
      },
      hybrid: {
        cat: 'البث الجراحي', catEn: 'HYBRID OT',
        nm: 'منظومة العمليات الهجينة', en: 'Hybrid Operating Theatre',
        desc: 'بثٌّ مباشرٌ ومتزامنٌ من قاعة العمليات، مع مزجٍ صوتيٍّ بصريٍّ وتسجيلٍ متوافقٍ مع HIPAA. تكاملٌ مع أجهزة ECG و X-ray.',
      },
      rpm: {
        cat: 'مراقبةٌ عن بُعد', catEn: 'TELE-ICU · RPM',
        nm: 'مراقبة المرضى عن بُعد', en: 'Tele-ICU & Remote Patient Monitoring',
        desc: 'مراقبةٌ مستمرةٌ لعدة وحداتٍ في وقتٍ واحد، مع تكاملٍ مع أجهزة العلامات الحيوية. مناسبٌ للأمراض المزمنة ومتابعة ما بعد الخروج.',
      },
      ems: {
        cat: 'إسعافٌ متقدم', catEn: 'EMS AMBULANCE',
        nm: 'حلّ الإسعاف', en: 'EMS Ambulance Solution',
        desc: 'بثٌّ مباشرٌ ثنائي الاتجاه من الإسعاف إلى الطوارئ، مع ست كاميراتٍ ومؤشراتٍ حيويةٍ لحظية. تنبيهاتٌ مسبقةٌ للمشفى.',
      },
      cam4k: {
        cat: 'كاميرات', catEn: 'TELEHEALTH CAMERAS',
        nm: 'كاميرا التشخيص 4K', en: '4K Telehealth Camera',
        desc: 'كاميرا 4K للاستشارات الجلدية والجروح وفحوصات ما بعد العمليات. تأطيرٌ تلقائيٌّ وتتبّعٌ بصري للمتحدث.',
      },
      huddle: {
        cat: 'غرفُ اجتماعاتٍ صغيرة', catEn: 'HUDDLE ROOMS',
        nm: 'حزمة Huddle Room', en: 'PeopleLink Huddle 4K',
        desc: 'حلٌّ متكاملٌ للغرف الصغيرة (3–8 أشخاص): كاميرا، شريطُ مايكروفونات، وسماعاتٌ بإلغاءِ الضوضاء بضغطةِ زر.',
      },
      outdoor: {
        cat: 'شاشاتٌ طرقية', catEn: 'OUTDOOR LED',
        nm: 'شاشة Outdoor LED', en: 'Outdoor LED · P5 / P8',
        desc: 'شاشاتُ إعلاناتٍ طرقيةٍ بسطوع 7,500 nits، مقاومةُ ماءٍ IP65، ووحداتٌ قياسيةٌ قابلةٌ للتمدد لأي مقاس.',
      },
    },
    // ──────────────── inClass DEEP DIVE ────────────────
    inclass_dive: {
      eyebrow: 'منصة inClass · DEEP DIVE',
      title: 'فصلٌ واحد، حاضرون وبُعديّون معاً.',
      sub: 'منصة SaaS سحابية تجعل كل قاعةٍ تقليديةٍ فضاءً تفاعلياً للتعليم الهجين.',
      pillars: [
        { k: 'إدارةٌ سهلة', d: 'تنصيبٌ سريع، ودعمٌ تقنيٌّ يومي — حتى مع فريقِ تقنيةٍ محدود.' },
        { k: 'تشاركيةٌ آمنة', d: 'WebRTC بتشفير AES يضمن الموثوقية وحماية البث والمحتوى.' },
        { k: 'تجربةٌ غامرة', d: 'فيديو ومحتوى مباشر يُحوّلان القاعة الافتراضية إلى لقاءٍ حيّ.' },
      ],
      features: [
        'منظومةُ إدارةِ التعلم LMS متكاملة',
        'استشارةٌ افتراضيةٌ مع الطلاب',
        'تسجيلُ المحاضرات للوصول لاحقاً',
        'إدارةُ الحضور والاختبارات',
        'تقييماتٌ ونتائجُ تلقائية',
        'كتابةٌ على السبورة المشتركة وتفاعلٌ مباشر',
      ],
      cta_back: 'العودة',
      cta_request: 'تواصل لطلب عرض',
    },
    // ──────────────── CERTIFICATIONS ────────────────
    certs: {
      eyebrow: 'الاعتماد والامتثال',
      title: 'موثّقٌ عالمياً، جاهزٌ محلياً.',
      sub: 'PeopleLink معتمدةٌ بأكثر شهادات الجودة والامتثال انتشاراً.',
      items: [
        { k: 'ISO 9001:2015', d: 'إدارة الجودة' },
        { k: 'ISO 14001:2015', d: 'الإدارة البيئية' },
        { k: 'ISO 27001:2013', d: 'أمن المعلومات' },
        { k: 'HIPAA', d: 'الخصوصية الصحية' },
        { k: 'GDPR · CCPA', d: 'حماية البيانات' },
        { k: 'CE · FCC · BIS', d: 'سلامة الأجهزة' },
        { k: 'RoHS', d: 'المواد الآمنة' },
        { k: 'CMMI ML3', d: 'هندسة العمليات' },
      ],
    },
    // ──────────────── NUMBERS / GLOBAL STATS ────────────────
    numbers: {
      eyebrow: 'PeopleLink · بالأرقام',
      title: 'حضورٌ عالميٌّ ثابت.',
      items: [
        { k: '2,100+', d: 'مؤسسةٌ عالميةٌ تستخدم PeopleLink' },
        { k: '35+', d: 'دولةٌ يتواجد فيها PeopleLink' },
        { k: '60+', d: 'منتجٌ من الأجهزة الاحترافية' },
        { k: '18+', d: 'سنةٌ من خبرة الصوت والفيديو' },
        { k: '20,000+', d: 'عميلٌ راضٍ حول العالم' },
        { k: '2,500+', d: 'شريكٌ في الهند والشرق الأوسط وأفريقيا' },
        { k: '15+', d: 'جائزةٌ كبرى مُحرزة' },
        { k: '4K · HDR', d: 'معايير البثّ الاحترافي' },
      ],
    },
    // ──────────────── ROADMAP / SYRIA VISION ────────────────
    roadmap: {
      eyebrow: 'رؤيتنا للسوق السوري',
      title: 'تكنولوجيا أجنبيةٌ بأيدٍ سورية.',
      sub: 'نُترجم المعايير العالمية إلى حلولٍ متاحةٍ ومُيسّرة لكل مؤسسةٍ سورية — من التصميم إلى الصيانة.',
      items: [
        { p: '01', k: 'مسحٌ ميدانيٌّ مجاني', d: 'يزور مهندسونا الموقع، يقيسون القاعة، يستمعون لاحتياجك، ويُصدرون تقريراً مفصّلاً.' },
        { p: '02', k: 'تصميمٌ هندسيٌّ مفصّل', d: 'مخطّطات الكهرباء والشبكة والصوت — بالتعاون مع فريقك الفنّي وموافقات الإدارة.' },
        { p: '03', k: 'استيرادٌ مباشرٌ من المصنع', d: 'وكالةٌ حصرية تعني أسعاراً مباشرة وضمانةً رسمية، دون وسطاء.' },
        { p: '04', k: 'تركيبٌ وتدريبٌ في الموقع', d: 'فريقُ تركيبٍ سوري، وتدريبٌ للمستخدمين، ووثائقُ تشغيلٍ بالعربية والإنجليزية.' },
        { p: '05', k: 'صيانةٌ ودعمٌ متواصل', d: 'دعمٌ هاتفي ومُيدانيٌّ خلال يوم عمل، قطعُ غيارٍ من مستودعاتنا في دمشق وحلب.' },
      ],
    },
    // ──────────────── FAQ ────────────────
    faq: {
      eyebrow: 'أسئلةٌ متكررة',
      title: 'الأسئلة الشائعة.',
      items: [
        { q: 'هل أسبلد هي الوكيل الحصري الوحيد في سوريا؟', a: 'نعم. أسبلد هي الموزّع الحصري الرسمي لشركة PeopleLink الهندية في سوريا. أي عرضٍ بأسعارٍ أو ضماناتٍ من PeopleLink داخل سوريا يمرّ عبرنا حصراً.' },
        { q: 'ما المحافظات التي تُغطّونها؟', a: 'كل المحافظات السورية. لدينا مركزان في دمشق وحلب، ومهندسونا يسافرون لمواقع العملاء في حماة وحمص واللاذقية وطرطوس ودير الزور والحسكة والرقّة وإدلب ودرعا والسويداء.' },
        { q: 'هل التركيب والصيانة ضمن العرض؟', a: 'نعم. كل حزمةٍ تشمل التركيب الكامل في الموقع، تدريباً للمستخدمين، ووثائقَ تشغيلٍ بالعربية والإنجليزية. عقدُ الصيانة متاحٌ سنوياً ويشمل الزياراتِ الميدانيةَ وقطعَ الغيار.' },
        { q: 'ما زمن الاستجابة للدعم الفنّي؟', a: 'دعمٌ هاتفي فوري، وزيارةٌ ميدانيةٌ خلال يوم عملٍ واحد لعقود الصيانة المعتمدة. قطعُ الغيار الأساسية موجودةٌ في مستودعاتنا بدمشق وحلب.' },
        { q: 'هل المنصات متوفرةٌ باللغة العربية؟', a: 'inClass و inClinic تدعمان الواجهة العربية وثنائية الاتجاه. كل التدريب والوثائق تُسلَّم بالعربية والإنجليزية.' },
        { q: 'هل يمكن تخصيص الحلول لاحتياجات خاصة؟', a: 'نعم. كل قاعةٍ مختلفة. نُصمّم الحلَّ على قياس الموقع، وعدد المستخدمين، والميزانية. اطلب مسحاً ميدانياً مجانياً للبدء.' },
        { q: 'ما طرق الدفع؟', a: 'نقبل الدفعَ النقدي، الحوالاتِ المحلية، والتقسيطَ للجهات المؤسسية. شروطُ الدفع تُناقش مع العقد.' },
      ],
    },
    // ──────────────── CONTACT ────────────────
    contact: {
      eyebrow: 'تواصل',
      title: 'للاستفسار أو طلب عرض.',
      lede: 'راسلنا أو اتصل بنا — نردّ خلال يوم عملٍ واحد.',
      phone_k: 'هاتف',
      phone_sub: 'أرضي · 021 — 8040',
      email_k: 'بريدٌ إلكتروني',
      email_sub: 'للاستفسارات وطلبات العروض',
      hq_k: 'المركز',
      hq_v: 'دمشق وحلب · سوريا',
      hq_sub: 'نُغطّي كافة المحافظات السورية',
    },
    // ──────────────── FOOTER ────────────────
    footer: {
      tagline: 'الوكيلُ الحصريُّ لـ PeopleLink في سوريا — حلولُ تواصلٍ بصريٍّ للصحة، التعليم، والأعمال.',
      sectors_h: 'القطاعات',
      sectors_health: 'القطاع الصحي',
      sectors_edu: 'القطاع التعليمي',
      sectors_biz: 'قطاع الأعمال',
      products_h: 'المنتجات',
      products_panels: 'الشاشات التفاعلية',
      products_cams: 'كاميرات 4K PTZ',
      products_platforms: 'منصات inClass / inClinic',
      products_outdoor: 'الشاشات الطرقية',
      contact_h: 'تواصل',
      copyright: '© 2026 ASBALD TRADING & INVESTMENT CO. — جميع الحقوق محفوظة',
      pl_tag: 'EXCLUSIVE PARTNER — PEOPLELINK INDIA',
    },
  },

  // ════════════════════════════════════════════════════════════════
  //  ENGLISH
  // ════════════════════════════════════════════════════════════════
  en: {
    brand: {
      name: 'ASBALD',
      sub: 'TRADING & INVESTMENT CO.',
      full: 'Asbald Trading & Investment Co.',
    },
    nav: {
      home: 'Home',
      about: 'About',
      why: 'Why us',
      sectors: 'Sectors',
      bundles: 'Bundles',
      products: 'Products',
      faq: 'FAQ',
      contact: 'Contact',
      cta: 'Contact',
      lang_toggle: 'AR',
    },
    hero: {
      eyebrow: 'Damascus & Aleppo · Syria',
      h1_1: 'Visual',
      h1_2: 'communication systems',
      h1_3: 'for institutions.',
      lede: 'Asbald is the exclusive Syrian distributor for PeopleLink of India. We equip hospitals, universities, and businesses with 4K cameras, interactive panels, and platforms for hybrid learning, meetings, and outdoor advertising.',
      cta_sectors: 'Sectors',
      cta_products: 'Products',
      stat1_num: '2,100+',
      stat1_lbl: 'Institutions running PeopleLink worldwide',
      stat2_num: '03',
      stat2_lbl: 'Sectors we serve',
      stat3_num: '4K',
      stat3_lbl: 'Default quality standard',
      cred_eyebrow: 'EXCLUSIVE DISTRIBUTOR · SYRIA',
      cred_partner_sub: 'Unified Communications · India',
      cred_stat_lbl: 'Institutions worldwide use PeopleLink solutions.',
      cred_hq_k: 'HQ',
      cred_hq_v: 'Damascus & Aleppo · Syria',
      cred_sectors_k: 'Sectors',
      cred_sectors_v: 'Health · Education · Business',
    },
    partner: {
      eyebrow: 'TRUSTED BY',
      sub: 'Institutions worldwide running PeopleLink',
    },
    about: {
      eyebrow: 'About',
      title: 'Exclusive distribution, local engineering.',
      p1: 'Asbald Trading & Investment Co. brings to the Syrian market a brand certified across 2,100+ global institutions — with ready-to-deploy solutions for healthcare, education, and business.',
      p2: 'Our Damascus- and Aleppo-based team designs, installs, trains, and maintains — across every Syrian governorate.',
      pl_name: 'Unified Communications',
      pl_sub: 'HYDERABAD · INDIA · SINCE 2002',
      row_partnership_k: 'Partnership',
      row_partnership_v: 'Exclusive distributor for Syria',
      row_coverage_k: 'Coverage',
      row_coverage_v: 'All Syrian governorates',
      row_services_k: 'Services',
      row_services_v: 'Design · Install · Train · Maintain',
    },
    why: {
      eyebrow: 'Why Asbald',
      title: 'Why us.',
      sub: 'Exclusive distribution, local execution, globally-certified products.',
      items: [
        { k: '01', t: 'Exclusive distributor', d: 'The sole representative of PeopleLink India in Syria — factory pricing, official warranty, and direct firmware support.' },
        { k: '02', t: 'Local team in Damascus and Aleppo', d: 'Syrian engineers visit the site, design the system, train your team, and return for maintenance.' },
        { k: '03', t: 'Foreign tech, Syrian hands', d: 'Solutions deployed across 35+ countries — available here at a measured price with Arabic support.' },
        { k: '04', t: 'Full coverage', d: 'Every Syrian governorate is included.' },
        { k: '05', t: 'Complete training', d: 'We don\u2019t hand you a box and leave. We train your team on every unit and document the daily flow in Arabic and English.' },
        { k: '06', t: 'Ongoing maintenance', d: 'Phone and on-site support within one business day, with spares stocked in our Damascus and Aleppo warehouses.' },
      ],
    },
    sectors: {
      eyebrow: 'Sectors',
      title: 'We serve all sectors.',
      sub: 'Systems built for health, education, business — and all sectors.',
      medical: {
        num: '01',
        nm: 'Healthcare',
        en_sub: 'Healthcare · Telemedicine',
        headline: 'Live surgical broadcast and specialist-to-specialist consults.',
        problem: 'Connect hospitals to global medical centers via live surgical streaming.',
        kw: 'TELEMEDICINE',
        solution: '4K surgical broadcast, virtual consults, and recording for teaching and review.',
        products: [
          ['01', '4K PTZ Cameras', 'بث جراحي 4K'],
          ['02', 'inClinic Platform', 'منصة inClinic'],
          ['03', 'Surgical Broadcast', 'بث العمليات الجراحية'],
        ],
      },
      edu: {
        num: '02',
        nm: 'Education',
        en_sub: 'Education · Hybrid Classrooms',
        headline: 'Hybrid classrooms that reach every student.',
        problem: 'Design interactive classrooms that merge in-room and remote learning.',
        kw: 'HYBRID LEARNING',
        solution: '4K interactive panels, a live management platform, and lecture podiums that connect the room with remote students.',
        products: [
          ['01', '4K UHD Interactive Panels', 'شاشات تفاعلية'],
          ['02', 'inClass Platform', 'منصة inClass'],
          ['03', 'Smart Podiums', 'منصات الإلقاء'],
        ],
      },
      biz: {
        num: '03',
        nm: 'Business',
        en_sub: 'Business · Meetings & Outdoor',
        headline: 'Cross-site meetings and street-side displays.',
        problem: 'Automate boardrooms and deploy high-brightness outdoor advertising.',
        kw: 'ENTERPRISE AV',
        solution: 'Boardroom conferencing, Huddle kits for small teams, and outdoor LED for campaigns.',
        products: [
          ['01', 'Video Conferencing', 'مؤتمرات الفيديو'],
          ['02', 'Outdoor LED Displays', 'الشاشات الطرقية'],
          ['03', 'Huddle Room Kits', 'حلول Huddle'],
        ],
      },
      dg: {
        medical_tag: 'TELEMEDICINE TOPOLOGY',
        edu_tag: 'HYBRID CLASSROOM TOPOLOGY',
        biz_tag: 'ENTERPRISE COMMS TOPOLOGY',
        medical_src: 'Local hospital',
        medical_dst: 'Remote specialist',
        edu_src: 'Physical classroom',
        edu_dst: 'Remote students',
        biz_src: 'Boardroom',
        biz_dst: 'Multi-site offices',
        medical_pipe: 'Encrypted stream',
        edu_pipe: 'Live lecture',
        biz_pipe: 'Simultaneous sharing',
      },
    },
    bundles: {
      eyebrow: 'Ready-made bundles',
      title: 'Complete kits, one room at a time.',
      sub: 'Day-of-install pricing — everything you need in one fixed-price bundle.',
      items: [
        {
          id: 'smart-classroom',
          tag: 'EDUCATION',
          nm: 'Smart Classroom Bundle',
          en: 'Smart Classroom Bundle',
          desc: 'Everything a modern teaching room needs, installed in one day.',
          parts: [
            '4K UHD Interactive Panel (75″ or 86″)',
            'ePodium digital lectern',
            'Teacher tracking camera',
            'Dante ceiling microphone array',
            'Wall speakers + DSP audio processor',
            'inClass hybrid learning platform',
            'Full installation + team training',
          ],
          fit: 'Fits classrooms of 30–80 students.',
        },
        {
          id: 'hybrid-ot',
          tag: 'HEALTHCARE',
          nm: 'Hybrid OT Bundle',
          en: 'Hybrid Operating Theatre Bundle',
          desc: 'Turn an operating room into a global teaching and consult hub.',
          parts: [
            'Overhead 4K PTZ cameras',
            'Integrated AV mixing unit',
            'HIPAA-compliant recording',
            'ECG / X-ray / Ultrasound integration',
            'Live broadcast to teaching auditoriums',
            'Two-way consults with global specialists',
            'Install + training + team certification',
          ],
          fit: 'Suited to teaching hospitals and specialty centers.',
        },
        {
          id: 'boardroom',
          tag: 'BUSINESS',
          nm: 'Boardroom Bundle',
          en: 'Executive Boardroom Bundle',
          desc: 'An executive room that joins multiple offices into one session.',
          parts: [
            'Dual 86″ 4K displays',
            'Two PTZ speaker-tracking cameras',
            'Ceiling microphone array + noise cancel',
            'Boardroom VC unit',
            'Wireless screen sharing',
            'Unified central control',
            'Install + executive-assistant training',
          ],
          fit: 'Fits executive rooms of 8 to 24 people.',
        },
        {
          id: 'huddle',
          tag: 'BUSINESS',
          nm: 'Huddle Room Bundle',
          en: 'Huddle Room Bundle',
          desc: 'A small meeting room, by the press of a button.',
          parts: [
            '55″ or 65″ 4K display',
            'PeopleLink Huddle 4K kit (camera + mic + speakers)',
            'One-tap wireless sharing',
            'Light install — no resident engineer needed',
          ],
          fit: 'Fits 3–8 people.',
        },
      ],
    },
    products: {
      eyebrow: 'PRODUCTS · PEOPLELINK CATALOG',
      title: 'Products.',
      filter_all: 'All',
      filter_health: 'Healthcare',
      filter_edu: 'Education',
      filter_biz: 'Business',
      tags: { health: 'Healthcare', edu: 'Education', biz: 'Business' },
      panel: {
        cat: 'Interactive panels', catEn: 'INTERACTIVE PANELS',
        nm: 'Interactive Touch Display', en: 'Interactive Touch Display',
        desc: '4K UHD touch display, sizes from 55″ to 110″. 20-point touch with handwriting recognition, built-in Android, and wireless screen sharing.',
      },
      inclass: {
        cat: 'Software platform', catEn: 'PLATFORM',
        nm: 'inClass', en: 'Virtual Classroom Platform',
        desc: 'A cloud SaaS learning platform that joins in-room and remote students in one class, with attendance, exams, and lecture recording.',
        deep_label: 'Explore inClass',
      },
      epodium: {
        cat: 'Podiums', catEn: 'EPODIUM',
        nm: 'ePodium', en: 'Smart Podium Delta / Ultra / Elite',
        desc: 'An all-in-one digital lectern with a built-in PC and control surface for projection, microphones, and lighting. 21.5″ touch screen and gooseneck mic.',
      },
      tracking: {
        cat: 'Cameras', catEn: 'TRACKING CAMERAS',
        nm: 'Tracking Camera', en: 'Teacher / Student Tracking — CM Alpha',
        desc: '1080p60 camera with 20× optical zoom and automatic speaker tracking. 59.5° field of view; USB 3.0, SDI, and DVI connectors.',
      },
      ceiling: {
        cat: 'Audio', catEn: 'AUDIO',
        nm: 'Dante Ceiling Microphone', en: 'Dante Ceiling Microphone',
        desc: 'Seven-capsule ceiling microphone array over PoE on a low-latency Dante network — for medium to large rooms.',
      },
      inclinic: {
        cat: 'Software platform', catEn: 'PLATFORM',
        nm: 'inClinic', en: 'Virtual Clinic Platform',
        desc: 'A virtual clinic with waiting room, EHR access, and an integrated payment gateway that routes consultation fees directly to the practitioner.',
      },
      hybrid: {
        cat: 'Surgical broadcast', catEn: 'HYBRID OT',
        nm: 'Hybrid Operating Theatre', en: 'Hybrid Operating Theatre',
        desc: 'Live, synchronized broadcast from the operating theatre with AV mixing, HIPAA-compliant recording, and ECG / X-ray / Ultrasound integration.',
      },
      rpm: {
        cat: 'Remote monitoring', catEn: 'TELE-ICU · RPM',
        nm: 'Tele-ICU & RPM', en: 'Tele-ICU & Remote Patient Monitoring',
        desc: 'Continuous monitoring of multiple ICUs simultaneously, integrated with vital-sign devices. Suited to chronic care and post-discharge follow-up.',
      },
      ems: {
        cat: 'Advanced EMS', catEn: 'EMS AMBULANCE',
        nm: 'EMS Solution', en: 'EMS Ambulance Solution',
        desc: 'Two-way live broadcast from the ambulance to the ER with up to six camera feeds and live vital signs. Pre-arrival alerting for the hospital.',
      },
      cam4k: {
        cat: 'Cameras', catEn: 'TELEHEALTH CAMERAS',
        nm: '4K Telehealth Camera', en: '4K Telehealth Camera',
        desc: 'A 4K camera for dermatology, wound, and post-op virtual exams. Auto-framing and visual speaker tracking.',
      },
      huddle: {
        cat: 'Small meeting rooms', catEn: 'HUDDLE ROOMS',
        nm: 'Huddle Room Kit', en: 'PeopleLink Huddle 4K',
        desc: 'Complete small-room solution (3–8 people): camera, microphone array, and noise-cancelling speakers, deployed by the press of a button.',
      },
      outdoor: {
        cat: 'Outdoor displays', catEn: 'OUTDOOR LED',
        nm: 'Outdoor LED', en: 'Outdoor LED · P5 / P8',
        desc: 'Outdoor advertising panels at 7,500 nits, IP65 weatherproof, with standard modules that scale to any size.',
      },
    },
    inclass_dive: {
      eyebrow: 'inClass · DEEP DIVE',
      title: 'One class, in-room and remote together.',
      sub: 'A cloud SaaS platform that turns every traditional classroom into an interactive hybrid space.',
      pillars: [
        { k: 'Easy IT', d: 'Quick to deploy and manage daily — even with a limited technology team.' },
        { k: 'Secure collaboration', d: 'WebRTC with AES encryption ensures reliability and protects content and stream.' },
        { k: 'Immersive experience', d: 'Live video and content turn the virtual classroom into a real, present encounter.' },
      ],
      features: [
        'Integrated learning-management suite (LMS)',
        'Virtual student counseling',
        'Lecture capture for on-demand replay',
        'Attendance and exam management',
        'Automated assessments and grading',
        'Shared whiteboard and live interaction',
      ],
      cta_back: 'Back',
      cta_request: 'Request a quote',
    },
    certs: {
      eyebrow: 'Certifications & compliance',
      title: 'Globally certified, locally ready.',
      sub: 'PeopleLink carries the most widely-adopted quality and compliance standards.',
      items: [
        { k: 'ISO 9001:2015', d: 'Quality management' },
        { k: 'ISO 14001:2015', d: 'Environmental management' },
        { k: 'ISO 27001:2013', d: 'Information security' },
        { k: 'HIPAA', d: 'Healthcare privacy' },
        { k: 'GDPR · CCPA', d: 'Data protection' },
        { k: 'CE · FCC · BIS', d: 'Device safety' },
        { k: 'RoHS', d: 'Safe materials' },
        { k: 'CMMI ML3', d: 'Process engineering' },
      ],
    },
    numbers: {
      eyebrow: 'PeopleLink · BY THE NUMBERS',
      title: 'A steady global presence.',
      items: [
        { k: '2,100+', d: 'Institutions worldwide running PeopleLink' },
        { k: '35+', d: 'Countries where PeopleLink is present' },
        { k: '60+', d: 'Professional hardware products' },
        { k: '18+', d: 'Years of AV expertise' },
        { k: '20,000+', d: 'Satisfied customers worldwide' },
        { k: '2,500+', d: 'Partners in India, ME & Africa' },
        { k: '15+', d: 'Major industry awards' },
        { k: '4K · HDR', d: 'Professional broadcast standards' },
      ],
    },
    roadmap: {
      eyebrow: 'Our vision for the Syrian market',
      title: 'Foreign tech, Syrian hands.',
      sub: 'We translate global standards into solutions any Syrian institution can deploy — from design to maintenance.',
      items: [
        { p: '01', k: 'Free site survey', d: 'Our engineers visit the site, measure the room, listen to your needs, and issue a detailed report.' },
        { p: '02', k: 'Detailed engineering design', d: 'Power, network, and audio drawings — built with your technical team and approved by management.' },
        { p: '03', k: 'Direct factory import', d: 'Exclusive distribution means direct pricing and official warranty, with no middlemen.' },
        { p: '04', k: 'On-site install and training', d: 'A Syrian install crew, user training, and Arabic and English operating documentation.' },
        { p: '05', k: 'Maintenance and ongoing support', d: 'Phone and on-site support within one business day, with spares from our Damascus and Aleppo warehouses.' },
      ],
    },
    faq: {
      eyebrow: 'Frequently asked',
      title: 'FAQ.',
      items: [
        { q: 'Is Asbald the only exclusive distributor in Syria?', a: 'Yes. Asbald is the official sole distributor for PeopleLink India in Syria. Any quote with PeopleLink pricing or warranty inside Syria runs through us exclusively.' },
        { q: 'Which governorates do you cover?', a: 'All of them. We have offices in Damascus and Aleppo, and our engineers travel to client sites in Hama, Homs, Latakia, Tartus, Deir ez-Zor, Hasakah, Raqqa, Idlib, Daraa, and Sweida.' },
        { q: 'Are installation and maintenance included in the quote?', a: 'Yes. Every bundle includes complete on-site installation, user training, and Arabic and English operating documentation. Annual maintenance contracts include site visits and spare parts.' },
        { q: 'What is the technical-support response time?', a: 'Phone support is immediate; a site visit follows within one business day for active maintenance contracts. Core spares are stocked in our Damascus and Aleppo warehouses.' },
        { q: 'Are the platforms available in Arabic?', a: 'inClass and inClinic both offer Arabic interfaces and full RTL support. All training and documentation are delivered in Arabic and English.' },
        { q: 'Can solutions be customized to specific needs?', a: 'Yes. Every room is different. We tailor the solution to the site, user count, and budget — request a free site survey to begin.' },
        { q: 'What payment terms are available?', a: 'Cash, local bank transfers, and institutional installment plans. Payment terms are negotiated with the contract.' },
      ],
    },
    contact: {
      eyebrow: 'Contact',
      title: 'For questions or a quote.',
      lede: 'Write or call — we reply within one business day.',
      phone_k: 'Phone',
      phone_sub: 'Landline · 021 — 8040',
      email_k: 'Email',
      email_sub: 'For inquiries and quote requests',
      hq_k: 'Headquarters',
      hq_v: 'Damascus & Aleppo · Syria',
      hq_sub: 'We cover all Syrian governorates',
    },
    footer: {
      tagline: 'Exclusive PeopleLink distributor in Syria — visual communication systems for healthcare, education, and business.',
      sectors_h: 'Sectors',
      sectors_health: 'Healthcare',
      sectors_edu: 'Education',
      sectors_biz: 'Business',
      products_h: 'Products',
      products_panels: 'Interactive panels',
      products_cams: '4K PTZ cameras',
      products_platforms: 'inClass / inClinic platforms',
      products_outdoor: 'Outdoor LED displays',
      contact_h: 'Contact',
      copyright: '© 2026 ASBALD TRADING & INVESTMENT CO. — All rights reserved',
      pl_tag: 'EXCLUSIVE PARTNER — PEOPLELINK INDIA',
    },
  },
};

// ── Provider + hook ─────────────────────────────────────────────────────────

const I18nContext = React.createContext({
  lang: 'ar',
  t: (k) => k,
  setLang: () => {},
});

function I18nProvider({ children }) {
  const [lang, setLang] = React.useState(() => {
    try {
      const saved = localStorage.getItem('asbald-lang');
      if (saved === 'ar' || saved === 'en') return saved;
    } catch (e) { /* ignore */ }
    return 'ar';
  });

  React.useEffect(() => {
    const dir = lang === 'ar' ? 'rtl' : 'ltr';
    document.documentElement.lang = lang;
    document.documentElement.dir = dir;
    document.body.setAttribute('data-lang', lang);
    try { localStorage.setItem('asbald-lang', lang); } catch (e) { /* ignore */ }
  }, [lang]);

  const t = React.useCallback((path) => {
    const parts = path.split('.');
    let cur = STRINGS[lang];
    for (const p of parts) {
      if (cur == null) break;
      cur = cur[p];
    }
    if (cur != null) return cur;
    // Fallback to AR if EN missing (or vice versa) so half-translated keys
    // still render something readable.
    let fb = STRINGS[lang === 'ar' ? 'en' : 'ar'];
    for (const p of parts) {
      if (fb == null) break;
      fb = fb[p];
    }
    return fb != null ? fb : path;
  }, [lang]);

  return (
    <I18nContext.Provider value={{ lang, t, setLang }}>
      {children}
    </I18nContext.Provider>
  );
}

function useI18n() {
  return React.useContext(I18nContext);
}

Object.assign(window, { I18nProvider, useI18n, __ASBALD_STRINGS__: STRINGS });
