/**
 * Linkify NavMenu — frontend styles.
 *
 * Structural layout only. Colours, padding, typography, borders,
 * border-radius and shadows are all driven by Elementor controls and
 * deliberately omitted here to avoid load-order conflicts (see skill rule 1).
 */

/* ------------------------------------------------------------------
 * Reset + wrapper
 * ------------------------------------------------------------------ */

.lnm-wrapper {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	--lnm-sub-offset: 6px;
	--lnm-sub-anim-duration: 250ms;
	--lnm-pointer-color: #0073e6;
	--lnm-pointer-height: 2px;
}

.lnm-wrapper.lnm-is-sticky {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 9999;
	width: 100%;
}

.lnm-wrapper *,
.lnm-wrapper *::before,
.lnm-wrapper *::after {
	box-sizing: border-box;
}

.lnm-menu-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.lnm-menu,
.lnm-sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lnm-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
}

.lnm-menu-item {
	position: relative;
	display: flex;
	align-items: center;
}

.lnm-menu-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	line-height: 1.4;
	white-space: nowrap;
	position: relative;
	transition: color .2s ease, background-color .2s ease;
}

/* ------------------------------------------------------------------
 * Submenu toggle button (chevron / plus / arrow)
 * ------------------------------------------------------------------ */

.lnm-submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 0 6px;
	color: inherit;
	font: inherit;
	line-height: 1;
}

.lnm-submenu-indicator {
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	transition: transform .2s ease;
}

.lnm-icon-chevron-down::before {
	content: "";
	display: inline-block;
	width: 0.55em;
	height: 0.55em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -3px;
}
.lnm-icon-caret::before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
}
.lnm-icon-arrow::before {
	content: "→";
	font-style: normal;
	line-height: 1;
}
.lnm-icon-plus::before {
	content: "+";
	font-style: normal;
	font-weight: 600;
	line-height: 1;
}
.lnm-icon-none::before {
	content: "";
}

.lnm-menu-item.lnm-open > .lnm-submenu-toggle .lnm-submenu-indicator {
	transform: rotate(180deg);
}
.lnm-menu-item.lnm-open > .lnm-submenu-toggle .lnm-icon-plus::before {
	content: "−";
}

/* ------------------------------------------------------------------
 * Submenu (dropdown)
 * ------------------------------------------------------------------ */

.lnm-sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	z-index: 100;
	display: block;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform-origin: top center;
	margin-top: var(--lnm-sub-offset);
	transition:
		opacity var(--lnm-sub-anim-duration) ease,
		visibility var(--lnm-sub-anim-duration) ease,
		transform var(--lnm-sub-anim-duration) ease;
}

/* Nested submenus open to the side */
.lnm-sub-menu .lnm-sub-menu {
	top: 0;
	left: 100%;
	margin-top: 0;
	margin-left: var(--lnm-sub-offset);
}

.lnm-sub-menu .lnm-menu-item {
	display: block;
}

.lnm-sub-menu .lnm-menu-link {
	display: flex;
	width: 100%;
	white-space: normal;
	justify-content: space-between;
	align-items: center;
}

/* Animation presets */
.lnm-sub-anim-fade .lnm-sub-menu          { transform: translateY(0); }
.lnm-sub-anim-slide-down .lnm-sub-menu    { transform: translateY(-10px); }
.lnm-sub-anim-slide-up .lnm-sub-menu      { transform: translateY(10px); }
.lnm-sub-anim-none .lnm-sub-menu          { transition: none; }

/* Open state — both hover and JS toggle */
.lnm-trigger-hover .lnm-menu-item:hover > .lnm-sub-menu,
.lnm-trigger-hover .lnm-menu-item:focus-within > .lnm-sub-menu,
.lnm-menu-item.lnm-open > .lnm-sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(0,0);
}

/* ------------------------------------------------------------------
 * Mega menu panel
 * ------------------------------------------------------------------ */

.lnm-mega-panel {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100vw;
	max-width: 1200px;
	z-index: 100;
	margin-top: var(--lnm-sub-offset);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity var(--lnm-sub-anim-duration) ease,
		visibility var(--lnm-sub-anim-duration) ease,
		transform var(--lnm-sub-anim-duration) ease;
	transform: translateY(-10px);
}

.lnm-trigger-hover .lnm-mega-menu:hover > .lnm-mega-panel,
.lnm-mega-menu.lnm-open > .lnm-mega-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

/* Center the mega panel under the menu wrapper if it overflows */
.lnm-mega-panel {
	left: 50%;
	transform: translate(-50%, -10px);
}
.lnm-trigger-hover .lnm-mega-menu:hover > .lnm-mega-panel,
.lnm-mega-menu.lnm-open > .lnm-mega-panel {
	transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------
 * Pointer / hover effects
 * ------------------------------------------------------------------ */

.lnm-pointer-none .lnm-menu > .lnm-menu-item > .lnm-menu-link::after,
.lnm-pointer-text .lnm-menu > .lnm-menu-item > .lnm-menu-link::after,
.lnm-pointer-background .lnm-menu > .lnm-menu-item > .lnm-menu-link::after {
	display: none;
}

.lnm-pointer-underline .lnm-menu > .lnm-menu-item > .lnm-menu-link::after,
.lnm-pointer-overline .lnm-menu > .lnm-menu-item > .lnm-menu-link::after,
.lnm-pointer-double .lnm-menu > .lnm-menu-item > .lnm-menu-link::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 0;
	height: var(--lnm-pointer-height);
	background-color: var(--lnm-pointer-color);
	transform: translateX(-50%);
	transition: width .25s ease;
}

.lnm-pointer-underline .lnm-menu > .lnm-menu-item > .lnm-menu-link::after { bottom: 0; }
.lnm-pointer-overline  .lnm-menu > .lnm-menu-item > .lnm-menu-link::after { top: 0; }
.lnm-pointer-double    .lnm-menu > .lnm-menu-item > .lnm-menu-link::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 0;
	height: var(--lnm-pointer-height);
	background-color: var(--lnm-pointer-color);
	transform: translateX(-50%);
	transition: width .25s ease;
}
.lnm-pointer-double    .lnm-menu > .lnm-menu-item > .lnm-menu-link::after  { bottom: 0; }

.lnm-pointer-underline .lnm-menu > .lnm-menu-item > .lnm-menu-link:hover::after,
.lnm-pointer-underline .lnm-menu > .lnm-menu-item.current-menu-item > .lnm-menu-link::after,
.lnm-pointer-overline  .lnm-menu > .lnm-menu-item > .lnm-menu-link:hover::after,
.lnm-pointer-overline  .lnm-menu > .lnm-menu-item.current-menu-item > .lnm-menu-link::after,
.lnm-pointer-double    .lnm-menu > .lnm-menu-item > .lnm-menu-link:hover::after,
.lnm-pointer-double    .lnm-menu > .lnm-menu-item.current-menu-item > .lnm-menu-link::after,
.lnm-pointer-double    .lnm-menu > .lnm-menu-item > .lnm-menu-link:hover::before,
.lnm-pointer-double    .lnm-menu > .lnm-menu-item.current-menu-item > .lnm-menu-link::before {
	width: 100%;
}

.lnm-pointer-framed .lnm-menu > .lnm-menu-item > .lnm-menu-link {
	box-shadow: inset 0 0 0 0 var(--lnm-pointer-color);
	transition: box-shadow .25s ease, color .2s ease, background-color .2s ease;
}
.lnm-pointer-framed .lnm-menu > .lnm-menu-item > .lnm-menu-link:hover,
.lnm-pointer-framed .lnm-menu > .lnm-menu-item.current-menu-item > .lnm-menu-link {
	box-shadow: inset 0 0 0 var(--lnm-pointer-height) var(--lnm-pointer-color);
}

/* Animation flavours */
.lnm-anim-grow .lnm-menu > .lnm-menu-item > .lnm-menu-link::after,
.lnm-anim-grow .lnm-menu > .lnm-menu-item > .lnm-menu-link::before {
	transition: width .35s cubic-bezier(.2,.6,.2,1);
}
.lnm-anim-drop .lnm-menu > .lnm-menu-item > .lnm-menu-link::after {
	transform: translate(-50%, -8px);
	opacity: 0;
	width: 100%;
	transition: opacity .25s ease, transform .25s ease;
}
.lnm-anim-drop .lnm-menu > .lnm-menu-item > .lnm-menu-link:hover::after,
.lnm-anim-drop .lnm-menu > .lnm-menu-item.current-menu-item > .lnm-menu-link::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------
 * Layouts — horizontal / vertical / dropdown
 * ------------------------------------------------------------------ */

.lnm-layout-horizontal .lnm-menu {
	flex-direction: row;
}

.lnm-layout-vertical .lnm-menu-wrap {
	flex-direction: column;
	align-items: stretch;
}
.lnm-layout-vertical .lnm-menu {
	flex-direction: column;
	align-items: stretch;
	width: 100%;
}
.lnm-layout-vertical .lnm-menu-item {
	width: 100%;
}
.lnm-layout-vertical .lnm-menu-link {
	width: 100%;
	justify-content: space-between;
}
.lnm-layout-vertical .lnm-sub-menu {
	position: static;
	margin-top: 0;
	display: none;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition: none;
}
.lnm-layout-vertical .lnm-menu-item.lnm-open > .lnm-sub-menu {
	display: block;
}

/* Dropdown layout = always hide desktop menu, always show toggle */
.lnm-layout-dropdown .lnm-menu-wrap {
	display: none !important;
}
.lnm-layout-dropdown .lnm-toggle-row {
	display: flex !important;
}

/* ------------------------------------------------------------------
 * Toggle row + hamburger icon
 * ------------------------------------------------------------------ */

.lnm-toggle-row {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: flex-end;
}

.lnm-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	cursor: pointer;
	line-height: 1;
}

.lnm-toggle-icon {
	position: relative;
	display: inline-block;
	width: 1em;
	height: 1em;
}

.lnm-icon-bars::before,
.lnm-icon-bars::after,
.lnm-icon-bars > span,
.lnm-toggle-icon.lnm-icon-bars::before,
.lnm-toggle-icon.lnm-icon-bars::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 0.12em;
	background-color: currentColor;
	border-radius: 2px;
}
.lnm-toggle-icon.lnm-icon-bars::before { top: 18%; box-shadow: 0 0.34em 0 currentColor; }
.lnm-toggle-icon.lnm-icon-bars::after  { bottom: 18%; }

.lnm-toggle-icon.lnm-icon-dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.lnm-toggle-icon.lnm-icon-dots::before {
	content: "⋯";
	font-size: 1.4em;
	line-height: 0;
}

.lnm-toggle-icon.lnm-icon-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 0.12em;
}
.lnm-toggle-icon.lnm-icon-grid::before {
	content: "";
	display: block;
	box-shadow:
		0 0 0 0 currentColor,
		0.36em 0 0 currentColor,
		0.72em 0 0 currentColor,
		0 0.36em 0 currentColor,
		0.36em 0.36em 0 currentColor,
		0.72em 0.36em 0 currentColor,
		0 0.72em 0 currentColor,
		0.36em 0.72em 0 currentColor,
		0.72em 0.72em 0 currentColor;
	width: 0.18em;
	height: 0.18em;
	background: currentColor;
}

.lnm-icon-close::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1em;
	height: 0.12em;
	background-color: currentColor;
	transform: translate(-50%, -50%) rotate(45deg);
	border-radius: 2px;
}
.lnm-icon-close::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1em;
	height: 0.12em;
	background-color: currentColor;
	transform: translate(-50%, -50%) rotate(-45deg);
	border-radius: 2px;
}
.lnm-mobile-close {
	width: 2.2em;
	height: 2.2em;
	position: relative;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 18px;
	margin-left: auto;
}

/* ------------------------------------------------------------------
 * Mobile panel (drawer / fullscreen / dropdown)
 * ------------------------------------------------------------------ */

.lnm-mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}
.lnm-wrapper.lnm-mobile-open .lnm-mobile-overlay {
	opacity: 1;
	visibility: visible;
}

.lnm-mobile-panel {
	position: fixed;
	top: 0;
	z-index: 9999;
	height: 100vh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility .35s ease;
	visibility: hidden;
}

.lnm-panel-drawer-left .lnm-mobile-panel  { left: 0;  right: auto; transform: translateX(-100%); }
.lnm-panel-drawer-right .lnm-mobile-panel { right: 0; left: auto;  transform: translateX(100%); }
.lnm-panel-fullscreen .lnm-mobile-panel   { left: 0; right: 0; width: 100%; transform: translateX(0); opacity: 0; }
.lnm-panel-dropdown .lnm-mobile-panel     {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	width: 100%;
	height: auto;
	max-height: 80vh;
	transform: translateY(-12px);
	opacity: 0;
}

.lnm-wrapper.lnm-mobile-open .lnm-mobile-panel {
	transform: translate(0,0);
	opacity: 1;
	visibility: visible;
}

.lnm-mobile-header {
	display: flex;
	align-items: center;
	padding: 14px 18px;
	border-bottom: 1px solid rgba(0,0,0,0.08);
}
.lnm-mobile-logo {
	max-height: 36px;
	width: auto;
}
.lnm-mobile-body {
	flex: 1 1 auto;
	padding: 12px 0;
}
.lnm-mobile-panel .lnm-menu {
	flex-direction: column;
	width: 100%;
	gap: 0;
}
.lnm-mobile-panel .lnm-menu-item {
	width: 100%;
	display: flex;
	flex-direction: column;
}
.lnm-mobile-panel .lnm-menu-link {
	width: 100%;
	flex: 1 1 auto;
	padding: 12px 20px;
	justify-content: flex-start;
}
.lnm-mobile-panel .lnm-menu-item.lnm-has-children > .lnm-menu-link {
	display: inline-flex;
}
.lnm-mobile-panel .lnm-submenu-toggle {
	position: absolute;
	right: 6px;
	top: 6px;
	padding: 8px 12px;
}
.lnm-mobile-panel .lnm-menu-item.lnm-has-children {
	position: relative;
}
.lnm-mobile-panel .lnm-sub-menu {
	position: static;
	margin: 0;
	display: none;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition: none;
	background: rgba(0,0,0,0.03);
}
.lnm-mobile-panel .lnm-menu-item.lnm-open > .lnm-sub-menu {
	display: block;
}
.lnm-mobile-panel .lnm-mega-panel {
	position: static;
	transform: none;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	width: 100%;
	max-width: 100%;
	display: none;
}
.lnm-mobile-panel .lnm-mega-menu.lnm-open > .lnm-mega-panel {
	display: block;
}

/* ------------------------------------------------------------------
 * Extras: CTA + search
 * ------------------------------------------------------------------ */

.lnm-extras {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}
.lnm-extras-mobile {
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	padding: 14px 20px;
	margin: 0;
}
.lnm-search-form {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e0e0e0;
	border-radius: 999px;
	background: #fafafa;
	overflow: hidden;
}
.lnm-search-input {
	background: transparent;
	border: 0;
	padding: 6px 12px;
	outline: none;
	font: inherit;
	min-width: 0;
	width: 160px;
}
.lnm-search-submit {
	background: transparent;
	border: 0;
	padding: 6px 12px;
	cursor: pointer;
	color: inherit;
}
.lnm-icon-search::before {
	content: "";
	display: inline-block;
	width: 0.7em;
	height: 0.7em;
	border: 2px solid currentColor;
	border-radius: 50%;
	position: relative;
	vertical-align: middle;
}
.lnm-icon-search::after {
	content: "";
	display: inline-block;
	width: 0.35em;
	height: 2px;
	background-color: currentColor;
	transform: rotate(45deg);
	margin-left: -3px;
	vertical-align: middle;
}
.lnm-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	border: 0;
	transition: background-color .2s ease, color .2s ease;
	line-height: 1.2;
}

/* ------------------------------------------------------------------
 * Empty state
 * ------------------------------------------------------------------ */
.lnm-empty {
	padding: 12px 16px;
	border: 1px dashed #bbb;
	color: #666;
	font-size: 13px;
	border-radius: 4px;
}

/* ------------------------------------------------------------------
 * Responsive breakpoints
 * ------------------------------------------------------------------ */

/* Switch to hamburger at tablet */
@media (max-width: 1024px) {
	.lnm-bp-tablet .lnm-menu-wrap { display: none; }
	.lnm-bp-tablet .lnm-toggle-row { display: flex; }
}
/* Switch to hamburger at mobile only */
@media (max-width: 767px) {
	.lnm-bp-mobile .lnm-menu-wrap { display: none; }
	.lnm-bp-mobile .lnm-toggle-row { display: flex; }
	.lnm-search-input { width: 100%; }
}

/* ------------------------------------------------------------------
 * Accessibility helpers
 * ------------------------------------------------------------------ */
.screen-reader-text {
	border: 0;
	clip: rect(1px,1px,1px,1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.lnm-menu-link:focus-visible,
.lnm-submenu-toggle:focus-visible,
.lnm-toggle:focus-visible,
.lnm-mobile-close:focus-visible,
.lnm-cta:focus-visible {
	outline: 2px solid #1e90ff;
	outline-offset: 2px;
}
