/* eslint-disable */
/* NEX Consultants — typed content (single source of truth for the prototype) */

// SERVICES — drawn from research/services.md
const SERVICES = [
  {
    id: "company-formation",
    cat: "Formation",
    title: "Company Formation",
    lede: "Mainland, Free Zone, Offshore and Foreign Branch — end-to-end incorporation across the UAE.",
    image: "media/service-company-formation.webp",
    journey: [
      ["Discover", "Free consultation to scope your structure, activity, and visa needs."],
      ["Compare", "Mainland vs Free Zone vs Offshore vs Branch — we recommend the right fit."],
      ["Form", "Reservation, MoA, licence application, establishment card."],
      ["Operate", "Bank account, visas, accounting, PRO — handled by one team."],
    ],
  },
  {
    id: "trade-licensing",
    cat: "Formation",
    title: "Trade Licensing",
    lede: "DED and free-zone licences, activity selection, amendments and renewals.",
    image: "media/service-company-formation.webp",
    journey: [
      ["Activity", "Map your activities to the correct licence category."],
      ["Submit", "Initial approvals, MoA notarisation, lease attestation."],
      ["Issue", "Trade licence + establishment card + immigration file."],
      ["Maintain", "Annual renewals and amendments managed for you."],
    ],
  },
  {
    id: "visa-pro",
    cat: "People",
    title: "Visa & PRO Services",
    lede: "Residence visas, investor visas, family sponsorship and government liaison.",
    image: "media/service-pro.webp",
    journey: [
      ["Plan", "Visa eligibility, quotas, and dependants."],
      ["Process", "Entry permit, medical, Emirates ID, residence stamping."],
      ["Liaise", "Labour, immigration and notarial documents — handled."],
      ["Renew", "Lifecycle tracking; we never let a renewal lapse."],
    ],
  },
  {
    id: "golden-visa",
    cat: "People",
    title: "Golden Visa",
    lede: "Long-term residence pathways — investor, specialised talent, real estate.",
    image: "media/service-resident-visa.webp",
    journey: [
      ["Qualify", "Assess your eligibility track and required evidence."],
      ["File", "Application dossier, attestations and Federal Authority filing."],
      ["Approve", "Nomination and 5/10-year residence issuance."],
      ["Family", "Dependant residence under your golden status."],
    ],
  },
  {
    id: "bank-account",
    cat: "Banking",
    title: "Bank Account Opening",
    lede: "Corporate banking introductions across our network of UAE banks.",
    image: "media/service-bank-account.webp",
    journey: [
      ["Prepare", "KYC pack, business profile, source-of-funds documentation."],
      ["Introduce", "Warm introductions across our UAE banking partner network."],
      ["Onboard", "Compliance interviews and account activation support."],
      ["Operate", "Online banking, signatories, secondary accounts."],
    ],
  },
  {
    id: "accounting-bookkeeping",
    cat: "Finance",
    title: "Accounting & Bookkeeping",
    lede: "Outsourced accounting from a chartered-accountant-led team — monthly close, MIS, ledgers.",
    image: "media/service-bookkeeping.webp",
    journey: [
      ["Setup", "Chart of accounts, opening balances, integration with your stack."],
      ["Operate", "Monthly bookkeeping, bank recs, AR/AP."],
      ["Report", "Management accounts, cash-flow, KPIs."],
      ["Audit", "Year-end ready files — handed cleanly to your auditor."],
    ],
  },
  {
    id: "vat",
    cat: "Tax",
    title: "VAT Advisory",
    lede: "Registration, returns, reviews and FTA correspondence — UAE VAT done properly.",
    image: "media/service-vat.webp",
    journey: [
      ["Assess", "Registration threshold, scheme, and group eligibility."],
      ["Register", "FTA TRN issuance and tax-period setup."],
      ["File", "Quarterly returns, input-tax recovery, reverse charge."],
      ["Defend", "FTA reviews, voluntary disclosures, refund claims."],
    ],
  },
  {
    id: "corporate-tax",
    cat: "Tax",
    title: "Corporate Tax",
    lede: "UAE Corporate Tax registration, transfer pricing, and compliance advisory.",
    image: "media/service-uae-tax.webp",
    journey: [
      ["Diagnose", "Taxable status, free-zone QFZP eligibility, group structure."],
      ["Register", "FTA Corporate Tax registration and tax-period elections."],
      ["Compute", "Adjustments, reliefs, transfer-pricing documentation."],
      ["File", "Annual returns and ongoing advisory."],
    ],
  },
  {
    id: "audit-assurance",
    cat: "Finance",
    title: "Audit & Assurance",
    lede: "Statutory audits, agreed-upon procedures and free-zone compliance audits.",
    image: "media/service-mgmt-consultancy.webp",
    journey: [
      ["Plan", "Risk assessment and audit scoping."],
      ["Field", "On-site procedures, balance verification, controls testing."],
      ["Report", "Independent audit opinion and management letter."],
      ["Submit", "Free-zone audit submission and FTA-ready files."],
    ],
  },
  {
    id: "compliance",
    cat: "Governance",
    title: "Corporate Compliance",
    lede: "UBO, ESR, AML and Federal Tax Authority obligations — kept current.",
    image: "media/service-mgmt-consultancy.webp",
    journey: [
      ["Map", "Inventory of compliance obligations across your entities."],
      ["Register", "UBO/ESR/AML filings, FATCA/CRS where applicable."],
      ["Operate", "Calendar-driven recurring filings and notifications."],
      ["Defend", "Notices, penalties and reassessment support."],
    ],
  },
  {
    id: "management-consultancy",
    cat: "Advisory",
    title: "Management Consultancy",
    lede: "Market-entry strategy, organisational design and operational consulting.",
    image: "media/service-mgmt-consultancy.webp",
    journey: [
      ["Discover", "Stakeholder interviews and current-state diagnostic."],
      ["Shape", "Market-entry plan, org design or operating model."],
      ["Activate", "Implementation roadmap with measurable milestones."],
      ["Embed", "Hands-on support through the first 90 days."],
    ],
  },
  {
    id: "mergers-acquisitions",
    cat: "Advisory",
    title: "Mergers & Acquisitions",
    lede: "Buy-side and sell-side advisory, restructuring and post-deal integration.",
    image: "media/service-mgmt-consultancy.webp",
    journey: [
      ["Origination", "Target screening and confidential outreach."],
      ["Diligence", "Financial, tax and legal due diligence."],
      ["Negotiate", "Structuring, SPA support and closing."],
      ["Integrate", "Post-deal accounting, tax and PRO integration."],
    ],
  },
];

// JURISDICTIONS
const JURISDICTIONS = [
  {
    id: "dubai-mainland",
    kind: "Mainland",
    name: "Dubai Mainland (DED)",
    logo: "media/jurisdiction-ded.webp",
    suit: "Trade across the UAE without restriction, contract with government and local clients.",
    benefits: [
      "100% foreign ownership across most activities",
      "Unrestricted UAE market access",
      "No cap on number of visas (office-driven)",
      "Eligible to bid for UAE government tenders",
    ],
  },
  {
    id: "jafza",
    kind: "Free Zone",
    name: "JAFZA",
    logo: "media/jurisdiction-jafza.webp",
    suit: "Trading, logistics, light manufacturing — and offshore holding via our registered-agent capability.",
    benefits: [
      "Adjacent to Jebel Ali Port — strongest logistics base",
      "JAFZA Offshore — NEX is a specialist registered agent",
      "100% foreign ownership and full repatriation",
      "Customs-bonded warehousing options",
    ],
  },
  {
    id: "dmcc",
    kind: "Free Zone",
    name: "DMCC",
    logo: "media/jurisdiction-dmcc.webp",
    suit: "Commodities, trading, professional services and crypto — flagship Dubai free zone.",
    benefits: [
      "World-class business district at JLT",
      "Multi-time award-winning Global Free Zone",
      "Strong banking access for trading entities",
      "Wide activity coverage incl. crypto licensing",
    ],
  },
  {
    id: "uaq-ftz",
    kind: "Free Zone",
    name: "UAQ Free Trade Zone",
    logo: "media/jurisdiction-uaq.webp",
    suit: "Cost-effective free-zone setup for SMEs, freelancers and consultancies.",
    benefits: [
      "Among the more accessible free-zone fee bands",
      "Lean licence options including freelancer permits",
      "Streamlined incorporation timelines",
      "Suited to early-stage SMEs",
    ],
  },
  {
    id: "dubai-south-dwc",
    kind: "Free Zone",
    name: "Dubai South (DWC)",
    logo: null,
    suit: "Aviation, logistics and e-commerce companies near Al Maktoum International.",
    benefits: [
      "Logistics district adjacent to DWB Airport",
      "Aviation-friendly activity scope",
      "Free-zone benefits with strategic location",
      "Long-term Expo legacy infrastructure",
    ],
  },
  {
    id: "ifza",
    kind: "Free Zone",
    name: "IFZA",
    logo: null,
    suit: "Flexible, activity-rich free zone with package-driven setups for service businesses.",
    benefits: [
      "Wide activity menu (~1,500+)",
      "Flexi-desk and shared-office options",
      "Service-business friendly",
      "Streamlined digital licensing",
    ],
  },
  {
    id: "jafza-offshore",
    kind: "Offshore",
    name: "JAFZA Offshore",
    logo: "media/jurisdiction-jafza.webp",
    suit: "Holding companies, property holding in Dubai, asset protection — our specialist niche.",
    benefits: [
      "NEX is a registered agent for JAFZA Offshore",
      "Holding-company friendly structure",
      "Eligible to hold Dubai freehold property",
      "No requirement for a UAE visa or office",
    ],
  },
  {
    id: "foreign-branch",
    kind: "Branch",
    name: "Foreign Company Branch",
    logo: null,
    suit: "Extend an existing foreign parent into the UAE without a new legal entity.",
    benefits: [
      "Operate as a registered branch of your parent",
      "Same legal personality as the parent",
      "Pursue mainland UAE clients",
      "Suited to mature multinationals",
    ],
  },
];

// COMPARISON COLUMNS (qualitative, no fees)
const COMPARE_COLS = ["Mainland", "Free Zone", "Offshore", "Branch"];
const COMPARE_ROWS = [
  {
    attr: "Ownership",
    values: [
      "100% foreign ownership for most activities",
      "100% foreign ownership",
      "100% foreign ownership",
      "Same as parent company",
    ],
  },
  {
    attr: "Trade scope",
    values: [
      "Unrestricted UAE market",
      "Inside zone + international; restricted onshore",
      "International only — no UAE trading",
      "As per parent's licensed scope",
    ],
  },
  {
    attr: "Activities",
    values: [
      "Widest — commercial, professional, industrial",
      "Zone-specific — depends on authority",
      "Holding, asset protection, IP",
      "Mirrors parent",
    ],
  },
  {
    attr: "Visa eligibility",
    values: [
      "Office-driven, no fixed cap",
      "Linked to flexi/office package",
      "No UAE visa entitlement",
      "Office-driven via branch",
    ],
  },
  {
    attr: "Best for",
    values: [
      "UAE-facing trading, government, retail",
      "Trading, services, regional HQ, logistics",
      "Holding, property, IP, asset protection",
      "Mature multinationals testing the market",
    ],
  },
];

// LEADERSHIP — verified names + titles only
const TEAM = [
  {
    name: "Hisham Ali Mohamed Taher",
    role: "Chairman",
    creds: "CPA · CFC · CBP. Former Senior Financial Controller, UAE Ministry of Finance (1995–2006).",
    photo: "media/team-hisham-chairman.webp",
  },
  {
    name: "Davis Kadavan",
    role: "Founder & Managing Partner",
    creds: "Masters in Managerial Economics · Certified Marketing Management Professional.",
    photo: "media/team-davis-founder.webp",
  },
  {
    name: "John Varghese",
    role: "CEO & Partner",
    creds: "ICAI member. Ex-Big-4. Three decades in audit, advisory, M&A and organisational consultancy.",
    photo: "media/team-john-ceo.webp",
  },
  {
    name: "Sumesh Krishna",
    role: "Partner — Audit & Assurance",
    creds: "20+ years in audit, statutory reporting and free-zone audits.",
    photo: "media/team-sumesh-partner.webp",
  },
  {
    name: "Asif Abdul Kareem",
    role: "Finance",
    creds: "Finance & corporate services lead. UAE Corporate Tax and VAT advisory.",
    photo: "media/team-asif-finance.webp",
  },
  {
    name: "Roshan Suvarna",
    role: "Consultant — Corporate Services",
    creds: "Company formation across Mainland, Free Zone and Offshore jurisdictions.",
    photo: "media/team-roshan-consultant.webp",
  },
];

// RESOURCES — drawn from research; real article titles found on site
const RESOURCES = [
  {
    tag: "Compliance",
    title: "8 Steps to Fulfil Corporate Compliance in the UAE",
    excerpt: "From UBO and ESR to AML and FTA notifications — a practical, calendar-driven checklist for operating companies.",
    read: "9 min read",
  },
  {
    tag: "Offshore",
    title: "Choosing the Right Registered Agent for JAFZA Offshore",
    excerpt: "Why a specialist registered agent matters — and what to evaluate before appointing one for your holding structure.",
    read: "7 min read",
  },
  {
    tag: "Tax",
    title: "The UAE Tax Residence Certificate, Explained",
    excerpt: "Who qualifies, what documentation is required, and how the certificate interacts with double-tax treaties.",
    read: "6 min read",
  },
  {
    tag: "Setup",
    title: "Mainland vs Free Zone — A Founder's Honest Comparison",
    excerpt: "Beyond the marketing — when each structure truly fits, and the decision criteria we walk every client through.",
    read: "8 min read",
  },
  {
    tag: "HR",
    title: "UAE's Unified Salary Deadline for the Private Sector",
    excerpt: "What the unified Wages Protection System schedule means in practice, and the penalties for missing it.",
    read: "5 min read",
  },
  {
    tag: "Advisory",
    title: "Best Boutique Corporate Service Providers in Dubai",
    excerpt: "The case for boutique advisor-led firms over volume setup factories — service, depth and accountability.",
    read: "6 min read",
  },
];

// CALCULATOR CONFIG — indicative ranges only, never fixed
// AED. Tight ranges used to communicate "indicative" not "quoted"
const CALC = {
  jurisdictions: {
    "Mainland (DED)":      { base: [18000, 28000] },
    "Free Zone (DMCC)":    { base: [22000, 36000] },
    "Free Zone (UAQ)":     { base: [9000, 16000] },
    "Free Zone (IFZA)":    { base: [12500, 22000] },
    "Offshore (JAFZA)":    { base: [11000, 16000] },
    "Foreign Branch":      { base: [24000, 38000] },
  },
  activities: ["Professional / consultancy", "Commercial / trading", "Industrial / light mfg", "E-commerce", "Holding"],
  activityMult: {
    "Professional / consultancy": 1.0,
    "Commercial / trading":       1.08,
    "Industrial / light mfg":     1.18,
    "E-commerce":                 1.04,
    "Holding":                    0.92,
  },
  officeTypes: ["Virtual / flexi-desk", "Shared office", "Dedicated office", "Warehouse"],
  officeAdd: {
    "Virtual / flexi-desk":  [0, 4000],
    "Shared office":         [6000, 14000],
    "Dedicated office":      [22000, 65000],
    "Warehouse":             [45000, 120000],
  },
  visaCost: [3500, 6200],     // per visa (indicative)
  shareholderAdd: [0, 800],   // per extra shareholder beyond 1
};
