Higgs bundles of degree zero: a framework for singular Morse theory