/* Smart sticky menu: hides while scrolling down, slides back in on the smallest scroll up.
   Loaded after responsive.css so these rules win. Behaviour lives in js/custom.js (smartStickyMenu). */

.mainmeu-area.stricky.stricky-fixed {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	margin: 0;
	z-index: 1005;
	background: #292929;
	animation: none;
	transform: translateY(0);
	transition: transform .4s ease-out, box-shadow .4s ease-out;
	will-change: transform;
}

.mainmeu-area.stricky.stricky-fixed.menu-hidden {
	transform: translateY(-110%);
	box-shadow: none;
}

/* Used for one frame when the bar first becomes fixed, so it does not visibly slide away */
.mainmeu-area.stricky.stricky-fixed.menu-no-anim {
	transition: none;
}

/* Keeps the page from jumping when the bar leaves the normal flow */
.stricky-placeholder {
	display: none;
}

/* The big Colabrate button is not shown in the fixed bar */
.mainmeu-area.stricky.stricky-fixed .quote-button {
	display: none;
}

@media only screen and (max-width: 767px) {
	/* responsive.css turned the fixed bar off on phones; turn it back on */
	.mainmeu-area.stricky.stricky-fixed {
		position: fixed;
		background: #292929;
	}

	/* Long open menu on a phone: scroll inside it instead of running off the screen */
	.mainmeu-area.stricky.stricky-fixed .navbar-collapse.in {
		max-height: calc(100vh - 140px);
		overflow-y: auto;
	}
}
