Parental Responses to Changes in Costs and Benefits Along an Environmental Gradient