I can’t stress enough how important it is to hire a reputable home inspector. I’ve heard too many horror stories from clients who went with the first person they found, and the inspector missed important issues.
One buyer had an inspector tell them that everything on the home looked good. Years later, when they went to replace their wood floors with tile, the installer told them that their foundation wasn’t up to code! That’s something the inspector should have caught.