Hello There,
Thank you for the clarifications.
To resolve your issue, please do this:
1.) Remove your custom css because it adds unnecessary empty spaces between your sections.
2.) Use this custom JS code instead in the Cornerstone custom js section, Custom JS
(function($){
$(document).on('click', 'a[href*="#"]', function(e) {
e.preventDefault();
console.log( $(this).attr('href') );
var hash = '#' + $(this).attr('href').split('#')[1];
if ( hash == '#' ) return false;
$('html, body').stop().animate({ scrollTop : $(hash).offset().top - $('.x-bar-fixed').height() });
} );
})(jQuery);
We would loved to know if this has work for you. Thank you.