Water management for ecosystem health and food production