/*
 * Staggered Menu for Elementor
 * Every rule is scoped under .sme (root) so nothing leaks into the theme.
 * Colours are exposed as CSS custom properties, which the Elementor style
 * controls write onto the widget root.
 */

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

.sme {
	--sme-accent: #5227ff;
	--sme-toggle-color: #111111;
	--sme-toggle-color-open: #000000;
	--sme-toggle-current: var(--sme-toggle-color);
	--sme-panel-bg: #ffffff;
	--sme-panel-w: min(420px, 100%);
	--sme-item-color: #000000;
	--sme-sub-color: #333333;
	--sme-social-color: #111111;

	position: relative;
	width: 100%;
	height: 600px;
	z-index: 999;
	overflow: hidden;
	pointer-events: none;
}

.sme.is-open {
	--sme-toggle-current: var(--sme-toggle-color-open);
}

.sme--color-static.is-open {
	--sme-toggle-current: var(--sme-toggle-color);
}

/* Fixed overlay: covers the viewport, takes no space in the layout. */
.sme--fixed {
	position: fixed;
	inset: 0;
	width: auto;
	height: auto;
}

.admin-bar .sme--fixed {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .sme--fixed {
		top: 46px;
	}
}

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */

.sme .sme__header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 2em;
	background: transparent;
	pointer-events: none;
	z-index: 20;
}

.sme .sme__header > * {
	pointer-events: auto;
}

.sme .sme__logo {
	display: flex;
	align-items: center;
	user-select: none;
}

.sme .sme__logo-link {
	display: inline-flex;
	align-items: center;
	color: var(--sme-toggle-current);
	text-decoration: none;
	box-shadow: none;
	border: 0;
}

.sme .sme__logo-img {
	display: block;
	height: 32px;
	width: auto;
	max-width: none;
	object-fit: contain;
}

.sme .sme__logo-text {
	font-weight: 600;
	color: inherit;
	transition: color 0.3s ease-out 0.18s;
}

/* ------------------------------------------------------------------ */
/* Toggle button                                                      */
/* ------------------------------------------------------------------ */

.sme .sme__toggle,
.sme .sme__toggle:hover,
.sme .sme__toggle:focus,
.sme .sme__toggle:active {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-height: 44px; /* comfortable touch target */
	margin: 0;
	padding: 0 4px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--sme-toggle-current);
	cursor: pointer;
	font: inherit;
	font-weight: 500;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	overflow: visible;
	transition: color 0.3s ease-out 0.18s;
	-webkit-tap-highlight-color: transparent;
}

.sme .sme__toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
	border-radius: 4px;
}

.sme .sme__toggle-wrap {
	position: relative;
	display: inline-block;
	height: 1em;
	overflow: hidden;
	white-space: nowrap;
}

.sme .sme__toggle-inner {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.sme .sme__toggle-line {
	display: block;
	height: 1em;
	line-height: 1;
}

.sme .sme__icon {
	position: relative;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	will-change: transform;
	transition: transform 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.sme.is-open .sme__icon {
	transform: rotate(225deg);
	transition-duration: 0.8s;
	transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sme .sme__icon-line {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transform: translate(-50%, -50%);
}

.sme .sme__icon-line--v {
	transform: translate(-50%, -50%) rotate(90deg);
}

/* ------------------------------------------------------------------ */
/* Pre-layers + panel                                                 */
/* ------------------------------------------------------------------ */

.sme .sme__prelayers {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: var(--sme-panel-w);
	max-width: 100%;
	pointer-events: none;
	z-index: 5;
	visibility: hidden;
}

.sme[data-position="left"] .sme__prelayers {
	right: auto;
	left: 0;
}

.sme .sme__prelayer {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 100%;
	will-change: transform;
}

.sme .sme__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: var(--sme-panel-w);
	max-width: 100%;
	display: flex;
	flex-direction: column;
	padding: 6em 2em 2em 2em;
	background: var(--sme-panel-bg);
	overflow-y: auto;
	overscroll-behavior: contain;
	z-index: 10;
	pointer-events: auto;
	visibility: hidden; /* also removes closed-panel links from the tab order */
	will-change: transform;
}

.sme[data-position="left"] .sme__panel {
	right: auto;
	left: 0;
}

.sme.is-active .sme__panel,
.sme.is-active .sme__prelayers {
	visibility: visible;
}

.sme .sme__panel-inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* ------------------------------------------------------------------ */
/* Items                                                              */
/* ------------------------------------------------------------------ */

.sme .sme__nav {
	display: block;
}

.sme .sme__list,
.sme .sme__sublist,
.sme .sme__socials-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sme .sme__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.sme .sme__list > .sme__item-wrap {
	position: relative;
	margin: -0.12em 0; /* padding below cancels this out: layout stays the same … */
	padding: 0.12em 0; /* … but accented capitals (İ, Ş, Ç…) are no longer clipped */
	overflow: hidden;
	list-style: none;
	font-size: 3.5rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -2px;
	text-transform: uppercase;
}

.sme .sme__item,
.sme .sme__item:hover,
.sme .sme__item:focus {
	position: relative;
	display: inline-block;
	max-width: 100%;
	padding-right: 1.4em;
	color: var(--sme-item-color);
	font: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	text-decoration: none;
	overflow-wrap: anywhere;
	cursor: pointer;
	box-shadow: none;
	border: 0;
	transition: color 0.25s;
}

/* Extra room so long labels never run under the chevron button. */
.sme .sme__item-wrap.has-sub > .sme__item {
	padding-right: 2.2em;
}

.sme .sme__item:hover,
.sme .sme__item:focus-visible,
.sme .sme__item.is-current {
	color: var(--sme-item-hover, var(--sme-accent));
}

.sme .sme__item:focus-visible,
.sme .sme__subitem:focus-visible,
.sme .sme__socials-link:focus-visible {
	outline: 2px solid var(--sme-accent);
	outline-offset: 3px;
}

.sme .sme__label {
	display: inline-block;
	will-change: transform;
	transform-origin: 50% 100%;
}

.sme .sme__num {
	position: absolute;
	top: 0.1em;
	right: 2.8em;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	color: var(--sme-accent);
	pointer-events: none;
	user-select: none;
}

/* ------------------------------------------------------------------ */
/* Sub items: chevron toggle + collapsible list                       */
/* ------------------------------------------------------------------ */

.sme .sme__chevron,
.sme .sme__chevron:hover,
.sme .sme__chevron:focus {
	position: absolute;
	top: 0;
	right: 0;
	width: 1.8em;
	height: 1.8em;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	border-radius: 4px;
	color: var(--sme-chevron-color, var(--sme-item-color));
	cursor: pointer;
	line-height: 0;
	transition: transform 0.3s ease, color 0.25s;
	-webkit-tap-highlight-color: transparent;
}

/* A generous, WCAG-friendly hit area without inflating the visible icon. */
.sme .sme__chevron::before {
	content: '';
	position: absolute;
	inset: -0.35em;
}

.sme .sme__chevron svg {
	width: var(--sme-chevron-size, 16px);
	height: var(--sme-chevron-size, 16px);
	flex: none;
	pointer-events: none;
}

.sme .sme__chevron:hover,
.sme .sme__chevron:focus-visible {
	color: var(--sme-item-hover, var(--sme-accent));
}

.sme .sme__chevron:focus-visible {
	outline: 2px solid var(--sme-accent);
	outline-offset: 2px;
}

.sme .sme__item-wrap.is-expanded > .sme__chevron {
	transform: rotate(180deg);
}

.sme .sme__sublist-wrap {
	/* No-JS fallback: fully visible and reachable without a collapse mechanism. */
	display: block;
	max-width: var(--sme-sub-width, 100%);
}

.sme .sme__sublist-inner {
	overflow: hidden;
	min-height: 0;
	padding-left: var(--sme-sub-indent, 0px);
}

/* Only once JS (the one thing that can re-open it) has actually run do sub items
   default to collapsed — see the inline "sme-js" bootstrap script in render(). */
html.sme-js .sme .sme__sublist-wrap {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}

html.sme-js .sme .sme__item-wrap.is-expanded > .sme__sublist-wrap {
	grid-template-rows: 1fr;
}

/* Sub items (optional) */
.sme .sme__sublist {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin: 0.4rem 0 0.6rem;
	font-size: 1rem;
	letter-spacing: 0;
	text-transform: none;
}

.sme .sme__subitem-wrap {
	overflow: hidden;
	list-style: none;
	line-height: 1.25;
}

.sme .sme__subitem,
.sme .sme__subitem:hover,
.sme .sme__subitem:focus {
	display: inline-block;
	padding: 0.1em 0;
	color: var(--sme-sub-color);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
	box-shadow: none;
	border: 0;
	transition: color 0.25s;
}

.sme .sme__subitem:hover,
.sme .sme__subitem:focus-visible,
.sme .sme__subitem.is-current {
	color: var(--sme-item-hover, var(--sme-accent));
}

.sme .sme__empty {
	margin: 0;
	color: var(--sme-item-color);
	opacity: 0.6;
	font-size: 0.95rem;
}

/* ------------------------------------------------------------------ */
/* Socials                                                            */
/* ------------------------------------------------------------------ */

.sme .sme__socials {
	margin-top: auto;
	padding-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.sme .sme__socials-title {
	margin: 0;
	padding: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--sme-social-title, var(--sme-accent));
}

.sme .sme__socials-list {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.sme .sme__socials-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sme .sme__socials-link,
.sme .sme__socials-link:hover,
.sme .sme__socials-link:focus {
	position: relative;
	display: inline-block;
	padding: 2px 0;
	color: var(--sme-social-color);
	font-size: 1.2rem;
	font-weight: 500;
	text-decoration: none;
	box-shadow: none;
	border: 0;
	transition: color 0.3s ease, opacity 0.3s ease;
}

.sme .sme__socials-link:hover,
.sme .sme__socials-link:focus-visible {
	color: var(--sme-social-hover, var(--sme-accent));
	opacity: 1;
}

/* Dim the siblings of the hovered / focused link (as in the original). */
@media (hover: hover) and (pointer: fine) {
	.sme .sme__socials-list:hover .sme__socials-link:not(:hover) {
		opacity: 0.35;
	}
}

.sme .sme__socials-list:focus-within .sme__socials-link:not(:focus-visible) {
	opacity: 0.35;
}

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

@media (max-width: 1024px) {
	.sme {
		--sme-panel-w: 100%;
	}

	.sme .sme__list > .sme__item-wrap {
		font-size: 3rem;
	}

	.sme--invert-logo.is-open .sme__logo-img {
		filter: invert(100%);
	}
}

@media (max-width: 767px) {
	.sme .sme__list > .sme__item-wrap {
		font-size: 2.25rem;
	}
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                     */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.sme,
	.sme * {
		transition-duration: 0.001ms !important;
		transition-delay: 0s !important;
	}
}

/* "Enable Animations" switched off in the widget: same instant behaviour,
   opted into deliberately rather than only via the visitor's OS setting. */
.sme--no-anim,
.sme--no-anim * {
	transition-duration: 0.001ms !important;
	transition-delay: 0s !important;
	animation-duration: 0.001ms !important;
}

/* ------------------------------------------------------------------ */
/* Elementor editor helpers                                           */
/* ------------------------------------------------------------------ */

.sme-editor-hint {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 8px 12px;
	border: 1px dashed rgba(127, 127, 127, 0.6);
	border-radius: 6px;
	color: #6d7882;
	font-size: 12px;
	text-align: center;
}
