/* =====================================================================
   أزياء غُلمة — Gholmeh Fashion
   نظام التصميم | Design System
   الهوية: Onyx + Champagne Gold + Ivory، وسلّم الألوان (أزرق/أحمر/أسود/أبيض)
   RTL-first · Mobile-first · Logical properties throughout
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. Design tokens                                                    */
/* ------------------------------------------------------------------ */
:root {
  /* Core palette */
  --onyx:        #14100C;   /* أسود دافئ */
  --onyx-900:    #0E0B08;
  --onyx-800:    #1E1912;
  --onyx-700:    #2A2318;
  --gold:        #C6A15B;   /* ذهبي شامبين */
  --gold-bright: #E4C77E;
  --gold-deep:   #9C7B3C;   /* للنصوص على الخلفيات الداكنة */
  --gold-ink:    #7C5A24;   /* ذهبي غامق للنصوص على خلفية فاتحة (يمر AA) */
  --ivory:       #F5F0E6;   /* خلفية فاتحة */
  --bone:        #EDE5D5;
  --paper:       #FBF9F4;   /* أبيض دافئ */
  --stone:       #6E6455;   /* محايد ثانوي (غامق كفاية للنص على فاتح — AA) */
  --stone-soft:  #B9AF9F;

  /* Merchandising accents (سلّم الألوان) */
  --c-blue:  #274B72;   /* أزرق */
  --c-red:   #8E2A34;   /* أحمر */
  --c-black: #14100C;   /* أسود */
  --c-white: #FBF9F4;   /* أبيض */

  /* Active accent — swapped by [data-accent] */
  --accent: var(--gold);
  --accent-contrast: var(--onyx);

  /* Typography */
  --font-display: "Aref Ruqaa", "Times New Roman", serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-latin: "Cormorant Garamond", Georgia, serif;

  --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.3vw, 0.85rem);
  --fs-body:    clamp(0.98rem, 0.94rem + 0.25vw, 1.08rem);
  --fs-lead:    clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
  --fs-h4:      clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --fs-h3:      clamp(1.5rem, 1.25rem + 1.1vw, 2.2rem);
  --fs-h2:      clamp(2rem, 1.5rem + 2.4vw, 3.4rem);
  --fs-h1:      clamp(2.6rem, 1.7rem + 4.4vw, 5.6rem);

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 0.85rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;
  --section-y: clamp(3.5rem, 2.5rem + 5vw, 7rem);

  /* Structure */
  --container: 1240px;
  --container-wide: 1440px;
  --rail-w: 58px;          /* عرض سلّم الألوان على الديسكتوب */
  --header-h: 76px;
  --radius: 2px;           /* couture: زوايا شبه حادة */
  --radius-lg: 4px;
  --hair: 1px solid color-mix(in srgb, var(--gold) 42%, transparent);
  --hair-dark: 1px solid color-mix(in srgb, var(--onyx) 14%, transparent);

  --shadow-soft: 0 18px 50px -30px rgba(20, 16, 12, 0.55);
  --shadow-lift: 0 30px 70px -40px rgba(20, 16, 12, 0.7);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* Accent themes toggled by the color rail */
:root[data-accent="blue"]  { --accent: var(--c-blue);  --accent-contrast: #fff; }
:root[data-accent="red"]   { --accent: var(--c-red);   --accent-contrast: #fff; }
:root[data-accent="black"] { --accent: #2A2318;        --accent-contrast: var(--gold-bright); }
:root[data-accent="white"] { --accent: var(--stone);   --accent-contrast: var(--onyx); }

/* ------------------------------------------------------------------ */
/* 2. Reset & base                                                     */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--onyx);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
img, video { object-fit: cover; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--onyx); }

/* Focus — visible & consistent */
:focus-visible {
  outline: 2px solid var(--onyx);
  outline-offset: 3px;
  border-radius: var(--radius);
}
/* على الأسطح الداكنة نستخدم الذهبي الفاتح ليحقّق التباين المطلوب */
.hero :focus-visible, .site-header :focus-visible, .rail :focus-visible,
.page-hero :focus-visible, .section--onyx :focus-visible, .site-footer :focus-visible {
  outline-color: var(--gold-bright);
}

.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(50%);
  top: -100px;
  z-index: 200;
  background: var(--onyx);
  color: var(--gold-bright);
  padding: var(--space-2) var(--space-4);
  border: var(--hair);
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ */
/* 3. Typography helpers                                               */
/* ------------------------------------------------------------------ */
.display { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
.latin { font-family: var(--font-latin); font-optical-sizing: auto; }

/* أساس الـ eyebrow عربي: خط الجسم بدون مائل/تحويل حروف (يمنع fallback السيرف والمائل الوهمي) */
.eyebrow {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
/* المعالجة اللاتينية المزخرفة تُستخدم فقط للـ eyebrow الإنجليزي فعلاً */
.eyebrow--latin {
  font-family: var(--font-latin);
  font-style: italic;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  inline-size: 2.4em;
  block-size: 1px;
  background: var(--accent);
  opacity: 0.8;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--gold-bright); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.14; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 600; line-height: 1.35; }

.lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--onyx); color: color-mix(in srgb, var(--onyx) 82%, transparent); }
.muted { color: var(--stone); }
.num { font-family: var(--font-latin); font-variant-numeric: lining-nums; }

/* ------------------------------------------------------------------ */
/* 4. Layout primitives                                                */
/* ------------------------------------------------------------------ */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  padding-inline-end: var(--rail-w); /* حجز مساحة سلّم الألوان (0px على الموبايل) */
}
.container--wide { width: min(100% - 2.5rem, var(--container-wide)); padding-inline-end: var(--rail-w); }

/* Section: single source of vertical rhythm — components never override it */
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section--onyx { background: var(--onyx); color: var(--ivory); }
.section--onyx .muted { color: var(--stone-soft); }
.section--bone { background: var(--bone); }
.section--paper { background: var(--paper); }

.section-head { max-width: 62ch; margin-block-end: var(--space-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-block: var(--space-2) var(--space-2); }

.stack > * + * { margin-block-start: var(--space-3); }

/* ------------------------------------------------------------------ */
/* 5. Buttons                                                          */
/* ------------------------------------------------------------------ */
.btn {
  --btn-fg: var(--onyx);
  --btn-bg: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.9em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-fg: var(--gold-bright);
  --btn-bg: transparent;
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
}
.btn--ghost:hover { --btn-fg: var(--onyx); background: var(--gold-bright); border-color: var(--gold-bright); }

.btn--dark { --btn-fg: var(--ivory); --btn-bg: var(--onyx); border-color: var(--onyx); }
.btn--dark:hover { --btn-fg: var(--onyx); background: var(--gold); border-color: var(--gold); }

.btn--wa { --btn-fg: #fff; --btn-bg: #1FA855; border-color: #1FA855; }
.btn--wa:hover { --btn-fg: #fff; background: #178a45; border-color: #178a45; }

.btn--block { width: 100%; }
.btn--sm { padding: 0.6em 1.2em; font-size: 0.85rem; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--gold-ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.textlink:hover { border-color: currentColor; gap: 0.9em; }
.section--onyx .textlink { color: var(--gold-bright); }

/* ------------------------------------------------------------------ */
/* 6. Circular emblem (recreated logo)                                 */
/* ------------------------------------------------------------------ */
.emblem { inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: 50%; }

/* ------------------------------------------------------------------ */
/* 7. Header & navigation                                              */
/* ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 90;
  /* تمديد خلفية الهيدر إلى منطقة النوتش/شريط الحالة أعلى الشاشة */
  block-size: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-block-start: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-block-end: 1px solid transparent;
}
.site-header__inner {
  width: min(100% - 2.5rem, var(--container-wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
/* transparent over hero, solid on scroll */
.site-header[data-scrolled="true"],
.site-header[data-solid="true"] {
  background: #14100C;                 /* fallback صلب */
  background: color-mix(in srgb, var(--onyx) 92%, transparent);
  backdrop-filter: blur(10px);
  border-block-end-color: color-mix(in srgb, var(--gold) 30%, transparent);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ivory); }
.brand__mark { inline-size: 46px; block-size: 46px; flex: none; border-radius: 50%; overflow: hidden; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__ar { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-bright); }
.brand__en { font-family: var(--font-latin); font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--stone-soft); }

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 0.4rem + 1.4vw, 2rem); }
.nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ivory);                                       /* fallback صلب */
  color: color-mix(in srgb, var(--ivory) 86%, transparent);
  padding-block: 0.4em;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 0;
  block-size: 1px;
  background: var(--gold-bright);
  transition: inline-size 0.35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-bright); }
.nav a:hover::after, .nav a[aria-current="page"]::after { inline-size: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 95;
}
.nav-toggle span { inline-size: 26px; block-size: 2px; background: var(--gold-bright); transition: transform 0.35s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* On non-hero pages the header is solid from the start */
body[data-header="solid"] { padding-block-start: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
body[data-header="solid"] .site-header { position: fixed; background: #14100C; background: color-mix(in srgb, var(--onyx) 96%, transparent); border-block-end-color: color-mix(in srgb, var(--gold) 30%, transparent); }

/* ------------------------------------------------------------------ */
/* 8. Chromatic rail — SIGNATURE                                       */
/* ------------------------------------------------------------------ */
.rail {
  position: fixed;
  inset-block-start: 0;
  inset-inline-end: 0;
  z-index: 80;
  block-size: 100vh;
  inline-size: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding-block: calc(var(--header-h) + 8px) 12px;
  background: color-mix(in srgb, var(--onyx) 88%, transparent);
  border-inline-start: 1px solid color-mix(in srgb, var(--gold) 24%, transparent);
  backdrop-filter: blur(6px);
}
.rail__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone-soft);
  text-align: center;
  padding-block: 10px;
}
.rail__swatches { display: flex; flex-direction: column; flex: 1; }
.rail__swatch {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: flex-grow 0.4s var(--ease);
  border: none;
  color: transparent;
}
.rail__swatch::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--sw);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  border-radius: var(--radius);
  transition: inset 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.rail__swatch[data-color="white"]::before { border-color: color-mix(in srgb, var(--onyx) 30%, transparent); }
.rail__swatch > span {
  position: relative;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  mix-blend-mode: normal;
}
.rail__swatch[data-color="white"] > span { color: var(--onyx); text-shadow: none; }
.rail__swatch:hover::before, .rail__swatch:focus-visible::before { inset: 3px; box-shadow: 0 0 0 2px var(--gold-bright); }
.rail__swatch:hover > span, .rail__swatch:focus-visible > span { opacity: 1; transform: translateY(0); }
.rail__swatch.is-active::before { inset: 3px; box-shadow: 0 0 0 2px var(--gold-bright); }
.rail__swatch.is-active > span { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------------ */
/* 9. Hero                                                             */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-block-size: 100svh;
  display: grid;
  place-items: center;          /* النص في منتصف الهيرو تماماً */
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 3rem;
  overflow: hidden;
  color: var(--ivory);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { inline-size: 100%; block-size: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(14,11,8,0.95) 4%, rgba(14,11,8,0.35) 42%, rgba(14,11,8,0) 78%),
    linear-gradient(to left, rgba(14,11,8,0.5), rgba(14,11,8,0) 55%);
}
.hero__inner { max-width: min(92%, 760px); }
.hero__thesis {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.5rem + 4.2vw, 5.2rem);
  line-height: 1.14;
  margin-block: var(--space-3) var(--space-3);
  text-wrap: balance;
}
.hero__thesis em { color: var(--gold-bright); font-style: normal; }
.hero__sub { display: block; margin-block-end: var(--space-4); color: var(--stone-soft); font-size: 0.8rem; letter-spacing: 0.3em; }
/* الأزرار: أسفل يمين الهيرو، صف أفقي، ليست تحت النص مباشرة */
.hero__actions {
  position: absolute;
  inset-block-end: clamp(5.5rem, 14vh, 9rem);
  inset-inline-start: clamp(1.25rem, 5vw, 4.5rem);
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-2);
  max-inline-size: min(92%, 520px);
}
.hero__scroll {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  writing-mode: vertical-rl;
  font-family: var(--font-latin);
  font-style: italic;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--stone-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}
.hero__scroll::after { content: ""; inline-size: 1px; block-size: 46px; background: linear-gradient(var(--gold), transparent); animation: scrollpulse 2.4s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ------------------------------------------------------------------ */
/* 10. Collection tiles                                                */
/* ------------------------------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.8rem, 0.4rem + 1.4vw, 1.4rem); }
.tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--onyx-800);
  isolation: isolate;
}
.tile img { inline-size: 100%; block-size: 100%; transition: transform 0.9s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,11,8,0.85) 6%, transparent 60%); }
.tile__body { position: absolute; inset-block-end: 0; inset-inline: 0; padding: var(--space-3); color: var(--ivory); z-index: 1; }
.tile__count { font-family: var(--font-latin); font-style: italic; color: var(--gold-bright); font-size: 0.8rem; letter-spacing: 0.2em; }
.tile__name { font-family: var(--font-display); font-size: var(--fs-h4); }
.tile__go { position: absolute; inset-block-start: var(--space-3); inset-inline-start: var(--space-3); inline-size: 40px; block-size: 40px; border: var(--hair); border-radius: 50%; display: grid; place-items: center; color: var(--gold-bright); transition: background 0.35s var(--ease), color 0.35s var(--ease); z-index: 1; }
.tile:hover .tile__go { background: var(--gold-bright); color: var(--onyx); }
@media (min-width: 860px) { .tiles { grid-template-columns: repeat(4, 1fr); } .tiles--lift .tile:nth-child(even) { margin-block-start: var(--space-5); } }

/* ------------------------------------------------------------------ */
/* 11. Product cards                                                   */
/* ------------------------------------------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(1rem, 0.5rem + 1.6vw, 1.8rem); }
.card { display: flex; flex-direction: column; background: var(--paper); border: var(--hair-dark); border-radius: var(--radius); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.card__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--onyx-800); display: block; }
.card__media img, .card__media video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.card__img--secondary { opacity: 0; transition: opacity 0.6s var(--ease); }
.card:hover .card__img--secondary { opacity: 1; }
.card__badge { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 2; background: var(--c-red); color: #fff; font-family: var(--font-latin); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; padding: 0.3em 0.7em; border-radius: var(--radius); direction: ltr; unicode-bidi: isolate; }
.card__swatches { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; z-index: 2; display: flex; gap: 5px; }
.card__swatches i { inline-size: 14px; block-size: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.card__body { padding: var(--space-3); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__cat { font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.02em; color: var(--gold-ink); }
.card__name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; }
.card__desc { font-size: 0.9rem; color: var(--stone); flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-block-start: var(--space-1); }
.price { font-family: var(--font-latin); font-size: 1.2rem; font-weight: 600; color: var(--onyx); }
.price del { color: var(--stone); font-size: 0.9rem; margin-inline-end: 0.4em; }
.price ins { color: var(--c-red); text-decoration: none; }
.card__actions { display: flex; gap: 0.5rem; padding: 0 var(--space-3) var(--space-3); }
.card__actions .btn { flex: 1; }

/* ------------------------------------------------------------------ */
/* 12. Story / split                                                   */
/* ------------------------------------------------------------------ */
.split { display: grid; gap: clamp(1.5rem, 0.8rem + 3vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-media { grid-template-columns: 1.2fr 1fr; } }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img, .split__media video { inline-size: 100%; block-size: 100%; }
.frame { position: relative; }
.frame::after { content: ""; position: absolute; inset: 12px; border: var(--hair); pointer-events: none; z-index: 2; }
.est-badge { display: inline-flex; flex-direction: column; align-items: flex-start; font-family: var(--font-latin); color: var(--gold-deep); line-height: 1; }
.est-badge b { font-size: clamp(2.6rem, 2rem + 2.6vw, 4.2rem); font-weight: 600; color: var(--onyx); }
.section--onyx .est-badge b { color: var(--gold-bright); }
.est-badge span { letter-spacing: 0.3em; font-style: italic; text-transform: uppercase; font-size: 0.8rem; }

/* ------------------------------------------------------------------ */
/* 13. Testimonials                                                    */
/* ------------------------------------------------------------------ */
.tslider { position: relative; }
.tslider__track { display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: var(--space-2); scrollbar-width: none; }
.tslider__track::-webkit-scrollbar { display: none; }
.quote { scroll-snap-align: center; flex: 0 0 min(88%, 460px); background: var(--paper); border: var(--hair-dark); border-radius: var(--radius); padding: var(--space-4); position: relative; }
.section--onyx .quote { background: var(--onyx-800); border-color: color-mix(in srgb, var(--gold) 22%, transparent); }
.quote__mark { font-family: var(--font-latin); font-size: 4rem; line-height: 0.6; color: var(--gold); opacity: 0.5; }
.quote__text { font-size: 1.1rem; line-height: 1.7; margin-block: var(--space-2); }
.quote__by { display: flex; align-items: center; gap: 0.7rem; margin-block-start: var(--space-3); }
.quote__avatar { inline-size: 42px; block-size: 42px; border-radius: 50%; background: var(--gold); color: var(--onyx); display: grid; place-items: center; font-family: var(--font-display); flex: none; }
.quote__name { font-weight: 600; }
.quote__meta { font-size: 0.82rem; color: var(--stone); }
.stars { color: var(--gold); letter-spacing: 0.1em; }
.tslider__nav { display: flex; gap: 0.6rem; margin-block-start: var(--space-3); }
.tslider__nav button { inline-size: 44px; block-size: 44px; border: var(--hair); border-radius: 50%; display: grid; place-items: center; color: var(--gold-deep); transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.section--onyx .tslider__nav button { color: var(--gold-bright); }
.tslider__nav button:hover { background: var(--gold); color: var(--onyx); }

/* ------------------------------------------------------------------ */
/* 14. Social strip                                                    */
/* ------------------------------------------------------------------ */
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); }
.social-card { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: var(--hair); border-radius: var(--radius); transition: transform 0.35s var(--ease), background 0.35s var(--ease); }
.social-card:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.social-card__icon { inline-size: 46px; block-size: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; border: var(--hair); color: var(--gold-bright); }
.social-card__meta b { display: block; font-family: var(--font-display); }
.social-card__meta span { font-size: 0.85rem; color: var(--stone-soft); }
.stat-count { font-family: var(--font-latin); font-weight: 600; color: var(--gold-bright); }

/* ------------------------------------------------------------------ */
/* 15. Footer                                                          */
/* ------------------------------------------------------------------ */
.site-footer { background: var(--onyx-900); color: var(--stone-soft); padding-block: var(--space-6) calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); border-block-start: 1px solid color-mix(in srgb, var(--gold) 26%, transparent); }
.footer-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-col h4 { font-family: var(--font-display); color: var(--gold-bright); margin-block-end: var(--space-2); font-size: 1.1rem; }
.footer-col p, .footer-col a { font-size: 0.92rem; line-height: 1.9; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-branch { margin-block-end: var(--space-3); }
.footer-branch b { color: var(--ivory); display: block; }
.footer-bottom { margin-block-start: var(--space-5); padding-block-start: var(--space-3); border-block-start: 1px solid color-mix(in srgb, var(--gold) 16%, transparent); display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; align-items: center; font-size: 0.82rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-block-end: var(--space-3); }
.footer-brand .brand__mark { inline-size: 52px; block-size: 52px; }

/* ------------------------------------------------------------------ */
/* 16. Floating WhatsApp                                               */
/* ------------------------------------------------------------------ */
.wa-float {
  position: fixed;
  inset-block-end: calc(22px + env(safe-area-inset-bottom, 0px));
  inset-inline-start: 22px;
  z-index: 100;
  inline-size: 58px;
  block-size: 58px;
  border-radius: 50%;
  background: #1FA855;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgba(31,168,85,0.6);
  transition: transform 0.35s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1FA855; animation: waPulse 2.4s var(--ease) infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }
.wa-float svg { inline-size: 30px; block-size: 30px; }

/* ------------------------------------------------------------------ */
/* 17. Timeline (About)                                                */
/* ------------------------------------------------------------------ */
.timeline { position: relative; margin-block-start: var(--space-5); }
.timeline::before { content: ""; position: absolute; inset-block: 6px 0; inset-inline-start: 12px; inline-size: 1px; background: linear-gradient(var(--gold), transparent); }
@media (min-width: 780px) { .timeline::before { inset-inline-start: 50%; } }
.tl-item { position: relative; padding-inline-start: 44px; margin-block-end: var(--space-5); }
.tl-item::before { content: ""; position: absolute; inset-block-start: 6px; inset-inline-start: 6px; inline-size: 13px; block-size: 13px; border-radius: 50%; background: var(--onyx); border: 2px solid var(--gold); }
.tl-year { font-family: var(--font-latin); font-weight: 600; font-size: 1.4rem; color: var(--gold-ink); }
.section--onyx .tl-year { color: var(--gold-bright); }
.tl-title { font-family: var(--font-display); font-size: 1.25rem; margin-block: 0.2rem; }
@media (min-width: 780px) {
  .tl-item { inline-size: 50%; padding-inline: 0 var(--space-5); text-align: end; }
  .tl-item::before { inset-inline-start: auto; inset-inline-end: -6.5px; }
  .tl-item:nth-child(even) { margin-inline-start: 50%; padding-inline: var(--space-5) 0; text-align: start; }
  .tl-item:nth-child(even)::before { inset-inline-start: -6.5px; inset-inline-end: auto; }
}

/* Gallery grid (About) */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; } .gallery__tall { grid-row: span 2; } .gallery__wide { grid-column: span 2; } }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; }
.gallery img { inline-size: 100%; block-size: 100%; transition: transform 0.8s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption { position: absolute; inset-block-end: 0; inset-inline: 0; padding: var(--space-2); background: linear-gradient(transparent, rgba(14,11,8,0.8)); color: var(--ivory); font-size: 0.82rem; }

/* ------------------------------------------------------------------ */
/* 18. Shop layout & filters                                           */
/* ------------------------------------------------------------------ */
.shop-layout { display: grid; gap: var(--space-4); }
@media (min-width: 940px) { .shop-layout { grid-template-columns: 250px 1fr; align-items: start; } }
.filters { border: var(--hair-dark); border-radius: var(--radius); padding: var(--space-3); background: var(--paper); }
@media (min-width: 940px) { .filters { position: sticky; inset-block-start: calc(var(--header-h) + 12px); } }
.filters__group + .filters__group { margin-block-start: var(--space-3); padding-block-start: var(--space-3); border-block-start: var(--hair-dark); }
.filters__legend { font-family: var(--font-display); font-size: 1.05rem; margin-block-end: var(--space-2); color: var(--onyx); }
.chip {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.45em 0.9em; margin-block-end: 0.5rem; margin-inline-start: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--onyx) 18%, transparent);
  border-radius: var(--radius); font-size: 0.88rem; background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.chip[aria-pressed="true"] { background: var(--onyx); color: var(--ivory); border-color: var(--onyx); }
.chip__dot { inline-size: 13px; block-size: 13px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--onyx) 30%, transparent); }
.filters__actions { margin-block-start: var(--space-3); }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-block-end: var(--space-3); }
.shop-count { font-family: var(--font-latin); font-style: italic; color: var(--stone); }
.filters-toggle { display: none; }
@media (max-width: 939px) {
  .filters-toggle { display: inline-flex; }
  .filters { display: none; }
  .filters[data-open="true"] { display: block; }
}
.empty-state { text-align: center; padding: var(--space-6) var(--space-3); color: var(--stone); border: 1px dashed color-mix(in srgb, var(--onyx) 20%, transparent); border-radius: var(--radius); }

/* ------------------------------------------------------------------ */
/* 19. Product detail                                                  */
/* ------------------------------------------------------------------ */
.pdp { display: grid; gap: clamp(1.5rem, 0.8rem + 3vw, 3.5rem); }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.pdp-gallery { display: grid; gap: var(--space-2); }
.pdp-stage { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--onyx-800); cursor: zoom-in; }
.pdp-stage img, .pdp-stage video { inline-size: 100%; block-size: 100%; }
.pdp-stage img { transition: transform 0.4s var(--ease); }
.pdp-stage.is-zoom img { cursor: zoom-out; transform: scale(2); }
.pdp-thumbs { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.pdp-thumb { inline-size: 76px; block-size: 96px; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; opacity: 0.7; transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease); }
.pdp-thumb[aria-pressed="true"] { opacity: 1; border-color: var(--gold); }
.pdp-thumb img, .pdp-thumb video { inline-size: 100%; block-size: 100%; }
.pdp-info { position: sticky; inset-block-start: calc(var(--header-h) + 16px); }
.pdp-info h1 { font-size: var(--fs-h2); margin-block: var(--space-1) var(--space-2); }
.pdp-price { font-family: var(--font-latin); font-size: 1.8rem; font-weight: 600; margin-block: var(--space-2); }
.pdp-attrs { border-block: var(--hair-dark); padding-block: var(--space-3); margin-block: var(--space-3); display: grid; gap: var(--space-2); }
.pdp-attr { display: flex; gap: var(--space-2); align-items: baseline; }
.pdp-attr dt { min-inline-size: 90px; color: var(--stone); font-size: 0.9rem; }
.pdp-attr dd { margin: 0; font-weight: 500; }
.swatch-row { display: flex; gap: 0.5rem; }
.swatch-row i { inline-size: 22px; block-size: 22px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--onyx) 25%, transparent); }
.size-guide { margin-block-start: var(--space-3); border: var(--hair-dark); border-radius: var(--radius); }
.size-guide summary { padding: var(--space-2) var(--space-3); font-weight: 600; cursor: pointer; }
.size-guide table { inline-size: 100%; border-collapse: collapse; font-size: 0.9rem; }
.size-guide th, .size-guide td { padding: 0.55em 0.8em; border-block-start: var(--hair-dark); text-align: center; }
.size-guide th { color: var(--gold-ink); font-family: var(--font-latin); }

/* Lightbox for zoom */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(10,8,6,0.92); display: none; align-items: center; justify-content: center; padding: var(--space-4); }
.lightbox[data-open="true"] { display: flex; }
.lightbox img { max-block-size: 90vh; max-inline-size: 90vw; border-radius: var(--radius); }
.lightbox__close { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; inline-size: 46px; block-size: 46px; border: var(--hair); border-radius: 50%; color: var(--gold-bright); display: grid; place-items: center; }

/* ------------------------------------------------------------------ */
/* 20. Contact                                                         */
/* ------------------------------------------------------------------ */
.branches { display: grid; gap: var(--space-4); }
@media (min-width: 860px) { .branches { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.branch { border: var(--hair-dark); border-radius: var(--radius); overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.branch__map { aspect-ratio: 16 / 10; border: none; inline-size: 100%; min-block-size: 260px; display: block; background: var(--bone); }
.branch__body { padding: var(--space-3); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.branch__no { font-family: var(--font-latin); font-style: italic; color: var(--gold-ink); letter-spacing: 0.2em; }
.branch__name { font-family: var(--font-display); font-size: 1.3rem; }
.branch__row { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; }
.branch__row svg { inline-size: 18px; block-size: 18px; color: var(--gold-deep); flex: none; margin-block-start: 4px; }
.branch__actions { display: flex; gap: 0.6rem; margin-block-start: auto; padding-block-start: var(--space-2); }
.branch__actions .btn { flex: 1; }

.contact-form { display: grid; gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea {
  padding: 0.8em 1em; border: 1px solid color-mix(in srgb, var(--onyx) 20%, transparent);
  border-radius: var(--radius); background: var(--paper); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.field textarea { resize: vertical; min-block-size: 120px; }
.form-note { font-size: 0.85rem; color: var(--stone); }

/* Feedback screenshot grid */
.feedback-grid { columns: 1; column-gap: var(--space-3); }
@media (min-width: 640px) { .feedback-grid { columns: 2; } }
@media (min-width: 1000px) { .feedback-grid { columns: 3; } }
.feedback-grid .quote { break-inside: avoid; margin-block-end: var(--space-3); display: inline-block; inline-size: 100%; flex: none; }

/* ------------------------------------------------------------------ */
/* 21. Page hero (interior pages)                                      */
/* ------------------------------------------------------------------ */
.page-hero { background: var(--onyx); color: var(--ivory); padding-block: clamp(3rem, 2rem + 4vw, 5rem) var(--section-y); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -10%; inline-size: 460px; block-size: 460px; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%); pointer-events: none; }
.page-hero__inner { position: relative; max-width: 60ch; }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 4.6rem); margin-block: var(--space-2); text-wrap: balance; }
.breadcrumb { display: flex; gap: 0.5em; font-size: 0.85rem; color: var(--stone-soft); margin-block-end: var(--space-3); }
.breadcrumb a:hover { color: var(--gold-bright); }

/* ------------------------------------------------------------------ */
/* 22. Reveal animations                                               */
/* ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ------------------------------------------------------------------ */
/* 23. Responsive: header/rail on mobile                               */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
  :root { --rail-w: 0px; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    /* تموضع صريح (بدل اختصار inset) لضمان تغطية كامل الشاشة على WebKit/واتساب */
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    background: #14100C;                 /* خلفية صلبة مضمونة على كل المتصفحات */
    transform: translateX(100%);         /* خارج الشاشة (RTL: ينزلق من اليمين) */
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.4s var(--ease), visibility 0s 0.4s;
    padding: 1.25rem 2rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
  .nav[data-open="true"] { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .nav a {
    font-size: 1.4rem;
    font-family: var(--font-display);
    color: var(--ivory);                 /* تباين مضمون على الخلفية الداكنة */
    text-align: center;
    padding-block: 1.15rem;
    border-block-end: 1px solid rgba(198, 161, 91, 0.16);  /* فاصل ذهبي رفيع (بدون color-mix للتوافق) */
  }
  .nav a:first-child { border-block-start: 1px solid rgba(198, 161, 91, 0.16); }
  .nav a[aria-current="page"] { color: var(--gold-bright); }
  .nav a::after { display: none; }        /* لا حاجة لخط أسفل الرابط داخل قائمة الموبايل */

  /* ★ الحل النهائي لاختفاء القائمة عند التمرير / في الصفحات الداخلية:
     أثناء فتح القائمة نلغي backdrop-filter عن الهيدر، لأنه ينشئ "حاوية تموضع"
     للعناصر الثابتة فتُحسب القائمة بالنسبة للهيدر الصغير بدل الشاشة كاملة. */
  body.no-scroll .site-header {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* الموبايل: إخفاء سلّم الألوان الثابت لشاشة أنظف بلا تداخل (التصفية باللون متاحة في صفحة الأقسام) */
  .rail { display: none; }
  .hero { padding-inline-end: 0; }
  .hero__scroll { display: none; }
}

@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .card__actions { flex-direction: column; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ------------------------------------------------------------------ */
/* 24. Reduced motion                                                  */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Utilities */
.visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-4 { margin-block-start: var(--space-4); }
.divider { inline-size: 60px; block-size: 2px; background: var(--gold); border: none; margin-block: var(--space-3); }
.section-head--center .divider { margin-inline: auto; }
.no-scroll { overflow: hidden; }

/* إخفاء الزر العائم أثناء فتح قائمة الموبايل (يتفادى تراكب z-index) */
body.no-scroll .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }

/* ------------------------------------------------------------------ */
/* 25. معرض القطع بالفيديو — Collection reels (uniform tiles)          */
/* ------------------------------------------------------------------ */
.reels { display: grid; gap: clamp(0.8rem, 0.4rem + 1vw, 1.4rem); grid-template-columns: repeat(3, 1fr); }
.reel { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius); background: var(--onyx-800); isolation: isolate; }
.reel video, .reel img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.reel__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(14,11,8,0.82) 4%, transparent 44%); pointer-events: none; }
.reel__cap { position: absolute; inset-block-end: 0; inset-inline: 0; z-index: 2; padding: var(--space-3); display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; color: var(--ivory); }
.reel__cat { font-family: var(--font-latin); font-style: italic; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright); }
.reel__name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
/* زر صوت مستقل لكل ريل */
.reel__sound {
  position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 3;
  inline-size: 38px; block-size: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ivory);
  background: rgba(20,16,12,0.6);
  background: color-mix(in srgb, var(--onyx) 55%, transparent);
  border: 1px solid rgba(198,161,91,0.55);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  backdrop-filter: blur(4px);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.reel__sound:hover, .reel__sound[aria-pressed="true"] { background: var(--gold); color: var(--onyx); }
.reel__sound .ic-on { display: none; }
.reel__sound[aria-pressed="true"] .ic-muted { display: none; }
.reel__sound[aria-pressed="true"] .ic-on { display: block; }
@media (max-width: 760px) { .reels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .reels { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }

/* زر تشغيل/كتم صوت فيديو الهيرو */
.hero__sound { gap: 0.5em; }
.hero__sound svg { inline-size: 18px; block-size: 18px; }
/* الموبايل/الشاشات القصيرة: النص والأزرار تتدفّق عمودياً بشكل مرتّب ومتجاوب */
@media (max-width: 760px), (max-height: 620px) {
  .hero { display: flex; flex-direction: column; justify-content: center; align-items: center; padding-block-end: 3.5rem; }
  .hero__actions { position: static; margin-block-start: 2rem; justify-content: center; max-inline-size: 100%; }
}

/* ------------------------------------------------------------------ */
/* 26. طباعة — Print                                                   */
/* ------------------------------------------------------------------ */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .rail, .wa-float, .skip-link, .hero__scroll,
  .pwa-install, .pwa-toast, .pwa-sheet { display: none !important; }
  .hero { min-block-size: auto; }
  body { padding: 0 !important; }
  .section { padding-block: 1rem; }
}

/* ------------------------------------------------------------------ */
/* 27. PWA — زر التثبيت · شيت iPhone · إشعار التحديث                    */
/* ------------------------------------------------------------------ */
/* شارة التثبيت (أسفل يسار الشاشة في RTL — مقابل زر واتساب) */
.pwa-install {
  position: fixed;
  inset-block-end: calc(20px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: 16px;
  z-index: 120;
  display: flex;
  align-items: stretch;
  background: #1E1912;
  border: 1px solid rgba(198, 161, 91, 0.5);
  border-radius: 999px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  max-inline-size: calc(100vw - 32px);
}
.pwa-install.is-in { opacity: 1; transform: translateY(0); }
.pwa-install__btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 1rem; color: var(--ivory);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
}
.pwa-install__btn img { border-radius: 6px; flex: none; }
.pwa-install__x {
  padding: 0 0.85rem; color: var(--stone-soft); font-size: 1.4rem; line-height: 1;
  border-inline-start: 1px solid rgba(198, 161, 91, 0.28);
}
.pwa-install__x:hover, .pwa-install__btn:hover { color: var(--gold-bright); }

/* إشعار التحديث (أسفل الوسط) */
.pwa-toast {
  position: fixed;
  inset-block-end: calc(20px + env(safe-area-inset-bottom, 0px));
  inset-inline: 0;
  margin-inline: auto;
  z-index: 140;
  inline-size: max-content;
  max-inline-size: calc(100vw - 32px);
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.65rem 0.55rem 1.1rem;
  background: #0E0B08;
  border: 1px solid rgba(198, 161, 91, 0.45);
  border-radius: 999px;
  box-shadow: 0 18px 46px -18px rgba(0, 0, 0, 0.8);
  color: var(--ivory);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.pwa-toast.is-in { opacity: 1; transform: translateY(0); }
.pwa-toast__txt { font-size: 0.9rem; font-weight: 500; }
.pwa-toast__btn {
  background: var(--gold); color: var(--onyx);
  font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
  padding: 0.5em 1.1em; border-radius: 999px; white-space: nowrap;
}
.pwa-toast__btn:hover { background: var(--gold-bright); }
.pwa-toast__x { color: var(--stone-soft); font-size: 1.3rem; line-height: 1; padding: 0 0.35rem; }
.pwa-toast__x:hover { color: var(--gold-bright); }

/* شيت تعليمات iPhone */
.pwa-sheet {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 8, 6, 0.7);
  opacity: 0; transition: opacity 0.3s var(--ease);
  padding: 1rem;
}
.pwa-sheet.is-in { opacity: 1; }
.pwa-sheet__panel {
  position: relative;
  inline-size: min(100%, 30rem);
  background: #1E1912;
  border: 1px solid rgba(198, 161, 91, 0.4);
  border-radius: 20px;
  padding: 1.8rem 1.5rem calc(1.8rem + env(safe-area-inset-bottom, 0px));
  color: var(--ivory);
  text-align: center;
  transform: translateY(24px);
  transition: transform 0.32s var(--ease);
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.8);
}
.pwa-sheet.is-in .pwa-sheet__panel { transform: translateY(0); }
.pwa-sheet__icon { border-radius: 14px; margin: 0 auto 0.9rem; display: block; }
.pwa-sheet__panel h3 { font-family: var(--font-display); color: var(--gold-bright); font-size: 1.4rem; margin-block-end: 1.1rem; }
.pwa-sheet__steps { text-align: start; margin: 0 auto; max-inline-size: 24rem; display: grid; gap: 0.7rem; padding-inline-start: 1.2rem; }
.pwa-sheet__steps li { line-height: 1.7; color: var(--ivory); }
.pwa-sheet__steps b { color: var(--gold-bright); font-weight: 600; }
.pwa-sheet__steps svg { vertical-align: middle; color: var(--gold-bright); }
.pwa-sheet__note { margin-block-start: 1.2rem; font-size: 0.85rem; color: var(--stone-soft); }
.pwa-sheet__note b { color: var(--gold-bright); }
.pwa-sheet__close {
  position: absolute; inset-block-start: 10px; inset-inline-end: 14px;
  inline-size: 36px; block-size: 36px; border-radius: 50%;
  color: var(--gold-bright); font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center;
}
.pwa-sheet__close:hover { background: rgba(198, 161, 91, 0.14); }

/* إخفاء واجهات التثبيت عند التشغيل كتطبيق مستقل */
@media (display-mode: standalone) {
  .pwa-install { display: none !important; }
}
