Right. Goldwater moved the party right, then was joined by conservative dems in the 70s and 80s.
Reagan made it a federalist, not religious party.
The Republican Party has ALWAYS been a socially conservative party, though was not intended to be, and is not a “religious” party per say. Unfortunately the Republican Party drifted towards the squishy center from the 30s - 60s and ran a bunch of Dem-lite candidates. Goldwater deserves credit for moving them back to the right in 1964. Unfortunately, Goldwater himself moved left in the 80s and 90s and embraced legal abortion and special rights for gays (the Goldwater of the early 60s certainly would not have argued that abortion on demand and homo marriage was a constitutionally enshrined “right”). I think his liberal younger wife and his gay grandson affected his views in the end. Sad really.