/*
 * Navigation Menu widget.
 *
 * Loaded only on pages that actually contain the widget — Elementor prints the
 * handle this file is registered under when a widget on the page declares it in
 * `get_style_depends()`.
 *
 * Colours are left almost entirely to the panel: every rule that a user can set
 * from the Style tab is absent here, so Elementor's generated CSS is the only
 * source and there is nothing to fight with specificity over.
 */

.vora-nav {
	position: relative;
}

.vora-nav__list,
.vora-nav__submenu {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vora-nav__list {
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
}

.vora-nav--vertical .vora-nav__list {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.vora-nav__list > li {
	position: relative;
}

.vora-nav__list a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	transition: color 0.16s ease;
}

.vora-nav__list > li > a {
	padding: 6px 0;
}

/* Submenu ------------------------------------------------------------- */

.vora-nav__submenu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	flex-direction: column;
	min-width: 220px;
	padding: 10px 0;
	background: #fff;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.vora-nav__list > li:hover > .vora-nav__submenu,
.vora-nav__list > li:focus-within > .vora-nav__submenu,
.vora-nav__list > li.is-open > .vora-nav__submenu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.vora-nav__submenu a {
	display: block;
	width: 100%;
	padding: 7px 18px;
}

/* Submenu toggle ------------------------------------------------------ */

.vora-nav__toggle {
	padding: 4px;
	margin-left: 4px;
	background: none;
	border: 0;
	color: inherit;
	line-height: 0;
	cursor: pointer;
}

.vora-nav:not(.vora-nav--arrows) .vora-nav__toggle {
	/* The arrow is off, but the control still has to exist for keyboard and
	   touch users — so it is hidden visually, not removed. */
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.vora-nav__chevron {
	display: block;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.16s ease;
}

.vora-nav__toggle[aria-expanded="true"] .vora-nav__chevron {
	transform: translateY(1px) rotate(-135deg);
}

/* Menu button --------------------------------------------------------- */

.vora-nav__burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 4px;
	color: inherit;
	cursor: pointer;
}

.vora-nav__bars,
.vora-nav__bars::before,
.vora-nav__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.vora-nav__bars::before,
.vora-nav__bars::after {
	content: "";
	position: relative;
}

.vora-nav__bars::before { top: -6px; }
.vora-nav__bars::after { top: 4px; }

.vora-nav__burger[aria-expanded="true"] .vora-nav__bars { background: transparent; }
.vora-nav__burger[aria-expanded="true"] .vora-nav__bars::before { transform: translateY(6px) rotate(45deg); }
.vora-nav__burger[aria-expanded="true"] .vora-nav__bars::after { transform: translateY(-4px) rotate(-45deg); }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Collapsed state ----------------------------------------------------- */

/*
 * The collapsed rules are written once and switched on by a class at the
 * breakpoint the panel chose, rather than duplicated into two media queries
 * with different selectors — that duplication is where these menus usually
 * start disagreeing with themselves.
 */
@media (max-width: 1024px) {
	.vora-nav--collapse-tablet .vora-nav__burger { display: inline-flex; }

	.vora-nav--collapse-tablet .vora-nav__panel {
		display: none;
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		z-index: 70;
		min-width: 240px;
		padding: 10px 16px;
		background: #fff;
		box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
	}

	.vora-nav--collapse-tablet .vora-nav__panel.is-open { display: block; }

	.vora-nav--collapse-tablet .vora-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.vora-nav--collapse-tablet .vora-nav__list > li > a { padding: 11px 0; }

	/* In the panel a submenu is a disclosure, not a dropdown: it takes part in
	   flow so the panel grows, and only the toggle opens it. */
	.vora-nav--collapse-tablet .vora-nav__submenu {
		position: static;
		display: none;
		min-width: 0;
		padding: 0 0 8px 14px;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.vora-nav--collapse-tablet .vora-nav__list > li.is-open > .vora-nav__submenu { display: block; }
	.vora-nav--collapse-tablet .vora-nav__list > li:hover > .vora-nav__submenu { display: none; }
	.vora-nav--collapse-tablet .vora-nav__list > li.is-open:hover > .vora-nav__submenu { display: block; }

	.vora-nav--collapse-tablet .vora-nav__toggle {
		position: absolute;
		top: 4px;
		right: 0;
		padding: 10px;
	}
}

@media (max-width: 767px) {
	.vora-nav--collapse-mobile .vora-nav__burger { display: inline-flex; }

	.vora-nav--collapse-mobile .vora-nav__panel {
		display: none;
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		z-index: 70;
		min-width: 240px;
		padding: 10px 16px;
		background: #fff;
		box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
	}

	.vora-nav--collapse-mobile .vora-nav__panel.is-open { display: block; }

	.vora-nav--collapse-mobile .vora-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.vora-nav--collapse-mobile .vora-nav__list > li > a { padding: 11px 0; }

	.vora-nav--collapse-mobile .vora-nav__submenu {
		position: static;
		display: none;
		min-width: 0;
		padding: 0 0 8px 14px;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.vora-nav--collapse-mobile .vora-nav__list > li.is-open > .vora-nav__submenu { display: block; }
	.vora-nav--collapse-mobile .vora-nav__list > li:hover > .vora-nav__submenu { display: none; }
	.vora-nav--collapse-mobile .vora-nav__list > li.is-open:hover > .vora-nav__submenu { display: block; }

	.vora-nav--collapse-mobile .vora-nav__toggle {
		position: absolute;
		top: 4px;
		right: 0;
		padding: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vora-nav * { transition: none !important; }
}
