Engineering magnetic responses in hcp cobalt thin films