You are also strawmanning to assume that laws that punish bad parenting would immediately skip to the state raising the kids.
All laws restrict freedoms to protect the wider society. This isn't a novel concept. Not being able to murder is a freedom deprived of you. The question of "should any freedom that could possibly be abused to harm others be eventually outlawed" is obviously "No". Law is not the only tool to encourage better behavior.
But passing laws to outlaw any of your examples doesn't mean we're saying "Yes" anymore than outlawing murder does. Those are just specific laws. The question is "which freedoms should be restricted to prevent individuals from harming others". Your original framing of the question makes it an all or nothing case, but its not.
The state does deprive people of rights to raise their kids if they're really awful parents. That does not mean that making smoking in a car with kids illegal guarantees that this would be the associated punishment.
But not smoking in your car or at home. There are tons of American parents who hotbox their kids with cigarette or marijuana smoke on a daily basis which not only harms them with second hand smoke but increases their chances of smoking themselves by an astronomical factor.
Parents legally harm their children constantly by setting bad diet patterns (child obesity), or substance abuse patterns just to name a few ways. Should we make that illegal and have the state raise those kids?