Questions & Answers about Želite li popiti vode ili soka?
Why are the words for water and juice in the genitive case (vode, soka) instead of the accusative?
This is the bare partitive genitive. It is used to express an unspecified quantity of an uncountable noun, translating to 'some water' or 'some juice' in English without needing to use a word for 'some'. If you used the accusative (vodu, sok), it would imply drinking a specific water or juice, or all of it.
Why does the genitive of voda end in -e but the genitive of sok ends in -a?
Could I use the imperfective verb piti here instead of the perfective popiti?
You could, but it changes the feel of the sentence slightly. Popiti means to finish a drink or have a single serving (like a glass of water). It is the most natural and common choice when offering someone a drink right now. Piti focuses on the ongoing, general process of drinking.
Does želite li mean I am talking to multiple people?
It could be, but it is also the formal way to address a single person (the formal 'Vi' form). You would use this exact phrase whether you are offering drinks to a group of friends, or politely offering a drink to a single person you do not know well.