Pranam! In Hinduism, the Varnashrama-dharma is the way society is supposed to function, and is divine in origin, as Lord Krishna said he created the 4 roles. But the caste system of today is a perverted version of it.
In the Varnashrama system anyone can change their role, for example a Kshatriya (warrior) can become a Brahmana (priests, teachers, intellectuals) if he has the qualifications for it (renouncing any form of violence to living beings). All the Varnas (social divisions) are important and is likened to that of the form of a man. The Brahmanas are (like i have said priests, teachers and intellectuals) represent the head, which has to do with vision, thinking, listening, advising. The Kshatriyas (protection, fighting, administration) as the arms, the Vaishyas (farmers, merchants, business people) are the thighs, and Sudras are artisans and workers, and represent the shins and feet. Untouchables are people who have performed bad deeds and are expelled from society. They are expected to return when they reform themselves. An untouchable's son/daughter does not become an untouchable themselves.
The four Ashrams (stages in life) are Student life, Household life, Retirement, Renunciation. More on Ashrama here :
https://en.wikipedia.org/wiki/Ashrama_(stage)
So Hinduism, including Vaishnava acharyas reject the caste system and praise Varnashrama-dharma as having all roles of society as important and needing each other, as well as the emphasis on duty and spirituality. Mahatma Ghandi rejected the Caste system, but extolled the Varnashrama system.