/* الخطوط مستضافة محلياً (Alexandria و IBM Plex Sans Arabic، رخصة SIL OFL) */
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../assets/fonts/alexandria-arabic-400-800.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../assets/fonts/alexandria-latin-400-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-arabic-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-arabic-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-arabic-arabic-600.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-arabic-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* الإتقان — نظام التصميم
   الألوان من الشعار: أزرق #194AA4، ومعه ذهبي تجهيزات المخيم للإبراز */
:root {
  /* ═════ نظام التصميم: القيم كلها من هنا ═════
     لا يُكتب في المكوّنات لون ولا مقاس خط ولا مسافة بقيمة مباشرة؛ يُختار رمز من هذه القائمة.
     المرجع المرئي: design-system.html */

  /* اللون — الهوية: أزرق الشعار للأزرار والعناوين، والذهبي للإبراز */
  --brand: #194aa4;
  --brand-deep: #123a82;
  --brand-ink: #0f2550;
  --gold: #d2a84c;
  --gold-deep: #7a5a1c;       /* ذهبي يُقرأ نصاً على الأبيض */
  --gold-mid: #b8903a;
  --gold-bright: #e4c377;
  --taupe: #5b6b86;

  /* اللون — درجات البطاقات والتصنيفات */
  --p-sand: #e4ecf9;
  --p-stone: #e3e6ea;
  --p-cream: #f8f0dc;
  --p-blush: #f4e4d8;
  --p-sage: #e0ebdc;
  --p-ivory: #eef2f9;

  /* اللون — النص والسطوح والحدود */
  --ink: #1b2536;
  --ink-mid: #36425a;
  --ink-soft: #5a6680;
  --cream-ink: #5d4a17;
  --line: #e1e7f1;
  --line-strong: #c3cee0;
  --line-gold: #d6e0f2;
  --surface: #ffffff;
  --wash: #f6f8fc;
  --wash-brand: #e9effa;
  --wash-gold: #f4f7fc;
  --danger: #b3261e;
  --danger-wash: #fff5f3;
  --danger-line: #f3c9c4;
  --ok: #17806d;
  --ok-ink: #116455;      /* نص على خلفية النجاح */
  --ok-wash: #dff5f1;
  --warn: #7a5a06;
  --warn-wash: #fdf3d7;

  /* الخط — عائلتان: Alexandria للعناوين والأزرار، IBM Plex Sans Arabic للنص */
  --font-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  /* سلّم المقاسات: ثمانية مقاسات ثابتة وثلاثة متجاوبة للعناوين */
  --fs-xs: 13px;      /* تاريخ، مساعدة حقل */
  --fs-sm: 14px;      /* شارة، وسم، تسمية علوية */
  --fs-base: 15px;    /* نص البطاقات والأزرار والحقول */
  --fs-md: 16px;      /* قوائم */
  --fs-body: 17px;    /* نص الصفحة */
  --fs-lg: 18px;      /* عنوان بطاقة، مقدمة */
  --fs-xl: 20px;      /* عنوان فرعي */
  --fs-2xl: 24px;     /* عنوان لوحة */
  --fs-h3: clamp(22px, 2.8vw, 30px);
  --fs-h2: clamp(26px, 3.4vw, 38px);
  --fs-h1: clamp(30px, 4.4vw, 46px);
  --fs-display: clamp(34px, 5.2vw, 62px);
  --lh-heading: 1.35;
  --lh-ui: 1.55;
  --lh-body: 1.8;

  /* المسافة — سلّم على مضاعفات 4 */
  --sp-4: 4px; --sp-8: 8px; --sp-12: 12px; --sp-16: 16px; --sp-20: 20px; --sp-24: 24px; --sp-32: 32px;
  --sp-40: 40px; --sp-48: 48px; --sp-56: 56px; --sp-64: 64px; --sp-72: 72px; --sp-88: 88px; --sp-96: 96px;
  --gap: var(--sp-20);            /* بين بطاقات أي شبكة */
  --card-pad: var(--sp-24);       /* حشوة البطاقة */
  --section-y: var(--sp-88);      /* أعلى القسم وأسفله */
  --head-gap: var(--sp-40);       /* بين رأس القسم ومحتواه */
  --wrap: 1160px;

  /* الشكل — البتلة توقيع الهوية: زاويتان واسعتان وزاويتان ضيقتان */
  --petal: 28px 8px 28px 8px;         /* أزرار، مربعات الأيقونات */
  --petal-lg: 44px 12px 44px 12px;    /* بطاقات */
  --r-sm: 8px;
  --r-md: 12px;                       /* حقول */
  --r-pill: 999px;                    /* شارات ووسوم */
  --tile: 48px;                       /* مربع أيقونة */
  --tile-lg: 72px;
  --icon: 22px;
  --fs-icon-lg: 30px;

  /* الظل والحلقة */
  --shadow: 0 1px 2px rgba(15, 37, 80, .06), 0 12px 32px -12px rgba(15, 37, 80, .18);
  --shadow-pop: 0 14px 34px rgba(15, 37, 80, .18);
  --shadow-header: 0 6px 24px -12px rgba(15, 37, 80, .35);
  --ring: 0 0 0 4px rgba(25, 74, 164, .18);

  /* الحركة */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .25s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }   /* height:auto ليعمل aspect-ratio مع صور لها خاصيتا width و height */
picture { display: contents; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-heading); margin: 0; color: var(--brand-ink); font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: var(--r-sm); }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
svg.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ───── Header ───── */
.brandline { height: 5px; background: linear-gradient(to right, var(--brand), var(--gold-mid)); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow var(--dur); }
.site-header.scrolled { box-shadow: var(--shadow-header); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: var(--sp-12) var(--sp-20); background: var(--brand-ink); color: #fff; border-radius: var(--r-md); transition: top .15s; }
.skip:focus { top: 10px; color: #fff; }
address { font-style: normal; }
.site-header .wrap { display: flex; align-items: center; gap: var(--sp-20); min-height: 76px; }
.logo img { height: 50px; width: auto; }
.nav { display: flex; gap: var(--sp-4); margin-inline-start: auto; }
.nav a { padding: var(--sp-8) var(--sp-12); border-radius: var(--r-pill); color: var(--ink); font-size: var(--fs-base); font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--wash); color: var(--brand-deep); }
.nav a[aria-current] { background: var(--p-sand); color: var(--brand-ink); }
.menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-md); align-items: center; justify-content: center; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-8); min-height: 48px; padding: var(--sp-12) var(--sp-24); border: 0; border-radius: var(--petal); background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--brand-deep); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--brand-deep); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn.ghost:hover { background: var(--p-sand); }
.btn.gold { background: var(--gold); color: var(--brand-ink); }
.btn.gold:hover { background: var(--gold-bright); color: var(--brand-ink); }
.btn.sm { min-height: 40px; padding: var(--sp-8) var(--sp-20); font-size: var(--fs-sm); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ───── Hero ───── */
.hero { position: relative; background: var(--wash-gold) url("../assets/pattern.webp") top center / 1920px auto repeat-x; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--sp-48); align-items: center; padding-block: var(--sp-64) var(--sp-96); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-8); font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 500; color: var(--gold-deep); letter-spacing: 0; }
.eyebrow::before { content: ""; width: 22px; height: 22px; background: url("../assets/mark-sm.png") center / contain no-repeat; }
.hero h1 { font-size: var(--fs-display); line-height: var(--lh-heading); margin-block: var(--sp-16) var(--sp-20); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--gold-deep); }
.hero p.lead { font-size: var(--fs-lg); color: var(--ink-soft); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: var(--sp-12); margin-top: var(--sp-24); }
.hero .facts { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-top: var(--sp-24); }
.chip { display: inline-flex; align-items: center; gap: var(--sp-8); padding: var(--sp-4) var(--sp-16); border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--brand-ink); }
.hero-art { position: relative; }
.hero-art { max-width: 460px; margin-inline: auto; width: 100%; }
.hero-art .arch { aspect-ratio: 4 / 4.9; border-radius: 300px 300px 28px 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 8px solid #fff; }
.hero-art .arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-art .badge { position: absolute; inset-block-end: 22px; inset-inline-start: -18px; background: var(--brand); color: #fff; padding: var(--sp-16) var(--sp-20); border-radius: var(--petal); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); line-height: var(--lh-ui); box-shadow: var(--shadow); }
.hero-art .badge small { display: block; font-weight: 400; font-family: var(--font-body); opacity: .9; font-size: var(--fs-xs); }

/* ───── Sections ───── */
.section { padding-block: var(--section-y); }
.section.tint { background: var(--wash); }
.section-head { max-width: 640px; margin-bottom: var(--head-gap); }
.section-head h2 { font-size: var(--fs-h2); margin-top: var(--sp-8); }
.section-head p { color: var(--ink-soft); margin-top: var(--sp-12); }

/* service cards — ألوان الباستيل نفسها المستخدمة في تبويبات الموقع الحالي */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.service { --tone: var(--p-sand); position: relative; display: flex; flex-direction: column; gap: var(--sp-12); padding: var(--card-pad); border-radius: var(--petal-lg); background: var(--tone); color: var(--ink); transition: transform var(--dur), box-shadow var(--dur); }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.service .ico { width: var(--tile); height: var(--tile); display: grid; place-items: center; border-radius: var(--petal); background: rgba(255, 255, 255, .7); color: var(--brand-deep); font-size: var(--icon); }
.service h3 { font-size: var(--fs-lg); }
.service p { font-size: var(--fs-base); line-height: var(--lh-body); color: var(--ink-mid); }
.service .more { margin-top: auto; padding-top: var(--sp-12); display: inline-flex; align-items: center; gap: var(--sp-8); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); color: var(--brand-deep); }
.t-sand { --tone: var(--p-sand); } .t-cream { --tone: var(--p-cream); } .t-ivory { --tone: var(--p-ivory); } .t-blush { --tone: var(--p-blush); } .t-sage { --tone: var(--p-sage); } .t-stone { --tone: var(--p-stone); }

/* vision band */
.vision { background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.vision::after { content: ""; position: absolute; inset-inline-end: -120px; inset-block-start: -120px; width: 420px; height: 420px; background: url("../assets/mark-deco.png") center / contain no-repeat; opacity: .12; filter: brightness(0) invert(1); }
.vision .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-56); align-items: start; }
.vision h2, .vision h3 { color: #fff; }
.vision .eyebrow { color: var(--p-ivory); font-size: var(--fs-sm); font-weight: 500; }
.vision .eyebrow::before { filter: brightness(0) invert(1); }
.vision blockquote { margin: var(--sp-16) 0 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: var(--lh-heading); }
.vision .mission { margin-top: var(--sp-24); padding-top: var(--sp-24); border-top: 1px solid rgba(255, 255, 255, .25); }
.vision .mission h3, .kicker { font-family: var(--font-display); font-size: var(--fs-body); font-weight: 600; color: var(--p-ivory); margin-bottom: var(--sp-8); }
.vision .kicker { margin-bottom: var(--sp-16); }
.vision .mission p { font-size: var(--fs-lg); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); }
.values li { display: flex; align-items: center; gap: var(--sp-12); padding: var(--sp-16) var(--sp-20); background: rgba(255, 255, 255, .12); border-radius: var(--petal); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-body); }
.values li svg { color: var(--p-ivory); }

/* booking steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: var(--card-pad); background: #fff; border: 1px solid var(--line); border-radius: var(--petal-lg); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: var(--tile); height: var(--tile); font-size: var(--fs-lg); border-radius: var(--petal); background: var(--gold); color: var(--brand-ink); font-family: var(--font-display); font-weight: 700; margin-bottom: var(--sp-16); }
.steps h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-8); }
.steps p { color: var(--ink-soft); font-size: var(--fs-base); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-16); align-items: center; margin-top: var(--sp-32); }
.cta-row.between { justify-content: space-between; margin-top: 0; }
.cta-row.center { justify-content: center; }
.cta-row .note { color: var(--ink-soft); font-size: var(--fs-base); }

.title-md { font-size: var(--fs-h3); margin-bottom: var(--sp-16); }
.cta-row .title-md { margin-bottom: 0; }
.mb-24 { margin-bottom: var(--sp-24); }
.link-note { font-size: var(--fs-sm); color: var(--brand-deep); }
.split .section-head { margin-bottom: var(--sp-16); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-56); align-items: center; }
.prose p + p { margin-top: var(--sp-16); }
.prose { color: var(--ink-mid); font-size: var(--fs-body); }

/* contact strip */
.contact-cards.stacked { grid-template-columns: 1fr; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.c-card { display: flex; gap: var(--sp-16); align-items: flex-start; padding: var(--card-pad); background: #fff; border: 1px solid var(--line); border-radius: var(--petal-lg); color: var(--ink); }
a.c-card:hover { border-color: var(--brand); color: var(--ink); }
.c-card .ico { width: var(--tile); height: var(--tile); flex: none; display: grid; place-items: center; border-radius: var(--petal); background: var(--tone, var(--p-ivory)); color: var(--brand-ink); font-size: var(--icon); }
.c-card h2, .c-card h3 { font-size: var(--fs-base); font-weight: 500; color: var(--ink-soft); font-family: var(--font-body); }
.c-card strong { font-family: var(--font-display); font-size: var(--fs-body); font-weight: 600; color: var(--brand-ink); line-height: var(--lh-ui); display: block; }

/* ───── Inner page head ───── */
.page-head { background: var(--wash-gold) url("../assets/pattern.webp") top center / 1920px auto repeat-x; padding-block: var(--sp-56) var(--sp-64); border-bottom: 1px solid var(--line); }
.crumbs { font-size: var(--fs-sm); color: var(--ink-soft); display: flex; gap: var(--sp-8); }
.crumbs > * { flex: none; }
.crumbs > span:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a { color: var(--ink-soft); }
.page-head h1 { font-size: var(--fs-h1); margin-top: var(--sp-12); font-weight: 800; }
.page-head p { max-width: 40em; color: var(--ink-soft); margin-top: var(--sp-12); font-size: var(--fs-lg); }

/* service detail */
.service-tabs { position: sticky; top: 77px; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.service-tabs .wrap { display: flex; gap: var(--sp-8); overflow-x: auto; padding-block: var(--sp-12); scrollbar-width: none; }
.service-tabs a { flex: none; padding: var(--sp-8) var(--sp-20); border-radius: var(--r-pill); background: var(--tone); color: var(--brand-ink); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); }
.service-block { padding-block: var(--sp-72); border-bottom: 1px solid var(--line); }
.service-block .top { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-24); align-items: start; margin-bottom: var(--sp-32); }
.service-block .top .ico { width: var(--tile-lg); height: var(--tile-lg); display: grid; place-items: center; border-radius: var(--petal-lg); background: var(--tone); color: var(--brand-deep); font-size: var(--fs-icon-lg); }
.service-block h2 { font-size: var(--fs-h3); }
.service-block .top p { margin-top: var(--sp-12); color: var(--ink-mid); max-width: 48em; font-size: var(--fs-body); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); }
.panel { padding: var(--card-pad); border-radius: var(--petal-lg); background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--tone); }
.panel h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-12); }
.ticks li { position: relative; padding-inline-start: var(--sp-24); font-size: var(--fs-md); line-height: var(--lh-body); }
.ticks li + li { margin-top: var(--sp-8); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 12px; height: 12px; border-radius: 8px 2px 8px 2px; background: var(--gold); }

/* ───── Forms ───── */
.form-shell { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-32); align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--petal-lg); box-shadow: var(--shadow); }
.card-pad { padding: var(--sp-32); }
.aside { position: sticky; top: 100px; display: grid; gap: var(--sp-16); }
.aside .box { padding: var(--card-pad); border-radius: var(--petal-lg); background: var(--tone, var(--wash)); }
.aside h2, .aside h3 { font-size: var(--fs-md); margin-bottom: var(--sp-8); }
.aside p, .aside li { font-size: var(--fs-base); line-height: var(--lh-body); color: var(--ink-mid); }
.aside .ticks li::before { background: var(--brand); }

/* الخط الزمني للخطوات: دوائر مرقمة يصلها خط؛ ما اكتمل فيروزي، الحالية بنفسجية، القادمة رمادية */
.step-count { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--brand-deep); margin-bottom: var(--sp-12); }
.progress { display: flex; margin-bottom: var(--sp-32); }
.progress li { position: relative; flex: 1; display: grid; justify-items: center; gap: var(--sp-8); text-align: center; padding-inline: var(--sp-4); color: var(--ink-soft); font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 500; line-height: var(--lh-ui); }
.progress li::before { content: ""; position: absolute; top: 17px; inset-inline-start: -50%; width: 100%; height: 3px; background: var(--line); }
.progress li:first-child::before { display: none; }
.progress li.on::before, .progress li.done::before { background: var(--gold); }
.progress .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-weight: 700; font-size: var(--fs-base); color: var(--ink-soft); transition: background var(--dur), border-color var(--dur), box-shadow .25s; }
.progress li.done { color: var(--gold-deep); }
.progress li.done .dot { background: var(--gold); border-color: var(--gold); color: var(--brand-ink); }
.progress li.on { color: var(--brand-ink); font-weight: 700; }
.progress li.on .dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--ring); }
.field.nudge input { animation: nudge .3s; }
@keyframes nudge { 25% { transform: translateX(3px); } 75% { transform: translateX(-3px); } }
.seg { align-self: flex-start; display: inline-flex; padding: var(--sp-4); background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-pill); gap: var(--sp-4); flex-wrap: wrap; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: var(--sp-8) var(--sp-20); border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 500; font-size: var(--fs-base); color: var(--ink-soft); }
.seg input:checked + span { background: var(--brand); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .legend { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); color: var(--brand-ink); padding: 0; margin-bottom: var(--sp-4); }
.hint-top { color: var(--ink-soft); font-size: var(--fs-base); margin-bottom: var(--sp-24); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-20) var(--sp-20); }
.grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: var(--sp-8); min-width: 0; }
.field > label, .field > .lbl { font-weight: 600; font-size: var(--fs-base); color: var(--brand-ink); }
.field .opt { font-weight: 400; color: var(--ink-soft); font-size: var(--fs-xs); }
.field input:not([type="radio"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: var(--sp-12) var(--sp-16); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: var(--lh-body); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f3a8d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; background-size: 18px; padding-inline-end: var(--sp-40); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }
.field input[dir="ltr"] { text-align: right; }
.field .help { font-size: var(--fs-xs); color: var(--ink-soft); line-height: var(--lh-ui); }
.field .err { display: none; font-size: var(--fs-sm); color: var(--danger); line-height: var(--lh-ui); }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: var(--danger-wash); }
.field.invalid .help { display: none; }

.counter { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; width: max-content; background: #fff; }
.counter button { width: 50px; height: 48px; border: 0; background: var(--wash); cursor: pointer; display: grid; place-items: center; color: var(--brand-deep); font-size: var(--fs-lg); }
.counter button:hover { background: var(--p-sand); }
.counter output { min-width: 56px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); }

.student { border: 1px solid var(--line); border-radius: var(--petal-lg); margin-top: var(--sp-20); overflow: hidden; }
.student > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--sp-12); padding: var(--sp-16) var(--sp-24); background: var(--wash); font-family: var(--font-display); font-weight: 600; color: var(--brand-ink); }
.student > summary::-webkit-details-marker { display: none; }
.student > summary .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--petal); background: var(--gold); font-size: var(--fs-sm); }
.student > summary .chev { margin-inline-start: auto; transition: transform .2s; }
.student[open] > summary .chev { transform: rotate(180deg); }
.student .body { padding: var(--sp-24) var(--sp-24); }

.form-actions { display: flex; gap: var(--sp-12); justify-content: space-between; align-items: center; margin-top: var(--sp-32); padding-top: var(--sp-24); border-top: 1px solid var(--line); flex-wrap: wrap; }
.form-alert { display: none; padding: var(--sp-12) var(--sp-16); margin-bottom: var(--sp-20); border-radius: var(--r-md); background: var(--danger-wash); color: var(--danger); font-size: var(--fs-base); border: 1px solid var(--danger-line); }
.form-alert.show { display: block; }

.review h4 { font-size: var(--fs-md); margin: var(--sp-24) 0 var(--sp-8); display: flex; align-items: center; justify-content: space-between; }
.review h4 button { background: none; border: 0; color: var(--brand-deep); font-family: var(--font-body); font-size: var(--fs-sm); cursor: pointer; text-decoration: underline; }
.review dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-24); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-8) var(--sp-20); }
.review dl div { display: flex; justify-content: space-between; gap: var(--sp-12); padding: var(--sp-8) 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-base); }
.review dt { color: var(--ink-soft); }
.review dd { margin: 0; font-weight: 600; text-align: end; overflow-wrap: anywhere; }
.consent { display: flex; gap: var(--sp-12); align-items: flex-start; margin-top: var(--sp-24); font-size: var(--fs-base); }
.consent input { width: 20px; height: 20px; margin-top: var(--sp-4); accent-color: var(--brand); flex: none; }

.file { display: flex; align-items: center; gap: var(--sp-16); padding: var(--sp-16); border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: var(--wash); cursor: pointer; }
.file:hover { border-color: var(--brand); }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.file .ico { width: var(--tile); height: var(--tile); display: grid; place-items: center; background: #fff; border-radius: var(--petal); color: var(--brand-deep); }
.file b { display: block; font-size: var(--fs-base); color: var(--brand-ink); }
.file small { color: var(--ink-soft); font-size: var(--fs-xs); }

.done-panel { text-align: center; padding: var(--sp-56) var(--sp-24); }
.done-panel .tick { width: var(--tile-lg); height: var(--tile-lg); margin: 0 auto var(--sp-20); display: grid; place-items: center; border-radius: var(--petal-lg); background: var(--p-ivory); color: var(--ok); font-size: var(--fs-icon-lg); }
.done-panel h2 { font-size: var(--fs-2xl); }
.done-panel p { color: var(--ink-soft); max-width: 30em; margin: var(--sp-12) auto 0; }
.demo-note { display: inline-block; margin-top: var(--sp-20); padding: var(--sp-8) var(--sp-16); border-radius: var(--r-pill); background: var(--p-cream); color: var(--cream-ink); font-size: var(--fs-xs); }

/* fees / notice */
.notice { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-20); align-items: center; padding: var(--sp-24) var(--sp-24); border-radius: var(--petal-lg); background: var(--p-cream); }
.notice .ico { width: var(--tile); height: var(--tile); display: grid; place-items: center; border-radius: var(--petal); background: rgba(255, 255, 255, .7); font-size: var(--icon); color: var(--brand-deep); }
.notice h3 { font-size: var(--fs-lg); }
.notice p { font-size: var(--fs-base); color: var(--cream-ink); }

/* media */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.gallery figure { margin: 0; border-radius: var(--petal-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { padding: var(--sp-16) var(--sp-20); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); color: var(--brand-ink); }
.empty { display: grid; place-items: center; text-align: center; padding: var(--sp-24); border-radius: var(--petal-lg); border: 1.5px dashed var(--line-strong); color: var(--ink-soft); font-size: var(--fs-base); min-height: 240px; }
.empty .ico { font-size: var(--fs-icon-lg); color: var(--brand); margin-bottom: var(--sp-8); display: grid; place-items: center; }
.socials { display: flex; gap: var(--sp-12); flex-wrap: wrap; }

/* ───── Footer ───── */
.site-footer { background: var(--brand-deep); color: var(--wash-brand); margin-top: 0; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-40); padding-block: var(--sp-64) var(--sp-48); }
.site-footer .f-brand { display: flex; gap: var(--sp-16); align-items: center; margin-bottom: var(--sp-16); }
.site-footer .f-brand img { width: 54px; height: 54px; filter: brightness(0) invert(1); }
.site-footer .f-brand b { font-family: var(--font-display); font-size: var(--fs-xl); color: #fff; line-height: var(--lh-heading); display: block; }
.site-footer .f-brand span { font-size: var(--fs-xs); opacity: .85; }
.site-footer p { font-size: var(--fs-base); opacity: .9; max-width: 26em; }
.site-footer h3 { color: #fff; font-size: var(--fs-md); margin-bottom: var(--sp-16); }
.site-footer li + li { margin-top: var(--sp-8); }
.site-footer a { color: var(--wash-brand); font-size: var(--fs-base); }
.site-footer a:hover { color: var(--p-ivory); }
.site-footer .f-contact li { display: flex; gap: var(--sp-12); align-items: flex-start; font-size: var(--fs-base); }
.site-footer .f-contact svg { margin-top: var(--sp-8); color: var(--p-ivory); }
.site-footer .bar { background: var(--gold); color: var(--brand-ink); font-size: var(--fs-sm); font-weight: 500; }
.site-footer .bar .wrap { display: flex; justify-content: space-between; gap: var(--sp-12); flex-wrap: wrap; padding-block: var(--sp-16); }

/* news */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.news-card { display: flex; flex-direction: column; gap: var(--sp-8); padding: var(--card-pad); background: #fff; border: 1px solid var(--line); border-radius: var(--petal-lg); }
.news-card .meta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-12); margin-bottom: var(--sp-4); }
/* الوسم: شارة تصنيف بلون الباستيل، بالشكل نفسه في البطاقة وصفحة الخبر */
.tag { display: inline-block; padding: var(--sp-4) var(--sp-16); border-radius: var(--r-pill); background: var(--tone, var(--p-ivory)); color: var(--brand-ink); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); line-height: var(--lh-ui); }
.news-card time { font-size: var(--fs-xs); color: var(--ink-soft); }
.news-card h3 { font-size: var(--fs-lg); line-height: var(--lh-ui); }
.news-card p { font-size: var(--fs-base); color: var(--ink-soft); line-height: var(--lh-body); }
.news-card p.names { margin-top: auto; padding-top: var(--sp-12); border-top: 1px dashed var(--line); color: var(--brand-ink); font-weight: 600; font-size: var(--fs-sm); }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.photo-grid figure { position: relative; margin: 0; border-radius: var(--petal-lg); overflow: hidden; background: var(--wash); }
.photo-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s ease; }
.photo-grid figure:hover img { transform: scale(1.04); }
.photo-grid figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: var(--sp-32) var(--sp-16) var(--sp-16); background: linear-gradient(to top, rgba(15, 37, 80, .85), transparent); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); }

.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.programs li { padding: var(--card-pad); background: #fff; border: 1px solid var(--line); border-radius: var(--petal); border-inline-start: 5px solid var(--gold); }
.programs b { display: block; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; line-height: var(--lh-heading); color: var(--brand-ink); margin-bottom: var(--sp-4); }
.programs span { font-size: var(--fs-base); color: var(--ink-soft); line-height: var(--lh-body); display: block; }
.follow { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--sp-12); padding: var(--card-pad); border-radius: var(--petal-lg); background: var(--brand); color: #fff; }
.follow h3 { color: #fff; font-size: var(--fs-xl); }
.follow .btn { background: var(--gold); color: var(--brand-ink); margin-top: var(--sp-8); }

/* ───── حملات التسجيل: مكوّنات حيّة تتكيّف مع عرض الحاوية لا الشاشة ───── */
.section.band { padding-block: var(--sp-72) 0; }
.section.band:not(:has(.campaign:not([hidden]))) { display: none; }
.campaigns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.campaigns > .c-dark, .campaigns > .follow { grid-column: 1 / -1; }
.campaign { container: camp / inline-size; position: relative; overflow: hidden; border-radius: var(--petal-lg); isolation: isolate; }
.campaign .c-in { display: grid; grid-template-columns: 1fr; align-items: center; gap: clamp(24px, 6cqi, 56px); padding: clamp(24px, 6cqi, 60px); height: 100%; }
.campaign .c-kicker { display: inline-block; font-family: var(--font-display); font-weight: 500; font-size: clamp(13px, 2.4cqi, 15.5px); opacity: .9; }
.campaign h3 { font-size: clamp(30px, 9cqi, 64px); font-weight: 800; line-height: var(--lh-heading); margin-block: var(--sp-8) var(--sp-12); color: inherit; }
.campaign h3 em { font-style: normal; }
.campaign p { font-size: clamp(15.5px, 3cqi, 19px); max-width: 26em; }
.campaign .c-chips { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-top: var(--sp-16); }
.campaign .c-chips li { padding: var(--sp-4) var(--sp-20); border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); }
.campaign .c-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-12) var(--sp-24); margin-top: clamp(20px, 4cqi, 30px); }
.campaign .c-phone { display: inline-flex; align-items: center; gap: var(--sp-8); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); }

.c-dark { background: linear-gradient(240deg, var(--brand-deep) 0%, var(--brand) 55%, #2f6bd0 100%); color: #fff; }
.c-dark::before { content: ""; position: absolute; z-index: -1; inset-inline-start: -90px; inset-block-end: -110px; width: 340px; height: 340px; background: url("../assets/mark-deco.png") center / contain no-repeat; filter: brightness(0) invert(1); opacity: .1; }
.c-dark h3 em { display: inline-block; padding: 0 .4em; border-radius: var(--r-pill); background: #fff; color: var(--brand-deep); }
.c-dark .c-chips li { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.c-dark .btn { background: #fff; color: var(--brand-deep); }
.c-dark .btn:hover { background: var(--p-ivory); color: var(--brand-ink); }
.c-dark .c-phone { color: #fff; }
.c-dark .c-phone:hover { color: var(--p-ivory); }
/* أربع بتلات = أربع مراحل، على هيئة زهرة الشعار */
.c-petals { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); width: min(100%, 300px); aspect-ratio: 1; margin-inline: auto; }
.c-petals li { display: grid; place-items: center; text-align: center; padding: var(--sp-8); background: var(--tone); color: var(--brand-ink); font-family: var(--font-display); font-weight: 700; font-size: clamp(13px, 3.6cqi, 17px); line-height: var(--lh-ui); border-radius: 68% 0 68% 0; transition: transform .35s ease; }
.c-petals li:nth-child(2), .c-petals li:nth-child(3) { border-radius: 0 68% 0 68%; }
.c-petals:hover li { transform: scale(.96); }

.c-pattern { background: var(--wash-gold) url("../assets/pattern.webp") top center / 1600px auto repeat-x; color: var(--brand-ink); border: 1px solid var(--line-gold); }
.c-pattern h3 em { color: var(--gold-deep); }
.c-pattern p, .c-cream p { color: var(--ink-soft); }
.c-pattern .c-kicker { color: var(--gold-deep); }
.c-cream { background: var(--p-cream); color: var(--brand-ink); }
.c-cream h3 em { color: var(--brand); }
.c-cream .c-kicker { color: var(--cream-ink); }
.c-photo { width: 100%; aspect-ratio: 5 / 4; border-radius: 180px 180px 22px 22px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow); background: #fff; }
.c-photo img { width: 100%; height: 100%; object-fit: cover; }

@container camp (min-width: 620px) {
  .campaign .c-in { grid-template-columns: 1.25fr 1fr; }
  .campaign h3 { font-size: clamp(30px, 5.4cqi, 60px); }
  .c-photo { aspect-ratio: 4 / 4.6; max-width: 320px; margin-inline: auto; border-radius: 999px 999px 22px 22px; }
}
@container camp (max-width: 360px) {
  .campaign .c-actions .btn { width: 100%; }
  .c-petals { width: min(100%, 230px); }
}
.follow { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.follow .btn { margin-top: 0; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service, .c-petals li { transition: none; }
  .field.nudge input { animation: none; }
}

/* ───── Responsive ───── */
@media (max-width: 1020px) {
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: var(--sp-12) var(--sp-16) var(--sp-20); box-shadow: var(--shadow); gap: var(--sp-4); }
  .nav.open { display: flex; }
  .nav a { padding: var(--sp-12) var(--sp-16); font-size: var(--fs-body); border-radius: var(--r-md); }
  .menu-btn { display: inline-flex; }
  .site-header .btn { display: none; }
  .services, .photo-grid, .programs, .news-grid { grid-template-columns: 1fr 1fr; }
  .form-shell { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .service-tabs { top: 77px; }
}
@media (max-width: 820px) {
  .hero .wrap, .vision .wrap, .split { grid-template-columns: 1fr; gap: var(--sp-32); }
  .hero .wrap { padding-block: var(--sp-40) var(--sp-64); }
  .hero-art { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-art .badge { inset-inline-start: 8px; }
  .section { padding-block: var(--sp-64); }
  .steps, .contact-cards, .gallery, .campaigns { grid-template-columns: 1fr; }
  .section.band { padding-top: var(--sp-56); }
  .notice { grid-template-columns: 1fr; }
  .aside { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: var(--fs-md); }
  .logo img { height: 42px; }
  .site-header .logo img { height: 46px; }
  .site-header .wrap { min-height: 66px; }
  .lightbox[open] { grid-template-columns: 1fr 1fr; padding-inline: var(--sp-8); }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox .lb-nav { justify-self: center; }
  .service-tabs { top: 67px; }
  .services, .grid, .values, .review dl, .news-grid, .programs { grid-template-columns: 1fr; }
  .photo-grid { gap: var(--sp-12); }
  .card-pad { padding: var(--sp-24) var(--sp-20); }
  .progress li { font-size: var(--fs-xs); }
  .progress .dot { width: 32px; height: 32px; font-size: var(--fs-sm); }
  .progress li::before { top: 15px; }
  .site-footer .top { grid-template-columns: 1fr; gap: var(--sp-32); padding-block: var(--sp-48) var(--sp-32); }
  .service-block .top, .service-row { grid-template-columns: 1fr; }
  .service-row { padding: var(--sp-24) var(--sp-20); }
  .article { font-size: var(--fs-body); }
  .form-actions .btn { flex: 1; }
  .hero .cta .btn { flex: 1 1 100%; }
}

/* ───── صفحات المراحل والأخبار ───── */
.service-rows { display: grid; gap: var(--gap); }
.service-row { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--sp-24); padding: var(--sp-32); border-radius: var(--petal-lg); background: var(--tone); transition: transform var(--dur), box-shadow var(--dur); }
.service-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-row .ico { width: var(--tile-lg); height: var(--tile-lg); display: grid; place-items: center; border-radius: var(--petal-lg); background: rgba(255, 255, 255, .7); color: var(--brand-deep); font-size: var(--fs-icon-lg); }
.service-row h2 { font-size: var(--fs-h3); }
.service-row h2 a { color: inherit; }
.service-row h2 a::after, .news-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-row p { margin-top: var(--sp-8); color: var(--ink-mid); max-width: 52em; }
.chips-row { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-block: var(--sp-16) var(--sp-16); }
.service-row .more { display: inline-flex; align-items: center; gap: var(--sp-8); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); color: var(--brand-deep); }
.service-tabs a[aria-current] { box-shadow: inset 0 0 0 2px var(--brand); }
.panel h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-12); }
.news-card { position: relative; }
.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--brand); }
.news-meta { display: flex; align-items: center; gap: var(--sp-12); margin-top: var(--sp-16); font-size: var(--fs-base); }
.article { max-width: 760px; font-size: var(--fs-lg); line-height: 2; color: var(--ink-mid); }
.article p + p { margin-top: var(--sp-16); }
.article h2 { font-size: var(--fs-xl); margin-block: var(--sp-32) var(--sp-12); }
.name-list { display: grid; gap: var(--sp-8); }
.name-list li { padding: var(--sp-12) var(--sp-20); background: var(--wash); border-radius: var(--petal); border-inline-start: 5px solid var(--gold); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--brand-ink); }
.article .source { margin-top: var(--sp-32); padding-top: var(--sp-20); border-top: 1px dashed var(--line); font-size: var(--fs-base); color: var(--ink-soft); }

/* ───── الأسئلة الشائعة ───── */
.faq { display: grid; gap: var(--sp-12); max-width: 860px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--petal); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16); padding: var(--sp-20) var(--sp-24); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-body); color: var(--brand-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--wash); }
.faq-item .chev { color: var(--brand); transition: transform var(--dur); display: grid; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-item[open] summary { border-bottom: 1px dashed var(--line); }
.faq-item p { padding: var(--sp-16) var(--sp-24) var(--sp-20); color: var(--ink-mid); }

/* ───── تصفية الأخبار ───── */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-bottom: var(--sp-24); }
.filters button { padding: var(--sp-8) var(--sp-20); border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm); color: var(--ink-soft); transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--brand); color: var(--brand-deep); }
.filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ───── عارض الصور ───── */
.photo-grid .zoom { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; border-radius: inherit; }
.photo-grid .zoom:focus-visible { outline-offset: -4px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-8); padding: var(--sp-56) var(--sp-12) var(--sp-20); }
.lightbox::backdrop { background: rgba(8, 18, 40, .9); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: var(--sp-12); min-height: 0; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: var(--petal-lg); background: #fff; }
.lightbox figcaption { color: #fff; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-base); text-align: center; }
.lightbox button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: var(--fs-xl); transition: background .2s; }
.lightbox button:hover { background: rgba(255, 255, 255, .32); }
.lightbox .lb-close { position: absolute; top: 12px; inset-inline-end: 12px; }

/* ───── الحركة: تُفعَّل فقط لمن لم يطلب تقليلها ───── */
@media (prefers-reduced-motion: no-preference) {
  /* شريط تقدّم القراءة مربوط بالتمرير، بلا JavaScript */
  @supports (animation-timeline: scroll()) {
    .brandline { position: fixed; top: 0; inset-inline: 0; z-index: 60; transform-origin: right center; animation: progress linear both; animation-timeline: scroll(root); }
    .site-header { margin-top: var(--sp-4); }
    @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
  /* دخول الواجهة */
  .hero .wrap > div:first-child > * { animation: rise .7s var(--ease) both; }
  .hero .wrap > div:first-child > :nth-child(2) { animation-delay: .08s; }
  .hero .wrap > div:first-child > :nth-child(3) { animation-delay: .16s; }
  .hero .wrap > div:first-child > :nth-child(4) { animation-delay: .24s; }
  .hero .wrap > div:first-child > :nth-child(5) { animation-delay: .32s; }
  .hero-art .arch { animation: arch-in .9s var(--ease) both; }
  .hero-art .badge { animation: rise .6s .5s var(--ease) both; }
  .page-head .wrap > * { animation: rise .6s var(--ease) both; }
  .page-head .wrap > :nth-child(2) { animation-delay: .07s; }
  .page-head .wrap > :nth-child(3) { animation-delay: .14s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
  @keyframes arch-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }
  /* بتلات الحملة تتفتّح عند ظهورها ثم تستجيب للمؤشر */
  .js .campaign .c-petals li { transform: scale(.2) rotate(-25deg); opacity: 0; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1), opacity .4s; }
  .js .campaign.in .c-petals li { transform: none; opacity: 1; }
  .js .campaign .c-petals li:nth-child(2) { transition-delay: .1s; }
  .js .campaign .c-petals li:nth-child(3) { transition-delay: .2s; }
  .js .campaign .c-petals li:nth-child(4) { transition-delay: .3s; }
  .js .campaign.in .c-petals li:hover { transform: scale(1.07); transition-delay: 0s; transition-duration: .25s; }
  .c-petals:hover li { transform: none; }
  /* تفاصيل تفاعلية صغيرة */
  .btn .ic, .more .ic { transition: transform .2s; }
  .btn:hover .ic, .service:hover .more .ic { transform: translateX(-4px); }
  .service .ico, .c-card .ico { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
  .service:hover .ico, a.c-card:hover .ico { transform: rotate(-8deg) scale(1.1); }
  .news-card { transition: transform var(--dur), box-shadow var(--dur), border-color .25s; }
  .news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--p-sand); }
  .values li { transition: background .2s, transform .2s; }
  .values li:hover { background: rgba(255, 255, 255, .22); transform: translateX(-4px); }
  .vision::after { animation: spin 90s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .lightbox[open] img { animation: arch-in .35s ease both; }
  .nav a { transition: background .2s, color .2s; }
}

[hidden] { display: none !important; }


/* ───── مبدّل اللغة ───── */
.lang { flex: none; padding: var(--sp-8) var(--sp-16); border-radius: var(--r-pill); border: 1.5px solid var(--line); font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm); color: var(--brand-deep); }
.lang:hover { border-color: var(--brand); background: var(--wash); }
@media (max-width: 1020px) { .lang { order: 2; } .menu-btn { order: 3; margin-inline-start: 0; } .site-header .wrap > .lang { margin-inline-start: auto; } }

/* ───── النسخة الإنجليزية: الاتجاه من اليسار ───── */
[dir="ltr"] body { line-height: var(--lh-body); }
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3 { line-height: 1.25; letter-spacing: -.01em; }
[dir="ltr"] .hero h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.15; }
[dir="ltr"] .field select { background-position: right 12px center; }
[dir="ltr"] .field input[dir="ltr"] { text-align: left; }
[dir="ltr"] .c-dark { background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand) 55%, #2f6bd0 100%); }
[dir="ltr"] .c-petals li { line-height: var(--lh-heading); }
[dir="ltr"] .nav a { padding-inline: var(--sp-12); font-size: var(--fs-base); }
[dir="ltr"] [lang="ar"] { font-family: var(--font-body); }
@media (prefers-reduced-motion: no-preference) {
  [dir="ltr"] .brandline { transform-origin: left center; }
  [dir="ltr"] .btn:hover .ic, [dir="ltr"] .service:hover .more .ic { transform: translateX(4px); }
  [dir="ltr"] .values li:hover { transform: translateX(4px); }
}

/* ───── ملاحظة الحفظ التلقائي في نموذج التسجيل ───── */
.save-note { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-8); min-height: 30px; margin-bottom: var(--sp-20); font-size: var(--fs-sm); color: var(--ink-soft); }
.save-note .ic { color: var(--ok); }
.save-note button { margin-inline-start: auto; padding: var(--sp-4) var(--sp-16); border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: var(--fs-xs); color: var(--brand-deep); }
.save-note button:hover { border-color: var(--brand); }

/* ───── الخريطة ───── */
.map { position: relative; min-height: 360px; aspect-ratio: 16 / 7; border-radius: var(--petal-lg); overflow: hidden; border: 1px solid var(--line-gold); background: var(--wash-gold) url("../assets/pattern.webp") top center / cover no-repeat; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--sp-16); padding: var(--sp-24); text-align: center; }
.map-facade .ico { width: var(--tile-lg); height: var(--tile-lg); display: grid; place-items: center; border-radius: var(--petal); background: var(--brand); color: #fff; font-size: var(--fs-icon-lg); }
.map-facade address { color: var(--ink-soft); line-height: var(--lh-body); }
.map-facade address b { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--brand-ink); }
.map-actions { display: flex; flex-wrap: wrap; gap: var(--sp-12); justify-content: center; }
.map-actions .btn.ghost { background: #fff; }
.map-facade small { color: var(--ink-soft); font-size: var(--fs-xs); }
.map-link { display: inline-block; margin-top: var(--sp-16); font-family: var(--font-display); font-weight: 600; }
@media (max-width: 600px) { .map { aspect-ratio: auto; min-height: 420px; } }

/* مربع الجنسية القابل للبحث */
.combo { position: relative; }
.combo input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f3a8d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; background-size: 18px; padding-inline-end: var(--sp-40); }
[dir="ltr"] .combo input { background-position: right 12px center; }
.combo-list { position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: var(--sp-8); list-style: none; max-height: min(264px, 46vh); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1.5px solid var(--brand); border-radius: var(--r-md); box-shadow: var(--shadow-pop); }
.combo-list li { padding: var(--sp-12) var(--sp-12); border-radius: var(--r-sm); cursor: pointer; line-height: var(--lh-ui); }
.combo-list li:hover, .combo-list li.active { background: var(--wash-brand); color: var(--brand-ink); }
.combo-list li[aria-selected="true"] { font-weight: 700; }
.combo-list li.none { color: var(--ink-soft); cursor: default; background: none; }
.field.locked .combo input { background-color: var(--wash-brand); background-image: none; color: var(--ink-soft); cursor: not-allowed; }

/* الشاشات الضيقة جداً: لا يوسّع نصٌّ بلا فراغات (كالبريد) بطاقته */
.aside, .aside > *, .c-card > div { min-width: 0; }
.c-card strong { overflow-wrap: anywhere; }
@media (max-width: 340px) { .c-card { padding: var(--sp-16); gap: var(--sp-12); } .c-card .ico { width: 42px; height: 42px; } }
.form-shell > * { min-width: 0; }
@media (max-width: 620px) { .form-shell, .aside { grid-template-columns: minmax(0, 1fr); } }

/* حقل لا يراه الزائر: يكشف الإرسال الآلي */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[aria-busy="true"] { opacity: .65; pointer-events: none; }
.done-panel .ref { display: inline-block; margin-top: var(--sp-4); padding: var(--sp-8) var(--sp-16); border-radius: var(--r-pill); background: var(--wash, #f3eef6); font-family: var(--font-display); font-weight: 600; }
.done-panel .ref b { display: inline-block; direction: ltr; unicode-bidi: isolate; letter-spacing: .06em; }

/* ───── إضافات الإتقان ───── */
/* الشعار في الترويسة: العلامة الخطية ومعها الاسم مكتوباً */
.site-header .logo { display: inline-flex; align-items: center; gap: var(--sp-12); color: var(--brand-ink); }
.site-header .logo img { width: auto; height: 60px; object-fit: contain; }   /* الشعار الكامل: الأيقونة والكتابة معاً */
.logo-text { display: flex; flex-direction: column; line-height: var(--lh-heading); font-family: var(--font-display); }
.logo-text small { font-size: var(--fs-xs); color: var(--gold-deep); font-weight: 500; }
.logo-text b { font-size: var(--fs-lg); font-weight: 700; white-space: nowrap; }
.site-footer .f-brand img { width: auto; height: 72px; object-fit: contain; filter: none; }
.site-footer .bar .ltr { font-weight: 700; }

/* علامة الشعار في الحملة الداكنة */
.c-mark { width: min(100%, 280px); margin-inline: auto; }
.c-mark img { width: 100%; height: auto; }

/* أيام الرحلة: بطاقات أعرض من بطاقات البرامج */
.programs.days { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .programs.days { grid-template-columns: 1fr; } }

/* الصور أفقية في هذا الموقع */
.photo-grid { grid-template-columns: repeat(3, 1fr); }
.photo-grid img { aspect-ratio: 4 / 3; }
@media (max-width: 720px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* لقطات التطبيق داخل إطار جوال */
.phone { border: 7px solid var(--brand-deep); border-radius: 30px; overflow: hidden; background: #fff; box-shadow: var(--shadow-pop); }
.phone img { width: 100%; height: auto; display: block; }
.hero-phones { position: relative; width: min(100%, 440px); aspect-ratio: 1 / 1.14; margin-inline: auto; }
.hero-phones .phone { position: absolute; }
.hero-phones .phone:first-child { width: 50%; inset-inline-end: 0; top: 9%; transform: rotate(4deg); }
.hero-phones .phone:last-child { width: 56%; inset-inline-start: 2%; top: 0; z-index: 1; }
[dir="ltr"] .hero-phones .phone:first-child { transform: rotate(-4deg); }
.app-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-32) var(--gap); }
.app-shots li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-8); }
.app-shots .phone { width: min(100%, 250px); margin-bottom: var(--sp-12); }
.app-shots b { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--brand-ink); }
.app-shots span { font-size: var(--fs-base); color: var(--ink-soft); line-height: var(--lh-ui); }
.cta-row.center { justify-content: center; }
.c-photo img[src*="app-"] { object-fit: cover; object-position: top; }
@media (max-width: 720px) { .app-shots { grid-template-columns: repeat(2, 1fr); } }

.hero-art .badge { z-index: 2; }

/* صورة الخبر: أعلى البطاقة بعرضها الكامل، وفي صفحة الخبر قبل النص */
.news-card:has(.news-img) { overflow: hidden; }
.news-img { display: block; margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) var(--sp-8); }
.news-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-figure { margin: 0 0 var(--sp-24); }
.news-figure img { width: 100%; height: auto; border-radius: var(--petal-lg); }

/* لوحات التطبيق من المتجر: فيها إطار الجوال، فتُعرض بطاقة بزوايا مستديرة بلا إطار إضافي */
.shot { border-radius: 26px; overflow: hidden; background: #f7f7fd; box-shadow: var(--shadow-pop); }
.shot img { width: 100%; height: auto; display: block; }
.hero-shots { position: relative; width: min(100%, 440px); aspect-ratio: 1 / 1.16; margin-inline: auto; }
.hero-shots .shot { position: absolute; }
.hero-shots .shot:first-child { width: 48%; inset-inline-end: 0; top: 10%; transform: rotate(4deg); }
.hero-shots .shot:last-child { width: 54%; inset-inline-start: 2%; top: 0; z-index: 1; }
[dir="ltr"] .hero-shots .shot:first-child { transform: rotate(-4deg); }
.app-shots .shot { width: min(100%, 250px); margin-bottom: var(--sp-12); }
