Production-Ready Text-to-SQL with Prompt Design, Schema Control, SQL Validation, and Safe LLM Integration