/* Coucou Header 1.1.1 — هيدر مستقل عن إليمنتور */

/* نخفي الهيدر القديم (بنخبّيه بس، مش بنمسحه: ثيم الموقع بيدوّر على .cdf-header عشان يطبّق الخلفية والأنيميشن) */
.cdf-site-header,
.elementor-location-header,
#site-header,
header.site-header { display: none !important; }

.cdfh,
.cdfh-top,
.cdfh__drawer {
	--cdfh-bg: rgba(6, 9, 19, .86);
	--cdfh-ink: var(--cdf-ink, #f4f1ea);
	--cdfh-mute: rgba(232, 237, 252, .74);
	--cdfh-line: rgba(255, 255, 255, .09);
	--cdfh-red: var(--cdf-red, #f0444f);
	--cdfh-blue: var(--cdf-blue-deep, #1c2f8f);
	--cdfh-wa: var(--cdf-wa, #25d366);
	--cdfh-serif: var(--cdf-fr, "Fraunces", "Playfair Display", Georgia, serif);
	--cdfh-ar: var(--cdf-ar, "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif);
	--cdfh-body: var(--cdf-body, "IBM Plex Sans Arabic", "Alexandria", system-ui, sans-serif);
	font-family: var(--cdfh-body);
	line-height: 1.4;
	color: var(--cdfh-ink);
	box-sizing: border-box;
}
.cdfh *, .cdfh-top *, .cdfh__drawer * { box-sizing: border-box; }

.cdfh__wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 32px); }

/* ---------- الشريط العلوي (صفحات داخلية فقط) ---------- */
.cdfh-top {
	position: relative; z-index: 9991; background: #060913;
	border-bottom: 1px solid var(--cdfh-line); font-size: .82rem; color: var(--cdfh-mute);
}
.cdfh-top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.cdfh-top__msg { margin: 0; }
.cdfh-top__msg b { font-family: var(--cdfh-serif); font-style: italic; color: var(--cdfh-ink); margin-inline-end: 6px; }
.cdfh-top__tel { color: var(--cdfh-mute); text-decoration: none; transition: color .2s; }
.cdfh-top__tel bdi { color: var(--cdfh-ink); font-weight: 700; letter-spacing: .02em; }

/* ---------- الهيدر ---------- */
.cdfh {
	position: sticky; top: 0; z-index: 9990; width: 100%;
	background: var(--cdfh-bg);
	-webkit-backdrop-filter: blur(14px) saturate(1.35); backdrop-filter: blur(14px) saturate(1.35);
	border-bottom: 0; box-shadow: 0 1px 0 var(--cdfh-line);
	transition: background-color .35s ease, box-shadow .35s ease;
}
.cdfh.is-scrolled { box-shadow: 0 1px 0 var(--cdfh-line), 0 14px 40px -22px rgba(0, 0, 0, .85); }
body.admin-bar .cdfh { top: 32px; }
@media (max-width: 782px) { body.admin-bar .cdfh { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .cdfh { top: 0; } }

.cdfh--overlay {
	position: fixed; left: 0; right: 0;
	background: linear-gradient(to bottom, rgba(6, 9, 19, .72), rgba(6, 9, 19, 0));
	-webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
.cdfh--overlay.is-scrolled {
	background: var(--cdfh-bg);
	-webkit-backdrop-filter: blur(14px) saturate(1.35); backdrop-filter: blur(14px) saturate(1.35);
	box-shadow: 0 1px 0 var(--cdfh-line), 0 14px 40px -22px rgba(0, 0, 0, .85);
}
.cdfh--overlay:not(.is-scrolled) .cdfh__menu > li > a { text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.cdfh--overlay:not(.is-scrolled) .cdfh__name em { color: rgba(245, 247, 252, .85); }

.cdfh__flag {
	position: absolute; top: 0; left: 0; right: 0; height: 3px; direction: ltr;
	background: linear-gradient(90deg, var(--cdfh-blue) 0 33.34%, var(--cdfh-ink) 33.34% 66.67%, var(--cdfh-red) 66.67% 100%);
	opacity: .95;
}

.cdfh__row {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center;
	gap: clamp(12px, 2.4vw, 32px); min-height: 78px; transition: min-height .3s ease;
}
.cdfh--overlay .cdfh__row { min-height: 96px; }
.cdfh--overlay.is-scrolled .cdfh__row { min-height: 76px; }

.cdfh__brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.cdfh__logo {
	flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #fff;
	display: grid; place-items: center;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .08), 0 10px 26px -10px rgba(0, 0, 0, .7);
}
.cdfh__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cdfh__name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cdfh__name strong {
	font-family: var(--cdfh-serif); font-style: italic; font-weight: 700; font-size: 1.38rem;
	letter-spacing: .2px; line-height: 1.15; white-space: nowrap;
}
.cdfh__name em { font-family: var(--cdfh-serif); font-style: italic; font-size: .8rem; color: var(--cdfh-mute); white-space: nowrap; }

/* القائمة */
.cdfh__nav { justify-self: center; }
.cdfh__menu, .cdfh__menu ul { list-style: none; margin: 0; padding: 0; }
.cdfh__nav .cdfh__menu { display: flex; align-items: center; gap: 4px; }
.cdfh__menu li { position: relative; margin: 0; padding: 0; list-style: none; }
.cdfh__menu a {
	position: relative; display: block; padding: 12px 16px; color: var(--cdfh-mute);
	font-family: var(--cdfh-ar); font-weight: 600; font-size: .98rem; text-decoration: none;
	white-space: nowrap; transition: color .25s ease;
}
.cdfh__menu > li > a::after {
	content: ""; position: absolute; inset-inline: 16px; bottom: 4px; height: 2px; border-radius: 2px;
	background: var(--cdfh-red); transform: scaleX(0); transform-origin: center; transition: transform .3s ease;
}
.cdfh__menu > li > a:hover::after, .cdfh__menu > li > a:focus-visible::after { transform: scaleX(.55); }
.cdfh__menu > .current-menu-item > a::after,
.cdfh__menu > .current_page_item > a::after,
.cdfh__menu > .current-menu-ancestor > a::after,
.cdfh__menu > .current_page_ancestor > a::after,
.cdfh__menu > .current-page-ancestor > a::after { transform: scaleX(1); }

.cdfh__menu a:focus-visible, .cdfh__cta:focus-visible, .cdfh__burger:focus-visible,
.cdfh__close:focus-visible, .cdfh__brand:focus-visible {
	outline: 2px solid var(--cdfh-red); outline-offset: 3px; border-radius: 10px;
}

/* قائمة فرعية */
.cdfh__nav .menu-item-has-children > a::before,
.cdfh__nav .page_item_has_children > a::before {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 8px;
	border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); opacity: .7;
}
.cdfh__nav .sub-menu, .cdfh__nav .children {
	position: absolute; top: 100%; inset-inline-start: 0; min-width: 230px; padding: 8px;
	border: 1px solid var(--cdfh-line); border-radius: 16px; background: rgba(9, 14, 34, .97);
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .22s ease, transform .22s ease, visibility 0s .22s;
}
.cdfh__nav li:hover > .sub-menu, .cdfh__nav li:focus-within > .sub-menu,
.cdfh__nav li:hover > .children, .cdfh__nav li:focus-within > .children {
	opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.cdfh__nav .sub-menu a, .cdfh__nav .children a { padding: 10px 14px; border-radius: 10px; font-weight: 500; }

/* زرار الحجز */
.cdfh__actions { display: flex; align-items: center; gap: 10px; }
.cdfh__cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px;
	border-radius: 999px; background: var(--cdfh-wa); color: #04230f; font-weight: 800; font-size: .98rem;
	text-decoration: none; white-space: nowrap; flex: none;
	box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .6);
	transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.cdfh__cta svg { flex: none; }
.cdfh__cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(37, 211, 102, .75); filter: brightness(1.05); }
.cdfh__cta:active { transform: translateY(0); }

/* زرار القائمة (موبايل فقط) والإغلاق: مربع ثابت الحجم، الخطوط متساوية ومتوسّطة */
.cdfh__burger, .cdfh__close {
	flex: none; width: 46px; height: 46px; min-width: 46px; padding: 0; margin: 0;
	align-items: center; justify-content: center; cursor: pointer;
	border-radius: 14px; border: 1px solid var(--cdfh-line); background: rgba(255, 255, 255, .06);
	color: var(--cdfh-ink); transition: background-color .2s, border-color .2s;
}
.cdfh__burger { display: none; flex-direction: column; gap: 5px; }
.cdfh__close { display: inline-flex; width: 44px; height: 44px; min-width: 44px; }
.cdfh__burger span {
	display: block; flex: none; width: 20px; height: 2px; min-height: 2px; border-radius: 2px;
	background: currentColor; transition: transform .3s ease, opacity .2s ease;
}
.cdfh__close svg { display: block; flex: none; width: 18px; height: 18px; }
.cdfh__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cdfh__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cdfh__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- الدروار (موبايل) ---------- */
.cdfh__veil {
	position: fixed; inset: 0; z-index: 9998; background: rgba(2, 4, 12, .64);
	-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s;
}
.cdfh__veil.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.cdfh__drawer {
	position: fixed; top: 0; bottom: 0; z-index: 9999; width: min(88vw, 380px);
	display: flex; flex-direction: column; gap: 18px; padding: 26px 20px 24px; overflow-y: auto;
	background: linear-gradient(180deg, #0a1230 0%, #060913 70%);
	border-inline-start: 1px solid var(--cdfh-line);
	visibility: hidden; transition: transform .38s cubic-bezier(.22, .8, .26, 1), visibility 0s .38s;
}
.cdfh__drawer.cdfh--rtl { right: 0; transform: translateX(100%); }
.cdfh__drawer.cdfh--ltr { left: 0; transform: translateX(-100%); }
.cdfh__drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.cdfh__drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cdfh__drawer-title { font-family: var(--cdfh-serif); font-style: italic; font-weight: 700; font-size: 1.25rem; }
.cdfh__drawer-nav .cdfh__menu { display: flex; flex-direction: column; gap: 2px; }
.cdfh__drawer-nav .cdfh__menu a { padding: 14px 16px; border-radius: 12px; font-size: 1.08rem; white-space: normal; }
.cdfh__drawer-nav .cdfh__menu > li > a::after { display: none; }
.cdfh__drawer-nav .current-menu-item > a, .cdfh__drawer-nav .current_page_item > a {
	background: rgba(240, 68, 79, .13); box-shadow: inset 3px 0 0 var(--cdfh-red);
}
.cdfh__drawer.cdfh--rtl .current-menu-item > a, .cdfh__drawer.cdfh--rtl .current_page_item > a { box-shadow: inset -3px 0 0 var(--cdfh-red); }
.cdfh__drawer-nav .sub-menu, .cdfh__drawer-nav .children { padding-inline-start: 14px; }
.cdfh__drawer-nav .sub-menu a, .cdfh__drawer-nav .children a { font-size: .98rem; padding: 10px 16px; opacity: .9; }
.cdfh__cta--block { width: 100%; }
.cdfh__drawer-tel { text-align: center; text-decoration: none; font-weight: 700; letter-spacing: .04em; }

html.cdfh-lock, html.cdfh-lock body { overflow: hidden; }

/* ---------- حماية من ستايل ثيم Hello وإعدادات Elementor ---------- */
html body .cdfh a, html body .cdfh-top a, html body .cdfh__drawer a { text-decoration: none; background-image: none; }
html body .cdfh .cdfh__brand, html body .cdfh .cdfh__brand:hover, html body .cdfh .cdfh__brand:focus { color: var(--cdfh-ink); background: none; }
html body .cdfh .cdfh__menu a, html body .cdfh__drawer .cdfh__menu a { color: var(--cdfh-mute); background: none; }
html body .cdfh .cdfh__menu > li > a:hover,
html body .cdfh .cdfh__menu > li > a:focus-visible,
html body .cdfh .cdfh__menu .current-menu-item > a,
html body .cdfh .cdfh__menu .current_page_item > a,
html body .cdfh .cdfh__menu .current-menu-ancestor > a,
html body .cdfh .cdfh__menu .current_page_ancestor > a,
html body .cdfh__drawer .cdfh__menu a:hover,
html body .cdfh__drawer .cdfh__menu .current-menu-item > a,
html body .cdfh__drawer .cdfh__menu .current_page_item > a { color: var(--cdfh-ink); }
html body .cdfh--overlay:not(.is-scrolled) .cdfh__menu > li > a { color: rgba(245, 247, 252, .92); }
html body .cdfh--overlay:not(.is-scrolled) .cdfh__menu > li > a:hover { color: #fff; }
html body .cdfh__drawer .cdfh__menu a:hover { background: rgba(255, 255, 255, .06); }
html body .cdfh .cdfh__cta, html body .cdfh__drawer .cdfh__cta,
html body .cdfh .cdfh__cta:hover, html body .cdfh__drawer .cdfh__cta:hover,
html body .cdfh .cdfh__cta:focus, html body .cdfh__drawer .cdfh__cta:focus { color: #04230f; background: var(--cdfh-wa); font-family: var(--cdfh-ar); }
html body .cdfh-top .cdfh-top__tel { color: var(--cdfh-mute); }
html body .cdfh-top .cdfh-top__tel:hover { color: var(--cdfh-ink); }
html body .cdfh__drawer .cdfh__drawer-tel { color: var(--cdfh-mute); }

html body .cdfh .cdfh__burger, html body .cdfh__drawer .cdfh__close {
	padding: 0; margin: 0; border: 1px solid var(--cdfh-line); border-radius: 14px;
	background: rgba(255, 255, 255, .06); color: var(--cdfh-ink);
	font: inherit; line-height: 1; text-transform: none; letter-spacing: 0; box-shadow: none;
}
html body .cdfh__drawer .cdfh__close { border-radius: 12px; }
html body .cdfh .cdfh__burger:hover, html body .cdfh .cdfh__burger:focus,
html body .cdfh__drawer .cdfh__close:hover, html body .cdfh__drawer .cdfh__close:focus {
	background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: var(--cdfh-ink);
}
/* الإظهار/الإخفاء بسلكتور قوي: البرجر للموبايل والتابلت فقط */
html body .cdfh .cdfh__burger { display: none; }
html body .cdfh__drawer .cdfh__close { display: inline-flex; }

/* ---------- تابلت وموبايل ---------- */
@media (max-width: 1023px) {
	.cdfh__nav { display: none; }
	.cdfh__row { grid-template-columns: 1fr auto; min-height: 70px; }
	.cdfh--overlay .cdfh__row { min-height: 78px; }
	html body .cdfh .cdfh__burger { display: inline-flex; }
	.cdfh__actions .cdfh__cta { padding: 11px 18px; }
}
@media (max-width: 599px) {
	.cdfh__actions .cdfh__cta { width: 46px; height: 46px; min-width: 46px; padding: 0; }
	.cdfh__actions .cdfh__cta span { display: none; }
	.cdfh__name strong { font-size: 1.15rem; }
	.cdfh__name em { display: none; }
	.cdfh__logo { width: 44px; height: 44px; }
	.cdfh-top__msg { font-size: .76rem; }
	.cdfh-top__tel { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cdfh, .cdfh *, .cdfh__drawer, .cdfh__veil { transition: none !important; } }
@media print { .cdfh, .cdfh-top, .cdfh__drawer, .cdfh__veil { display: none !important; } }
