:root {
	--ink: #102a2e;
	--sea: #0f5c63;
	--sea-deep: #0a3d42;
	--sand: #e8d5b5;
	--sand-soft: #f3ebe0;
	--foam: #f7f4ef;
	--accent: #c45c26;
	--line: rgba(16, 42, 46, 0.12);
	--shadow: 0 18px 50px rgba(16, 42, 46, 0.12);
	--radius: 18px;
	--font-display: "DM Serif Display", Georgia, serif;
	--font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background:
		radial-gradient(1200px 500px at 10% -10%, rgba(15, 92, 99, 0.18), transparent 60%),
		radial-gradient(900px 400px at 100% 0%, rgba(196, 92, 38, 0.12), transparent 55%),
		linear-gradient(180deg, #fbf8f3 0%, var(--foam) 40%, #eef5f4 100%);
	min-height: 100vh;
}
body.is-rtl {
	font-family: "Cairo", var(--font-body);
}
body.is-rtl .brand,
body.is-rtl .hero-copy h1,
body.is-rtl .section h2,
body.is-rtl .form-shell h1 {
	font-family: "Cairo", var(--font-display);
	font-weight: 700;
}
.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-inline-start: 0.35rem;
	padding: 0.35rem 0.55rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: rgba(255,255,255,0.55);
	font-size: 0.82rem;
	font-weight: 700;
}
.lang-switch a { opacity: 0.65; }
.lang-switch a.is-active { opacity: 1; color: var(--sea-deep); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
	position: sticky; top: 0; z-index: 20;
	backdrop-filter: blur(14px);
	background: rgba(251, 248, 243, 0.82);
	border-bottom: 1px solid var(--line);
}
.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1rem 0; gap: 1rem;
}
.brand {
	font-family: var(--font-display);
	font-size: 1.55rem; letter-spacing: 0.01em;
}
.brand span { color: var(--sea); }
.nav { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.nav a { font-weight: 600; font-size: 0.92rem; opacity: 0.78; }
.nav a.is-active, .nav a:hover { opacity: 1; color: var(--sea-deep); }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0.75rem 1.2rem; border-radius: 999px; border: 1px solid transparent;
	font-weight: 700; font-size: 0.92rem; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-deep); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,0.55); }
.btn-accent { background: var(--accent); color: #fff; }

.hero {
	min-height: calc(100vh - 76px);
	display: grid;
	align-items: center;
	padding: 3.5rem 0 4.5rem;
	position: relative;
	overflow: hidden;
	color: #f7f4ef;
	background: #0a2a2e center / cover no-repeat;
	background-image: url("../video/hero-poster.jpg");
}
.hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	background: transparent;
	opacity: 1;
	/* Keep video painted on iOS Safari (avoid gray empty frame) */
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}
.hero-video.is-playing {
	/* Once playing, drop reliance on static poster underneath */
	background: #000;
}
.hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(105deg, rgba(5, 14, 18, 0.55) 0%, rgba(8, 28, 32, 0.42) 45%, rgba(5, 14, 18, 0.35) 100%);
	pointer-events: none;
}
@media (max-width: 860px) {
	.hero-overlay {
		background:
			linear-gradient(180deg, rgba(5, 14, 18, 0.45) 0%, rgba(8, 28, 32, 0.35) 55%, rgba(5, 14, 18, 0.5) 100%);
	}
}
.hero-copy {
	position: relative;
	z-index: 2;
	max-width: 640px;
}
.hero-brand {
	font-size: 2rem;
	margin-bottom: 0.6rem;
	color: #fff;
}
.hero-brand span { color: #9fd4d4; }
.hero-copy h1 {
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 6vw, 4.4rem);
	line-height: 1.05;
	margin: 0 0 1rem;
	color: #fff;
	text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-copy p {
	font-size: 1.12rem;
	line-height: 1.6;
	max-width: 36rem;
	margin: 0 0 1.6rem;
	color: rgba(247, 244, 239, 0.92);
	text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn-on-dark {
	border-color: rgba(255,255,255,0.35);
	background: rgba(255,255,255,0.12);
	color: #fff;
	backdrop-filter: blur(6px);
}
.btn-on-dark:hover {
	background: rgba(255,255,255,0.22);
	color: #fff;
}

.section { padding: 3.5rem 0; }
.section h2 {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	margin: 0 0 0.6rem;
}
.section-lead { margin: 0 0 1.8rem; opacity: 0.8; max-width: 40rem; }

.grid-3 {
	display: grid; gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 860px) {
	.grid-3 { grid-template-columns: 1fr; }
	.hero { min-height: 85vh; }
}

.panel {
	background: rgba(255,255,255,0.72);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.25rem 1.35rem;
	box-shadow: 0 10px 30px rgba(16,42,46,0.05);
	transition: transform .25s ease, box-shadow .25s ease;
}
.panel:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.panel p { margin: 0; opacity: 0.78; line-height: 1.5; }
.meta { margin-top: 0.85rem; font-size: 0.85rem; color: var(--sea-deep); font-weight: 700; }

.form-shell {
	width: min(560px, 100%);
	margin: 2.5rem auto 4rem;
}
.form-shell h1 {
	font-family: var(--font-display);
	font-size: 2.3rem; margin: 0 0 0.4rem;
}
.form {
	display: grid; gap: 0.9rem;
	background: rgba(255,255,255,0.8);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.4rem;
	margin-top: 1.2rem;
}
label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
input, select, textarea {
	width: 100%; border: 1px solid var(--line); border-radius: 12px;
	padding: 0.8rem 0.9rem; font: inherit; background: #fff;
}
.alert {
	padding: 0.85rem 1rem; border-radius: 12px; font-weight: 600;
	background: #ffe8df; color: #7a2e12; border: 1px solid rgba(196,92,38,0.25);
}
.alert.ok { background: #e5f4f1; color: #0a3d42; border-color: rgba(15,92,99,0.2); }
.muted { opacity: 0.75; }

.site-footer {
	border-top: 1px solid var(--line);
	padding: 2rem 0 2.5rem;
	margin-top: 2rem;
	background: rgba(255,255,255,0.4);
}
.footer-inner {
	display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.footer-links { display: grid; gap: 0.45rem; font-weight: 600; }
