The burger chain’s shares were dropping nearly 30% in the face of cost inflation and challenging consumer sentiment.