
/* Base */
:root {
	--brand-navy: #10243a;
	--brand-blue: #1769aa;
	--brand-blue-dark: #124b7b;
	--brand-blue-soft: #eaf4fc;
	--surface-soft: #f6f8fb;
	--text-primary: #172b45;
	--text-muted: #64748b;
	--border-subtle: #e2e8f0;
	--accent-warm: #e8b663;
	--ease-out: cubic-bezier(.2,.72,.24,1);
	--shadow-card: 0 12px 32px rgb(16 36 58 / 7%);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	direction: rtl;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	font-family: Tahoma, "Segoe UI", Arial, sans-serif;
	line-height: 1.7;
	color: var(--text-primary);
	background: #fff;
}

a {
	color: inherit;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

button,
input,
textarea,
select {
	font: inherit;
}

:focus-visible {
	outline: 3px solid #e7a92e;
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	z-index: 1000;
	top: .75rem;
	inset-inline-start: .75rem;
	padding: .65rem 1rem;
	transform: translateY(-160%);
	border-radius: .5rem;
	background: #fff;
	color: #124b7b;
	box-shadow: 0 2px 12px rgb(23 43 69 / 16%);
}

.skip-link:focus {
	transform: translateY(0);
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid rgb(226 232 240 / 70%);
	background: rgb(255 255 255 / 91%);
	backdrop-filter: blur(18px);
	transition: background-color .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.site-header.is-scrolled { border-color: transparent; background: rgb(255 255 255 / 97%); box-shadow: 0 10px 32px rgb(16 36 58 / 9%); }

.site-header__inner {
	display: flex;
	width: min(100% - 40px, 1200px);
	min-height: 82px;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	margin-inline: auto;
}

.site-header.is-scrolled .site-header__inner { min-height: 70px; }

.site-branding {
	flex: 0 0 auto;
	min-width: 0;
}

.site-title {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: #172b45;
	text-decoration: none;
}

.site-title__mark {
	display: grid;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	place-items: center;
	border-radius: 15px 15px 15px 5px;
	background: var(--brand-navy);
	color: #fff;
	font-size: 1.6rem;
	font-weight: 900;
	box-shadow: 0 6px 15px rgb(23 105 170 / 18%);
}

.site-title__text strong,
.site-title__text small {
	display: block;
}

.site-title__text strong {
	font-size: 1.05rem;
	font-weight: 900;
	line-height: 1.6;
}

.site-title__text small {
	margin-top: 2px;
	color: var(--text-muted);
	font-size: .7rem;
	line-height: 1.5;
}

.site-branding .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.site-branding .custom-logo {
	display: block;
	width: auto;
	max-width: 190px;
	max-height: 62px;
	object-fit: contain;
}

.primary-navigation {
	min-width: 0;
}

.primary-navigation__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation__list li {
	margin: 0;
	padding: 0;
}

.primary-navigation__list a {
	display: block;
	position: relative;
	padding: 10px 13px;
	color: #4c6077;
	font-size: .88rem;
	font-weight: 700;
	text-decoration: none;
	transition: color .2s ease;
}

.primary-navigation__list a::after { position: absolute; right: 13px; bottom: 5px; left: 13px; height: 1px; transform: scaleX(0); transform-origin: right; background: var(--brand-blue); content: ""; transition: transform .25s cubic-bezier(.2,.72,.24,1); }

.primary-navigation__list a:hover,
.primary-navigation__list .current-menu-item > a {
	color: var(--brand-blue-dark);
}

.primary-navigation__list a:hover::after,
.primary-navigation__list .current-menu-item > a::after { transform: scaleX(1); }

.primary-navigation__list a:focus-visible,
.site-header__cta:focus-visible,
.mobile-menu-toggle:focus-visible,
.site-footer a:focus-visible {
	outline: 3px solid #e6aa3b;
	outline-offset: 3px;
}

.mobile-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border-subtle);
	border-radius: 12px;
	background: #fff;
	color: var(--brand-navy);
	cursor: pointer;
}

.mobile-menu-toggle__lines,
.mobile-menu-toggle__lines::before,
.mobile-menu-toggle__lines::after {
	display: block;
	width: 19px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .2s ease, background-color .2s ease;
}

.mobile-menu-toggle__lines { position: relative; }
.mobile-menu-toggle__lines::before,
.mobile-menu-toggle__lines::after { position: absolute; content: ""; }
.mobile-menu-toggle__lines::before { transform: translateY(-6px); }
.mobile-menu-toggle__lines::after { transform: translateY(6px); }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__lines { background: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__lines::before { transform: rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__lines::after { transform: rotate(-45deg); }

.site-header__cta {
	display: inline-flex;
	min-height: 45px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 10px 16px;
	border: 1px solid var(--brand-navy);
	border-radius: 3px 3px 14px 3px;
	background: var(--brand-navy);
	color: #fff !important;
	font-size: .86rem;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 8px 18px rgb(23 105 170 / 16%);
	transition: color .22s ease, background .22s ease, transform .22s ease;
}

.site-header__cta:hover {
	transform: translateY(-1px);
	color: var(--brand-navy) !important;
	background: #fff;
}

.site-header__cta span { transition: transform .2s ease; }
.site-header__cta:hover span { transform: translateX(-4px); }

/* Footer */
.site-footer {
	position: relative;
	overflow: hidden;
	background: #0a1929;
	color: #d7e3ef;
}

.site-footer::before { position: absolute; top: -130px; inset-inline-end: -80px; width: 360px; height: 360px; border: 1px solid rgb(255 255 255 / 7%); border-radius: 50%; content: ""; pointer-events: none; }

.site-footer__main {
	position: relative;
	display: grid;
	width: min(100% - 48px, 1240px);
	grid-template-columns: 1.35fr .8fr .9fr 1fr;
	gap: 42px;
	margin-inline: auto;
	padding-block: 72px 58px;
}

.site-footer__brand,
.site-footer__column,
.site-footer__contact {
	min-width: 0;
}

.site-footer__title {
	display: inline-block;
	margin-bottom: 14px;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 900;
	text-decoration: none;
}

.site-footer__brand p,
.site-footer__contact p {
	margin: 0;
	color: #b9cadb;
	font-size: .87rem;
	line-height: 2.1;
}

.site-footer__column h2,
.site-footer__contact h2 {
	margin: 0 0 18px;
	color: #fff;
	font-size: .98rem;
	font-weight: 900;
}

.site-footer__column h2::after,
.site-footer__contact h2::after { display: block; width: 28px; height: 2px; margin-top: 12px; background: var(--accent-warm); content: ""; }

.site-footer__column ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__column a {
	color: #b9cadb;
	font-size: .86rem;
	text-decoration: none;
	transition: color .18s ease;
}

.site-footer__column a:hover,
.site-footer__bottom a:hover {
	color: #fff;
}

.site-footer__button {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 18px;
	padding: 11px 15px;
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: 9px;
	background: rgb(255 255 255 / 8%);
	color: #fff !important;
	font-size: .84rem;
	font-weight: 800;
	text-decoration: none;
}

.site-footer__button:hover {
	background: rgb(255 255 255 / 15%);
}

.site-footer__bottom {
	position: relative;
	display: flex;
	width: min(100% - 48px, 1240px);
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-inline: auto;
	padding-block: 20px;
	border-top: 1px solid rgb(255 255 255 / 13%);
}

.site-footer__bottom p {
	margin: 0;
	color: #aebfd0;
	font-size: .78rem;
	line-height: 1.9;
}

.site-footer__bottom a {
	color: #d7e3ef;
	font-size: .78rem;
	text-decoration: none;
}

/* Responsive header/footer */
@media (max-width: 1000px) {
	.site-header__inner {
		min-height: 72px;
		gap: 12px;
	}

	.mobile-menu-toggle { display: inline-flex; order: 1; }

	.primary-navigation {
		position: absolute;
		top: calc(100% + 1px);
		inset-inline: 0;
		width: 100%;
		padding: 0 max(20px, calc((100% - 960px) / 2));
		border-bottom: 1px solid var(--border-subtle);
		background: #fff;
		box-shadow: 0 18px 24px rgb(16 36 58 / 8%);
	}

	.primary-navigation__list {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		padding-block: 12px 18px;
	}

	.primary-navigation__list a { padding: 12px 14px; }
	.primary-navigation { display: block; transform: translateY(-8px); visibility: hidden; opacity: 0; pointer-events: none; transition: transform .24s var(--ease-out), opacity .2s ease, visibility .2s ease; }
	.primary-navigation.is-collapsed { display: block; }
	.primary-navigation.is-open { display: block; transform: none; visibility: visible; opacity: 1; pointer-events: auto; }
	.primary-navigation.is-open .primary-navigation__list a { animation: nav-link-in .28s var(--ease-out) both; }
	.primary-navigation.is-open .primary-navigation__list li:nth-child(2) a { animation-delay: 25ms; }
	.primary-navigation.is-open .primary-navigation__list li:nth-child(3) a { animation-delay: 50ms; }
	.primary-navigation.is-open .primary-navigation__list li:nth-child(4) a { animation-delay: 75ms; }
	@keyframes nav-link-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

	.site-header__cta {
		order: 2;
		margin-inline-start: auto;
	}

	.site-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 35px;
	}
}

@media (max-width: 560px) {
	.site-header__inner {
		width: calc(100% - 28px);
		gap: 10px;
	}

	.site-title__mark {
		width: 39px;
		height: 39px;
		flex-basis: 39px;
		border-radius: 11px;
		font-size: 1.35rem;
	}

	.site-title__text strong {
		font-size: .9rem;
	}

	.site-title__text small {
		font-size: .64rem;
	}

	.site-branding .custom-logo {
		max-width: 135px;
		max-height: 48px;
	}

	.site-header__cta {
		min-height: 39px;
		padding: 8px 10px;
		font-size: .76rem;
	}

	.primary-navigation { padding-inline: 14px; }
	.mobile-menu-toggle { width: 40px; height: 40px; flex-basis: 40px; }

	.site-footer__main {
		width: calc(100% - 32px);
		grid-template-columns: 1fr;
		gap: 28px;
		padding-block: 42px 35px;
	}

	.site-footer__bottom {
		width: calc(100% - 32px);
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
	}
}
