Multi-functional metasurface architecture for amplitude, polarization and wavefront control