/* ORDELIVA multilingual and Arabic RTL layer */

.ord-language-switcher {
	position: fixed;
	top: 88px;
	right: clamp(14px, 2.4vw, 34px);
	z-index: 96;
	width: max-content;
	color: var(--ord-cloud, #f0f2f8);
	font-family: "Inter", system-ui, sans-serif;
}

.ord-language-switcher > summary {
	min-width: 136px;
	min-height: 44px;
	padding: 0 13px;
	display: flex;
	align-items: center;
	gap: 9px;
	border: 1px solid rgba(240, 242, 248, 0.2);
	background: rgba(9, 11, 17, 0.9);
	box-shadow: 0 12px 34px rgba(6, 10, 28, 0.24);
	backdrop-filter: blur(18px);
	cursor: pointer;
	list-style: none;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ord-language-switcher > summary::-webkit-details-marker {
	display: none;
}

.ord-language-switcher > summary svg {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	fill: none;
	stroke: var(--ord-cobalt, #2457ff);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.45;
}

.ord-language-switcher > summary strong {
	margin-inline-start: auto;
	color: var(--ord-cobalt, #2457ff);
	font-size: 10px;
	letter-spacing: 0.08em;
}

.ord-language-switcher > summary:focus-visible,
.ord-language-switcher__menu a:focus-visible {
	outline: 2px solid var(--ord-cobalt, #2457ff);
	outline-offset: 3px;
}

.ord-language-switcher__menu {
	position: absolute;
	inset-block-start: calc(100% + 8px);
	inset-inline-end: 0;
	width: 210px;
	padding: 7px;
	background: rgba(17, 20, 29, 0.985);
	border: 1px solid rgba(240, 242, 248, 0.17);
	box-shadow: inset 0 3px 0 var(--ord-cobalt, #2457ff), 0 24px 56px rgba(6, 10, 28, 0.4);
}

.ord-language-switcher:not([open]) .ord-language-switcher__menu {
	display: none;
}

.ord-language-switcher__menu a {
	min-height: 43px;
	padding: 0 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	border-bottom: 1px solid rgba(240, 242, 248, 0.08);
	color: rgba(240, 242, 248, 0.76);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.ord-language-switcher__menu a:last-child {
	border-bottom: 0;
}

.ord-language-switcher__menu a:hover,
.ord-language-switcher__menu a[aria-current="true"] {
	background: rgba(36, 87, 255, 0.12);
	color: var(--ord-cloud, #f0f2f8);
}

.ord-language-switcher__menu small {
	color: var(--ord-cobalt, #2457ff);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.1em;
}

html[lang="ar"] body,
html[lang="ja"] body {
	font-family: system-ui, sans-serif;
}

html[lang="ar"] body {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .ord-language-switcher {
	right: auto;
	left: clamp(14px, 2.4vw, 34px);
}

html[dir="rtl"] .ordeliva-default-lockup,
html[dir="rtl"] .ord-el-header__logo,
html[dir="rtl"] .ordeliva-footer-lockup,
html[dir="rtl"] .image-watermark,
html[dir="rtl"] .image-watermark-ghost {
	direction: ltr;
}

html[dir="rtl"] .ordeliva-nav-list .sub-menu,
html[dir="rtl"] .ord-nav-submenu {
	right: auto;
	left: 0;
	text-align: right;
}

html[dir="rtl"] .ordeliva-nav-list .ord-menu-craft > .sub-menu,
html[dir="rtl"] .ord-nav-submenu--craft {
	right: auto;
	left: 50%;
}

html[dir="rtl"] .ord-nav-submenu-intro {
	padding-right: 4px;
	padding-left: 32px;
	border-right: 0;
	border-left: 1px solid rgba(240, 242, 248, 0.14);
}

html[dir="rtl"] .ordeliva-footer-email-status,
html[dir="rtl"] .inquiry-contact-options .inquiry-email-status {
	align-items: flex-end;
	direction: ltr;
	text-align: right;
}

html[dir="rtl"] .prompt-close {
	right: auto;
	left: 8px;
}

html[dir="rtl"] .project-fab,
html[dir="rtl"] .project-prompt {
	right: auto;
	left: 22px;
}

html[dir="rtl"] .inquiry-panel input,
html[dir="rtl"] .inquiry-panel select,
html[dir="rtl"] .inquiry-panel textarea {
	text-align: right;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="tel"] {
	direction: ltr;
	text-align: left;
}

html[dir="rtl"] .ordeliva-header-cta,
html[dir="rtl"] .ord-el-header__cta {
	justify-self: start;
}

@media (max-width: 900px) {
	.ord-language-switcher {
		top: 82px;
	}

	html[lang]:not([lang="en"]) :is(h1, h2, h3, .ord-exact-button) {
		overflow-wrap: anywhere;
		hyphens: auto;
	}

	.home-section-heading,
	.home-capabilities > header,
	.home-design-prompt {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-section-heading > *,
	.home-capabilities > header > *,
	.home-design-prompt > * {
		min-width: 0;
		max-width: 100%;
	}

	.home-design-prompt a {
		width: fit-content;
	}

	.ord-language-switcher > summary {
		min-width: 48px;
		width: 48px;
		padding: 0;
		justify-content: center;
	}

	.ord-language-switcher > summary span,
	.ord-language-switcher > summary svg {
		display: none;
	}

	.ord-language-switcher > summary strong {
		margin: 0;
		font-size: 11px;
	}

	html[dir="rtl"] .project-fab,
	html[dir="rtl"] .project-prompt {
		right: auto;
		left: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ord-language-switcher *,
	.ord-language-switcher *::before,
	.ord-language-switcher *::after {
		animation: none !important;
		transition: none !important;
	}
}
