A main navigation with expandable levels is compact, gives users an overview of all pages, and allows to go quickly to a specific page.
Components
Techniques for an accessible disclosure: change the button label to indicate the action, use details
with summary
or indicate the state with aria-expanded
.