/* ==========================================================================
   Wsali — Header & Footer (Brand Identity)
   أخضر #0a2521 · ذهبي #c5a059
   ========================================================================== */

/* --- Header --- */
.wsali-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #ffffff;
	border-bottom: 1px solid rgba(10, 37, 33, 0.08);
	box-shadow: 0 2px 16px rgba(10, 37, 33, 0.07);
}

.wsali-header.is-scrolled {
	box-shadow: 0 4px 24px rgba(10, 37, 33, 0.12);
}

.wsali-header .wsali-container {
	max-width: 1280px;
}

/* صف واحد: لوجو | قائمة | CTA */
.wsali-header__inner {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 1.5rem;
	min-height: 88px;
	padding-block: 0.75rem;
	direction: rtl;
}

/* اللوجو — يمين */
.wsali-header__brand {
	flex: 0 0 auto;
	order: 1;
	max-width: 300px;
}

.wsali-header__logo {
	display: block;
	line-height: 0;
}

.wsali-header__logo img {
	display: block !important;
	width: auto !important;
	height: 72px !important;
	max-width: 280px !important;
	max-height: 72px !important;
	object-fit: contain !important;
	object-position: right center;
}

/* القائمة — وسط */
.wsali-nav {
	flex: 1 1 auto;
	order: 2;
	display: flex !important;
	justify-content: center;
	align-items: center;
	min-width: 0;
}

.wsali-nav__list,
.wsali-nav ul {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wsali-nav__list li,
.wsali-nav ul li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.wsali-nav__list a,
.wsali-nav ul a {
	display: block;
	padding: 0.5rem 0.875rem;
	font-family: 'Tajawal', 'Cairo', sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #0a2521 !important;
	text-decoration: none !important;
	white-space: nowrap;
	border-radius: 6px;
	transition: color 0.3s ease;
}

.wsali-nav__list a:hover,
.wsali-nav__list a:focus,
.wsali-nav ul a:hover {
	color: #c5a059 !important;
}

.wsali-nav__list .current-menu-item > a,
.wsali-nav ul .current-menu-item > a {
	color: #c5a059 !important;
}

/* CTA + لغة — يسار */
.wsali-header__actions {
	flex: 0 0 auto;
	order: 3;
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 0.75rem;
}

.wsali-header__cta {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1.5rem;
	font-family: 'Tajawal', 'Cairo', sans-serif;
	font-size: 0.9375rem;
	font-weight: 800;
	color: #0a2521 !important;
	background: linear-gradient(135deg, #d4b06a 0%, #c5a059 50%, #a8863f 100%) !important;
	border: none;
	border-radius: 8px;
	text-decoration: none !important;
	line-height: 1.4;
	box-shadow: 0 2px 10px rgba(197, 160, 89, 0.4);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	white-space: nowrap;
}

.wsali-header__cta:hover {
	color: #0a2521 !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(197, 160, 89, 0.5);
}

/* مبدّل اللغة */
.wsali-lang-switcher__list {
	display: flex;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wsali-lang-switcher__item a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	font-size: 0.6875rem;
	font-weight: 700;
	color: #0a2521 !important;
	border: 1px solid rgba(10, 37, 33, 0.2);
	border-radius: 6px;
	text-decoration: none !important;
	transition: all 0.3s ease;
}

.wsali-lang-switcher__item.is-active a,
.wsali-lang-switcher__item a:hover {
	color: #c5a059 !important;
	border-color: #c5a059;
	background: rgba(197, 160, 89, 0.1);
}

/* Hamburger */
.wsali-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(10, 37, 33, 0.15);
	border-radius: 8px;
	cursor: pointer;
}

.wsali-header__toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	background: #0a2521;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.wsali-header__toggle.is-active .wsali-header__toggle-bar {
	background: #c5a059;
}

.wsali-header__toggle.is-active .wsali-header__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.wsali-header__toggle.is-active .wsali-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

.wsali-header__toggle.is-active .wsali-header__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* --- Footer --- */
.wsali-footer {
	background: #0a2521 !important;
	color: rgba(255, 255, 255, 0.75);
	direction: rtl;
}

.wsali-footer__logo-bar {
	padding: 2.5rem 0 2rem;
	background: #0a2521 !important;
	border-bottom: 1px solid rgba(197, 160, 89, 0.2);
	text-align: center;
}

.wsali-footer__logo-link {
	display: inline-block;
}

.wsali-footer__logo-img {
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: 480px !important;
	max-height: 120px !important;
	margin-inline: auto;
	object-fit: contain !important;
}

.wsali-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 2.5rem;
	padding: 3rem 0;
}

.wsali-footer__title {
	font-family: 'Tajawal', 'Cairo', sans-serif;
	color: #c5a059 !important;
	font-size: 1.0625rem;
	font-weight: 800;
	margin: 0 0 1.25rem;
	padding-bottom: 0.625rem;
	border-bottom: 2px solid rgba(197, 160, 89, 0.3);
}

.wsali-footer__desc {
	font-size: 0.9375rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.65);
	margin: 0 0 1.25rem;
}

.wsali-footer__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.wsali-footer__badge {
	padding: 0.375rem 0.875rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: #0a2521;
	background: linear-gradient(135deg, #d4b06a, #c5a059, #a8863f);
	border-radius: 6px;
}

.wsali-footer__links,
.wsali-footer__contact {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wsali-footer__links li,
.wsali-footer__contact li {
	margin-bottom: 0.625rem;
	list-style: none !important;
}

.wsali-footer__links a {
	font-size: 0.9375rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.7) !important;
	text-decoration: none !important;
	transition: color 0.3s ease;
}

.wsali-footer__links a:hover {
	color: #c5a059 !important;
}

.wsali-footer__contact-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	color: #c5a059;
	margin-bottom: 0.25rem;
}

.wsali-footer__contact a {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.85) !important;
	text-decoration: none !important;
}

.wsali-footer__contact a:hover {
	color: #c5a059 !important;
}

.wsali-footer__cta {
	display: inline-flex;
	margin-top: 1rem;
	padding: 0.625rem 1.5rem;
	font-family: 'Tajawal', 'Cairo', sans-serif;
	font-size: 0.875rem;
	font-weight: 800;
	color: #0a2521 !important;
	background: linear-gradient(135deg, #d4b06a, #c5a059, #a8863f) !important;
	border-radius: 8px;
	text-decoration: none !important;
	box-shadow: 0 2px 10px rgba(197, 160, 89, 0.3);
	transition: transform 0.3s ease;
}

.wsali-footer__cta:hover {
	color: #0a2521 !important;
	transform: translateY(-1px);
}

.wsali-footer__bottom {
	border-top: 1px solid rgba(197, 160, 89, 0.2);
	padding: 1.5rem 0 2rem;
	text-align: center;
	background: #0a2521 !important;
}

.wsali-footer__copy {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.45);
	margin: 0;
}

.wsali-footer__copy a {
	color: #c5a059 !important;
	text-decoration: none !important;
	font-weight: 600;
}

.wsali-footer__copy a:hover {
	color: #d4b06a !important;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
	.wsali-nav__list a,
	.wsali-nav ul a {
		padding: 0.5rem 0.625rem;
		font-size: 0.875rem;
	}
}

@media (max-width: 991px) {
	.wsali-header__toggle {
		display: flex;
	}

	.wsali-nav {
		position: fixed;
		inset: 88px 0 0 0;
		flex: none;
		justify-content: flex-start;
		background: #ffffff;
		padding: 1.5rem;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		overflow-y: auto;
		box-shadow: 4px 0 24px rgba(10, 37, 33, 0.12);
		z-index: 999;
	}

	.wsali-nav.is-open {
		transform: translateX(0);
	}

	.wsali-nav__list,
	.wsali-nav ul {
		flex-direction: column !important;
		align-items: stretch !important;
		width: 100%;
	}

	.wsali-nav__list a,
	.wsali-nav ul a {
		padding: 1rem;
		font-size: 1rem;
		border-bottom: 1px solid rgba(10, 37, 33, 0.06);
	}

	.wsali-header__logo img {
		height: 56px !important;
		max-width: 220px !important;
	}

	.wsali-header__cta {
		padding: 0.5rem 1rem;
		font-size: 0.8125rem;
	}

	.wsali-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}

	.wsali-footer__logo-img {
		max-width: 340px !important;
	}
}

@media (max-width: 575px) {
	.wsali-header__inner {
		gap: 0.75rem;
		min-height: 72px;
	}

	.wsali-header__logo img {
		height: 48px !important;
		max-width: 180px !important;
	}

	.wsali-footer__grid {
		grid-template-columns: 1fr;
	}

	.wsali-footer__logo-img {
		max-width: 280px !important;
	}
}
