I don't think you said how far out the decorative stone/gravel goes from the house. Some people just have a little 10" wide drip strip there while others have a big six feet of stone extending out from the house. The narrower it is, of course the less it matters.
When it's not easy to just slope the ground away from the house ... pretend the gravel isn't there for a moment... I'll slope the ground away from the house to where the gravel area will end, add thick weed fabric there to help the rain move away from the home, and then fill the area with decorative stone.
The stone will look flat and even, but underneath the ground is sloping away from the house for however wide the stone area is. It's not ideal, but having rain water flow three feet away is still better than it sitting there.
And then at the end of the stone area, if the yard is flat there and the water would still pool, hopefully can add a trench under the stone and slope it sideways to send the water to a corner of the house where maybe I can find some more yard slope there.
Just some ideas for you.
18" isn't very deep, so unless the water table at your house is quite high, I would suspect and hope the water is coming in from outside only a bit below the surface and traveling under there.
Someone's going to say it... if your rain gutters aren't sending your roof water at least eight or so feet away, that's probably your problem right there.