/* يدير — صفحة خدمة الاستلام والتسليم */
:root {
	--teal: #00a394;          /* لون الهوية الأساسي */
	--teal-strong: #008577;   /* للأزرار والنصوص (تباين AA مع الأبيض) */
	--teal-deep: #005f56;
	--teal-soft: #e6f6f4;
	--ink: #303032;           /* لون الهوية الداكن */
	--ink-2: #5b5b60;
	--paper: #fafafa;
	--white: #fff;
	--line: #e4e7e7;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(48, 48, 50, .06), 0 8px 28px rgba(48, 48, 50, .08);
	--font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body.ydh {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.8;
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
}
.ydh img { max-width: 100%; height: auto; display: block; }
.ydh h1, .ydh h2, .ydh h3 { margin: 0; line-height: 1.35; font-weight: 800; color: var(--ink); }
.ydh p { margin: 0; }
.ydh a { color: inherit; }
.ydh .ic { width: 22px; height: 22px; flex: none; }
.ydh .ic--sm { width: 18px; height: 18px; }

.ydh-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.ydh-wrap--narrow { max-width: 820px; }

/* أزرار */
.ydh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 12px 26px;
	background: var(--teal-strong); color: #fff !important;
	border: 2px solid var(--teal-strong); border-radius: 12px;
	font: 700 17px/1.2 var(--font); text-decoration: none; cursor: pointer;
	transition: background .2s, border-color .2s, transform .2s;
}
.ydh-btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.ydh-btn:active { transform: translateY(1px); }
.ydh-btn:focus-visible, .ydh a:focus-visible, .ydh summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.ydh-btn--ghost { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.ydh-btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.ydh-btn--sm { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.ydh-btn--block { width: 100%; }

/* الشريط العلوي */
.ydh-top {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 250, 250, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .ydh-top { top: 32px; }
.ydh-top__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.ydh-top__logo img { width: 190px; }
.ydh-top__nav { display: flex; gap: 26px; margin-inline-start: auto; }
.ydh-top__nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.ydh-top__nav a:hover { color: var(--teal-strong); }

/* الهيرو */
.ydh-hero {
	position: relative; overflow: hidden;
	padding: 72px 0 88px;
	background:
		linear-gradient(180deg, rgba(250,250,250,.9) 0%, rgba(250,250,250,.98) 60%, var(--paper) 100%),
		url("pattern.svg") center top / 132px auto repeat;
}
.ydh-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.ydh-chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px; border-radius: 999px;
	background: var(--teal-soft); color: var(--teal-deep);
	font-weight: 700; font-size: 14px;
}
.ydh-hero h1 { margin-top: 18px; font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -.01em; text-wrap: balance; }
.ydh-head h2, .ydh-offer h2 { text-wrap: balance; }
.ydh-hero h1 span { color: var(--teal-strong); }
.ydh-lead { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 60ch; }
.ydh-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ydh-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.ydh-trust li { display: flex; align-items: center; gap: 8px; }
.ydh-trust .ic { color: var(--teal); }

.ydh-pricecard {
	position: relative;
	background: var(--white); border: 1px solid var(--line); border-radius: 20px;
	padding: 28px; box-shadow: var(--shadow);
}
.ydh-pricecard::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
	background: var(--teal); border-radius: 20px 20px 0 0;
}
.ydh-pricecard__head { display: flex; align-items: center; gap: 14px; }
.ydh-pricecard__head img { width: 56px; height: 56px; border-radius: 12px; }
.ydh-pricecard__head strong { display: block; font-size: 19px; }
.ydh-pricecard__head small { color: var(--ink-2); font-size: 14px; }
.ydh-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px; }
.ydh-price b { font-size: 64px; line-height: 1; font-weight: 800; color: var(--ink); font-feature-settings: "tnum"; }
.ydh-price span { font-size: 22px; font-weight: 700; color: var(--teal-strong); }
.ydh-checks { list-style: none; margin: 0 0 22px; padding: 16px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.ydh-checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ydh-checks .ic { color: var(--teal); }

/* الأقسام */
.ydh-sec { padding: 88px 0; }
.ydh-sec--tint { background: var(--white); border-block: 1px solid var(--line); }
.ydh-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.ydh-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.ydh-head p { margin-top: 12px; color: var(--ink-2); font-size: 18px; }

.ydh-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ydh-why__item { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.ydh-why__item b { display: block; font-size: 15px; color: var(--teal-strong); font-weight: 800; letter-spacing: .08em; margin-bottom: 10px; }
.ydh-why__item h3 { font-size: 21px; margin-bottom: 8px; }
.ydh-why__item p { color: var(--ink-2); }

.ydh-inc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
.ydh-inc__item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ydh-inc__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-strong); flex: none; }
.ydh-inc__item h3 { font-size: 18px; }
.ydh-inc__item p { color: var(--ink-2); font-size: 16px; margin-top: 2px; }

.ydh-aud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ydh-aud__card { padding: 26px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.ydh-aud__card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.ydh-aud__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--teal); margin-bottom: 16px; }
.ydh-aud__ic .ic { width: 26px; height: 26px; }
.ydh-aud__card h3 { font-size: 19px; margin-bottom: 6px; }
.ydh-aud__card p { color: var(--ink-2); font-size: 16px; }

.ydh-sec--dark {
	background:
		linear-gradient(rgba(48,48,50,.96), rgba(48,48,50,.96)),
		url("pattern.svg") center / 132px auto repeat;
	color: var(--paper);
}
.ydh-sec--dark h2, .ydh-sec--dark h3 { color: var(--paper); }
.ydh-sec--dark .ydh-head p { color: #c9c9cc; }
.ydh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.ydh-steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.ydh-steps__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.ydh-steps h3 { font-size: 19px; margin-bottom: 6px; }
.ydh-steps p { color: #c9c9cc; font-size: 16px; }

.ydh-offer {
	display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 40px; align-items: center;
	padding: 48px; border-radius: 24px;
	background: var(--teal-soft); border: 1px solid #c4e9e4;
}
.ydh-offer h2 { font-size: clamp(26px, 3vw, 36px); }
.ydh-offer p { margin: 12px 0 26px; color: var(--ink-2); font-size: 18px; }
.ydh-offer__price { text-align: center; background: var(--white); border-radius: 20px; padding: 30px 20px; box-shadow: var(--shadow); }
.ydh-offer__price small { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.ydh-price--xl { justify-content: center; margin: 6px 0; }
.ydh-price--xl b { font-size: 80px; }

/* الحجز */
.ydh-book { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.ydh-book__copy h2 { font-size: clamp(26px, 3vw, 36px); }
.ydh-book__copy p { margin: 12px 0 26px; color: var(--ink-2); font-size: 18px; }
.ydh-contact {
	display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
	padding: 14px 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line);
	text-decoration: none; font-weight: 600;
}
.ydh-contact .ic { color: var(--teal-strong); }
.ydh-contact b { margin-inline-start: auto; font-weight: 700; }
.ydh-contact:hover { border-color: var(--teal); }

.ydh-formbox { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.ydh-form { display: grid; gap: 16px; }
.ydh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ydh-field { display: grid; gap: 6px; }
.ydh-field > span { font-weight: 700; font-size: 15px; }
.ydh-field i { color: #c0392b; font-style: normal; }
.ydh-field input, .ydh-field select, .ydh-field textarea {
	width: 100%; min-height: 50px; padding: 10px 14px;
	border: 1.5px solid #d3d8d8; border-radius: 10px; background: var(--white);
	font: 500 16px/1.5 var(--font); color: var(--ink);
	transition: border-color .2s, box-shadow .2s;
}
.ydh-field textarea { resize: vertical; min-height: 96px; }
.ydh-field input::placeholder, .ydh-field textarea::placeholder { color: #9a9ca0; }
.ydh-field input:focus, .ydh-field select:focus, .ydh-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,163,148,.15); }
.ydh-field input[dir="ltr"] { text-align: left; }
.ydh-field.is-invalid input { border-color: #c0392b; }

.ydh-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.ydh-seg legend { font-weight: 700; font-size: 15px; margin-bottom: 6px; padding: 0; }
.ydh-seg label { position: relative; }
.ydh-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ydh-seg span {
	display: grid; place-items: center; min-height: 50px; border-radius: 10px;
	border: 1.5px solid #d3d8d8; font-weight: 700; cursor: pointer; transition: all .2s;
}
.ydh-seg input:checked + span { border-color: var(--teal-strong); background: var(--teal-soft); color: var(--teal-deep); }
.ydh-seg input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

.ydh-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.ydh-form__note { text-align: center; color: var(--ink-2); font-size: 14px; }
.ydh-alert { margin-bottom: 16px; padding: 12px 16px; border-radius: 10px; background: #fdecea; color: #922b21; font-weight: 600; }
.ydh-done { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 16px 0; }
.ydh-done__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: #fff; }
.ydh-done__ic .ic { width: 32px; height: 32px; }
.ydh-done h3 { font-size: 24px; }
.ydh-done p { color: var(--ink-2); }

/* الأسئلة */
.ydh-faq { display: grid; gap: 12px; }
.ydh-faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.ydh-faq details[open] { border-color: var(--teal); }
.ydh-faq summary {
	list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 18px;
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.ydh-faq summary::-webkit-details-marker { display: none; }
.ydh-faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--teal-strong); transition: transform .2s; }
.ydh-faq details[open] summary::after { transform: rotate(45deg); }
.ydh-faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* الفوتر */
.ydh-foot { background: var(--ink); color: #c9c9cc; padding: 56px 0 120px; }
.ydh-foot__in { display: grid; justify-items: center; text-align: center; gap: 14px; }
.ydh-foot img { width: 180px; }
.ydh-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.ydh-foot__links a { color: var(--paper); text-decoration: none; font-weight: 600; }
.ydh-foot__links a:hover { color: var(--teal); }
.ydh-foot small { font-size: 13px; color: #9a9ca0; }

/* شريط الجوال الثابت */
.ydh-sticky { display: none; }

@media (max-width: 1024px) {
	.ydh-top__nav { display: none; }
	.ydh-top__in > .ydh-btn { margin-inline-start: auto; }
	.ydh-hero__grid, .ydh-book, .ydh-offer { grid-template-columns: 1fr; }
	.ydh-hero__grid { gap: 40px; }
	.ydh-aud, .ydh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
	.admin-bar .ydh-top { top: 46px; }
}
@media (max-width: 680px) {
	body.ydh { font-size: 16px; }
	.ydh-wrap { padding: 0 16px; }
	.ydh-top__in { min-height: 62px; }
	.ydh-top__logo img { width: 150px; }
	.ydh-hero { padding: 40px 0 56px; }
	.ydh-lead { font-size: 17px; }
	.ydh-hero__cta .ydh-btn { width: 100%; }
	.ydh-sec { padding: 60px 0; }
	.ydh-head { margin-bottom: 32px; }
	.ydh-why__grid, .ydh-inc, .ydh-aud, .ydh-steps, .ydh-row { grid-template-columns: 1fr; }
	.ydh-inc { gap: 0; }
	.ydh-pricecard, .ydh-formbox { padding: 22px; }
	.ydh-offer { padding: 26px 20px; gap: 26px; }
	.ydh-price b { font-size: 56px; }
	.ydh-price--xl b { font-size: 68px; }
	.ydh-faq summary { font-size: 17px; }

	.ydh-sticky {
		display: flex; gap: 10px;
		position: fixed; inset: auto 0 0 0; z-index: 60;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
		box-shadow: 0 -6px 20px rgba(48,48,50,.08);
		transform: translateY(110%); transition: transform .25s;
	}
	.ydh-sticky.is-on { transform: none; }
	.ydh-sticky .ydh-btn { flex: 1; min-height: 50px; }
	.ydh-sticky .ydh-btn--wa { flex: 0 0 56px; padding: 0; background: #25d366; border-color: #25d366; }
	.ydh-sticky .ydh-btn--wa .ic { width: 26px; height: 26px; }
	/* زر واتساب العائم من إضافة Chaty يتكرر مع الشريط الثابت على الجوال */
	.ydh .chaty, .ydh .chaty-widget, .ydh [id^="chaty-widget"] { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ydh *, .ydh *::before, .ydh *::after { transition: none !important; }
}
