The namahram part have been stretched too far. Quran has specified some namahram relationships to the extent that a nikah is not allowed with a namahram. Any other kind human , legal and shara-e interaction is not prohibited with namahram.
Common sense dictates that if Quran has praised that taking care of orphans as a noble deed then how can it be prohibitted by humans ?
Here are some of the Quranic verses for you to ponder upon:
**Keep a close check on orphans until they reach a marriageable age, then if you perceive that they have sound judgement hand over their property to them. Do not consume it extravagantly and precipitately before they come of age. Those who are wealthy should abstain from it altogether. Those who are poor should use it sensibly and correctly. When you hand over their property to them ensure that there are witnesses on their behalf. Allah suffices as a Reckoner. (Surat an-Nisa’: 6)
****Have you seen him who denies the religion? He is the one who harshly rebuffs the orphan and does not urge the feeding of the poor. So woe to those who do prayer, and are forgetful of their prayer, those who show off and deny help to others. (Surat al-Ma’un: 1-7)
****“(be good to) orphans and the very poor. And speak good words to people”**. (Surat al-Baqara: 83)
**…They will ask you about the property of orphans. Say, “Managing it in their best interests is best”. If you mix your property with theirs, they are your brothers… (Surat al-Baqara: 220)
****The following two verses are a proof that Allah wants us to raise orphans as our own family and take care of them and if they have property then take good care of that too.
** **People who consume the property of orphans wrongfully consume nothing in their bellies except fire. They will roast in a Searing Blaze. (Surat an-Nisa’: 10)
**
Give orphans their property, and do not substitute bad things for good. Do not assimilate their property into your own. Doing that is a serious crime. (Surat an-Nisa’: 2)