/*
 * Off-canvas navigation (left side drawer).
 *
 * All selectors are namespaced with `cf-` so nothing here can affect the
 * existing theme design. No !important, no overrides of theme selectors.
 *
 * Palette is taken from the theme: #1d2945 (navy), #fdcb15 (yellow).
 */

/*--------------------------------------------------------------
# Toggle button
--------------------------------------------------------------*/
.cf-nav-toggle {
	position: fixed;
	top: 16px;
	left: 16px; /* physical side on purpose - stays left in RTL too */
	z-index: 100001;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 12px;
	background: #fff;
	-webkit-box-shadow: 0 2px 12px rgba(29, 41, 69, 0.18);
	        box-shadow: 0 2px 12px rgba(29, 41, 69, 0.18);
	cursor: pointer;
	-webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease, -webkit-box-shadow 0.25s ease;
	transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	-webkit-appearance: none;
	   -moz-appearance: none;
	        appearance: none;
}

/*
 * While the drawer is open its own close button occupies this corner,
 * so the floating toggle fades out to avoid two overlapping controls.
 */
.cf-nav-toggle.is-active {
	opacity: 0;
	pointer-events: none;
	-webkit-transform: scale(0.85);
	    -ms-transform: scale(0.85);
	        transform: scale(0.85);
}

.cf-nav-toggle:hover,
.cf-nav-toggle:focus {
	-webkit-box-shadow: 0 4px 18px rgba(29, 41, 69, 0.28);
	        box-shadow: 0 4px 18px rgba(29, 41, 69, 0.28);
}

.cf-nav-toggle:focus-visible {
	outline: 3px solid #fdcb15;
	outline-offset: 2px;
}

.cf-nav-toggle__bars {
	display: block;
	position: relative;
	width: 24px;
	height: 18px;
}

.cf-nav-toggle__bars span {
	position: absolute;
	left: 0;
	display: block;
	width: 100%;
	height: 3px;
	border-radius: 2px;
	background-color: #1d2945;
	-webkit-transition: -webkit-transform 0.3s ease, opacity 0.2s ease;
	transition: transform 0.3s ease, opacity 0.2s ease;
}

.cf-nav-toggle__bars span:nth-child(1) {
	top: 0;
}

.cf-nav-toggle__bars span:nth-child(2) {
	top: 50%;
	margin-top: -1.5px;
}

.cf-nav-toggle__bars span:nth-child(3) {
	bottom: 0;
}

.cf-nav-toggle.is-active .cf-nav-toggle__bars span:nth-child(1) {
	-webkit-transform: translateY(7.5px) rotate(45deg);
	    -ms-transform: translateY(7.5px) rotate(45deg);
	        transform: translateY(7.5px) rotate(45deg);
}

.cf-nav-toggle.is-active .cf-nav-toggle__bars span:nth-child(2) {
	opacity: 0;
}

.cf-nav-toggle.is-active .cf-nav-toggle__bars span:nth-child(3) {
	-webkit-transform: translateY(-7.5px) rotate(-45deg);
	    -ms-transform: translateY(-7.5px) rotate(-45deg);
	        transform: translateY(-7.5px) rotate(-45deg);
}

/*--------------------------------------------------------------
# Backdrop
--------------------------------------------------------------*/
.cf-nav-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99998;
	background: rgba(29, 41, 69, 0.55);
	opacity: 0;
	visibility: hidden;
	-webkit-transition: opacity 0.35s ease, visibility 0s linear 0.35s;
	-o-transition: opacity 0.35s ease, visibility 0s linear 0.35s;
	transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.cf-nav-backdrop.is-open {
	opacity: 1;
	visibility: visible;
	-webkit-transition-delay: 0s;
	     -o-transition-delay: 0s;
	        transition-delay: 0s;
}

/*--------------------------------------------------------------
# Drawer
--------------------------------------------------------------*/
.cf-nav {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0; /* opens from the left in every layout direction */
	z-index: 100000;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	width: 340px;
	max-width: 86vw;
	height: 100%;
	direction: rtl;
	text-align: right;
	background: #fff;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	visibility: hidden;
	-webkit-transform: translateX(-100%);
	    -ms-transform: translateX(-100%);
	        transform: translateX(-100%);
	-webkit-transition: -webkit-transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
}

.cf-nav.is-open {
	visibility: visible;
	-webkit-transform: translateX(0);
	    -ms-transform: translateX(0);
	        transform: translateX(0);
	-webkit-box-shadow: 4px 0 28px rgba(29, 41, 69, 0.25);
	        box-shadow: 4px 0 28px rgba(29, 41, 69, 0.25);
	-webkit-transition-delay: 0s;
	        transition-delay: 0s;
}

@media screen and (min-width: 768px) {
	.cf-nav {
		width: 380px;
	}
}

/*--------------------------------------------------------------
## Drawer header
--------------------------------------------------------------*/
.cf-nav__head {
	-webkit-box-flex: 0;
	    -ms-flex: 0 0 auto;
	        flex: 0 0 auto;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	min-height: 76px;
	padding: 12px 22px 12px 12px;
	padding-top: calc(12px + env(safe-area-inset-top));
	border-bottom: 1px solid rgba(29, 41, 69, 0.1);
}

.cf-nav__head > .site-logo-link {
	display: block;
	line-height: 0;
}

.cf-nav__logo {
	display: block;
	max-width: 180px;
	max-height: 46px;
	width: auto;
	height: auto;
}

.cf-nav__title {
	font-size: 20px;
	font-weight: 800;
	color: #1d2945;
}

.cf-nav__close {
	-webkit-box-flex: 0;
	    -ms-flex: 0 0 auto;
	        flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1d2945;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	-webkit-transition: background-color 0.2s ease;
	-o-transition: background-color 0.2s ease;
	transition: background-color 0.2s ease;
}

.cf-nav__close:hover,
.cf-nav__close:focus {
	background: rgba(29, 41, 69, 0.08);
}

.cf-nav__close:focus-visible {
	outline: 3px solid #fdcb15;
	outline-offset: 2px;
}

/*--------------------------------------------------------------
## Menu list
--------------------------------------------------------------*/
.cf-nav__body {
	-webkit-box-flex: 1;
	    -ms-flex: 1 1 auto;
	        flex: 1 1 auto;
	padding: 8px 0;
}

.cf-nav__list,
.cf-nav__list .sub-menu,
.cf-nav__list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cf-nav__list li {
	position: relative;
	margin: 0;
}

.cf-nav__list a {
	display: block;
	padding: 14px 22px;
	border-right: 4px solid transparent;
	border-bottom: 1px solid rgba(29, 41, 69, 0.07);
	color: #1d2945;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	-webkit-transition: background-color 0.2s ease, border-color 0.2s ease;
	-o-transition: background-color 0.2s ease, border-color 0.2s ease;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cf-nav__list a:hover,
.cf-nav__list a:focus {
	background-color: rgba(253, 203, 21, 0.16);
	border-right-color: #fdcb15;
	color: #1d2945;
	text-decoration: none;
}

.cf-nav__list a:focus-visible {
	outline: 2px solid #fdcb15;
	outline-offset: -2px;
}

.cf-nav__list .current-menu-item > a,
.cf-nav__list .current_page_item > a,
.cf-nav__list .current-menu-ancestor > a,
.cf-nav__list .current_page_ancestor > a {
	border-right-color: #fdcb15;
	background-color: rgba(253, 203, 21, 0.1);
	font-weight: 800;
}

/*--------------------------------------------------------------
## Sub menus (accordion)
--------------------------------------------------------------*/
.cf-nav__list .menu-item-has-children > a,
.cf-nav__list .page_item_has_children > a {
	padding-left: 56px;
}

.cf-nav__sub-toggle {
	position: absolute;
	top: 4px;
	left: 12px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1d2945;
	cursor: pointer;
	-webkit-transition: background-color 0.2s ease;
	-o-transition: background-color 0.2s ease;
	transition: background-color 0.2s ease;
}

.cf-nav__sub-toggle:hover,
.cf-nav__sub-toggle:focus {
	background: rgba(29, 41, 69, 0.08);
}

.cf-nav__sub-toggle:focus-visible {
	outline: 3px solid #fdcb15;
	outline-offset: -3px;
}

.cf-nav__sub-toggle::before {
	content: "";
	display: block;
	width: 9px;
	height: 9px;
	margin: 0 auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	-webkit-transform: translateY(-2px) rotate(45deg);
	    -ms-transform: translateY(-2px) rotate(45deg);
	        transform: translateY(-2px) rotate(45deg);
	-webkit-transition: -webkit-transform 0.3s ease;
	transition: transform 0.3s ease;
}

.cf-nav__list .is-open > .cf-nav__sub-toggle::before {
	-webkit-transform: translateY(2px) rotate(-135deg);
	    -ms-transform: translateY(2px) rotate(-135deg);
	        transform: translateY(2px) rotate(-135deg);
}

.cf-nav__list .sub-menu,
.cf-nav__list .children {
	max-height: 0;
	overflow: hidden;
	background: #f7f8fa;
	-webkit-transition: max-height 0.3s ease;
	-o-transition: max-height 0.3s ease;
	transition: max-height 0.3s ease;
}

.cf-nav__list .sub-menu a,
.cf-nav__list .children a {
	padding: 12px 40px 12px 22px;
	font-size: 16px;
	font-weight: 400;
	border-bottom-color: rgba(29, 41, 69, 0.05);
}

/*--------------------------------------------------------------
## Drawer footer / CTA
--------------------------------------------------------------*/
.cf-nav__foot {
	-webkit-box-flex: 0;
	    -ms-flex: 0 0 auto;
	        flex: 0 0 auto;
	padding: 18px 22px;
	padding-bottom: calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(29, 41, 69, 0.1);
}

.cf-nav__cta {
	display: block;
	padding: 13px 16px;
	border-radius: 8px;
	background-color: #1d2945;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	-webkit-transition: background-color 0.25s ease, color 0.25s ease;
	-o-transition: background-color 0.25s ease, color 0.25s ease;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.cf-nav__cta:hover,
.cf-nav__cta:focus {
	background-color: #fdcb15;
	color: #1d2945;
	text-decoration: none;
}

/*--------------------------------------------------------------
# Body state
--------------------------------------------------------------*/
body.cf-nav-open {
	overflow: hidden;
}

/*--------------------------------------------------------------
# Small screens
--------------------------------------------------------------*/
@media screen and (max-width: 767px) {
	.cf-nav-toggle {
		top: 12px;
		left: 12px;
		width: 44px;
		height: 44px;
		border-radius: 10px;
	}

	.cf-nav__list a {
		font-size: 17px;
	}
}

/*--------------------------------------------------------------
# Motion / print
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
	.cf-nav,
	.cf-nav-backdrop,
	.cf-nav-toggle,
	.cf-nav-toggle__bars span,
	.cf-nav__list a,
	.cf-nav__list .sub-menu,
	.cf-nav__list .children,
	.cf-nav__sub-toggle::before {
		-webkit-transition: none;
		-o-transition: none;
		transition: none;
	}
}

@media print {
	.cf-nav-toggle,
	.cf-nav-backdrop,
	.cf-nav {
		display: none;
	}
}

/*--------------------------------------------------------------
# Legacy floating phone button (land2 / land3)
#
# `h3.phone` (land2.php / land3.php) is placed at the top-left corner, the
# same spot the nav toggle now occupies. Handled here rather than in
# style.css so every change made for the drawer stays in one file.
--------------------------------------------------------------*/

/* Mobile: the round icon-only button sat right under the toggle. */
@media screen and (max-width: 767px) {
	.page-template-land2 h3.phone,
	.page-template-land3 h3.phone {
		display: none;
	}
}

/* Desktop: land2 keeps its yellow bar, nudged clear of the toggle. */
@media screen and (min-width: 768px) {
	.page-template-land2 h3.phone {
		left: 80px;
	}
}
