/* Westlund off-canvas menu
   Ported from the old westlundpvf theme (site.css:958-985, 1018-1031,
   1207-1211). The original used rem against html{font-size:62.5%}
   (1rem = 10px); these are the px equivalents.

   The drawer's open state is applied inline by offcanvas.js, matching the
   original (ui.js:27-34), so only the closed state is defined here. */

/* ----- Hamburger: fixed top-left, lime, rotates into an X ----- */

.wl-mobile-nav-button {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 2.5px;
	left: 2.5px;
	width: 55px;
	height: 55px;
	margin: 0;
	padding: 0;
	background: #c9f131;
	border: 1px solid #fff;
	box-shadow: 2.5px 2.5px 5px 0 rgba(0, 0, 0, 0.5);
	color: #fff;
	text-align: center;
	z-index: 99999999;
	cursor: pointer;
}

.wl-mobile-nav-button::before,
.wl-mobile-nav-button::after {
	display: block;
	position: absolute;
	right: 0;
	left: 0;
	width: 80%;
	height: 2px;
	margin: 0 auto;
	transform-origin: center center;
	transition: all 0.2s ease;
	background-color: #fff;
	content: "";
}

.wl-mobile-nav-button::before { top: 10px; transform: rotate(0deg); }
.wl-mobile-nav-button::after  { bottom: 10px; transform: rotate(0deg); }
.wl-mobile-nav-button:focus   { outline: none; }
.wl-mobile-nav-button:focus-visible { outline: 2.5px dashed #1e365a; }
.wl-mobile-nav-button:hover::before { top: 5px; }
.wl-mobile-nav-button:hover::after  { bottom: 5px; }

.wl-mobile-nav-button.is-open::before { top: 50%; transform: rotate(135deg); }
.wl-mobile-nav-button.is-open::after  { bottom: 50%; transform: rotate(-135deg); }
.wl-mobile-nav-button.is-open:hover::before { top: 50%; }
.wl-mobile-nav-button.is-open:hover::after  { bottom: 50%; }

/* ----- Drawer: full-screen navy, slides in from the left ----- */

.wl-mobile-nav-drawer {
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100vh;
	transition: transform 0.3s ease-in, opacity 0.3s ease-in;
	transform: translateX(-100%);
	background: #1e365a;
	opacity: 0;
	z-index: -9999999;
	overflow-y: auto;
}

.wl-mobile-nav-drawer .wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	align-self: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
}

.wl-mobile-nav-drawer .mobileLogo {
	width: 100%;
	max-width: 350px;
	margin: 50px auto 10px;
	padding: 0 20px;
}

.wl-white-logo { width: 100%; }
.wl-white-logo img { display: block; width: 100%; height: auto; }

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

.wl-mobile-nav-container {
	display: block;
	width: 100%;
	padding-bottom: 50px;
}

.wl-mobile-nav-container ul,
.wl-mobile-nav-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wl-mobile-nav-item {
	position: relative;
	width: 100%;
	border-bottom: 1px solid #fff;
	text-align: center;
	list-style: none;
	padding: 0;
}

.wl-mobile-nav-item a {
	display: block;
	padding: 18px 10px;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.2;
	color: #fff;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
}

.wl-mobile-nav-item a:hover { color: #c9f131; }

.wl-mobile-nav-item a:focus-visible {
	outline: 2.5px dashed #c9f131;
	outline-offset: -4px;
}

.wl-mobile-nav-item.current-menu-item > a,
.wl-mobile-nav-item a[aria-current="page"] {
	color: #1a6587;
	background-color: #c9f131;
}

/* sub-menus render inline, indented */
.wl-mobile-nav-item .sub-menu {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wl-mobile-nav-item .sub-menu a {
	font-size: 15px;
	font-weight: normal;
	padding: 12px 10px;
	opacity: 0.9;
}

/* ----- EN / FR toggle in the drawer ----- */

.wl-lang-in-drawer {
	width: 100%;
	margin: 30px auto 50px;
	display: flex;
	justify-content: center;
}

.wl-header-language-picker input[type="checkbox"].toggle {
	opacity: 0;
	position: absolute;
	top: -9000px;
	left: -90000px;
}

.wl-header-language-picker input[type="checkbox"].toggle + label {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	margin: 0;
}

.wl-header-language-picker input[type="checkbox"].toggle + label::before {
	width: 60px;
	height: 35px;
	background-color: #ddd;
	border-radius: 5px;
	margin-right: 2.5px;
	transition: all 0.3s ease-in-out;
	content: "";
}

.wl-header-language-picker input[type="checkbox"].toggle + label::after {
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	left: calc(50% + 2px);
	transform: translateX(-100%);
	width: 29px;
	height: 30px;
	transition: all 0.3s ease-in-out;
	background-color: #1e365a;
	color: #fff;
	border-radius: 5px;
	font-size: 10px;
	line-height: 10px;
	content: "EN";
}

.wl-header-language-picker input[type="checkbox"].toggle:focus + label::before {
	outline: 2.5px dashed #c9f131;
}

.wl-header-language-picker input[type="checkbox"].toggle:checked + label::before {
	background-color: #fff;
}

.wl-header-language-picker input[type="checkbox"].toggle:checked + label::after {
	transform: translateX(calc(-100% + 23px));
	color: #1e365a;
	background-color: #c9f131;
	content: "FR";
}

.wl-header-language-picker .visuallyhidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* ----- Desktop: hidden, and Divi's own mobile menu suppressed ----- */

/* Scoped to body:not(.wl-offcanvas-always) so the "off-canvas at every width"
   mode simply does not match this rule. Overriding it with a more specific
   rule would not work: the drawer's opacity is driven inline by JS, and an
   `opacity: 0 !important` here would beat it and leave an invisible drawer. */
@media (min-width: 768px) {
	body:not(.wl-offcanvas-always) .wl-mobile-nav-button,
	body:not(.wl-offcanvas-always) .wl-mobile-nav-drawer {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
	}
}

@media (max-width: 767px) {
	/* one hamburger on screen, not two */
	.et_pb_menu .et_mobile_nav_menu,
	.et_mobile_nav_menu {
		display: none !important;
	}
}

/* Respect a reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
	.wl-mobile-nav-drawer,
	.wl-mobile-nav-button::before,
	.wl-mobile-nav-button::after,
	.wl-header-language-picker input[type="checkbox"].toggle + label::before,
	.wl-header-language-picker input[type="checkbox"].toggle + label::after {
		transition: none !important;
	}
}
