From what I’ve learned Mary was consecrated to the Temple at her birth, that is, perpetual virginity. I believe that is what the consecration meant for baby girls.
- - - -
Source for this? Judaism never had a practice for this for women that I have ever come across so I am curious.
And Joseph is mentioned when Jesus was 12 so after his birth.
I believe that the Presentation of Mary at the temple took place when she was three years old.