/* ==========================================================================
   نسج الامتياز — نظام التصميم v1 (نموذج تجريبي)
   --------------------------------------------------------------------------
   الفكرة: الخيط والإبرة والنجمة (من الشعار) + قوس الباب النجدي + نسيج السنبلة.
   كل لون/شكل/مسافة في الموقع يخرج من المتغيّرات اللي تحت — لا قيم عشوائية.
   ========================================================================== */

/* ---------- 1) الخطوط: دوران للعناوين، كايرو للنصوص ---------- */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap");
@font-face { font-family: "Doran"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/Doran-Light.woff2") format("woff2"); }
@font-face { font-family: "Doran"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Doran-Regular.woff2") format("woff2"); }
@font-face { font-family: "Doran"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Doran-Medium.woff2") format("woff2"); }
@font-face { font-family: "Doran"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Doran-Bold.woff2") format("woff2"); }
@font-face { font-family: "Doran"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/Doran-ExtraBold.woff2") format("woff2"); }

/* ---------- 2) المتغيّرات (Tokens) ---------- */
:root {
  /* ألوان الهوية — الأساسي الأول: الذهبي، الأساسي الثاني: الكحلي */
  --gold:   #BE9261;   /* ذهبي — الأساسي الأول (للأشكال: أزرار، خطوط، نجمة، خلفيات) */
  --navy:   #1A2948;   /* كحلي — الأساسي الثاني */
  --night:  #121A2F;   /* كحلي غامق — النصوص والأقسام الداكنة */
  --sand:   #DDC6A6;   /* رملي — مساند */
  --cream:  #F4EFE9;   /* خلفية الموقع */
  --linen:  #FAF7F3;   /* سطح البطاقات (درجة أفتح من الخلفية) */

  /* أسماء قديمة تشير للألوان الجديدة، حتى ما ينكسر شي في الصفحات */
  --ink:    var(--night);
  --camel:  var(--gold);
  --bronze: var(--navy);
  --mocha:  var(--sand);

  /* أدوار (تتبدّل مع الثيم) */
  --bg:         var(--cream);
  --surface:    var(--linen);
  --surface-2:  color-mix(in srgb, var(--sand) 38%, var(--cream));
  --text:       var(--night);
  --text-soft:  #4B5469;
  --line:       rgba(18, 26, 47, .14);
  --line-strong:rgba(18, 26, 47, .32);
  --accent:     var(--gold);
  --accent-ink: var(--navy);
  --btn-bg:     var(--navy);
  --btn-fg:     var(--cream);
  --logo-filter: none;

  /* الخطوط */
  --font-display: "Doran", "Cairo", serif;
  --font-body:    "Cairo", "Tajawal", system-ui, sans-serif;
  --font-latin:   "Cairo", system-ui, sans-serif;

  /* سُلّم النصوص */
  --fs-xs:  .8125rem;
  --fs-sm:  .9375rem;
  --fs-md:  1.0625rem;
  --fs-lg:  1.25rem;
  --fs-h3:  clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
  --fs-h2:  clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  --fs-h1:  clamp(2.6rem, 1.5rem + 4.6vw, 5.1rem);

  /* الأشكال */
  --r-sm:   12px;      /* حقول، شارات صغيرة */
  --r-card: 24px;      /* بطاقات وصور داعمة */
  --r-pill: 999px;     /* أزرار وشرائح */
  --arch:   999px 999px var(--r-card) var(--r-card);  /* قوس الباب — الشكل الأساسي للصور */

  /* المسافات (قاعدة 4px) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem;   --s-7: 3rem;  --s-8: 4rem;   --s-9: 6rem;
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --container: 1200px;

  /* الظلال */
  --shadow-sm: 0 1px 2px rgba(18,26,47,.06), 0 4px 12px -6px rgba(18,26,47,.12);
  --shadow-md: 0 2px 4px rgba(18,26,47,.05), 0 18px 40px -16px rgba(18,26,47,.28);

  --ease: cubic-bezier(.22, .8, .24, 1);
}

[data-theme="dark"] {
  --bg:         var(--night);
  --surface:    #172240;
  --surface-2:  var(--navy);
  --text:       var(--cream);
  --text-soft:  #B9C0D0;
  --line:       rgba(244, 239, 233, .14);
  --line-strong:rgba(244, 239, 233, .34);
  --accent-ink: var(--gold);
  --btn-bg:     var(--cream);
  --btn-fg:     var(--night);
  --logo-filter: brightness(0) invert(1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 18px 40px -16px rgba(0,0,0,.7);
}

/* أقسام داكنة (كحلي) — تبقى كحلية في الثيمين */
.on-dark {
  --bg: var(--navy);
  --surface: color-mix(in srgb, var(--cream) 7%, var(--navy));
  --surface-2: color-mix(in srgb, var(--cream) 11%, var(--navy));
  --text: var(--cream);
  --text-soft: #C4CAD8;
  --line: rgba(244, 239, 233, .18);
  --line-strong: rgba(244, 239, 233, .4);
  --accent-ink: var(--gold);
  --btn-bg: var(--cream);
  --btn-fg: var(--night);
  --logo-filter: brightness(0) invert(1);
  background: var(--bg);
  color: var(--text);
}

/* ---------- 3) القاعدة ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.25; margin: 0; letter-spacing: 0; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--night); }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--ink); color: var(--cream); padding: .6rem 1rem; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 1rem; }
.latin { font-family: var(--font-latin); font-style: italic; letter-spacing: .02em; }

/* أيقونات */
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- 4) الأشكال المميّزة ---------- */
/* النجمة — شكل الشعار */
.star { display: inline-block; width: .9em; height: .9em; color: var(--accent); flex: none; }

/* الغرزة — فاصل متقطع بنجمة في المنتصف */
.stitch {
  display: flex; align-items: center; gap: var(--s-4); color: var(--line-strong);
}
.stitch::before, .stitch::after {
  content: ""; flex: 1; height: 0; border-top: 1.5px dashed currentColor;
}
.stitch .star { color: var(--accent); width: 1rem; height: 1rem; }

/* القوس — صور بشكل باب نجدي */
.arch { border-radius: var(--arch); overflow: hidden; position: relative; background: var(--surface-2); }
.arch > img, .arch > video { width: 100%; height: 100%; object-fit: cover; }
/* إطار مخيّط حول القوس */
.arch-stitched { position: relative; }
.arch-stitched::before {
  content: ""; position: absolute; inset: -14px;
  border: 1.5px dashed var(--accent); border-radius: 999px 999px calc(var(--r-card) + 12px) calc(var(--r-card) + 12px);
  pointer-events: none;
}

/* نسيج السنبلة — خلفية خفيفة */
.weave {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none' stroke='%2315130F' stroke-opacity='.06' stroke-width='1.2'%3E%3Cpath d='M0 7l7 7 7-7 7 7 7-7M0 21l7 7 7-7 7 7 7-7'/%3E%3C/svg%3E");
}
[data-theme="dark"] .weave, .on-dark.weave {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none' stroke='%23F6F1EA' stroke-opacity='.05' stroke-width='1.2'%3E%3Cpath d='M0 7l7 7 7-7 7 7 7-7M0 21l7 7 7-7 7 7 7-7'/%3E%3C/svg%3E");
}

/* ---------- 5) الأزرار ---------- */
.btn {
  --h: 3.25rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--h); padding: 0 1.75rem; border-radius: var(--r-pill);
  border: 1.5px solid transparent; font-weight: 500; font-size: var(--fs-md); line-height: 1;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn .ic { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(-4px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-accent { background: var(--camel); color: var(--ink); }
.btn-accent:hover { background: color-mix(in srgb, var(--camel) 82%, #fff); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.btn-sm { --h: 2.5rem; padding: 0 1.2rem; font-size: var(--fs-sm); }
.btn-block { width: 100%; }

.icon-btn {
  width: 2.75rem; height: 2.75rem; border-radius: var(--r-pill); border: 1.5px solid var(--line);
  display: inline-grid; place-items: center; background: transparent; transition: border-color .2s, background .2s;
  position: relative;
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn .ic { width: 1.2rem; height: 1.2rem; }

/* ---------- 6) الشارات والشرائح ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-sm); font-weight: 500; color: var(--accent-ink);
}
.eyebrow .latin { font-size: var(--fs-sm); color: var(--text-soft); }
.eyebrow .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

.badge {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .85rem;
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 500;
  background: var(--camel); color: var(--ink);
}
.chip {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: 0 1.1rem;
  border-radius: var(--r-pill); border: 1.5px solid var(--line); background: transparent;
  font-size: var(--fs-sm); color: var(--text); transition: all .2s;
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
[data-theme="dark"] .chip[aria-pressed="true"], [data-theme="dark"] .chip.is-active { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ---------- 7) البطاقات ---------- */
.card {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-card);
  padding: var(--s-6); position: relative;
}
.card-stitched { border-style: dashed; border-color: var(--line-strong); }

/* ---------- 8) عنوان القسم ---------- */
.sec-head { display: grid; gap: var(--s-4); margin-bottom: clamp(2.25rem, 5vw, 4rem); max-width: 46rem; }
.sec-head--split { max-width: none; grid-template-columns: 1.1fr .9fr; align-items: end; gap: var(--s-7); }
.sec-head .lead { color: var(--text-soft); font-size: var(--fs-lg); line-height: 1.8; max-width: 38rem; }
.sec-head h2 em, .hero h1 em { font-style: normal; color: var(--accent-ink); position: relative; white-space: nowrap; }

/* ---------- 9) الهيدر ---------- */
.topbar { background: var(--ink); color: var(--cream); font-size: var(--fs-xs); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 2.5rem; }
.topbar a { display: inline-flex; align-items: center; gap: .4rem; opacity: .85; transition: opacity .2s; }
.topbar a:hover { opacity: 1; }
.topbar .ic { width: 1em; height: 1em; }
.topbar-msg { display: inline-flex; align-items: center; gap: .6rem; }
.topbar-contact { display: flex; gap: var(--s-5); }

.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1.5px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-stuck { border-bottom-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 4.75rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 2.1rem; width: auto; filter: var(--logo-filter); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a { position: relative; font-size: var(--fs-sm); font-weight: 500; padding-block: .4rem; color: var(--text); }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px; background: var(--accent-ink);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.cart-count {
  position: absolute; top: -4px; inset-inline-start: -4px; min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem;
  border-radius: var(--r-pill); background: var(--camel); color: var(--ink); font-size: .68rem; font-weight: 600;
  display: grid; place-items: center; line-height: 1;
}
.menu-btn { display: none; }

/* قائمة الجوال */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: var(--s-5) var(--gutter) var(--s-7);
  display: flex; flex-direction: column; gap: var(--s-6);
  transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s;
}
.mobile-menu.is-open { transform: none; visibility: visible; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; padding: .9rem 0;
  border-bottom: 1.5px dashed var(--line); display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu nav a .ic { color: var(--accent-ink); }

/* ---------- 10) الواجهة (Hero) ---------- */
.hero { overflow: hidden; padding-block: clamp(2.5rem, 5vw, 5rem) clamp(4rem, 8vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.hero-copy { display: grid; gap: var(--s-5); justify-items: start; }
.hero h1 { line-height: 1.2; }
.hero .lead { font-size: var(--fs-lg); color: var(--text-soft); max-width: 30rem; line-height: 1.9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-4); padding-top: var(--s-5); border-top: 1.5px dashed var(--line-strong); width: 100%; }
.hero-facts li { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); font-weight: 500; }
.hero-facts .ic { color: var(--accent-ink); }

.hero-media { position: relative; width: min(100%, 31rem); justify-self: center; }
.hero-media .arch { aspect-ratio: 4 / 5.15; box-shadow: var(--shadow-md); }
.hero-media .arch img { object-position: 38% center; }
.hero-card {
  position: absolute; inset-inline-start: -1.75rem; bottom: 2.5rem; z-index: 2;
  display: flex; align-items: center; gap: var(--s-3); padding: .9rem 1.25rem .9rem 1.5rem;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-md); font-size: var(--fs-sm); font-weight: 500;
}
.hero-card .ic-wrap { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--camel); color: var(--ink); display: grid; place-items: center; }
.hero-card small { display: block; color: var(--text-soft); font-weight: 400; font-size: var(--fs-xs); }
.hero-star { position: absolute; inset-inline-end: -1.5rem; top: 3rem; width: 4.5rem; height: 4.5rem; color: var(--camel); z-index: 2; animation: float 7s ease-in-out infinite; }
.hero-star-sm { position: absolute; inset-inline-end: 3.5rem; top: -1.5rem; width: 1.75rem; height: 1.75rem; color: var(--accent-ink); z-index: 2; animation: float 5s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-10px) rotate(8deg); } }

/* ---------- 11) شريط الثقة ---------- */
.trust { border-block: 1.5px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-5); }
.trust-item + .trust-item { border-inline-start: 1.5px dashed var(--line-strong); }
.trust-item .ic { width: 1.9rem; height: 1.9rem; color: var(--accent-ink); }
.trust-item b { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
.trust-item span { font-size: var(--fs-xs); color: var(--text-soft); line-height: 1.5; display: block; }

/* ---------- 12) الأقسام (التصنيفات) ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.cat { display: grid; gap: var(--s-4); text-align: start; }
.cat .arch { aspect-ratio: 3 / 4.1; transition: transform .6s var(--ease); }
.cat .arch img { transition: transform .9s var(--ease); }
.cat:hover .arch img { transform: scale(1.06); }
.cat-info { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-inline: var(--s-2); }
.cat-info h3 { font-size: 1.35rem; }
.cat-info p { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.6; margin-top: .15rem; }
.cat-go { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: all .3s var(--ease); }
.cat:hover .cat-go { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: translateX(-4px); }
[data-theme="dark"] .cat:hover .cat-go { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ---------- 13) كيف نشتغل ---------- */
.how-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.how-media { position: sticky; top: 7rem; display: grid; gap: var(--s-4); }
.how-media .photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-md); }
.how-media .photo img { width: 100%; height: 100%; object-fit: cover; }
.how-note { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); background: var(--surface); }
.how-note .ic { color: var(--accent-ink); width: 1.6rem; height: 1.6rem; margin-top: .2rem; }
.how-note p { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.8; }
.how-note b { color: var(--text); font-weight: 600; }

.steps { position: relative; display: grid; gap: var(--s-6); counter-reset: step; }
.steps::before { /* خيط يربط الخطوات */
  content: ""; position: absolute; inset-inline-start: 1.75rem; top: 1.75rem; bottom: 1.75rem; width: 0;
  border-inline-start: 1.5px dashed var(--line-strong);
}
.step { position: relative; display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s-5); align-items: start; }
.step-num {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--text);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; position: relative; z-index: 1;
  transition: background .3s, color .3s;
}
.step:hover .step-num { background: var(--ink); color: var(--cream); }
[data-theme="dark"] .step:hover .step-num { background: var(--cream); color: var(--ink); }
.step h3 { font-size: 1.4rem; display: flex; align-items: center; gap: .7rem; margin-bottom: .35rem; }
.step h3 .ic { color: var(--accent-ink); }
.step p { color: var(--text-soft); line-height: 1.85; }

/* ---------- 14) الباقات ---------- */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); align-items: stretch; }
.pack {
  display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r-card);
  background: var(--surface); border: 1.5px solid var(--line); position: relative; transition: transform .4s var(--ease), box-shadow .4s;
}
.pack:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pack-top { display: flex; align-items: center; justify-content: space-between; }
.pack-num { font-family: var(--font-latin); font-style: italic; font-size: 1.1rem; color: var(--text-soft); }
.pack h3 { font-size: 1.9rem; }
.pack .sub { color: var(--text-soft); font-size: var(--fs-sm); line-height: 1.8; margin-top: .4rem; }
.pack .origin { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: var(--fs-sm); color: var(--accent-ink); margin-bottom: .5rem; }
.pack-price { display: flex; align-items: baseline; gap: .5rem; padding-block: var(--s-4); border-block: 1.5px dashed var(--line-strong); }
.pack-price b { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.pack-price span { font-weight: 500; }
.pack-price small { margin-inline-start: auto; color: var(--text-soft); font-size: var(--fs-xs); }
.pack ul { display: grid; gap: .8rem; flex: 1; }
.pack li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .7rem; font-size: var(--fs-sm); line-height: 1.7; }
.pack li .ic { color: var(--accent-ink); width: 1.1rem; height: 1.1rem; margin-top: .22rem; }
.pack.is-featured { background: var(--navy); color: var(--cream); border-color: var(--navy); transform: translateY(-1rem); box-shadow: var(--shadow-md); }
.pack.is-featured:hover { transform: translateY(-1.5rem); }
.pack.is-featured .sub, .pack.is-featured .pack-num, .pack.is-featured .pack-price small { color: #C4CAD8; }
.pack.is-featured .origin, .pack.is-featured li .ic { color: var(--camel); }
.pack.is-featured .pack-price { border-color: rgba(246,241,234,.3); }
.pack.is-featured .btn { background: var(--camel); color: var(--ink); }
.pack.is-featured .btn:hover { background: color-mix(in srgb, var(--camel) 80%, #fff); }
.pack .btn-wrap { display: grid; gap: .6rem; text-align: center; }
.pack .btn-wrap small { font-size: var(--fs-xs); color: var(--text-soft); }
.pack.is-featured .btn-wrap small { color: #C4CAD8; }

.seasonal { margin-top: var(--s-8); }
.seasonal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.seasonal-head h3 { font-size: 1.5rem; }
.seasonal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.s-card { display: grid; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-card); border: 1.5px solid var(--line); background: var(--surface); transition: border-color .3s, transform .4s var(--ease); }
.s-card:hover { border-color: var(--text); transform: translateY(-4px); }
.s-card .thumb { border-radius: calc(var(--r-card) - 8px); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.s-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.s-card .meta { padding: 0 var(--s-2) var(--s-2); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.s-card h4 { font-size: 1.1rem; font-weight: 600; }
.s-card small { display: block; color: var(--text-soft); font-size: var(--fs-xs); font-family: var(--font-body); font-weight: 400; }

/* ---------- 15) مستكشف الأقمشة ---------- */
.fabrics-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.fabric-stage { position: relative; width: min(100%, 27rem); justify-self: center; }
.fabric-stage .arch { aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); }
.fabric-stage .arch img { transition: opacity .35s; }
.fabric-label {
  position: absolute; inset-inline: 1.25rem; bottom: 1.25rem; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: .85rem 1.25rem; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px);
  border: 1.5px solid var(--line); border-radius: var(--r-pill);
}
/* ثوب بدون خلفية بدل صورة القماش (يشتغل لما يكون للون ثوب جاهز) */
.thobe-stage { display: none; position: relative; justify-content: center; align-items: flex-end; height: clamp(24rem, 68vh, 38rem); }
.thobe-stage::after { content: ""; position: absolute; inset-inline: 18%; bottom: -.6rem; height: 1.4rem; background: radial-gradient(ellipse at center, rgba(18,26,47,.28), transparent 70%); }
.thobe-stage img { position: relative; z-index: 1; height: 100%; width: auto; max-width: none; transition: opacity .35s; filter: drop-shadow(0 22px 18px rgba(18,26,47,.2)); }
.fabric-stage.is-thobe .thobe-stage { display: flex; }
.fabric-stage.is-vest .thobe-stage { height: clamp(20rem, 54vh, 31rem); }
.fabric-stage.is-thobe .arch { display: none; }
.fabric-stage.is-thobe .fabric-label { display: none; }
.fabric-label b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.fabric-label span { font-size: var(--fs-xs); color: var(--text-soft); }
.fabric-controls { display: grid; gap: var(--s-5); }
.tabs { display: inline-flex; padding: .3rem; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); justify-self: start; }
.tab { border: 0; background: transparent; padding: .55rem 1.5rem; border-radius: var(--r-pill); font-weight: 500; font-size: var(--fs-sm); transition: all .25s; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--cream); }
[data-theme="dark"] .tab[aria-selected="true"] { background: var(--cream); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr)); gap: var(--s-3); }
.swatch { display: grid; gap: .45rem; justify-items: center; background: none; border: 0; padding: 0; font-size: var(--fs-xs); color: var(--text-soft); }
.swatch i { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid transparent; outline: 1.5px solid var(--line); outline-offset: 3px; transition: all .3s var(--ease); background-size: cover; background-position: center; }
.swatch:hover i { transform: scale(1.06); }
.swatch[aria-pressed="true"] i { outline: 2px solid var(--text); outline-offset: 3px; }
.swatch[aria-pressed="true"] { color: var(--text); font-weight: 500; }
.swatch[hidden] { display: none; }
.fabric-origin { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); padding-top: var(--s-5); border-top: 1.5px dashed var(--line-strong); }
.fabric-origin div { font-size: var(--fs-sm); line-height: 1.6; }
.fabric-origin b { display: flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .15rem; }
.fabric-origin span { color: var(--text-soft); font-size: var(--fs-xs); display: block; }
.summer-panel { display: grid; gap: var(--s-4); }
.summer-panel .note { padding: var(--s-4) var(--s-5); border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); font-size: var(--fs-sm); color: var(--text-soft); }

/* ---------- 16) المعمل ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15rem; gap: var(--s-4); }
.bento > * { border-radius: var(--r-card); overflow: hidden; position: relative; background: var(--surface-2); }
.bento img, .bento video { width: 100%; height: 100%; object-fit: cover; }
.bento .b-video { grid-column: span 2; grid-row: span 2; }
.bento figcaption {
  position: absolute; inset-inline: 1rem; bottom: 1rem; padding: .4rem 1rem; width: fit-content; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--ink) 70%, transparent); color: var(--cream); font-size: var(--fs-xs); backdrop-filter: blur(8px);
}
.bento .b-tall { grid-row: span 2; }

/* ---------- 17) الريلز ---------- */
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.reel { position: relative; aspect-ratio: 9 / 15; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel span {
  position: absolute; inset-inline: 1rem; bottom: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; width: fit-content;
  padding: .45rem 1rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ink) 66%, transparent); color: var(--cream); font-size: var(--fs-xs); backdrop-filter: blur(8px);
}
.reel span .star { width: .7rem; height: .7rem; }

/* ---------- 18) لماذا نسج ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.pillar { padding: var(--s-6) var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.pillar + .pillar { border-inline-start: 1.5px dashed var(--line-strong); }
.pillar .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 2rem + 3vw, 4.75rem); line-height: 1; color: var(--camel); display: flex; align-items: baseline; gap: .4rem; }
.pillar .big small { font-size: 1.1rem; font-weight: 500; color: var(--text); }
.pillar h3 { font-size: 1.25rem; }
.pillar p { color: var(--text-soft); font-size: var(--fs-sm); line-height: 1.8; }

/* ---------- 19) الآراء ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.review { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r-card); background: var(--surface); border: 1.5px solid var(--line); }
.review .stars { display: flex; gap: .3rem; color: var(--camel); }
.review .stars .star { width: 1.1rem; height: 1.1rem; }
.review blockquote { margin: 0; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.7; font-weight: 500; flex: 1; }
.review footer { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1.5px dashed var(--line-strong); font-size: var(--fs-sm); }
.avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--sand); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.review footer small { display: block; color: var(--text-soft); font-size: var(--fs-xs); }
.review.is-placeholder { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.review.is-placeholder blockquote { color: var(--text-soft); }

/* ---------- 20) الأسئلة الشائعة ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-side { position: sticky; top: 7rem; display: grid; gap: var(--s-5); }
.faq-list { display: grid; gap: var(--s-3); }
.faq-item { border: 1.5px solid var(--line); border-radius: var(--r-card); background: var(--surface); transition: border-color .3s, background .3s; overflow: hidden; }
.faq-item[open] { border-color: var(--text); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { width: 1.4rem; height: 1.4rem; padding: .3rem; border-radius: 50%; border: 1.5px solid var(--line-strong); box-sizing: content-box; transition: transform .35s var(--ease), background .3s; }
.faq-item[open] summary .ic { transform: rotate(135deg); background: var(--camel); border-color: var(--camel); color: var(--ink); }
.faq-item p { padding: 0 1.5rem 1.4rem; color: var(--text-soft); line-height: 1.9; max-width: 42rem; }

/* ---------- 21) الحجز ---------- */
.booking { overflow: hidden; }
.booking-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.booking-copy { display: grid; gap: var(--s-5); justify-items: start; }
.booking-copy h2 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.75rem); }
.booking-copy .lead { color: var(--text-soft); font-size: var(--fs-lg); }
.contact-list { display: grid; gap: var(--s-3); margin-top: var(--s-3); width: 100%; }
.contact-list a, .contact-list li { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-md); }
.contact-list .ic-wrap { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; color: var(--accent-ink); }
.contact-list small { display: block; font-size: var(--fs-xs); color: var(--text-soft); line-height: 1.4; }
.form { padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--r-card); background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-md); display: grid; gap: var(--s-5); position: relative; color: var(--text); }
.form h3 { font-size: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { display: grid; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: .7rem 1.1rem; font: inherit; font-size: var(--fs-md); color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--text-soft) 70%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--camel) 35%, transparent); }
.field input:user-invalid { border-color: #B3261E; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.form-foot small { color: var(--text-soft); font-size: var(--fs-xs); max-width: 18rem; line-height: 1.6; }
.form-done { display: none; text-align: center; gap: var(--s-4); justify-items: center; padding-block: var(--s-6); }
.form.is-done .form-done { display: grid; }
.form.is-done > :not(.form-done) { display: none; }
.form-done .tick { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--camel); color: var(--ink); display: grid; place-items: center; }
.form-done .tick .ic { width: 2rem; height: 2rem; }

/* ---------- 22) الفوتر ---------- */
.footer { padding-top: var(--s-9); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1fr; gap: var(--s-7); padding-bottom: var(--s-8); }
.footer .logo img { height: 2.6rem; }
.footer p.about { color: var(--text-soft); max-width: 24rem; margin-top: var(--s-5); line-height: 1.9; }
.footer h4 { font-size: 1.1rem; margin-bottom: var(--s-4); color: var(--camel); }
.footer li + li { margin-top: .6rem; }
.footer a { color: var(--text-soft); transition: color .2s; }
.footer a:hover { color: var(--text); }
.socials { display: flex; gap: var(--s-2); margin-top: var(--s-5); flex-wrap: wrap; }
.socials a { padding: .4rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); font-size: var(--fs-sm); color: var(--text); transition: all .25s; }
.socials a:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.footer-pay { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s-3); }
.footer-pay span { padding: .25rem .8rem; border-radius: var(--r-sm); border: 1.5px solid var(--line); font-size: var(--fs-xs); color: var(--text-soft); }
.footer-bottom { border-top: 1.5px dashed var(--line-strong); padding-block: var(--s-5); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-soft); }
.footer-mark { padding-bottom: var(--s-6); }
.footer-mark .big-logo { display: block; width: 100%; aspect-ratio: 581.8 / 88.15; background: var(--camel);
  -webkit-mask: url("../logo/logo-wordmark.svg") center / contain no-repeat; mask: url("../logo/logo-wordmark.svg") center / contain no-repeat; }

/* زر واتساب العائم */
.wa-fab {
  position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 40; display: inline-flex; align-items: center; gap: .6rem;
  height: 3.5rem; padding: 0 1.4rem 0 1.1rem; border-radius: var(--r-pill); background: var(--ink); color: var(--cream);
  box-shadow: var(--shadow-md); font-size: var(--fs-sm); font-weight: 500; transition: transform .3s var(--ease);
}
[data-theme="dark"] .wa-fab { background: var(--cream); color: var(--ink); }
.wa-fab:hover { transform: translateY(-3px); }
.wa-fab .ic { width: 1.5rem; height: 1.5rem; }

/* ---------- 23) الحركة ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 24) الاستجابة ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions .btn { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-inline-start: 0; }
  .trust-item:nth-child(n+3) { border-top: 1.5px dashed var(--line-strong); }
  .packs { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
  .pack.is-featured, .pack.is-featured:hover { transform: none; }
  .seasonal-grid { grid-template-columns: repeat(2, 1fr); }
  .reels { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .b-video { grid-column: span 2; grid-row: span 1; }
  .bento .b-tall { grid-row: span 1; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { border-inline-start: 0; }
  .pillar:nth-child(n+3) { border-top: 1.5px dashed var(--line-strong); }
  .reviews { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .how-grid, .fabrics-grid, .faq-grid, .booking-grid, .sec-head--split { grid-template-columns: 1fr; }
  .hero-media { width: min(100%, 24rem); }
  .hero-card { inset-inline-start: -.5rem; }
  .hero-star { inset-inline-end: -.5rem; }
  .how-media, .faq-side { position: static; }
  .topbar-contact { display: none; }
  .topbar .container { justify-content: center; }
}
@media (max-width: 560px) {
  :root { --fs-md: 1rem; }
  .cats { gap: var(--s-3); }
  .cat-info h3 { font-size: 1.1rem; }
  .cat-info p, .cat-go { display: none; }
  .trust-item { flex-direction: column; align-items: flex-start; gap: var(--s-2); padding: var(--s-4); }
  .form-grid { grid-template-columns: 1fr; }
  .seasonal-grid { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .reels { gap: var(--s-3); }
  .fabric-origin { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .wa-fab span { display: none; }
  .wa-fab { padding: 0; width: 3.5rem; justify-content: center; }
  .hero-facts { gap: var(--s-3); }
}

/* تذييل بلون الحبر لتمييزه عن قسم الكحلي */
.footer.on-dark { --bg: var(--night); --surface: var(--navy); }

/* الصفة hidden تغلب أي display مخصّص */
[hidden] { display: none !important; }

/* تحسينات بعد المعاينة */
h1, h2, h3 { text-wrap: balance; }
.footer-bottom { padding-bottom: 5.5rem; }

/* ==========================================================================
   انترو الصفحة الرئيسية — الخيط يرسم الشعار، ثم تُرفع ستارة بحافة مقوّسة
   (الشعار يُرسم بالخيط الجملي ثم يمتلئ بلون القطن)
   ========================================================================== */
.intro { display: none; }
html.intro-playing { overflow: hidden; }
html.intro-playing .intro { display: grid; }

.intro {
  position: fixed; inset: 0; z-index: 200; place-items: center; overflow: hidden;
  border-radius: 0;
  transition: transform .95s cubic-bezier(.7, 0, .15, 1), border-radius .6s ease;
  will-change: transform;
  /* احتياط: لو تعطّل الـJS يختفي الانترو بعد 8 ثواني */
  animation: intro-failsafe 0s linear 8s forwards;
}
.intro.is-leaving { transform: translateY(-104%); border-radius: 0 0 50% 50% / 0 0 9vh 9vh; } /* حافة سفلية مقوّسة مثل القوس */
.intro.is-fast { transition-duration: .5s; }
@keyframes intro-failsafe { to { visibility: hidden; pointer-events: none; } }

.intro-stage { display: grid; justify-items: center; gap: clamp(1.5rem, 4vw, 2.5rem); width: min(86vw, 46rem); }
.intro-logo { width: 100%; }
.intro-logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.intro-logo path {
  fill: transparent; stroke: var(--camel); stroke-width: var(--sw, 1.6); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000);
  animation:
    intro-draw 1.5s cubic-bezier(.5, .1, .2, 1) var(--d, 0s) forwards,
    intro-fill .7s ease calc(var(--d, 0s) + 1.15s) forwards;
}
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fill { to { fill: var(--cream); stroke: transparent; } }

/* الغرزة: خيط متقطع يمتد من المنتصف */
.intro-thread { width: min(60vw, 24rem); height: 0; border-top: 1.5px dashed var(--camel); opacity: .8;
  transform: scaleX(0); animation: intro-thread 1.1s var(--ease) 1.5s forwards; }
@keyframes intro-thread { to { transform: scaleX(1); } }

.intro-tag { display: flex; align-items: center; gap: .9rem; margin: 0; color: var(--camel); font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, .9rem + .7vw, 1.45rem); opacity: 0; transform: translateY(10px); animation: intro-rise .8s var(--ease) 1.8s forwards; }
.intro-tag .star { width: .8rem; height: .8rem; }
@keyframes intro-rise { to { opacity: 1; transform: none; } }

.intro-skip { position: absolute; inset-block-start: 1.25rem; inset-inline-end: 1.25rem; min-height: 2.5rem; padding: 0 1.2rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--text); font-size: var(--fs-sm);
  opacity: 0; animation: intro-rise .6s var(--ease) .7s forwards; transition: border-color .2s, background .2s; }
.intro-skip:hover { border-color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  html.intro-playing { overflow: auto; }
}
