Transient obscuration event captured in NGC 3227. I. Continuum model for the broadband spectral energy distribution