1 Corinthians 3:19 For the wisdom of this world is foolishness with God. For it is written, He taketh the wise in their own craftiness.
In that passage, St. Paul is talking about the Cross, which appears foolish to those who have no faith, no matter how much wisdom they think they have.
It is not a blanket condemnation of rationality.