/*
 * Footer fixes.
 *
 * Not header related. These two problems were on the site before this plugin
 * existed and are separated into their own file so they can be removed without
 * touching the header: delete this file, or return false from the
 * 'cdnav_enable_footer_fix' filter.
 *
 * Selectors are raised with a leading body rather than !important, so they beat
 * the theme's own rules whatever order the stylesheets end up loading in.
 */

/*
 * 1. The global contact section has a gradient background and 50px of vertical
 *    padding, which renders as two blank gradient bands above and below the
 *    dark block. Collapsed to a thin accent rule so the brand gradient still
 *    frames the section without the empty space.
 */
body .global-contact {
	padding-top: 6px;
	padding-bottom: 6px;
}

/*
 * 2. The contact row at the bottom of that section holds an empty .form-wrap.
 *    The form is not rendering, which is a server side problem this CSS cannot
 *    fix, and an empty white box in a gradient band is worse than nothing.
 *
 *    :has() means this is self healing. The moment the form renders again the
 *    row reappears on its own, with no CSS change needed.
 */
body .global-contact .contact:not(:has(form, input, textarea, select, .gform_wrapper, iframe)) {
	display: none;
}
