If I understand you correctly, she left the house believing she had to (she didn't, unless it was court ordered). Then, she and the child went to Maryland. He then filed for divorce and custody from CA. You can't take a child out of state.....those that do, almost always lose custody. She may need to move back to CA, as she is still a resident there. More details are needed.