/* ==========================================================================
   Nav menu — structural rules, transcribed from Elementor Pro
   ==========================================================================

   This file is not design work. It is the subset of Pro's
   `assets/css/widget-nav-menu.min.css` that our markup actually matches,
   extracted by intersecting every selector in that file against the set of
   classes the rendered nav carries. Forty-three rules survived that filter;
   they are reproduced here so the menu keeps working when Pro is deactivated
   and its stylesheet stops being served.

   Two consequences worth knowing:

   - `frontend.css` is the site's design layer and must win against this file,
     so it is enqueued with this one as a dependency rather than beside it.
     Several rules here are at the same specificity as ours and load order is
     what decides them.
   - Everything cosmetic below (Pro's grey toggle chip, its #3f444b dropdown
     highlight, its 13px dropdown type) is already overridden in `frontend.css`
     with the design's own values. It is kept anyway, because a rule dropped
     because "something else overrides it today" is a rule that reappears as a
     bug the day that override moves.

   Only the `--dropdown-tablet` and `--dropdown-none` breakpoints are carried:
   they are the two this site uses. Pro's mobile and "extra" variants are not
   reproduced, and a widget set to one of them would fall back to always-open.

   Source: PRO Elements 4.2.2, GPL-2.0-or-later.
   ========================================================================== */

/* --- the list itself ---------------------------------------------------- */

.elementor-nav-menu {
	position: relative;
	z-index: 2;
}

.elementor-nav-menu,
.elementor-nav-menu li,
.elementor-nav-menu ul {
	display: block;
	line-height: normal;
	list-style: none;
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.elementor-nav-menu::after {
	clear: both;
	content: "\00a0";
	display: block;
	font: 0/0 serif;
	height: 0;
	overflow: hidden;
	visibility: hidden;
}

/* Sub-menus are closed until something opens them. This site has none, but the
   rule is what stops a nested menu rendering flat if one is ever added. */
.elementor-nav-menu ul {
	display: none;
}

.elementor-nav-menu a,
.elementor-nav-menu li {
	position: relative;
}

.elementor-nav-menu li {
	border-width: 0;
}

.elementor-nav-menu a {
	align-items: center;
	display: flex;
}

.elementor-nav-menu a,
.elementor-nav-menu a:focus,
.elementor-nav-menu a:hover {
	line-height: 20px;
	padding: 10px 20px;
}

/* --- the horizontal bar ------------------------------------------------- */

.elementor-nav-menu--layout-horizontal {
	display: flex;
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu {
	display: flex;
	flex-wrap: wrap;
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu a {
	flex-grow: 1;
	white-space: nowrap;
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li {
	display: flex;
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li ul {
	top: 100% !important;
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li:not(:first-child) > a {
	margin-inline-start: var(--e-nav-menu-horizontal-menu-item-margin);
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li:not(:first-child) > ul {
	inset-inline-start: var(--e-nav-menu-horizontal-menu-item-margin) !important;
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li:not(:last-child) > a {
	margin-inline-end: var(--e-nav-menu-horizontal-menu-item-margin);
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li:not(:last-child)::after {
	align-self: center;
	border-color: var(--e-nav-menu-divider-color, #000000);
	border-left-style: var(--e-nav-menu-divider-style, solid);
	border-left-width: var(--e-nav-menu-divider-width, 2px);
	content: var(--e-nav-menu-divider-content, none);
	height: var(--e-nav-menu-divider-height, 35%);
}

.elementor-nav-menu--main .elementor-nav-menu a {
	transition: 0.4s;
}

.elementor-nav-menu--main .elementor-nav-menu a,
.elementor-nav-menu--main .elementor-nav-menu a:focus,
.elementor-nav-menu--main .elementor-nav-menu a:hover {
	padding: 13px 20px;
}

.elementor-nav-menu--main .elementor-nav-menu ul {
	border-style: solid;
	border-width: 0;
	padding: 0;
	position: absolute;
	width: 12em;
}

/* --- the pointer pseudo-elements ---------------------------------------- */

.elementor-item::after,
.elementor-item::before {
	display: block;
	position: absolute;
	transition: 0.3s;
	transition-timing-function: cubic-bezier(0.58, 0.3, 0.005, 1);
}

.elementor-item-active::after,
.elementor-item-active::before,
.elementor-item:focus::after,
.elementor-item:focus::before,
.elementor-item:hover::after,
.elementor-item:hover::before {
	transform: scale(1);
}

/* --- the toggle --------------------------------------------------------- */

.elementor-widget-nav-menu:not(.elementor-nav-menu--toggle) .elementor-menu-toggle {
	display: none;
}

.elementor-menu-toggle {
	align-items: center;
	background-color: rgba(0, 0, 0, 0.05);
	border: 0 solid;
	border-radius: 3px;
	color: #33373d;
	cursor: pointer;
	display: flex;
	font-size: var(--nav-menu-icon-size, 22px);
	justify-content: center;
	padding: 0.25em;
}

.elementor-menu-toggle svg {
	fill: var(--nav-menu-icon-color, currentColor);
	height: auto;
	width: 1em;
}

/* The burger/X swap. `frontend.css` hides both glyphs and draws the bars with
   pseudo-elements instead, so on this site the rule is a fallback rather than
   the mechanism — but it is the mechanism anywhere the design layer is not. */
.elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--open,
.elementor-menu-toggle:not(.elementor-active) .elementor-menu-toggle__icon--close {
	display: none;
}

span.elementor-menu-toggle__icon--close,
span.elementor-menu-toggle__icon--open {
	line-height: 1;
}

/* --- the drawer --------------------------------------------------------- */

.elementor-nav-menu--dropdown {
	background-color: #ffffff;
	font-size: 13px;
}

.elementor-nav-menu--dropdown a {
	color: #33373d;
}

.elementor-nav-menu--dropdown .elementor-item.elementor-item-active,
.elementor-nav-menu--dropdown .elementor-item:focus,
.elementor-nav-menu--dropdown .elementor-item:hover {
	background-color: #3f444b;
	color: #ffffff;
}

ul.elementor-nav-menu--dropdown a,
ul.elementor-nav-menu--dropdown a:focus,
ul.elementor-nav-menu--dropdown a:hover {
	border-inline-start: 8px solid transparent;
	text-shadow: none;
}

.elementor-nav-menu--dropdown-none .elementor-menu-toggle,
.elementor-nav-menu--dropdown-none .elementor-nav-menu--dropdown {
	display: none;
}

.elementor-nav-menu--dropdown.elementor-nav-menu__container {
	margin-top: 10px;
	overflow-x: hidden;
	overflow-y: auto;
	transform-origin: top;
	transition: max-height 0.3s, transform 0.3s;
}

/* The open/closed pair. `nav-menu.js` measures the menu and writes the real
   height to `--menu-height`; this default is what the animation falls back to
   before that first measurement. */
.elementor-nav-menu--toggle {
	--menu-height: 100vh;
}

.elementor-nav-menu--toggle .elementor-menu-toggle:not(.elementor-active) + .elementor-nav-menu__container {
	max-height: 0;
	overflow: hidden;
	transform: scaleY(0);
}

.elementor-nav-menu--toggle .elementor-menu-toggle.elementor-active + .elementor-nav-menu__container {
	animation: hide-scroll 0.3s backwards;
	max-height: var(--menu-height);
	transform: scaleY(1);
}

@keyframes hide-scroll {
	0%,
	to {
		overflow: hidden;
	}
}

/* --- the breakpoint ----------------------------------------------------- */

@media (max-width: 1024px) {
	.elementor-nav-menu--dropdown-tablet .elementor-nav-menu--main {
		display: none;
	}
}

@media (min-width: 1025px) {
	.elementor-nav-menu--dropdown-tablet .elementor-menu-toggle,
	.elementor-nav-menu--dropdown-tablet .elementor-nav-menu--dropdown {
		display: none;
	}

	.elementor-nav-menu--dropdown-tablet nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
		overflow-y: hidden;
	}
}
