// Forgefix v2 — English-only content (single source of truth)
const CONTENT = {
  brand: 'FORGEFIX',
  tagline: 'Premium Maintenance, UAE',
  phone: '+971 50 791 7160',
  phoneTel: '+971507917160',
  email: 'info@forgefix.ae',
  whatsapp: '+971507917160',
  location: 'Mussafah, Abu Dhabi · UAE',

  nav: [
    { label: 'Services', href: '#services' },
    { label: 'Why Us',   href: '#why' },
    { label: 'Process',  href: '#process' },
    { label: 'Projects', href: '#projects' },
    { label: 'Contact',  href: '#contact' },
  ],

  hero: {
    eyebrow: 'MEP Contractor · Abu Dhabi · UAE',
    h1Pre: 'MEP Services,',
    h1Em: 'forged with precision.',
    sub: 'Certified MEP contractor in Abu Dhabi — HVAC, electrical, plumbing, fire fighting, ELV, civil works, modular MEP systems & facilities management. 24/7 emergency dispatch across the UAE.',
    cta1: 'Request a Free Quote',
    cta2: 'Call 24/7',
    trust: [
      { v: '24/7', k: 'Emergency dispatch' },
      { v: '<90 min', k: 'Response in Abu Dhabi & Dubai' },
      { v: '500+', k: 'Projects delivered' },
      { v: '4.9★', k: 'Client rating' },
    ],
  },

  services: {
    eyebrow: 'Services',
    h: 'Eight disciplines. One accountable team.',
    sub: 'Full MEP capability, civil works, and facilities management under one roof — one schedule, one point of contact, one standard of finish.',
    items: [
      {
        name: 'HVAC & Air Conditioning',
        desc: 'Installation, preventive maintenance, duct cleaning, and repair for split, central, and VRF systems. Authorized for Carrier, Mitsubishi, O-General, MDV, Cooline, and Hitachi.',
        list: [
          'AC Installation & Replacement',
          'Preventive AC Maintenance',
          'AC Repair & Troubleshooting',
          'Split, Central & VRF Systems',
          'Gas Refilling & Leak Detection',
          'Thermostat Repair & Replacement',
          'Air Filter Cleaning & Replacement',
          'Duct Cleaning & Airflow Inspection',
          'Compressor & Fan Motor Repair',
          'Emergency AC Services',
          'Annual Maintenance Contracts (AMC)',
          'Carrier · Mitsubishi · O-General · MDV · Cooline · Hitachi',
        ],
      },
      {
        name: 'MEP Contracting & Turnkey',
        desc: 'End-to-end mechanical, electrical, and plumbing contracting — from design and procurement through to commissioning and handover.',
        list: [
          'MEP Design & Engineering',
          'Turnkey Project Delivery',
          'Shop Drawing & BIM Coordination',
          'Material Procurement & Supply',
          'Installation & Commissioning',
          'Project Management (PMP-certified)',
          'As-built Documentation',
          'Handover & O&M Manuals',
          'Residential, Commercial & Industrial',
        ],
      },
      {
        name: 'MEP Modular Systems',
        desc: 'Factory-assembled and pre-tested MEP modules — faster site installation, tighter tolerances, and reduced on-site risk.',
        list: [
          'Modular Plant Room Assemblies',
          'Pre-fabricated Pipework & Ductwork',
          'Skid-mounted Mechanical Systems',
          'Pre-wired Electrical Modules',
          'Quality-controlled Factory Build',
          'Reduced On-site Programme',
          'BIM-designed for Exact Fit',
          'Commercial, Industrial & Data Centres',
        ],
      },
      {
        name: 'Electrical Works',
        desc: 'High and low voltage systems, ELV, IT infrastructure, and lighting — installed safely and to UAE code.',
        list: [
          'High & Low Voltage Installations',
          'Wiring & Rewiring',
          'Lighting Design & Fit-out',
          'ELV Systems (CCTV, Access Control, PA)',
          'IT & Data Cabling Infrastructure',
          'Distribution Board Installation & Upgrades',
          'Fault Diagnosis & Power Optimization',
          'Generator & UPS Connections',
          'Emergency Electrical Services',
        ],
      },
      {
        name: 'Fire Protection',
        desc: 'Design, supply, installation, and commissioning of fire suppression and alarm systems — fully compliant with UAE Civil Defence standards.',
        list: [
          'Fire Sprinkler System Design & Installation',
          'Fire Alarm & Detection Systems',
          'FM200 & Clean Agent Suppression',
          'Fire Hydrant & Hose Reel Systems',
          'Fire Pump Room Installation',
          'Periodic Inspection & Testing',
          'Civil Defence Compliance & NOC Support',
          'Maintenance Contracts',
        ],
      },
      {
        name: 'Plumbing Works',
        desc: 'Leak detection, pipe repair, water and drainage systems for residential and commercial properties — installed and maintained to code.',
        list: [
          'Pipe Leakage Repair & Replacement',
          'Drain Cleaning & Blockage Removal',
          'Faucet, Mixer & Valve Installation',
          'Water Heater Installation & Maintenance',
          'Bathroom & Kitchen Plumbing Works',
          'Sanitary Fittings Installation',
          'Water Pressure Checking',
          'Emergency Plumbing Services',
          'Preventive Plumbing Inspections',
        ],
      },
      {
        name: 'Infrastructure & Civil Works',
        desc: 'Structural and civil support works — from groundworks and utility trenching to internal build-out and finishing for MEP projects.',
        list: [
          'Groundworks & Excavation',
          'Underground Utility Trenching',
          'Concrete & Blockwork',
          'Road & Hardscape Works',
          'Drainage & Stormwater Systems',
          'Internal Partitioning & Fit-out',
          'Finishing Works',
          'Coordination with MEP Trades',
        ],
      },
      {
        name: 'Facilities Management',
        desc: 'Comprehensive property upkeep, planned preventive maintenance, and on-demand multi-trade response for residential and commercial clients.',
        list: [
          'Annual Maintenance Contracts (AMC)',
          'Planned Preventive Maintenance (PPM)',
          'Multi-trade On-demand Response',
          'Technical Inspections & Reporting',
          'Asset Register Management',
          'Soft Services Coordination',
          'Common Area Maintenance',
          'Help Desk & Ticketing Support',
        ],
      },
    ],
  },

  why: {
    eyebrow: 'Why Forgefix',
    h: 'Certified MEP contractor. Proven in Abu Dhabi.',
    items: [
      { t: 'Full MEP scope under one contract',  d: 'HVAC, electrical, plumbing, fire fighting, ELV, civil works, MEP modular systems and facilities management — one contractor, one schedule, zero coordination gaps.' },
      { t: 'Certified engineers, vetted teams',  d: 'LEED and PMP-certified engineers on every project. Background-checked, uniformed technicians. Civil Defence-compliant fire systems. UAE-code electrical installations.' },
      { t: 'Transparent quotes. Zero surprises', d: 'Itemized written quotes before work begins. As-built documentation and O&M manuals on handover. Full warranty on workmanship and materials.' },
    ],
  },

  stats: [
    { v: '2019',  k: 'Est. Abu Dhabi',      accent: false },
    { v: '24/7',  k: 'Emergency dispatch',  accent: true  },
    { v: '500+',  k: 'Projects delivered',  accent: false },
    { v: '7',     k: 'Emirates served',     accent: true  },
  ],

  process: {
    eyebrow: 'How We Work',
    h: 'From request to sign-off, in five steps.',
    steps: [
      { t: 'Request',         d: 'Quote request, call, or WhatsApp. We respond within the hour, 24/7.' },
      { t: 'Site Assessment', d: 'A senior technician inspects on-site (or via video for emergencies).' },
      { t: 'Itemized Quote',  d: 'Detailed written quote — labor, parts, timeline, warranty.' },
      { t: 'Scheduled Work',  d: 'Branded uniforms, on time, site protected, kept clean throughout.' },
      { t: 'Sign-off',        d: 'Walk-through, written sign-off, warranty on workmanship and parts.' },
    ],
  },

  projects: {
    eyebrow: 'Selected Projects',
    h: 'Built to spec. Delivered on time.',
    viewAll: 'View all projects',
    items: [
      { t: 'Building/Villa',   cat: 'MEP Contracting & Civil',     loc: 'Abu Dhabi', label: 'customs' },
      { t: 'Al Ain Educational Campus',   cat: 'HVAC + Electrical',           loc: 'Al Ain',    label: 'campus' },
      { t: 'Diplomatic Academy',          cat: 'MEP Turnkey',                 loc: 'Abu Dhabi', label: 'diplomatic' },
      { t: 'Mussafah Warehouse District', cat: 'Infrastructure + MEP',        loc: 'Abu Dhabi', label: 'warehouse' },
      { t: 'Al Reem Commercial Tower',    cat: 'Fire Protection + Electrical', loc: 'Abu Dhabi', label: 'tower' },
      { t: 'Marina Bay Office Park',      cat: 'Facilities Management',       loc: 'Dubai',     label: 'office' },
    ],
  },

  areas: {
    eyebrow: 'Service Areas',
    h: 'Abu Dhabi & all seven Emirates.',
    sub: 'Based in Mussafah, Abu Dhabi — with rapid dispatch to every emirate.',
    primary: { name: 'Abu Dhabi', tag: 'Primary Base · Mussafah' },
    locations: [
      { name: 'Dubai',          tag: 'Commercial · Residential' },
      { name: 'Sharjah',        tag: 'Industrial · Commercial' },
      { name: 'Ajman',          tag: 'Residential · Retail' },
      { name: 'Al Ain',         tag: 'Institutional · Civil' },
      { name: 'Ras Al Khaimah', tag: 'Industrial · Commercial' },
      { name: 'Fujairah',       tag: 'Port · Industrial' },
      { name: 'Umm Al Quwain',  tag: 'Residential · Industrial' },
    ],
  },

  faq: {
    eyebrow: 'FAQ',
    h: 'Common questions.',
    items: [
      {
        q: 'What MEP services does Forgefix provide in Abu Dhabi?',
        a: 'Forgefix provides a complete range of MEP services in Abu Dhabi: HVAC installation and maintenance, electrical works (HV/LV/ELV), plumbing and drainage, fire fighting systems, MEP contracting and turnkey projects, MEP modular systems, infrastructure and civil works, and facilities management — for residential, commercial, and industrial clients.',
      },
      {
        q: 'Which HVAC brands do you service in Abu Dhabi?',
        a: 'We are an authorized service provider for Carrier, Mitsubishi, O-General, MDV, Cooline, and Hitachi. Services include installation, preventive maintenance, repair, gas refilling, duct cleaning, and Annual Maintenance Contracts (AMC).',
      },
      {
        q: 'Do you offer Annual Maintenance Contracts (AMC)?',
        a: 'Yes. We offer AMCs covering HVAC systems, electrical installations, plumbing, fire fighting systems, ELV systems, and full multi-trade facilities management for residential and commercial properties across Abu Dhabi and the UAE.',
      },
      {
        q: 'Are you Civil Defence-approved for fire fighting works?',
        a: 'Yes. Forgefix designs, installs, tests, and commissions fire fighting systems in full compliance with UAE Civil Defence standards — including sprinklers, fire alarms, FM200 suppression, fire hydrants, hose reels, and NOC support.',
      },
      {
        q: 'Do you take on full MEP turnkey projects in the UAE?',
        a: 'Yes. We undertake complete MEP contracting for new construction and fit-out projects — covering MEP design and engineering, shop drawings, BIM coordination, procurement, installation, testing, commissioning, as-built documentation, and O&M handover.',
      },
      {
        q: 'How fast is your emergency response in Abu Dhabi?',
        a: 'Our 24/7 emergency dispatch is based in Mussafah, Abu Dhabi. Average response time is under 90 minutes within Abu Dhabi and Dubai. Call +971 50 446 9392 anytime.',
      },
    ],
  },

  contact: {
    eyebrow: 'Get in Touch',
    h: 'Request a quote.',
    sub: "Tell us about your property and what you need. We'll respond with an itemized quote within 24 hours.",
    services: ['HVAC & Air Conditioning', 'MEP Contracting & Turnkey', 'MEP Modular Systems', 'Electrical Works', 'Fire Protection', 'Plumbing Works', 'Infrastructure & Civil Works', 'Facilities Management', 'Multi-trade'],
    propertyTypes: ['Residential — Villa', 'Residential — Apartment', 'Commercial — Office', 'Commercial — Retail', 'Industrial', 'Other'],
    note: 'WE RESPOND WITHIN 24H · 24/7 EMERGENCY LINE',
    submit: 'Send Request',
    success: '✓ Thank you — we will be in touch within 24 hours.',
  },

  footer: {
    desc: 'HVAC, MEP contracting, modular systems, electrical, fire protection, plumbing, civil works, and facilities management — for upscale residential and commercial properties across the UAE.',
    company: ['About', 'Process', 'Projects', 'Careers'],
    rights: '© 2026 FORGEFIX GENERAL MAINTENANCE L.L.C — S.P.C',
    legal: ['PRIVACY', 'TERMS', 'LICENSES'],
  },
};

// Curated photo map — project-matched commercial/MEP/institutional imagery
const PHOTOS = {
  // Hero
  hero:       'https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=1600&q=80',

  // Project-specific photos (matched to real project types)
  customs:    'https://images.unsplash.com/photo-1743819464838-ead29229489e?auto=format&fit=crop&w=1200&q=80',
  // ^ Qasr Al Hosn / Abu Dhabi government complex — Customs Complex
  campus:     'https://images.unsplash.com/photo-1765294064316-6c72add9e9e6?auto=format&fit=crop&w=1200&q=80',
  // ^ Aerial view large university campus — Educational Campus Al Ain
  diplomatic: 'https://images.unsplash.com/photo-1758846946191-dfe1cd91779b?auto=format&fit=crop&w=1200&q=80',
  // ^ Prestigious glass building reflecting sky — Diplomatic Academy
  warehouse:  'https://images.unsplash.com/photo-1764725241339-4d2f0e2a4903?auto=format&fit=crop&w=1200&q=80',
  // ^ Industrial buildings under sky — Mussafah Warehouse District
  tower:      'https://images.unsplash.com/photo-1745015446589-7ee6f702d8c1?auto=format&fit=crop&w=1200&q=80',
  // ^ Glass facade modern office tower — Al Reem Commercial Tower
  office:     'https://images.unsplash.com/photo-1755650620166-20feb2561a3a?auto=format&fit=crop&w=1200&q=80',
  // ^ Curved glass modern office building — Marina Bay Office Park

  // Service section fallbacks
  plumbing:   'https://images.unsplash.com/photo-1585704032915-c3400ca199e7?auto=format&fit=crop&w=1200&q=80',
  electrical: 'https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1200&q=80',
  ac:         'https://images.unsplash.com/photo-1631545308456-dc4ce0c5cf5d?auto=format&fit=crop&w=1200&q=80',
  general:    'https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=1200&q=80',
};

const pickPhoto = (label) => {
  const l = (label || '').toLowerCase();
  for (const k of Object.keys(PHOTOS)) if (l.includes(k)) return PHOTOS[k];
  return PHOTOS.general;
};

// Shared photo with CLS-safe explicit dimensions and priority hints
const Photo = ({ label, className, style, eager }) => {
  const [error, setError] = React.useState(false);
  return (
    <div className={className} style={{ position: 'relative', background: 'var(--bg-3)', overflow: 'hidden', ...style }}>
      {!error && (
        <img
          src={pickPhoto(label)}
          alt={label ? `${label} — Forgefix MEP Abu Dhabi` : 'Forgefix MEP project Abu Dhabi'}
          width="1200"
          height="800"
          loading={eager ? 'eager' : 'lazy'}
          fetchpriority={eager ? 'high' : 'auto'}
          decoding={eager ? 'sync' : 'async'}
          onError={() => setError(true)}
          style={{ width: '100%', height: '100%', objectFit: 'cover', display: 'block' }}
        />
      )}
      {error && (
        <div style={{
          position: 'absolute', inset: 0,
          background: 'repeating-linear-gradient(135deg, rgba(232,101,31,0.06) 0 12px, transparent 12px 24px)',
          display: 'flex', alignItems: 'center', justifyContent: 'center',
          fontFamily: 'var(--font-mono)', fontSize: 11, color: 'var(--ink-3)',
          textTransform: 'uppercase', letterSpacing: '0.08em',
        }}>{label}</div>
      )}
    </div>
  );
};

window.CONTENT = CONTENT;
window.Photo = Photo;
