/**
 * Main navbar
 *
 * Ported from the redesign site's child theme (UCF-RCHM-Wordpress-Hospitality-
 * Child-Theme/css/nav.css), keeping the parts that apply to a flat menu. The
 * mega-menu rules are left out — they depend on a custom nav walker to emit the
 * column markup, which this theme doesn't have.
 */

/* Stronger than the parent's own gradient, so the nav stays readable over any
   header photo. !important is needed to outrank the parent's rule. */
.header-gradient {
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, .9) 0, transparent 100%) !important;
	background-repeat: repeat-x;
}

/* Keeps the whole header above page content, so no section's z-index can sit
   on top of the nav or an open dropdown. */
.site-header {
	position: relative;
	z-index: 100;
}

/* Cap the brand width so a long site name breaks onto two lines rather than
   squeezing the menu. */
.navbar .navbar-brand {
	line-height: 1.2;
	max-width: 300px;
	white-space: normal;
}

/* ---------------------------------------------------------------------------
 * Call-to-action menu item
 *
 * Add `nav-cta` to a menu item's CSS Classes field (Appearance → Menus → Screen
 * Options → CSS Classes) to render it as a gold button instead of a plain link.
 * ------------------------------------------------------------------------ */

.navbar .nav-cta {
	align-items: center;
	display: inline-flex;
	margin: 0;
}

.navbar .nav-cta .nav-link {
	background-color: #ffcc00 !important;
	color: #000 !important;
	display: inline-block;
	height: auto;
	line-height: normal;
	padding: 15px;
	text-shadow: none !important;
	vertical-align: middle;
	white-space: nowrap;
}

.navbar .nav-cta .nav-link:hover,
.navbar .nav-cta .nav-link:focus {
	background-color: #000 !important;
	color: #fff !important;
}

/* ---------------------------------------------------------------------------
 * Dropdowns
 * ------------------------------------------------------------------------ */

.navbar .dropdown-menu {
	background-color: rgba(54, 54, 54, .975);
	border: 0;
}

.navbar .dropdown-menu .dropdown-item {
	color: #fff;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
	background-color: rgba(0, 0, 0, .9);
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * Mobile
 * ------------------------------------------------------------------------ */

/* The mobile menu scrolls internally; without this a menu taller than the
   screen has an unreachable bottom. */
@media (max-width: 767px) {
	.navbar .navbar-collapse.collapsing,
	.navbar .navbar-collapse.show {
		-ms-overflow-style: none;
		max-height: calc(100vh - 130px);
		overflow-y: auto;
		scrollbar-width: none;
	}

	.navbar .navbar-collapse::-webkit-scrollbar {
		display: none;
	}
}
