/* =========================================================
   HP Firm Design v0.2 — مشرق وعصري
   ========================================================= */

body.hpfd {
  /* هوية المكتب: زيتي #17353C + دهبي #D5B167 (من اللوجو والمطبوعات) */
  --hp-ink: #17353c;
  --hp-teal: #24474e;
  --hp-teal-soft: #ebf1f0;
  --hp-gold: #c9a35a;
  --hp-gold-soft: #f7efde;
  --hp-bg: #fbfaf8;
  --hp-surface: #f4f1ea;
  --hp-text: #1f2d30;
  --hp-muted: #586668;
  --hp-line: #e7e1d5;
  --hp-r-lg: 28px;
  --hp-r: 18px;
  --hp-wrap: 1200px;
  --hp-gutter: clamp(16px, 4vw, 40px);
  --hp-shadow: 0 20px 50px -24px rgba(23, 53, 60, .35);
  --hp-font: "Readex Pro", "Tajawal", system-ui, sans-serif;
  --hp-ease: cubic-bezier(.2, .7, .2, 1);
  --hp-head-h: 76px;
  --hp-deep: #17353c;          /* خلفية الأقسام الغامقة (زيتي اللوجو) */
  --hp-btn: #17353c;           /* خلفية الزرار الأساسي */
  --hp-btn-ink: #ffffff;       /* نص الزرار الأساسي */
  --hp-btn-hover: #0f272c;
  --hp-card: #ffffff;          /* خلفية الكروت */
  --hp-head-bg: rgba(251, 250, 248, .92);
  --hp-cta-a: #21454c;
  background: var(--hp-bg);
  color: var(--hp-text);
  font-weight: 400;
}

/* ———— خط واحد على كل الموقع ———— */
body.hpfd, body.hpfd p, body.hpfd li, body.hpfd a, body.hpfd span, body.hpfd input, body.hpfd select,
body.hpfd textarea, body.hpfd button, body.hpfd h1, body.hpfd h2, body.hpfd h3, body.hpfd h4, body.hpfd h5,
body.hpfd .elementor-heading-title, body.hpfd .elementor-widget-text-editor, body.hpfd .elementor-button,
body.hpfd .elementor-tab-title, body.hpfd .elementor-tab-content, body.hpfd .eael-accordion-tab-title,
body.hpfd .wpforms-container, body.hpfd .entry-title {
  font-family: var(--hp-font) !important;
  letter-spacing: 0 !important;
}
/* الخط الجديد أطول من القديم: مسافات سطور مريحة للعناوين في كل الصفحات */
body.hpfd h1, body.hpfd h2, body.hpfd h3, body.hpfd h4, body.hpfd .elementor-heading-title,
body.hpfd .elementor-tab-title, body.hpfd .eael-accordion-tab-title, body.hpfd .e-n-accordion-item-title-text { line-height: 1.45 !important; }
body.hpfd .elementor-widget-text-editor, body.hpfd .entry-content p { line-height: 1.85; }
@media (max-width: 600px) {
  body.hpfd .eael-accordion-tab-title, body.hpfd .elementor-tab-title, body.hpfd .elementor-tab-title a,
  body.hpfd .e-n-accordion-item-title-text { font-size: 17px !important; }
}
body.hpfd :focus-visible { outline: 3px solid var(--hp-gold); outline-offset: 3px; border-radius: 6px; }
.hpfd-wrap { width: 100%; max-width: var(--hp-wrap); margin-inline: auto; padding-inline: var(--hp-gutter); box-sizing: border-box; }

/* ———— الأزرار (للهيدر والفوتر) ———— */
.hpfd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--hp-font) !important; text-decoration: none !important;
  transition: transform .2s var(--hp-ease), background-color .2s ease, box-shadow .2s ease;
}
.hpfd-btn:hover { transform: translateY(-2px); }
.hpfd-btn-primary { background: var(--hp-btn); color: var(--hp-btn-ink) !important; }
.hpfd-btn-primary:hover { background: var(--hp-btn-hover); box-shadow: 0 10px 24px -12px rgba(23, 53, 60, .6); }

/* ———— الهيدر الجديد ———— */
body.hpfd #masthead { display: none !important; }
.hpfd-head {
  position: sticky; top: 0; z-index: 900;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
/* الخلفية الضبابية على عنصر منفصل: لو اتحطت على الهيدر نفسه بتحبس القائمة الجانبية جواه */
.hpfd-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hp-head-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hpfd-nav-open .hpfd-head { z-index: 1001; }
body.admin-bar .hpfd-head { top: 32px; }
.hpfd-scrolled .hpfd-head { border-bottom-color: var(--hp-line); box-shadow: 0 8px 30px -22px rgba(23, 53, 60, .45); }
.hpfd-head-row { display: flex; align-items: center; gap: 24px; min-height: var(--hp-head-h); transition: min-height .3s var(--hp-ease); }
.hpfd-scrolled .hpfd-head-row { min-height: 64px; }
.hpfd-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; flex: none; }
.hpfd-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--hp-deep); display: grid; place-items: center; transition: transform .4s var(--hp-ease); }
.hpfd-brand:hover .hpfd-mark { transform: rotate(-8deg) scale(1.05); }
.hpfd-mark img { width: 30px; height: auto; }
.hpfd-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.hpfd-brand-text strong { font-size: 17px; color: var(--hp-ink); font-weight: 600; }
.hpfd-brand-text span { font-size: 12px; color: var(--hp-muted); }
.hpfd-nav { margin-inline-start: auto; display: flex; align-items: center; }
.hpfd-nav-top, .hpfd-nav-extra { display: none; }
.hpfd-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.hpfd-menu a {
  display: block; text-decoration: none !important; font-size: 15px; color: var(--hp-text) !important;
  padding: 8px 14px; border-radius: 999px; transition: background-color .2s ease, color .2s ease;
}
.hpfd-menu a:hover { background: var(--hp-teal-soft); color: var(--hp-teal) !important; }
.hpfd-menu .current-menu-item > a, .hpfd-menu .current_page_item > a { background: var(--hp-teal-soft); color: var(--hp-teal) !important; font-weight: 500; }
.hpfd-burger { display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--hp-line); background: var(--hp-card); cursor: pointer; padding: 0; }
.hpfd-burger span { display: block; width: 18px; height: 2px; background: var(--hp-ink); margin: 4px auto; border-radius: 2px; }
.hpfd-scrim { position: fixed; inset: 0; z-index: 950; background: rgba(23, 53, 60, .45); opacity: 0; transition: opacity .3s ease; }
.hpfd-nav-open .hpfd-scrim { opacity: 1; }

@media (max-width: 1080px) {
  .hpfd-head-cta { display: none !important; }
  .hpfd-burger { display: block; }
  .hpfd-nav {
    position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 1000;
    width: min(86vw, 360px); background: var(--hp-card); flex-direction: column; align-items: stretch;
    padding: 18px 20px 28px; overflow-y: auto;
    transform: translateX(105%); visibility: hidden;
    transition: transform .4s var(--hp-ease), visibility 0s linear .4s;
    box-shadow: -20px 0 60px -30px rgba(23, 53, 60, .5);
  }
  .hpfd-nav-open .hpfd-nav { transform: none; visibility: visible; transition: transform .4s var(--hp-ease); }
  .hpfd-nav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--hp-ink); }
  .hpfd-nav-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--hp-line); background: var(--hp-card); color: var(--hp-ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
  .hpfd-menu { flex-direction: column; gap: 4px; }
  .hpfd-menu a { font-size: 17px; padding: 14px 16px; border-radius: 14px; }
  .hpfd-nav-open .hpfd-menu li { animation: hpfd-slide-in .45s var(--hp-ease) both; }
  .hpfd-nav-open .hpfd-menu li:nth-child(2) { animation-delay: .04s; }
  .hpfd-nav-open .hpfd-menu li:nth-child(3) { animation-delay: .08s; }
  .hpfd-nav-open .hpfd-menu li:nth-child(4) { animation-delay: .12s; }
  .hpfd-nav-open .hpfd-menu li:nth-child(5) { animation-delay: .16s; }
  .hpfd-nav-open .hpfd-menu li:nth-child(6) { animation-delay: .2s; }
  .hpfd-nav-open .hpfd-menu li:nth-child(7) { animation-delay: .24s; }
  .hpfd-nav-extra { display: grid; gap: 12px; margin-top: auto; padding-top: 24px; }
  .hpfd-nav-extra .hpfd-btn { min-height: 52px; font-size: 16px !important; }
  .hpfd-nav-call { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--hp-teal) !important; text-decoration: none !important; font-weight: 500; }
  body.hpfd-nav-open { overflow: hidden; }
}
@keyframes hpfd-slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .hpfd-brand-text span { display: none; } }

/* ———— شريط التواصل الثابت (موبايل) ———— */
.hpfd-dock { display: none; }
@media (max-width: 767px) {
  .hpfd-dock {
    display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px;
    position: fixed; inset-inline: 10px; bottom: 10px; z-index: 800;
    background: var(--hp-head-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-radius: 20px; padding: 8px; box-shadow: 0 14px 40px -16px rgba(23, 53, 60, .5);
    animation: hpfd-dock-in .6s .8s var(--hp-ease) both;
  }
  .hpfd-dock a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 54px; border-radius: 14px; text-decoration: none !important;
    color: var(--hp-teal) !important; font-size: 12.5px; font-weight: 500;
  }
  .hpfd-dock a:active { transform: scale(.96); }
  .hpfd-dock a.is-main { background: var(--hp-btn); color: var(--hp-btn-ink) !important; flex-direction: row; gap: 8px; font-size: 14.5px; }
  body.hpfd { padding-bottom: 86px; }
  /* زرار الشات العائم بيختفي على الموبايل لأن الشات موجود في الشريط */
  body.hpfd #hpfai-root .hpfai-fab { display: none; }
  body.hpfd #hpfai-root { z-index: 1100; }
}
@keyframes hpfd-dock-in { from { transform: translateY(120%); } to { transform: none; } }

/* ———— الفوتر ———— */
body.hpfd .site-footer .site-primary-footer-wrap,
body.hpfd .site-footer .site-below-footer-wrap,
body.hpfd .site-footer .site-above-footer-wrap { display: none !important; }
.hpfd-foot { background: var(--hp-deep); color: #a9bdba; padding: 72px 0 28px; font-size: 15px; line-height: 1.8; border-radius: 40px 40px 0 0; }
.hpfd-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 48px; }
.hpfd-foot .hpfd-mark { background: rgba(255, 255, 255, .08); }
.hpfd-foot-logo { display: inline-block; text-decoration: none !important; }
.hpfd-foot-logo img { display: block; width: 210px; height: auto; }
.hpfd-foot .hpfd-brand-text strong { color: #fff; }
.hpfd-foot .hpfd-brand-text span { color: #a9bdba; display: block; }
.hpfd-foot-brand p { margin: 18px 0 0; max-width: 24em; }
body.hpfd .hpfd-foot h2 { font-size: 15px !important; font-weight: 600; color: #fff; margin: 0 0 14px; line-height: 1.4; }
.hpfd-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hpfd-foot a { color: #a9bdba !important; text-decoration: none !important; transition: color .2s ease; }
.hpfd-foot a:hover { color: var(--hp-gold) !important; }
.hpfd-contact li { display: flex; gap: 10px; align-items: flex-start; }
.hpfd-contact svg { color: var(--hp-gold); flex: none; margin-top: 3px; width: 18px; height: 18px; }
.hpfd-social { display: flex; gap: 18px; }
.hpfd-foot-note { margin-top: 56px; padding-top: 22px; position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.hpfd-foot-note::before { content: ""; position: absolute; top: 0; inset-inline: var(--hp-gutter); border-top: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 1020px) { .hpfd-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hpfd-foot-grid { grid-template-columns: 1fr; gap: 32px; } .hpfd-foot { border-radius: 28px 28px 0 0; } }

/* ———— حركة الظهور عند النزول (الـ JS بيضيف .hp-anim) ———— */
.hp-anim { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--hp-ease), transform .7s var(--hp-ease); transition-delay: var(--hp-delay, 0ms); }
.hp-anim.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hp-anim { opacity: 1; transform: none; transition: none; }
  body.hpfd *, body.hpfd *::before, body.hpfd *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
}

/* =========================================================
   الصفحة الرئيسية (عناصر Elementor بكلاسات hp-*)
   ========================================================= */

body.hpfd .e-con[class*="hp-"] {
  --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px;
  --margin-top: 0px; --margin-bottom: 0px;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px;
  --width: 100%;
  --display: flex; --flex-direction: column; --flex-wrap: nowrap; --justify-content: normal; --align-items: normal;
}
body.hpfd .e-con[class*="hp-"] > .elementor-widget { margin: 0; width: auto; max-width: 100%; }
body.hpfd .hp-wrap.e-con { max-width: var(--hp-wrap); margin-inline: auto; padding-inline: var(--hp-gutter); box-sizing: border-box; }
body.hpfd .hp-home { overflow: hidden; }
body.hpfd .hp-home .elementor-heading-title { color: var(--hp-ink); line-height: 1.3; }
body.hpfd .hp-home .elementor-widget-text-editor { color: var(--hp-text); font-size: 17px; line-height: 1.8; font-weight: 400; }
body.hpfd .hp-home .elementor-widget-text-editor p { font-weight: inherit; color: inherit; font-size: inherit; }
body.hpfd .hp-home li, body.hpfd .hp-home small { font-weight: 400; }
body.hpfd .hp-home .elementor-widget-text-editor p { margin: 0; }
body.hpfd .hp-muted.elementor-widget-text-editor { color: var(--hp-muted); }
body.hpfd .hp-h2 .elementor-heading-title { font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; }

/* الأزرار */
body.hpfd .hp-btn .elementor-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: 999px; font-size: 16px; font-weight: 500; border: 0; position: relative; overflow: hidden;
  transition: transform .25s var(--hp-ease), background-color .25s ease, box-shadow .25s ease;
}
body.hpfd .hp-btn .elementor-button:hover { transform: translateY(-2px); }
body.hpfd .hp-btn-primary .elementor-button { background: var(--hp-btn); color: var(--hp-btn-ink); }
body.hpfd .hp-btn-primary .elementor-button:hover { background: var(--hp-btn-hover); box-shadow: 0 12px 28px -14px rgba(23, 53, 60, .7); }
body.hpfd .hp-btn-primary .elementor-button::after { /* لمعة بتعدي على الزرار */
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .7s var(--hp-ease);
}
body.hpfd .hp-btn-primary .elementor-button:hover::after { transform: translateX(-120%); }
body.hpfd .hp-btn-light .elementor-button { background: var(--hp-gold-soft); color: var(--hp-ink); }
body.hpfd .hp-btn-light .elementor-button:hover { background: #efe1c2; }
body.hpfd .hp-btn-gold .elementor-button { background: var(--hp-gold); color: var(--hp-ink); }
body.hpfd .hp-btn-gold .elementor-button:hover { background: #dcbd7c; }
body.hpfd .hp-btn-link .elementor-button { min-height: 0; padding: 0; background: none; color: var(--hp-teal); font-size: 15px; text-decoration: underline; text-underline-offset: 6px; }
body.hpfd .hp-btn-link .elementor-button:hover { transform: none; color: var(--hp-ink); }
body.hpfd .hp-actions.e-con { --flex-direction: row; --flex-wrap: wrap; gap: 12px; flex-direction: row; flex-wrap: wrap; }

/* الشارة الصغيرة */
body.hpfd .hp-pill .elementor-heading-title {
  display: inline-flex; align-items: center; gap: 8px; padding-block: 6px; padding-inline: 6px 14px;
  background: var(--hp-teal-soft); color: var(--hp-teal); border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.6;
}
body.hpfd .hp-pill b { background: var(--hp-btn); color: var(--hp-btn-ink); border-radius: 999px; padding: 2px 10px; font-weight: 500; font-size: 13px; }

/* الهيرو */
body.hpfd .hp-hero.e-con { padding: 56px 0 40px; }
body.hpfd .hp-hero-grid.e-con { --display: grid; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
body.hpfd .hp-hero-title .elementor-heading-title { font-size: clamp(34px, 4.6vw, 60px); font-weight: 700; margin-top: 22px; line-height: 1.25; }
body.hpfd .hp-hero-title em { font-style: normal; color: var(--hp-teal); position: relative; white-space: nowrap; isolation: isolate; }
body.hpfd .hp-hero-title em::after { /* خط ذهبي بيترسم تحت "سوق المال" */
  content: ""; position: absolute; inset-inline: 0; bottom: .08em; height: .16em; background: var(--hp-gold); opacity: .5; border-radius: 4px;
  transform: scaleX(0); transform-origin: right; animation: hp-draw .9s .9s var(--hp-ease) forwards; z-index: -1;
}
body.hpfd .hp-lede.elementor-widget-text-editor, body.hpfd .hp-lede p { margin-top: 20px; font-size: 19px; color: var(--hp-muted) !important; max-width: 32em; font-weight: 300 !important; }
body.hpfd .hp-hero-text .hp-actions { margin-top: 32px; }
body.hpfd .hp-hero-media.e-con { position: relative; }
body.hpfd .hp-hero-img img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 60% center; border-radius: var(--hp-r-lg); display: block; }
body.hpfd .hp-float.elementor-widget { position: absolute; background: var(--hp-card); border-radius: var(--hp-r); box-shadow: var(--hp-shadow); padding: 14px 18px; }
body.hpfd .hp-float p { display: flex; align-items: center; gap: 12px; }
body.hpfd .hp-fc-1 { bottom: 28px; inset-inline-end: -28px; }
body.hpfd .hp-fc-1 .hp-count-num { font-size: 34px; font-weight: 700; color: var(--hp-teal); line-height: 1; font-variant-numeric: tabular-nums; }
body.hpfd .hp-fc-1 small { display: block; font-size: 13px; color: var(--hp-muted); line-height: 1.5; max-width: 13em; }
body.hpfd .hp-fc-2 { top: 28px; inset-inline-start: -24px; padding: 10px 16px; }
body.hpfd .hp-fc-2 span:last-child { font-size: 14px; font-weight: 500; color: var(--hp-ink); }
body.hpfd .hp-dot { width: 10px; height: 10px; border-radius: 50%; background: #2fae6a; flex: none; animation: hp-pulse 2s infinite; }

/* أنيميشن أول ما الصفحة تفتح */
@media (prefers-reduced-motion: no-preference) {
  /* النص والصورة ظاهرين من أول لحظة (جوجل بيحسب سرعة الصفحة من أول ما أكبر عنصر يظهر) — الحركة بس بتنزلق خفيف */
  body.hpfd .hp-hero-text > .elementor-element { transform: translateY(14px); animation: hp-up .7s var(--hp-ease) forwards; }
  body.hpfd .hp-hero-text > .elementor-element:nth-child(2) { animation-delay: .1s; }
  body.hpfd .hp-hero-text > .elementor-element:nth-child(3) { animation-delay: .2s; }
  body.hpfd .hp-hero-text > .elementor-element:nth-child(4) { animation-delay: .3s; }
  body.hpfd .hp-hero-img img { transform: scale(1.035); animation: hp-settle 1.2s var(--hp-ease) forwards; }
  body.hpfd .hp-float.elementor-widget { opacity: 0; animation: hp-pop .6s var(--hp-ease) forwards, hp-bob 5s ease-in-out infinite; }
  body.hpfd .hp-fc-1.elementor-widget { animation-delay: .9s, 1.5s; }
  body.hpfd .hp-fc-2.elementor-widget { animation-delay: 1.1s, 2.4s; }
}
@keyframes hp-up { to { opacity: 1; transform: none; } }
@keyframes hp-reveal-img { to { clip-path: inset(0 0 0 0 round var(--hp-r-lg)); } }
@keyframes hp-settle { to { transform: none; } }
@keyframes hp-pop { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes hp-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes hp-draw { to { transform: scaleX(1); } }
@keyframes hp-pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 174, 106, .45); } 70% { box-shadow: 0 0 0 10px rgba(47, 174, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 174, 106, 0); } }

/* شريط الجهات */
body.hpfd .hp-trust.e-con { padding: 28px 0 8px; }
body.hpfd .hp-trust-row.e-con { --flex-direction: row; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; border-top: 1px solid var(--hp-line); padding-top: 28px; }
body.hpfd .hp-trust-label .elementor-heading-title { color: var(--hp-muted); font-size: 14px; font-weight: 400; }
body.hpfd .hp-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
body.hpfd .hp-chips li { padding: 8px 16px; border: 1px solid var(--hp-line); border-radius: 999px; font-size: 15px; color: var(--hp-ink); background: var(--hp-card); transition: border-color .2s ease, background-color .2s ease; }
body.hpfd .hp-chips li:hover { border-color: var(--hp-gold); background: var(--hp-gold-soft); }

/* الخدمات */
body.hpfd .hp-services.e-con { padding: 96px 0; background: var(--hp-surface); margin-top: 56px; border-radius: 40px 40px 0 0; }
body.hpfd .hp-sec-head.e-con { --flex-direction: row; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
body.hpfd .hp-sec-head .elementor-widget-text-editor { max-width: 30em; }
body.hpfd .hp-cards.e-con { --display: grid; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
body.hpfd a.hp-card.e-con {
  background: var(--hp-card); border-radius: var(--hp-r); padding: 26px 24px; gap: 12px; text-decoration: none;
  border: 1px solid var(--hp-line); position: relative; overflow: hidden;
  transition: transform .35s var(--hp-ease), box-shadow .35s ease, border-color .35s ease, opacity .7s var(--hp-ease);
}
body.hpfd a.hp-card.e-con.hp-anim { transition-delay: var(--hp-delay, 0ms), 0ms, 0ms, var(--hp-delay, 0ms); }
body.hpfd a.hp-card.e-con:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow); border-color: transparent; transition-delay: 0ms; }
body.hpfd .hp-card .hp-ico .elementor-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--hp-teal-soft); display: grid; place-items: center; color: var(--hp-teal); font-size: 22px; transition: transform .4s var(--hp-ease), background-color .3s ease, color .3s ease; }
body.hpfd .hp-card .hp-ico .elementor-icon svg { width: 22px; height: 22px; fill: currentColor; }
body.hpfd .hp-card .hp-ico .elementor-icon i { color: inherit; }
body.hpfd .hp-card:hover .hp-ico .elementor-icon { transform: rotate(-8deg) scale(1.08); background: var(--hp-btn); color: var(--hp-btn-ink); }
body.hpfd .hp-card .hp-ico .elementor-icon-wrapper { text-align: start; line-height: 0; }
body.hpfd .hp-card-title .elementor-heading-title { font-size: 19px; font-weight: 600; }
body.hpfd .hp-card-text.elementor-widget-text-editor { font-size: 15px; color: var(--hp-muted); line-height: 1.7; }
body.hpfd .hp-card .hp-more { margin-top: auto !important; }
body.hpfd .hp-more .elementor-heading-title { font-size: 14px; color: var(--hp-teal); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
body.hpfd .hp-more .elementor-heading-title::after { content: "←"; transition: transform .3s var(--hp-ease); }
body.hpfd .hp-card:hover .hp-more .elementor-heading-title::after { transform: translateX(-5px); }
body.hpfd a.hp-card-featured.e-con { grid-column: span 2; background: var(--hp-deep); border: 0; }
body.hpfd .hp-card-featured .hp-card-title .elementor-heading-title { color: #fff; font-size: 24px; }
body.hpfd .hp-card-featured .hp-card-text.elementor-widget-text-editor { color: #b9cbc8; max-width: 26em; }
body.hpfd .hp-card-featured .hp-ico .elementor-icon { background: rgba(255, 255, 255, .1); color: var(--hp-gold); }
body.hpfd .hp-card-featured:hover .hp-ico .elementor-icon { background: var(--hp-gold); color: var(--hp-ink); }
body.hpfd .hp-card-featured .hp-more .elementor-heading-title { color: var(--hp-gold); }
body.hpfd a.hp-card-featured.e-con::after { content: ""; position: absolute; inset-inline-start: -40px; bottom: -60px; width: 220px; height: 220px; background: url(monogram-gold.png) no-repeat center / contain; opacity: .08; transition: transform .8s var(--hp-ease); pointer-events: none; }
body.hpfd a.hp-card-featured.e-con:hover::after { transform: rotate(-10deg) scale(1.1); }
body.hpfd a.hp-card-ask.e-con { grid-column: 1 / -1; background: var(--hp-gold-soft); border-color: transparent; justify-content: center; }
body.hpfd .hp-card-ask .hp-ico .elementor-icon { background: var(--hp-card); color: var(--hp-gold); }

/* المؤسس */
body.hpfd .hp-founder.e-con { padding: 110px 0; }
body.hpfd .hp-founder-grid.e-con { --display: grid; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
body.hpfd .hp-founder-img img { border-radius: var(--hp-r-lg); aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 20%; width: 100%; display: block; }
body.hpfd .hp-founder-media.e-con { position: relative; isolation: isolate; }
body.hpfd .hp-founder-media.e-con::before { content: ""; position: absolute; bottom: -18px; inset-inline-end: -18px; width: 140px; height: 140px; border-radius: 32px; background: var(--hp-gold-soft); z-index: -1; }
body.hpfd .hp-quote blockquote { margin: 18px 0 0; padding: 0; border: 0; }
body.hpfd .hp-quote blockquote p { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.7; color: var(--hp-ink); font-weight: 500; font-style: normal; }
body.hpfd .hp-who .elementor-heading-title { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 400; }
body.hpfd .hp-who .elementor-heading-title::before { content: ""; width: 36px; height: 2px; background: var(--hp-gold); }
body.hpfd .hp-who strong { color: var(--hp-ink); font-weight: 600; }
body.hpfd .hp-who span { color: var(--hp-muted); font-size: 15px; }
body.hpfd .hp-facts.e-con { --display: grid; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0 24px; }
body.hpfd .hp-fact.e-con { background: var(--hp-surface); border-radius: var(--hp-r); padding: 20px; transition: transform .3s var(--hp-ease), background-color .3s ease; }
body.hpfd .hp-fact.e-con:hover { transform: translateY(-4px); background: var(--hp-teal-soft); }
body.hpfd .hp-count .elementor-heading-title { font-size: 32px; color: var(--hp-teal); line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
body.hpfd .hp-fact .elementor-widget-text-editor { font-size: 14px; }

/* كيف نبدأ */
body.hpfd .hp-steps.e-con { padding: 96px 0; background: var(--hp-deep); border-radius: 40px; margin-inline: clamp(8px, 2vw, 24px); width: auto; }
body.hpfd .hp-steps .hp-h2 .elementor-heading-title { color: #fff; }
body.hpfd .hp-steps .hp-muted.elementor-widget-text-editor { color: #a9bdba; }
body.hpfd .hp-step-list.e-con { --display: grid; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: hpstep; }
body.hpfd .hp-step.e-con { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--hp-r); padding: 28px; counter-increment: hpstep; }
body.hpfd .hp-step.e-con::before { content: counter(hpstep); position: static; inset: auto; opacity: 1; mix-blend-mode: normal; background-image: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--hp-gold); color: var(--hp-ink); font: 600 17px/1 var(--hp-font); margin-bottom: 18px; }
body.hpfd .hp-step.hp-anim::before { transform: scale(0); transition: transform .5s var(--hp-ease); transition-delay: calc(var(--hp-delay, 0ms) + .3s); }
body.hpfd .hp-step.is-in::before { transform: scale(1); }
body.hpfd .hp-step-title .elementor-heading-title { color: #fff; font-size: 20px; font-weight: 600; }
body.hpfd .hp-step-text.elementor-widget-text-editor { color: #a9bdba; font-size: 15px; margin-top: 8px; }

/* العملاء */
body.hpfd .hp-clients.e-con { padding: 96px 0 40px; }
body.hpfd .hp-clients-head.e-con { text-align: center; align-items: center; gap: 10px; }
body.hpfd .hp-marquee.elementor-widget { margin-top: 40px; overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
body.hpfd .hp-marquee ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; width: max-content; animation: hp-marquee 50s linear infinite; }
body.hpfd .hp-marquee:hover ul { animation-play-state: paused; }
body.hpfd .hp-marquee li { white-space: nowrap; padding: 14px 24px; background: var(--hp-surface); border-radius: 14px; font-weight: 500; color: var(--hp-ink); font-size: 16px; }
@keyframes hp-marquee { to { transform: translateX(50%); } }
body.hpfd .hp-clients-more.e-con { align-items: center; margin-top: 28px; }
@media (prefers-reduced-motion: reduce) {
  body.hpfd .hp-marquee ul { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  body.hpfd .hp-marquee li[aria-hidden="true"] { display: none; }
  body.hpfd .hp-marquee.elementor-widget { -webkit-mask-image: none; mask-image: none; }
}

/* التواصل */
body.hpfd .hp-cta.e-con { padding: 56px 0 96px; }
body.hpfd .hp-cta-box.e-con {
  --display: grid; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, var(--hp-cta-a) 0%, var(--hp-deep) 100%); border-radius: 36px;
  padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; isolation: isolate;
}
body.hpfd .hp-cta-box.e-con::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 154, 62, .35), transparent 65%); inset-inline-end: -120px; top: -140px; animation: hp-glow 8s ease-in-out infinite alternate; pointer-events: none; z-index: -1; }
@keyframes hp-glow { to { transform: translate(-60px, 40px) scale(1.15); } }
body.hpfd .hp-cta-box .hp-h2 .elementor-heading-title { color: #fff; }
body.hpfd .hp-cta-lede.elementor-widget-text-editor { color: #c3d4d1; margin-top: 12px; }
body.hpfd .hp-cta-text .hp-actions { margin-top: 28px; }
body.hpfd .hp-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
body.hpfd .hp-contact-list > li { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .08); border-radius: 16px; padding: 14px 18px; color: #fff; transition: background-color .25s ease, transform .25s var(--hp-ease); }
body.hpfd .hp-contact-list > li:has(> a) { padding: 0; }
body.hpfd .hp-contact-list > li > a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; width: 100%; text-decoration: none; color: #fff; }
body.hpfd .hp-contact-list > li:hover { background: rgba(255, 255, 255, .14); transform: translateX(-4px); }
body.hpfd .hp-contact-list i { color: var(--hp-gold); font-size: 18px; width: 22px; text-align: center; flex: none; }
body.hpfd .hp-contact-list small { display: block; color: #a9bdba; font-size: 13px; }
body.hpfd .hp-contact.elementor-widget-text-editor { color: #fff; font-size: 15.5px; }

/* ———— تابلت وموبايل ———— */
@media (max-width: 1080px) {
  body.hpfd .hp-hero-grid.e-con, body.hpfd .hp-founder-grid.e-con, body.hpfd .hp-cta-box.e-con { grid-template-columns: 1fr; }
  body.hpfd .hp-hero-media.e-con { max-width: 560px; }
  body.hpfd .hp-fc-1 { inset-inline-end: 12px; }
  body.hpfd .hp-fc-2 { inset-inline-start: 12px; }
  body.hpfd .hp-cards.e-con { grid-template-columns: repeat(2, 1fr); }
  body.hpfd a.hp-card-ask.e-con { grid-column: 1 / -1; }
  body.hpfd .hp-step-list.e-con { grid-template-columns: 1fr; }
  body.hpfd .hp-founder-media.e-con { max-width: 460px; }
}
@media (max-width: 600px) {
  body.hpfd .hp-home .elementor-widget-text-editor { font-size: 16px; }
  body.hpfd .hp-hero.e-con { padding-top: 28px; }
  body.hpfd .hp-lede.elementor-widget-text-editor { font-size: 17px; }
  body.hpfd .hp-cards.e-con { grid-template-columns: 1fr; }
  body.hpfd a.hp-card-featured.e-con, body.hpfd a.hp-card-ask.e-con { grid-column: auto; }
  body.hpfd .hp-facts.e-con { grid-template-columns: 1fr 1fr; }
  body.hpfd .hp-facts.e-con > .hp-fact:last-child { grid-column: span 2; }
  body.hpfd .hp-fc-1 .hp-count-num { font-size: 26px; }
  body.hpfd .hp-services.e-con, body.hpfd .hp-founder.e-con, body.hpfd .hp-steps.e-con, body.hpfd .hp-clients.e-con { padding-top: 72px; padding-bottom: 72px; }
  body.hpfd .hp-services.e-con { border-radius: 28px 28px 0 0; }
  body.hpfd .hp-steps.e-con { border-radius: 28px; }
  body.hpfd .hp-actions.e-con > .elementor-widget, body.hpfd .hp-actions .elementor-button { width: 100%; }
}

/* =========================================================
   أدوات الهيدر: تبديل اللغة + الوضع الليلي
   ========================================================= */
.hpfd-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 2000; background: var(--hp-btn); color: var(--hp-btn-ink) !important; padding: 10px 16px; border-radius: 10px; text-decoration: none !important; transition: top .2s ease; }
.hpfd-skip:focus { top: 12px; }
.hpfd-tools { display: flex; align-items: center; gap: 6px; }
.hpfd-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; min-width: 42px; padding: 0 10px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--hp-line); background: var(--hp-card); color: var(--hp-ink) !important;
  font: 600 14px/1 var(--hp-font) !important; text-decoration: none !important;
  transition: border-color .2s ease, background-color .2s ease, transform .2s var(--hp-ease);
}
.hpfd-tool:hover { border-color: var(--hp-gold); transform: translateY(-1px); }
.hpfd-tool svg { width: 19px; height: 19px; }
.hpfd-theme .hpfd-i-sun { display: none; }
html[data-theme="dark"] .hpfd-theme .hpfd-i-sun { display: inline-flex; }
html[data-theme="dark"] .hpfd-theme .hpfd-i-moon { display: none; }
.hpfd-theme span { display: inline-flex; transition: transform .5s var(--hp-ease); }
.hpfd-theme:active span { transform: rotate(40deg) scale(.9); }
@media (max-width: 1080px) { .hpfd-tools { margin-inline-start: auto; } .hpfd-burger { margin-inline-start: 6px; } }
@media (max-width: 420px) { .hpfd-lang svg { display: none; } .hpfd-tool { min-width: 40px; height: 40px; } }

/* انتقال ناعم لما الوضع يتغير */
html.hpfd-theme-anim body.hpfd, html.hpfd-theme-anim body.hpfd * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }

/* =========================================================
   الوضع الليلي
   ========================================================= */
html[data-theme="dark"] body.hpfd {
  --hp-ink: #f4efe4;
  --hp-teal: #d5b167;           /* في الغامق: النصوص المميزة دهبي */
  --hp-teal-soft: #1d3e45;
  --hp-gold: #d5b167;
  --hp-gold-soft: #1f3e44;
  --hp-bg: #11282d;
  --hp-surface: #15313a;
  --hp-text: #dbe3e0;
  --hp-muted: #a3b3b0;
  --hp-line: #28474e;
  --hp-deep: #0d2226;
  --hp-btn: #d5b167;
  --hp-btn-ink: #12292e;
  --hp-btn-hover: #e0c283;
  --hp-card: #183840;
  --hp-head-bg: rgba(17, 40, 45, .9);
  --hp-cta-a: #1b3f46;
  --hp-shadow: 0 20px 50px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
html[data-theme="dark"] body.hpfd a.hp-card-featured.e-con,
html[data-theme="dark"] body.hpfd .hp-steps.e-con { background: #0d2226; border: 1px solid var(--hp-line); }
html[data-theme="dark"] body.hpfd .hpfd-foot { background: #0b1d21; }
html[data-theme="dark"] body.hpfd .hp-btn-light .elementor-button { background: #1f3e44; color: var(--hp-ink); box-shadow: inset 0 0 0 1px rgba(213, 177, 103, .35); }
html[data-theme="dark"] body.hpfd .hp-btn-light .elementor-button:hover { background: #27494f; }
html[data-theme="dark"] body.hpfd .hp-hero-img img, html[data-theme="dark"] body.hpfd .hp-founder-img img,
html[data-theme="dark"] body.hpfd .hp-ph-img img { filter: brightness(.92); }
html[data-theme="dark"] body.hpfd .hp-hero-title em::after { opacity: .35; }
html[data-theme="dark"] body.hpfd .hpfd-mark { background: #0d2226; border: 1px solid var(--hp-line); }
/* صفحات/عناصر قديمة مش متحولة (المقالات المفردة مثلًا) */
html[data-theme="dark"] body.hpfd .site-content, html[data-theme="dark"] body.hpfd #primary,
html[data-theme="dark"] body.hpfd .ast-article-single { background: var(--hp-bg) !important; color: var(--hp-text); }
html[data-theme="dark"] body.hpfd .entry-content h1, html[data-theme="dark"] body.hpfd .entry-content h2,
html[data-theme="dark"] body.hpfd .entry-content h3, html[data-theme="dark"] body.hpfd .entry-title { color: var(--hp-ink); }
/* الشات */
html[data-theme="dark"] #hpfai-root {
  --hpfai-brand: #1f4a52; --hpfai-brand-2: #2a5a62; --hpfai-bg: #11282d; --hpfai-surface: #183840;
  --hpfai-text: #dbe3e0; --hpfai-muted: #a3b3b0; --hpfai-border: #28474e;
}
html[data-theme="dark"] #hpfai-root .hpfai-msg a { color: #8fd3cb; }

/* =========================================================
   الإنجليزي (من الشمال لليمين)
   ========================================================= */
body.hpfd-en .hp-more .elementor-heading-title::after { content: "→"; }
body.hpfd-en .hp-card:hover .hp-more .elementor-heading-title::after,
body.hpfd-en .hp-svc:hover .hp-more .elementor-heading-title::after,
body.hpfd-en .hp-person-card:hover .hp-more .elementor-heading-title::after { transform: translateX(5px); }
body.hpfd-en .hp-hero-title em::after { transform-origin: left; }
body.hpfd-en .hp-marquee ul { animation-name: hp-marquee-ltr; }
@keyframes hp-marquee-ltr { to { transform: translateX(-50%); } }
body.hpfd-en .hp-contact-list > li:hover { transform: translateX(4px); }
body.hpfd-en .hp-quote blockquote p { font-size: clamp(20px, 2.1vw, 26px); }
@media (max-width: 1080px) {
  body.hpfd-en .hpfd-nav { transform: translateX(-105%); box-shadow: 20px 0 60px -30px rgba(23, 53, 60, .5); }
  body.hpfd-en.hpfd-nav-open .hpfd-nav { transform: none; }
  body.hpfd-en.hpfd-nav-open .hpfd-menu li { animation-name: hpfd-slide-in-ltr; }
}
@keyframes hpfd-slide-in-ltr { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

/* =========================================================
   الصفحات الداخلية
   ========================================================= */
body.hpfd .hp-team-sec.e-con { padding: 0 0 96px; }

/* رأس الصفحة */
body.hpfd .hp-page-hero.e-con {
  padding: 40px 0 56px; position: relative; overflow: hidden;
  background: radial-gradient(1200px 400px at 85% -10%, var(--hp-teal-soft), transparent 60%), var(--hp-surface);
  border-radius: 0 0 40px 40px;
}
body.hpfd .hp-ph-grid.e-con { --display: grid; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
body.hpfd .hp-page-hero.has-media .hp-ph-grid.e-con { grid-template-columns: 1.15fr .85fr; }
body.hpfd .hp-crumbs nav { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--hp-muted); }
body.hpfd .hp-crumbs a { color: var(--hp-muted); text-decoration: none; }
body.hpfd .hp-crumbs a:hover { color: var(--hp-teal); }
body.hpfd .hp-crumbs [aria-current] { color: var(--hp-ink); font-weight: 500; }
body.hpfd .hp-ph-title .elementor-heading-title { font-size: clamp(30px, 4vw, 50px); font-weight: 700; color: var(--hp-ink); margin-top: 18px; line-height: 1.3; }
body.hpfd .hp-ph-lede.elementor-widget-text-editor { margin-top: 16px; font-size: 18px; color: var(--hp-muted); max-width: 44em; line-height: 1.85; }
body.hpfd .hp-ph-lede p { margin: 0 0 .6em; }
body.hpfd .hp-ph-text .hp-actions { margin-top: 26px; }
body.hpfd .hp-ph-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--hp-r-lg); display: block; box-shadow: var(--hp-shadow); }
body.hpfd .hp-bio-img img { aspect-ratio: 4 / 4.4; object-position: center 18%; }
body.hpfd .hp-bio-role .elementor-heading-title { margin-top: 8px; font-size: 17px; font-weight: 400; color: var(--hp-muted); }
@media (prefers-reduced-motion: no-preference) {
  body.hpfd .hp-ph-text > .elementor-element { opacity: 0; transform: translateY(16px); animation: hp-up .7s var(--hp-ease) forwards; }
  body.hpfd .hp-ph-text > .elementor-element:nth-child(2) { animation-delay: .08s; }
  body.hpfd .hp-ph-text > .elementor-element:nth-child(3) { animation-delay: .16s; }
  body.hpfd .hp-ph-text > .elementor-element:nth-child(4) { animation-delay: .24s; }
  body.hpfd .hp-ph-img img { animation: hp-zoom-in .9s .1s var(--hp-ease) both; }
}
@keyframes hp-zoom-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* جسم الصفحة */
body.hpfd .hp-page-body.e-con { padding: 56px 0 96px; }
body.hpfd .hp-pb-grid.e-con { --display: grid; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
body.hpfd .hp-pb-main.e-con { min-width: 0; }
body.hpfd .hp-sec-title .elementor-heading-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; color: var(--hp-ink); margin: 40px 0 16px; }
body.hpfd .hp-pb-main > .hp-sec-title:first-child .elementor-heading-title,
body.hpfd .hp-pb-main > .hp-sub-title:first-child .elementor-heading-title,
body.hpfd .hp-contact-form > .hp-sec-title:first-child .elementor-heading-title { margin-top: 0; }
body.hpfd .hp-sub-title .elementor-heading-title { font-size: 21px; font-weight: 600; color: var(--hp-ink); margin: 32px 0 12px; display: flex; align-items: center; gap: 12px; }
body.hpfd .hp-sub-title .elementor-heading-title::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--hp-gold); flex: none; }

/* النصوص الطويلة */
body.hpfd .hp-prose.elementor-widget-text-editor { font-size: 17px; line-height: 1.95; color: var(--hp-text); font-weight: 400; max-width: 46em; }
body.hpfd .hp-prose p { margin: 0 0 1.05em; }
body.hpfd .hp-prose b, body.hpfd .hp-prose strong { color: var(--hp-ink); font-weight: 600; }
body.hpfd .hp-prose a, body.hpfd .hp-acc a { color: var(--hp-teal); text-underline-offset: 4px; }
body.hpfd .hp-prose h3 { font-size: 19px !important; color: var(--hp-ink); margin: 1.4em 0 .4em; }
body.hpfd .hp-prose ul, body.hpfd .hp-acc ul { list-style: none; margin: .4em 0 1.1em; padding: 0; display: grid; gap: .45em; }
body.hpfd .hp-prose li, body.hpfd .hp-acc li { position: relative; padding-inline-start: 1.4em; }
body.hpfd .hp-prose li::before, body.hpfd .hp-acc li::before { content: ""; position: absolute; inset-inline-start: .15em; top: .78em; width: 7px; height: 7px; border-radius: 2px; background: var(--hp-gold); transform: rotate(45deg); }
body.hpfd .hp-prose li li::before, body.hpfd .hp-acc li li::before { background: transparent; border: 1.5px solid var(--hp-teal); border-radius: 50%; transform: none; }
body.hpfd .hp-prose ul ul, body.hpfd .hp-acc ul ul { margin: .5em 0 .3em; }
body.hpfd .hp-prose-img img { border-radius: var(--hp-r-lg); margin: 12px 0 28px; width: 100%; max-height: 420px; object-fit: cover; }

/* الأكورديون (Elementor) */
body.hpfd .hp-acc .elementor-accordion { display: grid; gap: 12px; }
body.hpfd .hp-acc .elementor-accordion-item { border: 1px solid var(--hp-line) !important; border-radius: var(--hp-r); background: var(--hp-card); overflow: hidden; transition: box-shadow .3s ease, border-color .3s ease; }
body.hpfd .hp-acc .elementor-accordion-item:hover { border-color: var(--hp-gold) !important; }
body.hpfd .hp-acc .elementor-tab-title {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px !important; border: 0 !important; cursor: pointer;
  font-size: 18px !important; font-weight: 600 !important; line-height: 1.5 !important; color: var(--hp-ink) !important;
}
body.hpfd .hp-acc .elementor-tab-title a { color: inherit !important; text-decoration: none; flex: 1; }
body.hpfd .hp-acc .elementor-accordion-icon { order: 2; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid !important; place-items: center; background: var(--hp-teal-soft); color: var(--hp-teal); font-size: 13px; float: none !important; transition: transform .35s var(--hp-ease), background-color .3s ease; }
body.hpfd .hp-acc .elementor-accordion-icon svg { width: 13px; fill: currentColor; }
body.hpfd .hp-acc .elementor-tab-title.elementor-active { color: var(--hp-teal) !important; }
body.hpfd .hp-acc .elementor-tab-title.elementor-active .elementor-accordion-icon { background: var(--hp-btn); color: var(--hp-btn-ink); transform: rotate(180deg); }
body.hpfd .hp-acc .elementor-accordion-item:has(.elementor-active) { box-shadow: var(--hp-shadow); border-color: transparent !important; }
body.hpfd .hp-acc .elementor-tab-content { padding: 4px 22px 22px !important; border: 0 !important; font-size: 16px; line-height: 1.9; color: var(--hp-text); }
body.hpfd .hp-acc .elementor-tab-content p { margin: 0 0 .8em; }

/* القائمة الجانبية */
body.hpfd .hp-aside.e-con { position: sticky; top: 92px; gap: 18px; }
body.admin-bar.hpfd .hp-aside.e-con { top: 124px; }
body.hpfd .hp-side-nav.elementor-widget { background: var(--hp-surface); border-radius: var(--hp-r); padding: 18px; border: 1px solid var(--hp-line); }
body.hpfd .hp-side-title { margin: 0 0 10px !important; font-size: 13px; color: var(--hp-muted); padding-inline: 10px; }
body.hpfd .hp-side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
body.hpfd .hp-side-nav a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--hp-text); text-decoration: none; font-size: 15px; line-height: 1.5; transition: background-color .2s ease, color .2s ease, padding .2s var(--hp-ease); }
body.hpfd .hp-side-nav a:hover { background: var(--hp-card); color: var(--hp-teal); padding-inline-start: 16px; }
body.hpfd .hp-side-nav a[aria-current] { background: var(--hp-btn); color: var(--hp-btn-ink); font-weight: 500; }
body.hpfd .hp-side-cta.e-con { background: var(--hp-deep); border-radius: var(--hp-r); padding: 24px; gap: 10px; position: relative; overflow: hidden; isolation: isolate; }
body.hpfd .hp-side-cta.e-con::after { content: ""; position: absolute; width: 180px; height: 180px; inset-inline-end: -60px; bottom: -70px; background: url(monogram-gold.png) no-repeat center / contain; opacity: .08; z-index: -1; }
body.hpfd .hp-side-cta-title .elementor-heading-title { color: #fff; font-size: 20px; font-weight: 600; }
body.hpfd .hp-side-cta-text.elementor-widget-text-editor { color: #b9cbc8; font-size: 15px; line-height: 1.7; margin-bottom: 6px; }
body.hpfd .hp-side-cta-text p { margin: 0; }
body.hpfd .hp-side-cta .hp-btn .elementor-button { width: 100%; min-height: 48px; }
body.hpfd .hp-btn-ghost .elementor-button { background: transparent; color: #e9efec; border: 1px solid rgba(233, 239, 236, .3); }
body.hpfd .hp-btn-ghost .elementor-button:hover { border-color: var(--hp-gold); color: #fff; }

/* كروت الخدمات */
body.hpfd .hp-svc-grid.e-con { --display: grid; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
body.hpfd a.hp-svc.e-con { background: var(--hp-card); border: 1px solid var(--hp-line); border-radius: var(--hp-r); overflow: hidden; text-decoration: none; transition: transform .35s var(--hp-ease), box-shadow .35s ease, border-color .35s ease, opacity .7s var(--hp-ease); }
body.hpfd a.hp-svc.e-con:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow); border-color: transparent; }
body.hpfd .hp-svc-img { overflow: hidden; }
body.hpfd .hp-svc-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .6s var(--hp-ease); }
body.hpfd .hp-svc:hover .hp-svc-img img { transform: scale(1.05); }
body.hpfd .hp-svc-body.e-con { padding: 20px 22px 24px; gap: 10px; flex: 1; }
body.hpfd .hp-svc-body .hp-ico { margin-top: -46px !important; }
body.hpfd .hp-svc .hp-ico .elementor-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--hp-btn); color: var(--hp-btn-ink); display: grid; place-items: center; font-size: 21px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
body.hpfd .hp-svc .hp-ico .elementor-icon svg { width: 21px; fill: currentColor; }
body.hpfd .hp-svc .hp-ico .elementor-icon-wrapper { text-align: start; line-height: 0; }
body.hpfd .hp-svc .hp-more { margin-top: auto !important; }
body.hpfd .hp-svc:hover .hp-more .elementor-heading-title::after { transform: translateX(-5px); }

/* كروت الفريق */
body.hpfd .hp-team-grid.e-con { --display: grid; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
body.hpfd a.hp-person-card.e-con { background: var(--hp-card); border: 1px solid var(--hp-line); border-radius: var(--hp-r); overflow: hidden; text-decoration: none; transition: transform .35s var(--hp-ease), box-shadow .35s ease, opacity .7s var(--hp-ease); }
body.hpfd a.hp-person-card.e-con:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow); }
body.hpfd .hp-person-img { overflow: hidden; }
body.hpfd .hp-person-img img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 15%; display: block; transition: transform .6s var(--hp-ease); }
body.hpfd .hp-person-card:hover .hp-person-img img { transform: scale(1.04); }
body.hpfd .hp-person-body.e-con { padding: 18px 20px 22px; gap: 6px; }
body.hpfd .hp-person-card:hover .hp-more .elementor-heading-title::after { transform: translateX(-5px); }

/* شعارات العملاء (خلفية بيضا دايمًا عشان الشعارات تبان) */
body.hpfd .hp-logo-grid.e-con { --display: grid; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 48px; }
body.hpfd .hp-logo.e-con { background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-r); padding: 16px 12px 12px; align-items: center; gap: 8px; transition: transform .3s var(--hp-ease), box-shadow .3s ease, opacity .7s var(--hp-ease); }
body.hpfd .hp-logo.e-con:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow); }
body.hpfd .hp-logo-img img { height: 84px; width: 100%; object-fit: contain; display: block; }
body.hpfd .hp-logo-name.elementor-widget-text-editor { font-size: 12.5px !important; line-height: 1.5 !important; color: #3d4c4e !important; text-align: center; }
body.hpfd .hp-logo-name p { margin: 0; }
body.hpfd .hp-alliance-card.e-con { --display: grid; display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; background: var(--hp-surface); border: 1px solid var(--hp-line); border-radius: var(--hp-r-lg); padding: 24px; margin-bottom: 40px; }
body.hpfd .hp-alliance-img img { width: 100%; border-radius: var(--hp-r); background: #fff; display: block; }
body.hpfd .hp-alliance-body.e-con { gap: 8px; }
body.hpfd .hp-eyebrow .elementor-heading-title { font-size: 14px; color: var(--hp-gold); font-weight: 500; }

/* التواصل */
body.hpfd .hp-contact-grid.e-con { --display: grid; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
body.hpfd .hp-contact-side.e-con { gap: 18px; }
body.hpfd .hp-contact-light .hp-contact-list > li { background: var(--hp-surface); color: var(--hp-text); border: 1px solid var(--hp-line); }
body.hpfd .hp-contact-light .hp-contact-list > li > a { color: var(--hp-text); }
body.hpfd .hp-contact-light .hp-contact-list > li:hover { background: var(--hp-teal-soft); }
body.hpfd .hp-contact-light .hp-contact-list small { color: var(--hp-muted); }
body.hpfd .hp-contact-light.elementor-widget-text-editor { color: var(--hp-text); }
.hpfd-map { border-radius: var(--hp-r-lg); overflow: hidden; border: 1px solid var(--hp-line); background: var(--hp-card); }
.hpfd-map iframe { display: block; width: 100%; height: 300px; border: 0; }
html[data-theme="dark"] .hpfd-map iframe { filter: brightness(.82) contrast(1.05); }
.hpfd-map-card { display: grid; gap: 6px; padding: 18px 20px 20px; }
.hpfd-map-card strong { color: var(--hp-ink); font-size: 17px; }
.hpfd-map-card span { color: var(--hp-muted); font-size: 15px; }
.hpfd-map-card .hpfd-btn { margin-top: 10px; justify-self: start; }
.hpfd-map-card .hpfd-btn svg { width: 18px; height: 18px; }

/* النماذج (WPForms) */
body.hpfd .hp-form-card.e-con { background: var(--hp-card); border: 1px solid var(--hp-line); border-radius: var(--hp-r-lg); padding: clamp(20px, 3vw, 32px); margin-top: 12px; box-shadow: var(--hp-shadow); }
body.hpfd .wpforms-container { margin: 0 !important; }
body.hpfd .wpforms-container .wpforms-field { padding: 0 0 18px !important; }
body.hpfd .wpforms-container .wpforms-field-label { font-size: 15px !important; font-weight: 500 !important; color: var(--hp-ink) !important; margin-bottom: 8px !important; }
body.hpfd .wpforms-container input[type=text], body.hpfd .wpforms-container input[type=email], body.hpfd .wpforms-container input[type=tel],
body.hpfd .wpforms-container textarea, body.hpfd .wpforms-container select {
  width: 100% !important; max-width: 100% !important; min-height: 50px; border-radius: 14px !important; border: 1px solid var(--hp-line) !important;
  background: var(--hp-surface) !important; color: var(--hp-text) !important; padding: 12px 16px !important; font-size: 16px !important; box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
body.hpfd .wpforms-container textarea { min-height: 140px; }
body.hpfd .wpforms-container input:focus, body.hpfd .wpforms-container textarea:focus { border-color: var(--hp-teal) !important; box-shadow: 0 0 0 4px var(--hp-teal-soft) !important; background: var(--hp-card) !important; outline: none; }
body.hpfd .wpforms-container .wpforms-submit-container { padding-top: 6px !important; }
body.hpfd .wpforms-container button[type=submit] {
  min-height: 52px; padding: 0 32px !important; border-radius: 999px !important; border: 0 !important; cursor: pointer;
  background: var(--hp-btn) !important; color: var(--hp-btn-ink) !important; font-size: 16px !important; font-weight: 500 !important;
  transition: transform .2s var(--hp-ease), background-color .2s ease;
}
body.hpfd .wpforms-container button[type=submit]:hover { transform: translateY(-2px); background: var(--hp-deep) !important; }
body.hpfd .wpforms-confirmation-container-full { background: var(--hp-teal-soft) !important; border: 0 !important; border-radius: var(--hp-r) !important; color: var(--hp-ink) !important; }

/* المقالات */
.hpfd-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hpfd-post { display: flex; flex-direction: column; background: var(--hp-card); border: 1px solid var(--hp-line); border-radius: var(--hp-r); overflow: hidden; text-decoration: none !important; transition: transform .35s var(--hp-ease), box-shadow .35s ease; }
.hpfd-post:hover { transform: translateY(-5px); box-shadow: var(--hp-shadow); }
.hpfd-post-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.hpfd-post-body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.hpfd-post time { font-size: 13px; color: var(--hp-muted); }
.hpfd-post strong { font-size: 19px; color: var(--hp-ink); line-height: 1.5; }
.hpfd-post-body > span { color: var(--hp-muted); font-size: 15px; line-height: 1.7; }
.hpfd-post em { font-style: normal; color: var(--hp-teal); font-size: 14px; font-weight: 500; }
.hpfd-empty, .hpfd-note { background: var(--hp-surface); border: 1px dashed var(--hp-line); border-radius: var(--hp-r); padding: 22px; color: var(--hp-muted); }
.hpfd-note { border-style: solid; padding: 14px 18px; margin-bottom: 18px; }

/* تابلت وموبايل — الصفحات الداخلية */
@media (max-width: 1080px) {
  body.hpfd .hp-page-hero.has-media .hp-ph-grid.e-con, body.hpfd .hp-pb-grid.e-con, body.hpfd .hp-contact-grid.e-con { grid-template-columns: 1fr; }
  body.hpfd .hp-ph-media.e-con { max-width: 520px; }
  body.hpfd .hp-aside.e-con { position: static; }
  body.hpfd .hp-svc-grid.e-con, body.hpfd .hp-team-grid.e-con { grid-template-columns: repeat(2, 1fr); }
  body.hpfd .hp-logo-grid.e-con { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  body.hpfd .hp-page-hero.e-con { padding: 24px 0 40px; border-radius: 0 0 28px 28px; }
  body.hpfd .hp-ph-lede.elementor-widget-text-editor { font-size: 16.5px; }
  body.hpfd .hp-page-body.e-con { padding: 36px 0 72px; }
  body.hpfd .hp-prose.elementor-widget-text-editor { font-size: 16px; line-height: 1.9; }
  body.hpfd .hp-acc .elementor-tab-title { padding: 15px 16px !important; font-size: 16.5px !important; }
  body.hpfd .hp-acc .elementor-tab-content { padding: 2px 16px 18px !important; font-size: 15.5px; }
  body.hpfd .hp-svc-grid.e-con, body.hpfd .hp-team-grid.e-con, .hpfd-posts { grid-template-columns: 1fr; }
  body.hpfd .hp-logo-grid.e-con { grid-template-columns: repeat(2, 1fr); }
  body.hpfd .hp-alliance-card.e-con { grid-template-columns: 1fr; }
}

/* =========================================================
   تصحيحات فوق CSS الإضافي القديم في الـ Customizer
   (كان بيجبر كل النصوص على اليمين، والثيم بيكبّر أول حرف في كل كلمة)
   ========================================================= */
body.hpfd .e-con > .e-con-inner > .elementor-widget > .elementor-widget-container,
body.hpfd .e-con > .elementor-widget > .elementor-widget-container { text-align: start !important; }
body.hpfd .hp-clients-head > .elementor-widget > .elementor-widget-container { text-align: center !important; }
body.hpfd h1, body.hpfd h2, body.hpfd h3, body.hpfd h4, body.hpfd h5, body.hpfd h6,
body.hpfd .elementor-heading-title, body.hpfd .elementor-button, body.hpfd .elementor-tab-title,
body.hpfd .elementor-tab-title a, body.hpfd .wpforms-submit { text-transform: none !important; }
.hpfd-menu a, .hpfd-btn, .hpfd-tool, .hpfd-brand-text strong { white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 1081px) {
  .hpfd-head-cta { display: none !important; }
  .hpfd-head-row { gap: 16px; }
  .hpfd-menu a { padding-inline: 10px; }
}

/* العنوان الإنجليزي أطول: حجم أصغر شوية */
body.hpfd-en .hp-hero-title .elementor-heading-title { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.2; }
@media (min-width: 1081px) { body.hpfd-en .hp-hero-grid.e-con { grid-template-columns: 1.15fr 1fr; } }

/* =========================================================
   إصلاحات فحص الموبايل
   ========================================================= */
/* Elementor بيأجّل خلفيات الأقسام لحد ما توصلها — التدرج بتاعنا لون مش صورة، فيظهر على طول */
html body.hpfd .hp-cta-box.e-con:not(.x1):not(.x2):not(.x3) { background-image: linear-gradient(135deg, var(--hp-cta-a) 0%, var(--hp-deep) 100%) !important; }
html body.hpfd .hp-page-hero.e-con:not(.x1):not(.x2):not(.x3) { background-image: radial-gradient(1200px 400px at 85% -10%, var(--hp-teal-soft), transparent 60%) !important; }
/* الاقتباس: لونه كان بيتورث من ستايل الثيم */
body.hpfd .hp-home .hp-quote blockquote, body.hpfd .hp-home .hp-quote blockquote p { color: var(--hp-ink) !important; }
/* الأزرار الذهبي: نص غامق دايمًا (في الوضع الليلي كان فاتح على ذهبي) */
body.hpfd .hp-btn-gold .elementor-button, body.hpfd .hp-btn-gold .elementor-button:hover { color: #12292e !important; }
/* زرار القائمة: حجم ثابت ميتضغطش، وأوضح */
.hpfd-burger { flex: none; width: 46px !important; height: 46px; display: none; place-items: center; }
.hpfd-burger span { width: 20px; height: 2.5px; }
@media (max-width: 1080px) { .hpfd-burger { display: grid; align-content: center; } }
/* الهيدر على الشاشات الصغيرة: الاسم هو اللي يصغر، والأزرار حجمها ثابت */
.hpfd-tool, .hpfd-tools, .hpfd-burger { flex: none; }
.hpfd-brand { flex: 0 1 auto; min-width: 0; }
.hpfd-brand-text { min-width: 0; }
.hpfd-brand-text strong { display: block; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
  .hpfd-head-row { gap: 8px; }
  .hpfd-brand { gap: 8px; }
  .hpfd-mark { width: 40px; height: 40px; }
  .hpfd-brand-text strong { font-size: 15px; }
  .hpfd-tools { gap: 4px; }
  .hpfd-burger { width: 44px !important; height: 44px; margin-inline-start: 4px !important; }
  .hpfd-tool { height: 44px; min-width: 44px; padding: 0 8px; }
}
@media (max-width: 340px) { .hpfd-brand-text { display: none; } }
/* رابط "تخطَّ إلى المحتوى" مخفي فوق الشاشة من غير ما يوسّعها */
.hpfd-skip { max-width: calc(100vw - 24px); white-space: nowrap; overflow: hidden; }
/* مساحات لمس مريحة */
.hpfd-nav-call { min-height: 46px; }
body.hpfd .hp-btn-link .elementor-button { min-height: 44px !important; padding-block: 10px !important; }
.hpfd-foot-note a, .hpfd-foot ul a, .hpfd-social a { display: inline-flex; align-items: center; min-height: 40px; }
.hpfd-foot ul { gap: 2px; }
body.hpfd .wpforms-required-label { color: #b42318 !important; }
html[data-theme="dark"] body.hpfd .wpforms-required-label { color: #ff8a80 !important; }
/* الشات */
@media (max-width: 767px) {
  body.hpfd #hpfai-root .hpfai-hbtn { width: 42px; height: 42px; font-size: 18px; }
}
html[data-theme="dark"] #hpfai-root .hpfai-avatar { color: #12292e; }
@media (max-width: 380px) { .hpfd-brand-text strong { font-size: 14px; } .hpfd-tool { padding: 0 6px; min-width: 42px; } .hpfd-head-row { gap: 6px; } }
body.hpfd .hp-contact-list small { color: #c9d8d5; }
/* رابط بوابة المحامين (بيظهر للمحامي اللي داخل بحسابه بس) */
.hpfd-portal-link { position: relative; color: var(--hp-btn) !important; }
html[data-theme="dark"] .hpfd-portal-link { color: var(--hp-gold) !important; }
.hpfd-portal-dot { position: absolute; top: 6px; inset-inline-end: 6px; width: 9px; height: 9px; border-radius: 50%; background: #d92d20; box-shadow: 0 0 0 2px var(--hp-card); }
.hpfd-btn-ghost { background: transparent; border: 1px solid var(--hp-line); color: var(--hp-ink) !important; }
.hpfd-btn-ghost:hover { border-color: var(--hp-gold); }
@media (max-width: 600px) { .hpfd-tools .hpfd-portal-link { display: none; } }
html[data-theme="dark"] body.hpfd a.hp-card-ask.e-con { border: 1px solid rgba(213, 177, 103, .35); }
/* الديسكتوب: اسم المكتب كامل في الهيدر (القص بالنقط للموبايل بس) */
@media (min-width: 1081px) {
  .hpfd-brand { flex: none; }
  .hpfd-nav { flex: 1 1 auto; min-width: 0; }
}
/* صفحة 404 */
body.hpfd.error404 .ast-container, body.hpfd.error404 #primary { background: transparent !important; box-shadow: none !important; }
.hpfd-404 { text-align: center; max-width: 640px; margin: clamp(32px, 8vw, 96px) auto; padding: 0 16px; }
.hpfd-404-mark { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: #17353c; }
.hpfd-404-mark img { width: 46px; height: auto; }
.hpfd-404-code { margin: 18px 0 0; font-size: 15px; letter-spacing: .3em !important; color: var(--hp-gold); font-weight: 600; }
.hpfd-404 h1 { margin: 6px 0 10px; font-size: clamp(28px, 5vw, 40px); color: var(--hp-ink); }
.hpfd-404 > p:not(.hpfd-404-code) { color: var(--hp-muted); font-size: 17px; line-height: 1.8; }
.hpfd-404-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.hpfd-404-actions .hpfd-btn { min-height: 48px; }
@media (max-width: 480px) { .hpfd-404-actions .hpfd-btn { flex: 1 1 100%; } }
/* شريط الأخبار */
.hpfd-news { background: var(--hp-deep); color: #e9efec; font-size: 14px; position: relative; z-index: 5; }
.hpfd-news-row { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.hpfd-news-label { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--hp-gold); font-weight: 600; }
.hpfd-news-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hp-gold); animation: hp-pulse 2s infinite; }
.hpfd-news-track { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hpfd-news-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; width: max-content; animation: hpfd-news 40s linear infinite; }
.hpfd-news-track:hover .hpfd-news-list, .hpfd-news-track:focus-within .hpfd-news-list { animation-play-state: paused; }
.hpfd-news-list li { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.hpfd-news-list time { color: #a9bdba; font-size: 12.5px; }
.hpfd-news-list a, .hpfd-news-list span, .hpfd-news-all { color: #e9efec !important; text-decoration: none !important; }
.hpfd-news-list li + li::before { content: "\25C6"; color: var(--hp-gold); font-size: 9px; margin-inline-end: 26px; opacity: .8; }
.hpfd-news-list a:hover, .hpfd-news-all:hover { color: var(--hp-gold) !important; }
.hpfd-news-all { flex: none; font-size: 13px; border-inline-start: 1px solid rgba(255, 255, 255, .2); padding-inline-start: 14px; }
@keyframes hpfd-news { from { transform: translateX(0); } to { transform: translateX(50%); } }
body.hpfd-en .hpfd-news-list { animation-name: hpfd-news-ltr; }
@keyframes hpfd-news-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hpfd-news-list { animation: none; } .hpfd-news-track { overflow-x: auto; } }
@media (max-width: 600px) { .hpfd-news { font-size: 13.5px; } }

/* جزء المؤسس: مربعين أرقام بس */
body.hpfd .hp-facts.e-con > .hp-fact:last-child { grid-column: auto; }
@media (min-width: 601px) { body.hpfd .hp-facts.e-con { grid-template-columns: 1fr 1fr; } }

/* ================= الأخبار والمقالات واللقاءات الصحفية ================= */
.hpfd-media-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.hpfd-media-tabs button { font: 500 15px/1 var(--hp-font); min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--hp-line); background: var(--hp-card); color: var(--hp-ink); cursor: pointer; transition: background-color .2s, border-color .2s; }
.hpfd-media-tabs button:hover { border-color: var(--hp-gold); }
.hpfd-media-tabs button.is-on { background: var(--hp-btn); color: var(--hp-btn-ink); border-color: transparent; }
.hpfd-post[hidden] { display: none !important; }
.hpfd-post-img { position: relative; }
.hpfd-post-ph { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--hp-deep), var(--hp-teal)); }
.hpfd-post-play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.hpfd-post-play::after { content: ""; position: absolute; inset-inline-start: 21px; top: 16px; border: 11px solid transparent; border-inline-start: 17px solid #fff; border-inline-end: 0; }
.hpfd-post-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.hpfd-post-meta b { color: var(--hp-btn-ink); background: var(--hp-btn); padding: 2px 10px; border-radius: 999px; font-weight: 500; font-size: 12px; }
html[data-theme="dark"] .hpfd-post-meta b { color: #12292e; }

.hpfd-article { padding: clamp(28px, 6vw, 64px) 0 clamp(40px, 8vw, 90px); }
.hpfd-article-head, .hpfd-article-body { max-width: 860px; }
.hpfd-article-back { display: inline-flex; align-items: center; min-height: 40px; color: var(--hp-teal) !important; text-decoration: none !important; font-size: 15px; margin-bottom: 14px; }
.hpfd-article-meta { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; color: var(--hp-muted); font-size: 14px; }
.hpfd-article-meta b { background: var(--hp-gold-soft); color: var(--hp-ink); padding: 3px 12px; border-radius: 999px; font-weight: 500; }
.hpfd-article h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.35; margin: 0 0 26px; color: var(--hp-ink); }
.hpfd-article-cover { margin: 0 0 28px; border-radius: var(--hp-r-lg); overflow: hidden; }
.hpfd-article-cover img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.hpfd-article-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--hp-r-lg); overflow: hidden; margin: 0 0 28px; background: #000; }
.hpfd-article-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hpfd-article-text { font-size: 18px; line-height: 1.95; color: var(--hp-text); }
.hpfd-article-text h2, .hpfd-article-text h3 { color: var(--hp-ink); margin: 1.6em 0 .55em; line-height: 1.5; font-size: clamp(20px, 2.1vw, 24px) !important; font-weight: 800 !important; padding-inline-start: 14px; border-inline-start: 4px solid var(--hp-gold); }
.hpfd-article-text > :first-child { margin-top: 0; }
.hpfd-article-text p { margin: 0 0 1.15em; font-size: inherit !important; font-weight: 400; }
.hpfd-article-text ul, .hpfd-article-text ol { margin: 0 0 1.3em; padding-inline-start: 1.5em; }
.hpfd-article-text li { margin: 0 0 .5em; }
.hpfd-article-text li::marker { color: var(--hp-gold); }
.hpfd-article-text strong { color: var(--hp-ink); font-weight: 700; }
.hpfd-article-text figure { margin: 0 0 1.3em; }
.hpfd-article-text a { color: var(--hp-teal); text-underline-offset: 4px; }
.hpfd-article-text img { max-width: 100%; height: auto; border-radius: 14px; }
.hpfd-article-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 28px 0 0; }
.hpfd-article-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; transition: transform .3s var(--hp-ease); }
.hpfd-article-gallery a:hover img { transform: scale(1.02); }
.hpfd-article-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--hp-line); color: var(--hp-muted); }
.hpfd-article-share a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hp-line); color: var(--hp-ink) !important; text-decoration: none !important; font-size: 14px; }
.hpfd-article-share a:hover { border-color: var(--hp-gold); }
body.hpfd.single-post .site-content > .ast-container { display: block; max-width: none; padding: 0; }
/* ===== الهيدر: مساحة كفاية لكل عناصر القايمة + زرار الحجز + الأدوات (حتى لما زرار البوابة يظهر) ===== */
.hpfd-head .hpfd-wrap { max-width: 1320px; }
@media (min-width: 1081px) {
  .hpfd-head-row { gap: 18px; }
  .hpfd-menu a { padding-inline: 11px; }
  .hpfd-tools { gap: 6px; }
}
@media (max-width: 1320px) and (min-width: 1081px) {
  .hpfd-head-row { gap: 14px; }
  .hpfd-menu a { padding-inline: 9px; }
}
@media (max-width: 1200px) and (min-width: 1081px) {
  .hpfd-menu a { padding-inline: 7px; font-size: 14.5px !important; }
  .hpfd-brand-text span { display: none; }
}

/* السيرة الذاتية للمؤسس / كلمة المؤسس */
body.hpfd .hp-prose .hp-sign { margin-top: 1.8em; padding-top: 1em; border-top: 1px solid var(--hp-line); line-height: 1.8; }
body.hpfd .hp-prose .hp-sign strong { color: var(--hp-ink); font-size: 1.1em; }
body.hpfd .hp-founder-text .hp-actions.e-con { --flex-direction: row; flex-direction: row; flex-wrap: wrap; gap: 6px 22px; margin-top: 8px; }
body.hpfd .hp-prose ul li::marker { color: var(--hp-gold); }

/* عملاؤنا وشركاؤنا: الكروت + نافذة تفاصيل التعاون */
.hpfd-clients { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.hpfd-client { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px 12px; background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-r); font: inherit; color: #3d4c4e; text-align: center; transition: transform .3s var(--hp-ease), box-shadow .3s ease, border-color .2s ease; }
button.hpfd-client { cursor: pointer; }
.hpfd-client:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow); }
button.hpfd-client:hover, button.hpfd-client:focus-visible { border-color: var(--hp-gold); }
button.hpfd-client:focus-visible { outline: 3px solid var(--hp-gold); outline-offset: 2px; }
.hpfd-client-img { display: grid; place-items: center; width: 100%; height: 84px; }
.hpfd-client-img img { max-height: 84px; width: 100%; height: 84px; object-fit: contain; display: block; }
.hpfd-client-ph { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #17353c; color: #c9a35a; font-weight: 700; font-size: 22px; }
.hpfd-client-name { font-size: 12.5px; line-height: 1.5; }
.hpfd-client-more { margin-top: auto; font-size: 12px; font-weight: 600; color: #8a6a2c; display: inline-flex; align-items: center; gap: 6px; }
.hpfd-client-more::after { content: "+"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #c9a35a; color: #17353c; font-size: 14px; line-height: 1; }
.hpfd-client-dlg { width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 760px); padding: 0; border: 0; border-radius: 20px; background: var(--hp-card, #fff); color: var(--hp-text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); overflow: hidden; }
.hpfd-client-dlg[open] { display: flex; flex-direction: column; }
.hpfd-client-dlg::backdrop { background: rgba(10, 25, 28, .62); backdrop-filter: blur(3px); }
.hpfd-dlg-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hp-line); background: var(--hp-card, #fff); color: var(--hp-ink); font-size: 22px; line-height: 1; cursor: pointer; z-index: 1; }
.hpfd-dlg-body { overflow-y: auto; padding: 26px 28px 8px; }
.hpfd-dlg-head { display: flex; align-items: center; gap: 16px; padding-inline-end: 44px; margin-bottom: 16px; }
.hpfd-dlg-head .hpfd-client-img { width: 96px; height: 72px; flex: none; background: #fff; border: 1px solid var(--hp-line); border-radius: 12px; padding: 6px; }
.hpfd-dlg-head .hpfd-client-img img { height: 58px; max-height: 58px; }
.hpfd-dlg-head h2 { margin: 0; font-size: 20px; color: var(--hp-ink); line-height: 1.4; }
.hpfd-dlg-text { font-size: 16px; line-height: 1.9; }
.hpfd-dlg-text p { margin: 0 0 .9em; }
.hpfd-dlg-foot { margin: 0; padding: 14px 28px 22px; border-top: 1px solid var(--hp-line); }
.hpfd-dlg-cta { display: inline-flex; padding: 10px 22px; border-radius: 999px; background: #c9a35a; color: #17353c !important; font-weight: 600; text-decoration: none; }
@media (max-width: 1024px) { .hpfd-clients { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .hpfd-clients { grid-template-columns: repeat(2, 1fr); } .hpfd-dlg-body { padding: 22px 18px 6px; } .hpfd-dlg-foot { padding: 12px 18px 18px; } }
@media (prefers-reduced-motion: reduce) { .hpfd-client { transition: none; } .hpfd-client:hover { transform: none; } }

/* الأسئلة الشائعة في آخر صفحات الخدمات */
body.hpfd .hpfd-faq { padding: clamp(40px, 6vw, 72px) var(--hp-gutter); background: var(--hp-surface); border-top: 1px solid var(--hp-line); }
body.hpfd .hpfd-faq-wrap { max-width: 880px; margin: 0 auto; }
body.hpfd .hpfd-faq-eyebrow { margin: 0 0 6px; color: var(--hp-gold); font-weight: 600; font-size: 14px; letter-spacing: .4px; }
body.hpfd .hpfd-faq h2 { margin: 0 0 22px; color: var(--hp-ink); font-size: clamp(24px, 3vw, 32px); line-height: 1.4; font-family: var(--hp-font); }
body.hpfd .hpfd-faq-list { display: grid; gap: 12px; }
body.hpfd .hpfd-faq-item { background: var(--hp-card); border: 1px solid var(--hp-line); border-radius: var(--hp-r); transition: box-shadow .25s ease, border-color .25s ease; }
body.hpfd .hpfd-faq-item[open] { border-color: var(--hp-gold); box-shadow: var(--hp-shadow); }
body.hpfd .hpfd-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; min-height: 56px; font-weight: 600; font-size: 16.5px; color: var(--hp-ink); line-height: 1.6; }
body.hpfd .hpfd-faq-item summary::-webkit-details-marker { display: none; }
body.hpfd .hpfd-faq-item summary:focus-visible { outline: 3px solid var(--hp-gold); outline-offset: 2px; border-radius: var(--hp-r); }
body.hpfd .hpfd-faq-item summary i { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--hp-teal-soft); }
body.hpfd .hpfd-faq-item summary i::before, body.hpfd .hpfd-faq-item summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--hp-teal); border-radius: 2px; transition: transform .25s var(--hp-ease); }
body.hpfd .hpfd-faq-item summary i::after { transform: rotate(90deg); }
body.hpfd .hpfd-faq-item[open] summary i::after { transform: rotate(0); }
body.hpfd .hpfd-faq-a { padding: 0 22px 20px; color: var(--hp-muted); font-size: 16px; line-height: 1.95; }
body.hpfd .hpfd-faq-a p { margin: 0; }
body.hpfd .hpfd-faq-more { margin: 22px 0 6px; font-size: 16px; color: var(--hp-text); }
body.hpfd .hpfd-faq-more a { color: var(--hp-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
body.hpfd .hpfd-faq-note { margin: 0; font-size: 13.5px; color: var(--hp-muted); }
