
:root{
  --brand-teal:#0097A7;
  --brand-teal-dark:#007B87;
  --brand-orange:#F7941D;
  --brand-orange-dark:#E8851A;
  --text:#333333;
  --border:#e7edf2;
  --shadow:0 10px 25px -10px rgba(0,0,0,.15);
  --hdr-border:#e7edf0;
  --hdr-text:#0f172a;
  --hdr-accent:#3b8893;   /* matches your palette */
  /* غيّر القيمة إن رغبت (1140px / 1200px / 1280px) */
  --container-max: 1200px;
  --container-pad: 16px;
  --header-bg: rgba(255,255,255,0.75); /* شفافية الخلفية */
  --header-blur: 10px;                  /* درجة الضباب */
  --header-border: rgba(15,23,42,0.06); /* حد سفلي رقيق */
  --font-ar: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI",
             "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --lh-ar: 1.55;
  --font-en: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html[lang="ar"], [dir="rtl"] {
  font-family: var(--font-ar);
  line-height: var(--lh-ar);
}

html[lang="en"], [dir="ltr"] {
  font-family: var(--font-en);
}

.container{ max-width:1280px; margin:0 auto; padding:0 20px; }
.muted{ color:#666; }
.small{ font-size:.95rem; }
.last-updated{ margin-top:8px; color:#666; font-size:.9rem; }
.hidden{ display:none !important; }
.is-visible{ display:grid !important; }

.banner{ background:rgba(0,151,167,.08); border-bottom:1px solid var(--border); padding:8px 0; text-align:center; font-weight:600; color:#0b7285; }

/* Sections */
.section{ padding: 80px 0; }
.section-title{ font-weight:800; text-align:center; margin:0 0 24px; }
.section-accent{ width:96px; height:4px; background:var(--brand-orange); margin:0 auto 28px; border-radius:999px; }

/* Cards and grids */
.card{ background:#fff; border:1px solid var(--border); border-radius:18px; padding:24px; box-shadow:var(--shadow); }
.grid{ display:grid; gap:28px; }
.grid-2{ grid-template-columns: 1fr; }
.grid-3{ grid-template-columns: 1fr; }
.grid-4{ grid-template-columns: 1fr; }
@media (min-width:768px){ .grid-2{ grid-template-columns: 1fr 1fr; } }
@media (min-width:1024px){ .grid-3{ grid-template-columns: repeat(3, 1fr); } .grid-4{ grid-template-columns: repeat(4, 1fr); } }

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 20px; border-radius:12px; font-weight:700; text-decoration:none;
  transition: filter .2s, transform .15s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover{ transform: translateY(-2px); }
.btn-grad{ background-image: linear-gradient(135deg, var(--brand-teal) 0%, #3C8C7C 35%, #6FA07B 60%, var(--brand-orange) 100%); color:#fff; border:0; }
.btn-grad:hover{ filter: brightness(0.97); }
.btn-outline-teal{ border:2px solid var(--brand-teal); color:var(--brand-teal); }
.btn-outline-teal:hover{ background:var(--brand-teal); color:#fff; }

/* Hero */
.hero{ background: #f9fafb url("../assets/hero-placeholder.webp") center/cover no-repeat; }
.hero-wrap{ display:grid; grid-template-columns: 1fr; gap:32px; align-items:center; min-height:60vh; position:relative; }
@media (min-width:1024px){ .hero-wrap{ grid-template-columns: 1.2fr .8fr; } }

/* Gradient ring */
.hero-visual{
  position:relative; width:320px; height:320px; border-radius:999px;
  background-image: conic-gradient(from 120deg, #3C8C7C, #6FA07B, #B8933B, #E0A33A, #3C8C7C);
  margin: 0 auto;
  display:grid; place-items:center; box-shadow:0 25px 50px -12px rgba(0,0,0,.25); position:relative; }
.hero-visual-inner{ width:280px; height:280px; border-radius:999px; background:#fff; display:grid; place-items:center; box-shadow:var(--shadow); }

/* Floating icons */
@keyframes floatY { 0% { transform: translateY(0); } 50% { transform: translateY(-10px);} 100% { transform: translateY(0); } }
.float-icon{ position:absolute; width:64px; height:64px; border-radius:999px; display:grid; place-items:center;
  box-shadow: 0 10px 25px -10px rgba(0,0,0,.25); animation: floatY 4s ease-in-out infinite; z-index:1; }
.float-icon--book{ left:-22px; top:-22px; background: var(--brand-orange); }
.float-icon--trend{ right:-22px; bottom:-22px; background: var(--brand-teal); animation-delay: 1s; }
.float-icon svg{ width:28px; height:28px; color:#fff; }

/* Roadmap */
.roadmap{ display:grid; gap:18px; }
.roadmap-item{ display:flex; align-items:center; gap:14px; }
.dot{ width:12px; height:12px; border-radius:999px; background:var(--brand-teal); }

/* Contact */
.contact-grid{ display:grid; grid-template-columns:1fr; gap:28px; }
@media (min-width:1024px){ .contact-grid{ grid-template-columns:1.3fr .7fr; } }
.contact-form label{ display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.contact-form input, .contact-form textarea, .contact-form select{
  display:block; width:100%; box-sizing:border-box; padding:14px;
  border:1px solid var(--border); border-radius:12px; background:#fff; color:#111;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus{
  outline:none; border-color:var(--brand-teal);
  box-shadow:0 0 0 3px rgba(0,151,167,.12);
}
.form-actions{ display:flex; gap:12px; align-items:center; }
.form-note{ margin:6px 0 0; color:#666; font-size:.95rem; }
.hp{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

/* Footer (legacy richer) */
.footer-legacy{ background:#f8f7f5; border-top:1px solid var(--border); padding:32px 0 28px; text-align:center; }
.footer-legacy .links{ display:flex; justify-content:center; gap:18px; flex-wrap:wrap; margin-bottom:12px; }
.footer-legacy .links a{ color:#333; text-decoration:none; font-weight:600; }
.footer-legacy .links a:hover{ color:var(--brand-teal); }
.footer-legacy .social{ display:flex; justify-content:center; gap:18px; margin:10px 0 14px; }
.footer-legacy .social a{ display:grid; place-items:center; width:40px; height:40px; border-radius:999px; background:#fff; border:1px solid var(--border); box-shadow:var(--shadow); color:#666; }
.footer-legacy .social a:hover{ color:var(--brand-teal); border-color:var(--brand-teal); }
.footer-legacy .small{ color:#666; font-size:.95rem; }


/* Mobile hamburger placement
header.site-header .container{ position: relative; } */

/* حارس صارم: لا تظهر أي float-icon إلا داخل .hero-visual */
.float-icon{ display:none !important; }
.hero-visual .float-icon{ display:grid !important; }
/* (اختياري) إن وُجدت أيقونة عائمة مثبتة على الشاشة */
.float-icon[style*="position: fixed"]{ display:none !important; }

/* Contact card */
.contact-card{
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 28px;
}
@media (min-width: 768px){
  .contact-card{ padding: 36px; }
}
.form-row{ display: grid; gap: 16px; }
@media (min-width: 768px){
  .form-row{ grid-template-columns: 1fr 1fr; }
  .form-row:nth-of-type(n+2){ grid-template-columns: 1fr; } /* السطر الثاني والثالث بعرض كامل */
}
.form-field{ display: grid; gap: 8px; }
.form-field label{ font-weight: 700; color: #1f2937; }
.form-field .req{ color: #e76f51; }

/* Inputs */
.contact-card input,
.contact-card select,
.contact-card textarea{
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.contact-card textarea{ resize: vertical; }
.contact-card input::placeholder,
.contact-card textarea::placeholder{ color: #9ca3af; }
.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus{
  border-color: #2a8c96;
  box-shadow: 0 0 0 3px rgba(42, 140, 150, .15);
}

/* Gradient button */
.btn-gradient{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  padding: 16px 20px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #2a8c96 0%, #c89a2b 100%);
  box-shadow: 0 8px 18px rgba(42, 140, 150, .25);
  transition: transform .06s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-gradient:hover{ box-shadow: 0 10px 22px rgba(42, 140, 150, .3); }
.btn-gradient:active{ transform: translateY(1px); opacity: .95; }
.btn-gradient.btn-lg{ margin-top: 14px; }

/* Note */
.recaptcha-note{
  margin: 8px 0 6px;
  color: #6b7280;
  font-size: .95rem;
}
/* Contact grid layout */
.contact-grid{
  display: grid;
  gap: 24px;
}
@media (min-width: 992px){
  .contact-grid{
    grid-template-columns: 1fr 1fr; /* الفورم يسار، العنوان/التواصل يمين */
    align-items: start;
  }
}
/* المسافة بين الفورم والبطاقة اليمنى */
.contact-grid { gap: 24px; }
@media (min-width: 992px){
  .contact-grid{
    grid-template-columns: 1fr 1fr;
    column-gap: 40px; /* زِدها/قلّلها عند الحاجة */
    align-items: start;
  }
}

/* بطاقة معلومات التواصل مع أيقونات */
.contact-info.card{ padding: 28px; border-radius: 18px; }

.ci-note{ margin: 4px 0 14px; color:#475569; }

.ci-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ci-item{ display: flex; gap: 16px; align-items: flex-start; }

.ci-ico{
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2a8c96 0%, #c89a2b 100%);
  box-shadow: 0 8px 18px rgba(42,140,150,.18);
}

.ci-label{ font-weight: 800; font-size: 20px; color:#1f2937; margin: 0; }
.ci-value{ color:#334155; line-height: 1.6; }
.ci-value a{ color: inherit; text-decoration: none; }
.ci-value a:hover{ text-decoration: underline; }

/* مسافة أكبر بين العمودين */
@media (min-width: 992px){
  .contact-grid{ column-gap: 48px; } /* كانت 40px؛ زدناها قليلاً */
}

/* حقول بإيقونة داخلية */
.input-icon{ position: relative; }
.input-icon .ifi-icon{
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg,#2a8c96 0%, #c89a2b 100%);
  box-shadow: 0 8px 18px rgba(42,140,150,.18);
  pointer-events: none;
}

/* مساحة داخلية لتجنب تراكب الأيقونة */
.input-icon input,
.input-icon select,
.input-icon textarea{ padding-left: 64px; }

/* تخصيص للأيقونة مع الـ textarea */
.input-icon.textarea .ifi-icon{
  top: 18px; transform: none; /* تثبيت الإيقونة أعلى اليسار */
}

/* تحسين سهم الـ select مع الأيقونة اليسار */
.contact-card select{
  /* appearance: none; */
  background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%),
                    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position: right 16px top 50%, right 12px top 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* === Canonical Header + Mobile Nav + Backdrop (unified) === */

/* keep desktop nav centered */
.site-header .bar{ display:flex; align-items:center; gap:16px; }
.site-brand{ flex:0 0 auto; display:inline-flex; align-items:center; gap:10px; text-decoration:none; color:#0f172a; font-weight:800; }
.site-nav{ flex:1 1 auto; display:flex; justify-content:center; }
.site-nav .nav-row{ display:flex; gap:22px; margin:0; padding:0; list-style:none; }
.lang-switch{ flex:0 0 auto; display:flex; align-items:center; gap:10px; }
.lang-switch .lang-pill{ border:1px solid var(--border,#e5e7eb); border-radius:10px; padding:6px 12px; text-decoration:none; font-weight:700; color:#0f172a; }
.lang-switch .lang-pill.is-active{ background:#0f172a; color:#fff; border-color:#0f172a; }

/* hamburger */
.site-header .nav-toggle{
  display:none;
  inline-size:44px; block-size:44px;
  border-radius:10px; border:1px solid var(--border,#e5e7eb);
  background:#fff; color:#0f172a; cursor:pointer; place-items:center;
}
.site-header .nav-toggle .bars,
.site-header .nav-toggle .bars::before,
.site-header .nav-toggle .bars::after{
  content:""; display:block; inline-size:20px; block-size:2px;
  background:currentColor; border-radius:2px; position:relative;
}
.site-header .nav-toggle .bars::before{ top:-6px; }
.site-header .nav-toggle .bars::after { top: 4px; }

/* mobile drawer */
@media (max-width:900px){
  .site-header .nav-toggle{ display:grid; margin-inline-start:auto; }
  .site-nav{ display:none; } /* hide desktop row */

  .site-header.open .site-nav{
    display:block !important;
    position:fixed; inset:64px 0 0 0;
    background:#fff; border-top:1px solid var(--border,#e5e7eb);
    box-shadow:0 16px 40px rgba(0,0,0,.08);
    padding:12px 16px; z-index:55;
  }
  .site-header.open .site-nav .nav-row{
    display:grid; gap:14px; text-align:center;
  }
  [dir="rtl"] .site-header.open .site-nav .nav-row{ text-align:center; }
}

/* Mobile tweaks for contact form icons */
@media (max-width: 576px){
  /* حجم الأيقونة داخل الحقول */
  .input-icon .ifi-icon{
    width: 28px;
    height: 28px;
    border-radius: 8px;
    left: 10px;                /* أقرب قليلاً للحافة */
  }

  /* حشو يسار الحقول ليتسع للأيقونة الأصغر */
  .input-icon input,
  .input-icon select,
  .input-icon textarea{
    padding-left: 48px;        /* كان 64px */
  }

  /* موضع أيقونة الرسالة أعلى الصندوق */
  .input-icon.textarea .ifi-icon{
    top: 12px;
    transform: none;
  }

  /* مسافات أكثر إحكامًا في التخطيط العمودي */
  .contact-grid{ gap: 18px; }
}
/* شبكة الحقول داخل بطاقة الاتصال */
.contact-card .form-grid{
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;          /* موبايل: عمود واحد */
}

/* ديسكتوب: عمودان، والـ Subject + Message يمتدان بعرض كامل */
@media (min-width: 992px){
  .contact-card .form-grid{
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 16px;
  }
  .form-grid .field-name   { grid-column: 1; }
  .form-grid .field-email  { grid-column: 2; }
  .form-grid .field-subject{ grid-column: 1 / -1; }  /* عرض كامل */
  .form-grid .field-message{ grid-column: 1 / -1; }  /* عرض كامل */
}

/* الأيقونة داخل textarea أعلى اليسار */
.input-icon.textarea .ifi-icon{
  top: 14px; transform: none;
}
/* —— Fix: keep inputs inside the card/grid —— */

/* 1) اجعل العناصر داخل خلايا الـ grid قابلة للانكماش */
.contact-card .form-grid > .form-field,
.contact-card .form-grid .input-icon { min-width: 0; }

/* 2) اجعل الحقول تحسب الـ padding ضمن العرض */
.contact-card input,
.contact-card select,
.contact-card textarea {
  box-sizing: border-box;   /* مهم لمنع الزيادة عن 100% */
  width: 100%;
}

/* 3) للتأكيد: أي textarea داخل حاوية الأيقونة يملأ الخلية بدون تمدد */
.input-icon textarea { width: 100%; }

/* === Form UX upgrades === */
.input-invalid{
  border-color:#ef4444 !important; /* red-500 */
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15) !important;
}
.form-status{
  margin-top: 10px;
  font-size: .95rem;
  color:#475569;
  min-height: 1.2em;
}

button.btn-gradient .btn-spinner{
  margin-right:10px;
  width:18px; height:18px; display:none;
}
button.btn-gradient.loading .btn-spinner{ display:inline-block; }
.btn-rotate{ animation: btnspin 1s linear infinite; transform-origin: 50% 50%; }
@keyframes btnspin{ to{ transform: rotate(360deg); } }

/* focus visible improve */
.contact-card input:focus-visible,
.contact-card select:focus-visible,
.contact-card textarea:focus-visible{
  outline:none;
  border-color:#2a8c96;
  box-shadow: 0 0 0 3px rgba(42,140,150,.18);
}


/* === Customizable form palette === */
.contact-card{
  --err-border: #ef6b57;       /* error border/accent */
  --success-bg: #edf8f6;       /* success background */
  --success-text: #11665a;     /* success text */
}

/* Use the variables */
.field-error{
  color: var(--err-color);
}
.input-invalid{
  border-color: var(--err-border) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--err-border) 20%, transparent) !important;
}
.form-success{
  background: var(--success-bg);
  color: var(--success-text);
}

/* ===== Footer ===== */
.footer-ar { padding: 36px 16px 44px; text-align: center; color: #2b2f33; }
.footer-ar .footer-inner { max-width: 960px; margin-inline: auto; }

.footer-ar .social-list {
  list-style: none; display: flex; gap: 16px; justify-content: center;
  margin: 0 0 14px; padding: 0;
}
.footer-ar .social-circle {
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  color: #2b2f33;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.footer-ar .social-list a { text-decoration: none; }

.footer-ar .policy-list {
  list-style: none; display: flex; gap: 28px; justify-content: center;
  margin: 8px 0 14px; padding: 0;
}
.footer-ar .policy-list a {
  color: #2b2f33; font-weight: 700; text-decoration: none;
}
.footer-ar .policy-list a:hover { text-decoration: underline; }

.footer-ar .copyright { margin: 10px 0 6px; color: #666; }
.footer-ar .updated   { margin: 0; color: #888; }

/* Drawer (mobile) */
.en-drawer[hidden]{ display:none }
.en-drawer{ position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:60; }
.en-drawer__panel{
  position:absolute; inset:0 auto 0 0; width:min(86vw,420px);
  background:var(--en-bg); box-shadow:var(--en-shadow); display:flex; flex-direction:column; padding:20px;
}
.en-drawer__close{ align-self:flex-end; font-size:28px; width:40px; height:40px; border:0; background:transparent; }
.en-drawer__list{ list-style:none; margin:0; padding:0; }
.en-drawer__list li{ border-bottom:1px solid var(--en-border); }
.en-drawer__list a{ display:block; padding:18px 6px; text-decoration:none; color:var(--en-fg); font-weight:600; }
.en-drawer__lang{ display:flex; gap:.5rem; padding-top:12px; }

/* Breakpoint */
@media (max-width:980px){
  .en-burger{ display:block }
  .en-menu{ display:none }
}

/* === Header base (works for EN & AR) === */

.site-header { var(--hdr-border); top:0; }
.site-header .container { max-width:1200px; margin:0 auto; padding:12px 16px; }
.site-header .bar { display:flex; align-items:center; justify-content:space-between; gap:16px; }

/* brand */
.site-brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--hdr-text); font-weight:700; }
.site-brand img { width:100px; height:50px; }

/* nav */
.site-nav { display:flex; align-items:center; gap:24px; }
.site-nav ul { list-style:none; display:flex; gap:20px; margin:0; padding:0; }
.site-nav a { text-decoration:none; color:var(--hdr-text); font-weight:600; }
.site-nav a:hover { text-decoration:underline; }

/* language pills (match Arabic look) */
.lang-switch { display:flex; align-items:center; gap:10px; }
.lang-pill {
  border:1px solid var(--hdr-accent);
  color:var(--hdr-accent);
  padding:.35rem .6rem;
  border-radius:.55rem;
  font-weight:700;
  text-decoration:none;
}
.lang-pill.is-active {
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}

/* burger + drawer */
.burger { display:none; background:none; border:0; width:40px; height:40px; border-radius:10px; }
.burger svg { width:24px; height:24px; }
@media (max-width: 900px) {
  .burger { display:block; }
  .site-nav { display:none; }
}

/* notice bar at very top */
.notice-bar{
  background:#eef6f8;
  color:#1f3a44;
  padding:10px 14px;
  text-align:center;
  font-size:14px;
}


.pill { border:1px solid #7aa6af; color:#ffffff; padding:6px 10px; border-radius:8px; text-decoration:none; font-weight:600; }
.pill.active, .lang .pill[data-lang-switch="ar"].active { background:#0f172a; color:#fff; }

/* --- LTR fixes for input icons & padding --- */
html[dir="ltr"] .input-icon .ifi-icon{
  left: 12px;
  right: auto;
}

html[dir="ltr"] .input-icon input,
html[dir="ltr"] .input-icon select,
html[dir="ltr"] .input-icon textarea{
  padding-left: 58px;   /* مساحة للأيقونة */
  padding-right: 14px;
}

/* منع أي بروز خارج الحواف المدوّرة (احترازي) */
.partner-form{ 
  overflow: hidden;            /* أو overflow: clip; */
  border-radius: 18px;
}

/* ضمان عدم تجاوز العناصر لعرض الشبكة */
.partner-form .contact-grid > *{ min-width: 0; }
.partner-form .input,
.partner-form select,
.partner-form textarea{
  width: 100%;
  box-sizing: border-box;
  display: block;
}

/* ===== Header – Mobile polish ===== */
.site-header { position: relative; z-index: 50; }
.header-wrap { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 16px; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand-icon { width:100px; height:50px; object-fit:contain; }
.brand-text { font-weight:800; color:#0f172a; }

/* desktop nav */
.desk-nav { display:flex; gap:24px; align-items:center; }
.desk-nav .nav-link { color:#0f172a; text-decoration:none; font-weight:600; }
.desk-nav .nav-link:hover { opacity:.75; }

/* language pills (desktop) */
.lang-switch { display:flex; align-items:center; gap:10px; }
.lang-switch .lang-btn { display:inline-flex; align-items:center; justify-content:center; min-width:44px; height:36px; padding:0 12px; border-radius:12px; border:1px solid #cbd5e1; color:#0f172a; text-decoration:none; font-weight:700; }
.lang-switch .lang-btn.active { background:#0b1324; color:#fff; border-color:#0b1324; }
.lang-switch .lang-sep { color:#64748b; }

/* hamburger */
.mobile-toggle { display:none; width:38px; height:38px; border-radius:12px; border:1px solid #e5e7eb; background:#fff; }
.mobile-toggle .bar { display:block; width:20px; height:2px; background:#0b1324; margin:5px auto; border-radius:2px; }

/* sheet + backdrop */
.mobile-backdrop { position:fixed; inset:0; background:rgba(15,23,42,.28); backdrop-filter:saturate(1.2) blur(2px); }
.mobile-sheet { position:fixed; inset-inline:0; top:0; transform:translateY(-8%); opacity:0; pointer-events:none; transition:.2s ease; }
.mobile-sheet.open { transform:translateY(0); opacity:1; pointer-events:auto; }
.sheet-inner { margin:12px auto; max-width:680px; background:#fff; border-radius:18px; padding:18px; box-shadow:0 15px 45px rgba(2,6,23,.18); }
.sheet-close { position:absolute; inset-inline-end:18px; top:14px; width:36px; height:36px; border-radius:10px; border:1px solid #e5e7eb; background:#fff; font-size:22px; line-height:1; color:#0b1324; }

/* mobile nav links */
.mobile-nav { padding:14px 6px 6px; }
.mobile-nav .m-link{
  display:block; padding:14px 16px; border-radius:12px; background:#f8fafc;
  color:#0f172a; text-decoration:none; font-weight:700; margin:8px 0;
  border:1px solid #e5e7eb; transition:background .2s, transform .08s;
}
.mobile-nav .m-link:hover{ background:linear-gradient(90deg,#eef2ff,#f1f5f9); transform:translateY(-1px); }

/* language row inside sheet */
.lang-row{ display:flex; align-items:center; gap:10px; margin-top:8px; }
.lang-row .lang-pill{ display:inline-flex; align-items:center; justify-content:center; min-width:48px; height:38px; padding:0 14px; border-radius:12px; border:1px solid #cbd5e1; color:#0f172a; text-decoration:none; font-weight:800; }
.lang-row .lang-pill.active{ background:#0b1324; color:#fff; border-color:#0b1324; }

/* alignment for RTL/LTR in the sheet */
[dir="rtl"] .lang-row{ justify-content:flex-end; }
[dir="ltr"] .lang-row{ justify-content:flex-start; }
[dir="rtl"] .mobile-nav { text-align:right; }

/* hide desktop lang switch on small screens & show hamburger */
@media (max-width: 940px){
  .desk-nav{ display:none; }
  .lang-switch.desk{ display:none; }
  .mobile-toggle{ display:inline-grid; place-items:center; }
}

/* avoid body scroll when sheet is open */
.no-scroll{ overflow:hidden; }

/* ===== Desktop container width for header (and optional notice) ===== */
/* وسّط الهيدر وقيّده داخل حاوية */
.site-header .header-wrap{
  max-width: var(--container-max);
  padding-inline: var(--container-pad);
  margin-inline: auto;
}

/* إن كان لديك شريط تنبيه علوي (notice) وأردته بنفس الحاوية */
.notice-bar, .notice-inner{
  max-width: var(--container-max);
  padding-inline: var(--container-pad);
  margin-inline: auto;
}

/* ترتيب عناصر الهيدر على الديسكتوب يبقى متزن */
@media (min-width: 940px){
  .site-header .header-wrap{
    display: grid;
    grid-template-columns: auto 1fr auto; /* شعار | روابط | لغة */
    align-items: center;
    gap: 16px;
  }
  .site-header .desk-nav{
    justify-content: center; /* يجعل الروابط في الوسط */
  }
}

/* ===== Header Glass Background (recommended) ===== */

.site-header{
  border-bottom: 1px solid var(--header-border);
}

/* عندما يتم التمرير نُصلّب الخلفية قليلًا (اختياري) */
.site-header.is-scrolled{
  background: rgba(255,255,255,0.95);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* بديل “لون صلب” بدل الزجاج إن رغبت (فعّل هذا السطر وألغِ الزجاج):
 */
.site-header{background:linear-gradient(180deg,#f4f8f9 0%,#eef2ef 100%);border-top:1px solid #e6eaee;color:#0f172a}
.site-header.is-scrolled{ background:#ffffff; }


/* تباين الروابط على الخلفية الجديدة */
.site-header .nav-link{
  color:#0f172a;
  border-radius:10px;
  padding:8px 12px;
  transition: background-color .2s ease, color .2s ease;
}
.site-header .nav-link:hover{
  background: rgba(15,23,42,0.06);
}

/* اللّغة (Pills) تبقى كما هي */
.lang-switch .pill.active{ background:#0f172a; color:#fff; }
.lang-switch .pill:not(.active){ background:#fff; color:#0f172a; border:1px solid #e5e7eb; }

.notice-banner{
  background: #f9fafb;
  color:#1f3a44;
  text-align:center;
  padding:8px 12px;
  font-weight:600;
  font-size:14px;
  border-bottom:1px solid #e5e7eb;
}

/* === Footer tweaks: center + bigger links + remove underline === */
.ft .ft-meta{
  text-align: center;         /* توسيط النصوص (العنوان/العنوان/الحقوق) */
  justify-items: center;      /* توسيط عناصر شبكة ft-meta أفقياً */
}

.ft .ft-links{
  display: flex;              /* تأكيد استخدام flex بدل inline-flex للتمركز */
  flex-wrap: wrap;
  justify-content: center;    /* توسيط روابط السياسة */
  gap: 20px;                  /* مسافة أجمل بين الروابط */
}

.ft .ft-links a{
  text-decoration: none;      /* إزالة التسطير */
  font-size: 16px;            /* تكبير بسيط */
  font-weight: 600;           /* وضوح أكثر للروابط */
  padding: 8px 12px;          /* مساحة لمس أفضل */
  border-radius: 12px;        /* نعومة الخلفية عند الـ hover */
}

.ft .ft-links a:hover{
  background: #e9eef2;        /* نفس تأثير الهوفر السابق بدون خط سفلي */
}

/* صفحات السياسات */
.policy, .policy * {
  font-family: var(--font-ar) !important;
}

.policy p,
.policy li {
  line-height: var(--lh-ar) !important;
  margin: .5rem 0;
}

/* عناوين منظمة */
.policy h1 { line-height: 1.2;  margin: 1.25rem 0 .75rem; font-weight: 700; }
.policy h2 { line-height: 1.25; margin: 1rem 0 .5rem;  font-weight: 700; }
.policy h3 { line-height: 1.3;  margin: .85rem 0 .4rem; font-weight: 600; }

/* لو كان فيه كلاس مختلف للجسم كامل صفحة السياسة (مثلاً .doc أو .article) انسخه هنا بنفس المعاملة */

html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 {
  font-weight: 700;
  font-family: "IBM Plex Sans Arabic", var(--font-ar, sans-serif);
}

/* سياسة الخصوصية / الشروط (عربي) — ضبط الخط والمسافات */
html[lang="ar"] .policy-wrap,
[dir="rtl"] .policy-wrap {
  font-family: "IBM Plex Sans Arabic", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
}

/* تقليل المسافة بين السطور للفقرات والبنود والقوائم */
html[lang="ar"] .policy-wrap p,
html[lang="ar"] .policy-wrap li,
[dir="rtl"] .policy-wrap p,
[dir="rtl"] .policy-wrap li {
  line-height: 1.55;     /* جرّب 1.5 - 1.6 حسب ذوقك */
  letter-spacing: 0;
  word-spacing: 0;
  font-weight: 400;
}

/* عناوين أكثر إحكامًا */
html[lang="ar"] .policy-wrap h1,
[dir="rtl"] .policy-wrap h1 {
  font-weight: 700;
  line-height: 1.25;
}
html[lang="ar"] .policy-wrap h2,
[dir="rtl"] .policy-wrap h2 {
  font-weight: 700; /* لو عرّفت وزن 700 في @font-face */
  line-height: 1.35;
}

/* تحسين هوامش القوائم قليلاً */
html[lang="ar"] .policy-wrap ul,
[dir="rtl"] .policy-wrap ul {
  padding-inline-start: 1.2rem; /* بديل لـ 18px */
  margin: 0 0 12px;
}
html[lang="ar"] .policy-wrap li,
[dir="rtl"] .policy-wrap li {
  margin: 6px 0;
}

/* صفحتا السياسة/الشروط (عربي) */
html[lang="ar"] .policy-wrap,
[dir="rtl"] .policy-wrap {
  line-height: 1.55;
}

/* ===== تطبيق الخط على العربي بقوة أعلى من قواعد inherit !important ===== */
html[lang="ar"], [dir="rtl"] {
  --font-ar-stack: "IBM Plex Sans Arabic","Noto Naskh Arabic",Tahoma,Arial,sans-serif;
}

/* اجعل الـ body يأخذ الخط الجديد */
html[lang="ar"] body,
[dir="rtl"]      body {
  font-family: var(--font-ar-stack) !important;
  line-height: 1.55; /* مريح للنصوص الطويلة مثل سياسات الخصوصية */
}

/* بعض العناصر أُجبرت لديك على inherit !important — نكسرها صراحة */
html[lang="ar"] :where(h1,h2,h3,h4,h5,h6,p,li,a,small,blockquote),
[dir="rtl"]      :where(h1,h2,h3,h4,h5,h6,p,li,a,small,blockquote) {
  font-family: var(--font-ar-stack) !important;
}

/* أبقِ code بخط أحادي حتى لا يتأثر */
html[lang="ar"] code,
[dir="rtl"] code {
  font-family: ui-monospace,Menlo,Consolas,Monaco,"Noto Sans Mono",monospace !important;
}

/* --- Header essentials (هيكل فقط لأن لديك تنسيقاتك) --- */
.sh-wrap{max-width:1200px; margin-inline:auto; padding:10px 16px; display:flex; align-items:center; justify-content:space-between; gap:16px;}
.brand{display:inline-flex; align-items:center; gap:8px; text-decoration:none; color:inherit;}
.brand img{width:32px; height:32px}
.brand-name{font-weight:700}

/* Desktop nav */
.nav-desktop{display:flex; align-items:center; gap:16px}
.nav-desktop .nav-links{display:flex; gap:12px; align-items:center}
.nav-link{padding:8px 10px; border-radius:10px; text-decoration:none; color:#0f172a}
.nav-link:hover{background:#f1f5f9}

/* Language */
.lang-switch{display:flex; gap:8px}
.lang-btn{border:1px solid #e5e7eb; padding:6px 10px; border-radius:10px; text-decoration:none; color:#0f172a}
.lang-btn:hover{background:#f8fafc}

/* Hamburger */
.menu-toggle{display:none; width:42px; height:42px; border-radius:10px; border:1px solid #e5e7eb; background:#fff; align-items:center; justify-content:center}
.menu-toggle .menu-bar{display:block; width:18px; height:2px; background:#0f172a; margin:3px 0; border-radius:2px}

/* Mobile menu sheet */
.mobile-menu{position:fixed; inset-inline:0; top:0; bottom:0; background:#fff; transform:translateY(-12px); opacity:0; pointer-events:none; transition:opacity .18s ease, transform .18s ease; z-index:60}
.mobile-menu.is-open{transform:translateY(0); opacity:1; pointer-events:auto}
.mobile-menu .mm-inner{max-width:520px; margin:0 auto; padding:16px}
.mobile-menu .mm-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px}
.menu-close{border:1px solid #e5e7eb; background:#fff; padding:6px 10px; border-radius:10px; cursor:pointer}
.mm-links{display:grid; gap:8px; margin:10px 0 14px}
.mm-links .nav-link{display:block; background:#f8fafc}
.mm-links .nav-link:hover{background:#edf2f7}
.mm-lang{display:flex; gap:8px}

/* Backdrop */
.menu-backdrop{position:fixed; inset:0; background:rgba(15,23,42,.42); backdrop-filter: blur(2px); opacity:0; pointer-events:none; transition:opacity .18s ease; z-index:55}
.menu-backdrop.is-open{opacity:1; pointer-events:auto}

/* Mobile breakpoints */
@media (max-width: 900px){
  .nav-desktop{display:none}
  .menu-toggle{display:inline-flex}
}
@media (min-width: 901px){
  .mobile-menu, .menu-backdrop{display:none}
}

/* Footer */
  .ft{background:linear-gradient(180deg,#f4f8f9 0%,#eef2ef 100%);border-top:1px solid #e6eaee;color:#0f172a;margin-top:48px}
  .ft-wrap{max-width:1200px;margin-inline:auto;padding:28px 16px 36px}
  .ft-row{display:flex;align-items:center;justify-content:space-between;gap:24px}
  [dir="rtl"] .ft-row{flex-direction:row-reverse}
  .ft-brand{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
  .ft-brand img{width:150px;height:150px;object-fit:contain}
  .ft-name{font-weight:700;font-size:18px}
  .ft-links{display:inline-flex;align-items:center;gap:14px;flex-wrap:wrap}
  .ft-links a{text-decoration:underline;text-underline-offset:2px;color:#1f2a37;transition:color .2s ease,background-color .2s ease;padding:6px 10px;border-radius:10px}
  .ft-links a:hover{background:#e9eef2;color:#0b2530}
  .ft-dot{width:6px;height:6px;border-radius:999px;background:#6b7280;opacity:.5}
  .ft-meta{display:grid;gap:6px;color:#5b6673;font-size:14px}
  .ft-address{line-height:1.5}
  .ft-copy{opacity:.9}
  .ft-updated{margin-inline-start:0;color:#475569;font-size:13px;margin-top:4px}
  .ft-social{display:inline-flex;align-items:center;gap:10px}
  .ft-sbtn{display:inline-grid;place-items:center;width:44px;height:44px;border:1px solid #e2e8f0;background:#fff;border-radius:12px;color:#0f172a;transition:box-shadow .2s ease,transform .12s ease,border-color .2s ease}
  .ft-sbtn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(16,24,40,.08);border-color:#d3dae3}
  .ft-sbtn svg{width:20px;height:20px}
  @media (max-width:760px){
    .ft-row{flex-direction:column;text-align:center;gap:18px}
    .ft-links{justify-content:center}
    .ft-social{justify-content:center}
    .ft-copy,.ft-updated{text-align:center}
  }

  /* Floating action buttons (WhatsApp + Back to top) */
  .fab-wrap{
    position:fixed; right:16px; bottom:16px;
    display:flex; flex-direction:column; gap:12px;
    z-index:10000; pointer-events:none;
  }
  [dir="rtl"] .fab-wrap{ right:16px; left:auto; }
  .fab{
    pointer-events:auto;
    width:52px; height:52px; border-radius:999px;
    display:grid; place-items:center;
    border:0; box-shadow:0 6px 16px rgba(0,0,0,.15);
    transition:transform .12s ease, box-shadow .2s ease, opacity .2s ease;
    font-weight:700; text-decoration:none;
  }
  .fab:active{ transform:translateY(1px); }
  .fab-wa{ background:#25D366; color:#fff; }
  /* The button you already have */
  .fab-top { background:#229FA8; color:#fff; }
  /* Make the arrow thicker (adjust to taste) */
  .fab-top .arrow path { stroke-width: 3.5; }  /* try 3–4 */

  .fab.is-hidden{ opacity:0; transform:scale(.96); pointer-events:none; }

    .tbl{width:100%;border-collapse:collapse;margin:8px 0 16px}
    .tbl th,.tbl td{border:1px solid #e5e7eb;padding:10px;text-align:start}
    .tbl th{background:#f9fafb}



    h2{font-size:20px;margin-top:28px;margin-bottom:12px}
    .policy-wrap ul{padding-inline-start:18px}
    .policy-wrap li{margin:8px 0}
    .tbl{width:100%;border-collapse:collapse;margin:8px 0 16px}
    .tbl th,.tbl td{border:1px solid #e5e7eb;padding:10px;text-align:left}
    .tbl th{background:#f9fafb}
    @media print{
      .notice-bar,.action-row,#site-header{display:none!important}
      .policy-wrap{max-width:100%}
    }

    .hero-partner{
      position:relative;
      overflow:hidden;
      border-radius:18px;
      background:#fff;
      border:1px solid var(--border);
      box-shadow:var(--shadow);
      color:var(--text);
      padding:40px 20px;
      margin:24px auto;
      max-width:1100px;
    }
    .hero-partner .inner{
      display:grid;
      grid-template-columns:1fr;
      gap:24px;
      align-items:center;
    }
    .hero-partner h1{
      margin:0 0 8px;
      font-size:32px;
      line-height:1.3;
      color:inherit;
    }
    .hero-partner p{
      margin:0 0 16px;
      color:inherit;
      opacity:.95;
    }
    .hero-actions{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
    }

    /*.btn{
      border:1px solid var(--border);
      background:linear-gradient(90deg,#4b9aa0,#c3923c);
      color:#fff;
      padding:10px 14px;
      border-radius:10px;
      cursor:pointer;
      font-weight:600;
      text-decoration:none;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:.5rem;
    } */
    .btn-ghost{
      background:#fff;
      border:1px solid var(--border);
      color:var(--text);
    }
    .note{
      font-size:12px;
      color:#6b7280;
      margin-top:8px;
    }
    @media (max-width:900px){
      .hero-partner .inner{ grid-template-columns:1fr; }
    }

    .goals{ display:grid; gap:14px; }
    @media (min-width:768px){ .goals{ grid-template-columns:repeat(3,1fr); } }
    .goal-card{
      background:#fff;
      border:1px solid var(--border);
      border-radius:18px;
      padding:18px;
      box-shadow:var(--shadow);
    }

    .partner-form{
      background:#fff;
      border:1px solid var(--border);
      border-radius:18px;
      padding:24px;
      box-shadow:var(--shadow);
    }
    .contact-grid{ display:grid; gap:14px; }
    @media (min-width:768px){ .contact-grid{ grid-template-columns:1fr 1fr; } }
    .form-group{ display:flex; flex-direction:column; gap:6px; }

    .input-icon{ position:relative; }
    /* LTR: icons sit on the left */
    .input-icon .ifi-icon{
      position:absolute;
      left:5px;
      right:auto;
      top:70%;
      transform:translateY(-50%);
      opacity:.75;
      pointer-events:none;
    }
    .input-icon input,
    .input-icon select,
    .input-icon textarea{
      padding-left:48px;
      padding-right:14px;
    }

    .input, select, textarea{
      width:100%;
      border:1px solid var(--border);
      border-radius:12px;
      padding:12px 14px;
      background:#fff;
      color:var(--text);
      font:inherit;
    }
    textarea{ min-height:140px; resize:vertical; }

    .actions{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      align-items:center;
    }
    .small-hint{ font-size:12px; color:#6b7280; }

    @media print{
      .hero-actions, .note, #site-header, #footer-slot{ display:none !important; }
      .hero-partner, .section{ box-shadow:none; border:0; }
    }
    .policy-wrap {
      max-width: 960px;
      margin: 32px auto;
      padding: 0 16px;
    }
    .policy-header {
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:16px;
      flex-wrap:wrap;
      margin-bottom: 12px;
    }
    .policy-header h1 {
      margin: 0;
      font-size: 28px;
      line-height: 1.4;
    }
    .submeta {
      color:#6b7280;
      margin: 0 0 16px 0;
    }
    .action-row {
      display:flex;
      gap:8px;
      flex-wrap:wrap;
      margin: 8px 0 24px;
    }
    .btn {
      border: 1px solid var(--border, #e5e7eb);
      background: linear-gradient(90deg, #4b9aa0, #c3923c);
      color:#fff;
      padding: 10px 14px;
      border-radius: 10px;
      cursor:pointer;
      font-weight:600;
    }
	/*.btn{border:1px solid var(--border,#e5e7eb);background:linear-gradient(90deg,#4b9aa0,#c3923c);color:#fff;padding:10px 14px;border-radius:10px;cursor:pointer;font-weight:600}*/
    .btn.secondary {
      background: #fff;
      color:#0f172a;
    }
    .secure-badge {
      display:inline-flex;
      align-items:center;
      gap:10px;
      background:#f4faf6;
      color:#166534;
      border:1px solid #bbf7d0;
      padding:8px 12px;
      border-radius: 10px;
      font-weight:600;
      margin-top:6px;
    }
    .secure-badge svg { flex: 0 0 auto; }
    h2 {
      font-size: 20px;
      margin-top: 28px;
      margin-bottom: 12px;
    }
    .policy-wrap ul { padding-inline-start: 18px; }
    .policy-wrap li { margin: 8px 0; }

    /* print-friendly */
    @media print {
      .notice-bar,
      .action-row,
      #site-header { display: none !important; }
      .policy-wrap { max-width: 100%; }
    }
    