Accurate theoretical modeling of NaCl