Avoiding coral reef functional collapse requires local and global action