Choosing the right foundation for your home is a lot like finding the right habitable zone in a solar system, what scientists call a “goldilocks zone.” The soil and foundation need to mesh well, or else your wallet is going to be singing a bad tune. And sometimes you buy a house that, unfortunately, was…