Tidal evolution of hierarchical and inclined systems