/* cure-site.css - show/hide rules for /assets/js/cure-site.js (AI-329).
   The look of every part (colours, sizes, borders, arrows) still comes from the Elementor and
   VamTam stylesheets on the page; this file only says when things show. */

/* Header drop-downs (desktop). Elementor hides every sub-menu (.elementor-nav-menu ul
   {display:none}) and its script used to show them; cure-site.js marks the open item.
   Its script also sized the box to the longest item (at least 10em) instead of the
   stylesheet's fixed 12em, which "Managed IT Services" runs out of. */
.elementor-nav-menu--main .elementor-nav-menu li.cure-open > ul {
	display: block;
	width: auto;
	min-width: 10em;
	max-width: 1000px;
}
/* a drop-down that would run past the right edge of the window opens leftwards */
.elementor-nav-menu--main .elementor-nav-menu li.cure-open > ul.cure-flip {
	inset-inline-start: auto !important;
	inset-inline-end: 0 !important;
}

/* Phone/tablet menu: a parent's sub-menu opens in place under it, with a caret */
.elementor-nav-menu--dropdown .elementor-nav-menu li.cure-open > ul {
	display: block;
}
.elementor-nav-menu--dropdown .cure-caret {
	margin-inline-start: auto;
	padding-inline-start: 16px;
	line-height: 1;
}
.elementor-nav-menu--dropdown .cure-caret::before {
	content: "\f0d7";
	display: inline-block;
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	transition: transform .2s;
}
.elementor-nav-menu--dropdown li.cure-open > a > .cure-caret::before {
	transform: rotate(180deg);
}

/* Reviews carousel: swipe sideways, scroll the page up and down */
.elementor-swiper .cure-swiper {
	touch-action: pan-y;
	cursor: grab;
}
.elementor-swiper .cure-swiper.cure-dragging {
	cursor: grabbing;
	user-select: none;
	-webkit-user-select: none;
}

/* FAQ toggles: Elementor's script used to slide the answer open */
.elementor-toggle .elementor-tab-content.elementor-active {
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.elementor-nav-menu--dropdown .cure-caret::before {
		transition: none;
	}
}
