@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/tajawal-regular.woff2") format("woff2");
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/tajawal-medium.woff2") format("woff2");
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/tajawal-bold.woff2") format("woff2");
}

/* Language toggle */
.lang-toggle {
	position: fixed;
	top: 1em;
	right: 1em;
	z-index: 10010;
	background: rgba(20, 18, 20, 0.65);
	border-radius: 2em;
	padding: 0.35em;
	display: flex;
	gap: 0.25em;
}

	.lang-toggle a {
		display: inline-block;
		padding: 0.4em 0.9em;
		border-radius: 2em;
		font-size: 0.8em;
		font-weight: 600;
		letter-spacing: 0.05em;
		color: rgba(255, 255, 255, 0.75);
		border-bottom: none;
		transition: background-color 0.2s ease, color 0.2s ease;
	}

	.lang-toggle a:hover {
		color: #fff;
	}

	.lang-toggle a.active {
		background: #b23a2e;
		color: #fff;
	}

	body.navPanel-visible .lang-toggle {
		display: none;
	}

/* Mobile nav panel: overlay dropdown sized to content instead of a fixed 50vh push-down panel */
@media screen and (max-width: 736px) {

	#navPanel {
		height: auto !important;
		max-height: 80vh;
		-moz-transform: translateY(-100%) !important;
		-webkit-transform: translateY(-100%) !important;
		-ms-transform: translateY(-100%) !important;
		transform: translateY(-100%) !important;
	}

		#navPanel nav {
			padding: 1.5em 0;
		}

	body.navPanel-visible #page-wrapper,
	body.navPanel-visible #navButton {
		-moz-transform: translateY(0) !important;
		-webkit-transform: translateY(0) !important;
		-ms-transform: translateY(0) !important;
		transform: translateY(0) !important;
	}

	body.navPanel-visible #navPanel {
		-moz-transform: translateY(0) !important;
		-webkit-transform: translateY(0) !important;
		-ms-transform: translateY(0) !important;
		transform: translateY(0) !important;
	}

}

/* Footer text was hugging the section edges with no horizontal gutter */
#footer .container {
	padding-left: 1.5em;
	padding-right: 1.5em;
	box-sizing: border-box;
}

@media screen and (max-width: 736px) {
	#footer .container {
		padding-left: 1em;
		padding-right: 1em;
	}
}

/* RTL support */
html[dir="rtl"] body {
	font-family: 'Tajawal', 'Source Sans Pro', sans-serif;
}

html[dir="rtl"] #header h1,
html[dir="rtl"] #banner header,
html[dir="rtl"] #main header,
html[dir="rtl"] #features header,
html[dir="rtl"] #markets header,
html[dir="rtl"] .contact header {
	text-align: center;
}

html[dir="rtl"] #main,
html[dir="rtl"] .special {
	text-align: right;
}

html[dir="rtl"] .market-list {
	text-align: right;
}

/* Markets section */
#markets {
	text-align: center;
}

	.market-group {
		margin: 0 0 2em 0;
	}

	.market-group h3 {
		font-size: 1.1em;
		color: #ef8376;
		margin: 0 0 0.75em 0;
	}

	.market-list {
		list-style: none;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.6em;
		padding: 0;
		margin: 0;
	}

	.market-list li {
		background: rgba(128, 128, 128, 0.12);
		border-radius: 2em;
		padding: 0.5em 1.2em;
		font-size: 0.9em;
	}

/* Spec list in footer */
.spec-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

	.spec-list li {
		padding: 0.5em 0;
		border-bottom: solid 1px rgba(192, 192, 192, 0.35);
		display: flex;
		justify-content: space-between;
		gap: 1em;
	}

	.spec-list li:first-child {
		padding-top: 0;
	}

	.spec-list .spec-label {
		color: rgba(255, 255, 255, 0.6);
	}

/* #markets has no image before its heading (unlike #main/#banner), so the
   wrapper's zeroed top padding left the heading sitting flush against the
   previous section with almost no breathing room. */
#markets {
	padding-top: 3em;
}

@media screen and (max-width: 736px) {
	#markets {
		padding-top: 2em;
	}
}

/* Video embeds (About / Feature media slots) */
.video-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	margin: 0 0 4em 0;
	background: #000;
	overflow: hidden;
	border-radius: 4px;
}

	.video-embed iframe,
	.video-embed video {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		border: 0;
	}

	.video-embed.featured {
		margin: 0 0 2em 0;
	}

@media screen and (max-width: 736px) {
	.video-embed {
		margin: 0 0 2em 0;
	}
}

/* The free Helios template references a decorative noise texture that was
   never included in the download, causing a 404 for #navPanel's ::before. */
#navPanel:before {
	background: none;
}

/* Images now carry explicit width/height attributes (added to reserve space
   and prevent layout shift). Without an explicit height:auto, the browser
   treats both dimensions as fixed instead of proportionally scaling, which
   stretched every image tall. */
img[width][height] {
	height: auto;
}

/* The About section's product-card image is a tall portrait crop (2:3).
   At full container width it towered over the surrounding text, so cap it
   to a moderate size instead of stretching it edge-to-edge. */
#main .image.featured {
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}
