Help with taxes- Married but working/living in different states

Wife and I got married in October 2024 and we live different states due to jobs. I live in PA while wife lives in CA. We both are considered resident for tax purposes as we have been in these states for a while as pass the substantial presence test. What is the best way to file the taxes?

1. Should we file federal taxes as married filing jointly? Based on my research this would be better than filing separately in terms of tax refund

2. state taxes- this is where I am confused. Do we file our state taxes as married filing separately? Will my PA income be taxed in CA and vice versa?