/**
 * Social Spot Mega Menu — frontend.
 *
 * Every visual value is a CSS custom property so the Elementor widget (or a
 * theme) can override it. Defaults use the Social Spot brand tokens. Layout
 * relies on logical properties so RTL languages mirror automatically.
 */

.ss-mm {
	/* Layout */
	--ss-mm-gap: 40px;
	--ss-mm-panel-width: 1280px;   /* outer panel width (centered under the nav) */
	--ss-mm-panel-gutter: 24px;    /* min space kept from each viewport edge */
	--ss-mm-panel-offset: 0px;     /* extra vertical gap below the bar */
	--ss-mm-panel-shift: 0px;      /* horizontal nudge if the menu isn't centered */
	--ss-mm-hl-width: 300px;
	--ss-mm-item-gap: 28px;

	/* Panel */
	--ss-mm-panel-bg: #f4f0e7;
	--ss-mm-panel-radius: 0 0 18px 18px;
	--ss-mm-panel-shadow: 0 24px 48px rgba( 19, 17, 15, 0.14 );
	--ss-mm-panel-pad: 44px;

	/* Top item */
	--ss-mm-top-color: #13110f;
	--ss-mm-top-hover: #005a52;
	--ss-mm-burger-color: #13110f;
	--ss-mm-top-size: 16px;
	--ss-mm-top-weight: 500;
	--ss-mm-top-font: inherit;

	/* Category heading */
	--ss-mm-cat-color: #c9a24b;
	--ss-mm-cat-hover: #a9822f;
	--ss-mm-cat-size: 13px;
	--ss-mm-cat-weight: 700;
	--ss-mm-cat-spacing: 1.5px;
	--ss-mm-cat-font: inherit;

	/* Link */
	--ss-mm-link-color: #13110f;
	--ss-mm-link-hover: #005a52;
	--ss-mm-link-hover-bg: #eae3d6;
	--ss-mm-link-radius: 10px;
	--ss-mm-link-pad-y: 8px;
	--ss-mm-link-pad-x: 12px;
	--ss-mm-link-size: 17px;
	--ss-mm-link-weight: 500;
	--ss-mm-link-font: inherit;

	/* Subtitle */
	--ss-mm-sub-color: #8a8a8a;
	--ss-mm-sub-size: 13px;
	--ss-mm-sub-font: inherit;

	/* Highlight card */
	--ss-mm-hl-bg: #003c37;
	--ss-mm-hl-image: none;
	--ss-mm-hl-radius: 14px;
	--ss-mm-hl-pad: 30px;
	--ss-mm-hl-eyebrow-color: #f1cf44;
	--ss-mm-hl-heading-color: #fcfaf6;
	--ss-mm-hl-text-color: rgba( 252, 250, 246, 0.82 );
	--ss-mm-hl-btn-color: #f1cf44;
	--ss-mm-hl-btn-hover: #ffffff;

	position: relative;
	font-family: inherit;
}

/* Reset the list ------------------------------------------------------- */
.ss-mm__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: var(--ss-mm-item-gap);
}
.ss-mm__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Hamburger (mobile only) --------------------------------------------- */
.ss-mm__burger {
	display: none;
}
.ss-mm__burger-box {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 20px;
	height: 14px;
}
.ss-mm__burger-box span {
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: var(--ss-mm-burger-color);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Overlay wrapper is transparent on desktop (the list is the horizontal bar). */
.ss-mm__overlay {
	display: contents;
}
.ss-mm__overlay-head,
.ss-mm__langs,
.ss-mm__close {
	display: none;
}

/* Desktop option: show the language switcher at the end of the bar (after the menu). */
.ss-mm--desktop-langs:not(.ss-mm--mobile) .ss-mm__overlay {
	display: flex;
	align-items: center;
	gap: var(--ss-mm-desktop-langs-gap, 28px);
}
.ss-mm--desktop-langs:not(.ss-mm--mobile) .ss-mm__langs {
	display: flex;
	flex: 0 0 auto;
	padding: 0;
	border: 0;
}

/* Top-level items ------------------------------------------------------ */
.ss-mm__item {
	position: static;
	margin: 0;
	/* Same flex box model for items with and without an arrow, so text aligns. */
	display: inline-flex;
	align-items: center;
}
.ss-mm__top {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--ss-mm-top-color);
	font-family: var(--ss-mm-top-font);
	font-size: var(--ss-mm-top-size);
	font-weight: var(--ss-mm-top-weight);
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.18s ease;
}
.ss-mm__item--has-dropdown {
	display: inline-flex;
	align-items: center;
}
.ss-mm__toggle {
	/* Reset aggressively so theme button styles can't add a background/border. */
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
	margin: 0;
	margin-inline-start: 5px;
	padding: 0;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	line-height: 0;
	cursor: pointer;
	color: var(--ss-mm-caret-color, var(--ss-mm-top-color));
	transition: color 0.18s ease, transform 0.18s ease;
}
.ss-mm__toggle:hover,
.ss-mm__toggle:focus,
.ss-mm__toggle:active {
	background: transparent !important;
	box-shadow: none !important;
}
.ss-mm__toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}
.ss-mm__caret {
	display: inline-block;
	width: var(--ss-mm-caret-size, 7px);
	height: var(--ss-mm-caret-size, 7px);
	border-inline-end: 2px solid currentColor;
	border-block-end: 2px solid currentColor;
	transform: rotate( 45deg );
	transform-origin: center;
	margin-block-start: -2px;
}
.ss-mm__item:hover > .ss-mm__top,
.ss-mm__item:hover > .ss-mm__toggle,
.ss-mm__item.is-open > .ss-mm__top,
.ss-mm__item.is-open > .ss-mm__toggle {
	color: var(--ss-mm-top-hover);
}
.ss-mm__item.is-open .ss-mm__toggle {
	transform: rotate( 180deg );
}

/* Panel ---------------------------------------------------------------- */
.ss-mm__panel {
	position: absolute;
	top: calc( 100% + var(--ss-mm-panel-offset) );
	left: 50%;
	width: min( var(--ss-mm-panel-width), calc( 100vw - ( var(--ss-mm-panel-gutter) * 2 ) ) );
	z-index: 999;
	background: var(--ss-mm-panel-bg);
	border-radius: var(--ss-mm-panel-radius);
	box-shadow: var(--ss-mm-panel-shadow);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX( calc( -50% + var(--ss-mm-panel-shift) ) ) translateY( 8px );
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.ss-mm__inner {
	display: flex;
	gap: var(--ss-mm-gap);
	width: 100%;
	padding: var(--ss-mm-panel-pad);
	box-sizing: border-box;
}

/* Open on hover / focus (pointer devices) and via JS ------------------- */
.ss-mm:not(.ss-mm--mobile) .ss-mm__item--has-dropdown:hover .ss-mm__panel,
.ss-mm:not(.ss-mm--mobile) .ss-mm__item--has-dropdown:focus-within .ss-mm__panel,
.ss-mm:not(.ss-mm--mobile) .ss-mm__item.is-open .ss-mm__panel {
	opacity: 1;
	visibility: visible;
	transform: translateX( calc( -50% + var(--ss-mm-panel-shift) ) );
	pointer-events: auto;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Columns -------------------------------------------------------------- */
.ss-mm__grid {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat( var(--ss-mm-cols, 1), minmax( 0, 1fr ) );
	gap: var(--ss-mm-gap);
	min-width: 0;
}
.ss-mm__cat {
	display: block;
	margin: 0 0 18px;
	color: var(--ss-mm-cat-color);
	font-family: var(--ss-mm-cat-font);
	font-size: var(--ss-mm-cat-size);
	font-weight: var(--ss-mm-cat-weight);
	letter-spacing: var(--ss-mm-cat-spacing);
	text-transform: uppercase;
	text-decoration: none;
}
a.ss-mm__cat:hover {
	color: var(--ss-mm-cat-hover);
}
.ss-mm__links {
	/* Pull the list back so padded link text still aligns with the category title. */
	margin-inline: calc( -1 * var(--ss-mm-link-pad-x) );
}
.ss-mm__link-item {
	margin: 0 0 6px;
}
.ss-mm__link-item:last-child {
	margin-bottom: 0;
}
.ss-mm__link {
	display: block;
	text-decoration: none;
	padding: var(--ss-mm-link-pad-y) var(--ss-mm-link-pad-x);
	border-radius: var(--ss-mm-link-radius);
	transition: color 0.16s ease, background-color 0.16s ease;
}
.ss-mm__link:hover {
	background-color: var(--ss-mm-link-hover-bg);
}
.ss-mm__link-label {
	display: block;
	color: var(--ss-mm-link-color);
	font-family: var(--ss-mm-link-font);
	font-size: var(--ss-mm-link-size);
	font-weight: var(--ss-mm-link-weight);
	line-height: 1.3;
}
.ss-mm__sub {
	display: block;
	margin-block-start: 2px;
	color: var(--ss-mm-sub-color);
	font-family: var(--ss-mm-sub-font);
	font-size: var(--ss-mm-sub-size);
	line-height: 1.35;
}
.ss-mm__link:hover .ss-mm__link-label {
	color: var(--ss-mm-link-hover);
}

/* Highlight card ------------------------------------------------------- */
.ss-mm__highlight {
	flex: 0 0 var(--ss-mm-hl-width);
	align-self: stretch;
	background-color: var(--ss-mm-hl-bg);
	background-image: var(--ss-mm-hl-image);
	background-size: cover;
	background-position: center;
	border-radius: var(--ss-mm-hl-radius);
	padding: var(--ss-mm-hl-pad);
	box-sizing: border-box;
}
.ss-mm__hl-eyebrow {
	display: block;
	margin: 0 0 12px;
	color: var(--ss-mm-hl-eyebrow-color);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.ss-mm__hl-heading {
	color: var(--ss-mm-hl-heading-color);
	font-size: 26px;
	line-height: 1.15;
	font-weight: 600;
	margin: 0 0 12px;
}
.ss-mm__hl-text {
	color: var(--ss-mm-hl-text-color);
	font-size: 15px;
	line-height: 1.5;
}
.ss-mm__hl-text p {
	margin: 0 0 10px;
}
.ss-mm__hl-btn {
	display: inline-block;
	margin-block-start: 14px;
	color: var(--ss-mm-hl-btn-color);
	font-weight: 700;
	text-decoration: none;
	transition: color 0.16s ease;
}
.ss-mm__hl-btn:hover {
	color: var(--ss-mm-hl-btn-hover);
}

/* Screen-reader-only helper (in case theme lacks it) ------------------- */
.ss-mm .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

/* ===================================================================== *
 *  Mobile: circle hamburger → full-screen overlay
 * ===================================================================== */

/* Circle hamburger button. */
.ss-mm--mobile .ss-mm__burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ss-mm-btn-size, 46px);
	height: var(--ss-mm-btn-size, 46px);
	border-radius: 50%;
	background: var(--ss-mm-btn-bg, transparent) !important;
	border: 1px solid var(--ss-mm-btn-border, transparent) !important;
	box-shadow: none !important;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: var(--ss-mm-burger-color);
}

/* The in-nav overlay is hidden on mobile until opened (it moves to a body-level
   container with .ss-mm--overlay-open). */
.ss-mm--mobile:not(.ss-mm--overlay-open) .ss-mm__overlay {
	display: none;
}

/* Backdrop + right-side drawer (portaled to <body>) + editor inline preview. */
.ss-mm--overlay-open {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	justify-content: flex-end;
	background: var(--ss-mm-backdrop, rgba( 0, 0, 0, 0.5 ));
}
.ss-mm--overlay-open .ss-mm__overlay {
	display: flex;
	flex-direction: column;
	width: min( 92vw, var(--ss-mm-drawer-width, 400px) );
	height: 100%;
	background: var(--ss-mm-mobile-bg, var(--ss-mm-panel-bg));
	box-shadow: -12px 0 40px rgba( 0, 0, 0, 0.18 );
	animation: ss-mm-slide-in 0.3s ease;
}
.ss-mm--overlay-open[dir="rtl"] .ss-mm__overlay {
	animation-name: ss-mm-slide-in-rtl;
}
@keyframes ss-mm-slide-in {
	from { transform: translateX( 100% ); }
	to { transform: none; }
}
@keyframes ss-mm-slide-in-rtl {
	from { transform: translateX( -100% ); }
	to { transform: none; }
}

/* Editor inline preview: show the drawer in place (right-aligned) for styling. */
.ss-mm--editor.ss-mm--mobile .ss-mm__overlay {
	display: flex;
	flex-direction: column;
	position: relative;
	width: min( 92vw, var(--ss-mm-drawer-width, 400px) );
	margin-inline-start: auto;
	min-height: 70vh;
	background: var(--ss-mm-mobile-bg, var(--ss-mm-panel-bg));
	box-shadow: -12px 0 40px rgba( 0, 0, 0, 0.12 );
}
.ss-mm--editor.ss-mm--mobile .ss-mm__burger {
	display: none;
}

/* Keep the top bar and language switcher clear of the iPhone notch / home indicator. */
.ss-mm--overlay-open .ss-mm__overlay-head {
	padding-top: max( 16px, env( safe-area-inset-top ) );
}
.ss-mm--overlay-open .ss-mm__langs {
	padding-bottom: max( 16px, env( safe-area-inset-bottom ) );
}

/* Overlay top bar: logo + close. */
.ss-mm--overlay-open .ss-mm__overlay-head,
.ss-mm--editor.ss-mm--mobile .ss-mm__overlay-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	padding: 16px 20px;
	border-block-end: 1px solid var(--ss-mm-mobile-divider, rgba( 19, 17, 15, 0.1 ));
}
.ss-mm__logo-img,
.ss-mm__logo img {
	display: block;
	max-height: 34px;
	width: auto;
}
.ss-mm__logo-text {
	font-weight: 700;
	font-size: 18px;
	color: var(--ss-mm-top-color);
	text-decoration: none;
}
.ss-mm--overlay-open .ss-mm__close,
.ss-mm--editor.ss-mm--mobile .ss-mm__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: var(--ss-mm-btn-size, 46px);
	height: var(--ss-mm-btn-size, 46px);
	border-radius: 50%;
	background: var(--ss-mm-btn-bg, transparent);
	border: 1px solid var(--ss-mm-btn-border, currentColor);
	color: var(--ss-mm-btn-color, var(--ss-mm-top-color));
	padding: 0;
	cursor: pointer;
}
.ss-mm__close-x {
	position: relative;
	display: block;
	width: 16px;
	height: 16px;
}
.ss-mm__close-x::before,
.ss-mm__close-x::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}
.ss-mm__close-x::before {
	transform: translateY( -50% ) rotate( 45deg );
}
.ss-mm__close-x::after {
	transform: translateY( -50% ) rotate( -45deg );
}

/* Menu list = the scrollable middle of the overlay. The desktop "Alignment" control
   must never affect this vertical list, so top-alignment is forced. */
.ss-mm--mobile .ss-mm__list {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: transparent;
}

/* Top-level rows: full width, chevron on the end, thin divider. */
.ss-mm--mobile .ss-mm__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding-inline: var(--ss-mm-mobile-pad, 22px);
	border-block-end: 1px solid var(--ss-mm-mobile-divider, rgba( 19, 17, 15, 0.1 ));
}
.ss-mm--mobile .ss-mm__top {
	flex: 1 1 auto;
	padding-block: 18px;
	font-size: var(--ss-mm-mobile-top-size, 18px);
	font-weight: 600;
}
.ss-mm--mobile .ss-mm__toggle {
	padding: 18px 0 18px 12px;
}
.ss-mm--mobile .ss-mm__caret {
	width: 9px;
	height: 9px;
}

/* Expanding content pushes the rows below it down; no box, no shadow. */
.ss-mm--mobile .ss-mm__panel {
	position: static;
	left: auto;
	width: 100%;
	flex-basis: 100%;
	background: none;
	box-shadow: none;
	border-radius: 0;
	opacity: 1;
	visibility: hidden;
	transform: none;
	pointer-events: none;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}
.ss-mm--mobile .ss-mm__item.is-open .ss-mm__panel {
	visibility: visible;
	pointer-events: auto;
	max-height: 3000px;
}
.ss-mm--mobile .ss-mm__inner {
	flex-direction: column;
	padding: 4px 0 18px;
	gap: 0;
}
.ss-mm--mobile .ss-mm__grid {
	display: block;
}
.ss-mm--mobile .ss-mm__col {
	margin-bottom: 18px;
}
.ss-mm--mobile .ss-mm__col:last-child {
	margin-bottom: 0;
}
.ss-mm--mobile .ss-mm__cat {
	display: block;
	margin: 0 0 6px;
	padding: 0;
}
.ss-mm--mobile .ss-mm__links {
	margin-inline: 0;
	max-height: none;
	overflow: visible;
}
.ss-mm--mobile .ss-mm__link {
	padding-block: 8px;
}

/* Highlight card hidden on mobile unless enabled in the widget. */
.ss-mm--no-hl-mobile.ss-mm--mobile .ss-mm__highlight {
	display: none;
}

/* Overlay bottom bar: language switcher. */
.ss-mm--overlay-open .ss-mm__langs,
.ss-mm--editor.ss-mm--mobile .ss-mm__langs {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 16px 20px;
	border-block-start: 1px solid var(--ss-mm-mobile-divider, rgba( 19, 17, 15, 0.1 ));
}
.ss-mm--no-langs-mobile.ss-mm--overlay-open .ss-mm__langs,
.ss-mm--no-langs-mobile.ss-mm--editor.ss-mm--mobile .ss-mm__langs {
	display: none;
}
.ss-mm__langs-pill {
	display: inline-flex;
	align-items: center;
	gap: var(--ss-mm-lang-gap, 2px);
	padding: var(--ss-mm-lang-wrap-pad, 4px);
	border-radius: var(--ss-mm-lang-wrap-radius, 999px);
	background: var(--ss-mm-lang-wrap-bg, #f4f0e7);
}
.ss-mm__lang {
	padding: var(--ss-mm-lang-pad-y, 6px) var(--ss-mm-lang-pad-x, 14px);
	border-radius: var(--ss-mm-lang-radius, 999px);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration: none;
	color: var(--ss-mm-lang-color, var(--ss-mm-top-color));
	transition: color 0.16s ease, background-color 0.16s ease;
}
.ss-mm__lang:hover {
	color: var(--ss-mm-lang-hover, var(--ss-mm-lang-active-bg, #005a52));
}
.ss-mm__lang.is-active,
.ss-mm__lang.is-active:hover {
	background: var(--ss-mm-lang-active-bg, #005a52);
	color: var(--ss-mm-lang-active-color, #ffffff);
}

/* Compact highlight card on mobile (eyebrow + heading only, as a block). */
.ss-mm--mobile .ss-mm__highlight {
	margin-block-start: 8px;
	border-radius: 12px;
	padding: 16px;
}
.ss-mm--mobile .ss-mm__hl-text,
.ss-mm--mobile .ss-mm__hl-btn {
	display: none;
}
.ss-mm--mobile .ss-mm__hl-heading {
	font-size: 18px;
	margin: 0;
}
.ss-mm--mobile .ss-mm__hl-eyebrow {
	margin-bottom: 6px;
}

/* Lock the page behind the open overlay. */
body.ss-mm-menu-open {
	overflow: hidden;
}

/* Reduced motion ------------------------------------------------------- */
@media ( prefers-reduced-motion: reduce ) {
	.ss-mm__panel,
	.ss-mm__toggle,
	.ss-mm__link,
	.ss-mm__top {
		transition: none !important;
	}
	.ss-mm--overlay-open .ss-mm__overlay {
		animation: none !important;
	}
}
