/* =========================================================
   Hero — مركز واحة الحجاز الطبي (Kadence Child)
   مبني على بلوكات Kadence: Row Layout / Column / Advanced Heading / Advanced Button
   الألوان الأساسية تأتي من لوحة Kadence (Customizer → Colors):
   palette1 = #1F8A6D (أخضر أساسي)   palette2 = #1E4B47 (أخضر داكن)
   palette7 = #EAF3F0 (نعناعي)       palette4 = #5E6F6D (نص ثانوي)
   ========================================================= */

:root {
	--wh-primary: var(--global-palette1, #1F8A6D);
	--wh-dark: var(--global-palette2, #1E4B47);
	--wh-mint: var(--global-palette7, #EAF3F0);
	--wh-muted: var(--global-palette4, #5E6F6D);
	--wh-font-script: "Aref Ruqaa", serif;
}

/* خط اليد للعبارة فوق الصورة — ضع الملف في assets/fonts/ */
@font-face {
	font-family: "Aref Ruqaa";
	src: url("../fonts/ArefRuqaa-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ---------- الحاوية (Row Layout) ---------- */
.kb-row-layout-wrap.wh-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(60% 80% at 100% 50%, var(--wh-mint) 0%, transparent 70%),
		linear-gradient(to left, var(--wh-mint) 0%, #f4f8f6 50%, #ffffff 100%) !important;
}

.wh-hero > .kt-row-column-wrap {
	min-height: 600px;
	max-width: none;
	padding: 0;
}

/* ---------- عمود النص (يمين) ---------- */
.wh-hero .wh-hero__content > .kt-inside-inner-col {
	padding-block: clamp(3rem, 7vw, 5.5rem);
	padding-inline-start: clamp(1.5rem, 6vw, 5rem);
	padding-inline-end: clamp(1.25rem, 4vw, 3rem);
}

.wh-hero .wh-hero__eyebrow { margin: 0 0 0.75rem; }
.wh-hero .wh-hero__title   { margin: 0 0 1.25rem; }
.wh-hero .wh-hero__text    { margin: 0 0 1.75rem; }
.wh-hero .wh-hero__actions { margin: 0; }
.wh-hero .wh-hero__note    { margin: 0.9rem 0 0; }

/* زر واتساب: الشكل يأتي من إعدادات البلوك، هنا فقط تحسينات صغيرة */
.wh-hero .wh-btn--whatsapp .kb-button {
	line-height: 1;
	transition: background-color 0.2s ease;
}

.wh-hero .wh-btn--whatsapp .kb-button:focus-visible {
	outline: 3px solid var(--wh-primary);
	outline-offset: 3px;
}

/* ---------- عمود الصورة (يسار) ---------- */
.wh-hero .wh-hero__media {
	position: relative;
	align-self: stretch;
	min-height: 320px;
}

.wh-hero .wh-hero__media > .kt-inside-inner-col {
	position: static;
	height: 100%;
	padding: 0;
}

.wh-hero .wh-hero__image {
	position: absolute;
	inset: 0;
	margin: 0;
}

.wh-hero .wh-hero__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* تدرّج ناعم عند التقاء الصورة بالخلفية */
.wh-hero .wh-hero__media::after {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 22%;
	background: linear-gradient(to left, #f4f8f6, transparent);
	pointer-events: none;
}

/* العبارة المكتوبة بخط اليد فوق الصورة */
.wh-hero .wh-hero__quote {
	position: absolute;
	top: 16%;
	inset-inline-start: 6%;
	z-index: 2;
	margin: 0;
	font-family: var(--wh-font-script);
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	line-height: 1.5;
	transform: rotate(-7deg);
}

.wh-hero .wh-hero__quote::after {
	content: "";
	display: block;
	width: 1.4rem;
	height: 1.4rem;
	margin: 0.4rem auto 0;
	background-color: currentColor;
	-webkit-mask: url("../img/icons/heart.svg") center / contain no-repeat;
	mask: url("../img/icons/heart.svg") center / contain no-repeat;
	opacity: 0.85;
}

/* ---------- الموبايل والتابلت ---------- */
@media (max-width: 767px) {
	.wh-hero > .kt-row-column-wrap { min-height: 0; }

	.wh-hero .wh-hero__content > .kt-inside-inner-col {
		padding-block: 2.5rem 2rem;
		text-align: center;
	}

	.wh-hero .wh-hero__text { margin-inline: auto; }

	.wh-hero .wh-hero__actions .kb-btn-wrap,
	.wh-hero .wh-hero__actions { justify-content: center; }

	.wh-hero .wh-hero__media {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.wh-hero .wh-hero__media::after { display: none; }

	.wh-hero .wh-hero__quote {
		top: 8%;
		inset-inline-start: 5%;
		font-size: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wh-hero .wh-btn--whatsapp .kb-button { transition: none; }
}
