/* ═══════════════════════════════════════════════════════════════
   Arck Desgin — الموقع العام (استوديو باترون)
   الفكرة: «ورقة باترون» — ورق كريمي بشبكة خفيفة، خطوط قص متقطعة،
   علامات نسيج، ومازورة. نفس هوية الأبلكيشن: بترولي + تركواز + مرجاني على نعناعي فاتح.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #1d5064;
  --ink-2: #2b596c;
  --paper: #edf7f6;
  --paper-2: #eeecdf;
  --surface: #ffffff;
  --line: #dce9e9;
  --text: #141817;
  --muted: #3f5a5f;
  --accent: #dc7a5b;
  --accent-d: #b4583b;
  --accent-bg: #fbe9e2;
  --accent-lt: #f2b9a5;
  --teal: #458898;
  --teal-lt: #9dccd2;
  --badge: #d5eaec;
  --link: #26474e;
  --chip: #e1dacc;
  --on-dark: #ffffff;
  --green: #3d6b4c;

  --f-display: 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;
  --f-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;

  --radius: 22px;
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--on-dark);
  /* ورق الباترون: شبكة نقط خفيفة + خطوط كل ١٠ مربعات */
  background-image:
    radial-gradient(circle, rgba(29, 80, 100, .085) 1px, transparent 1.2px),
    linear-gradient(rgba(69, 136, 152, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 136, 152, .045) 1px, transparent 1px);
  background-size: 24px 24px, 240px 240px, 240px 240px;
  background-position: 0 0, -1px -1px, -1px -1px;
  overflow-x: clip;
}

/* حبّة خفيفة فوق كل حاجة */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────────── الخطوط والعناوين ───────────── */

.display { font-family: var(--f-display); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; margin: 0; }
.h1 { font-size: clamp(38px, 6.4vw, 84px); line-height: 1.12; }
.h2 { font-size: clamp(30px, 4.2vw, 52px); }
.h3 { font-size: clamp(21px, 2.2vw, 26px); }
.lead { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--muted); line-height: 1.9; margin: 0; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 600; letter-spacing: .01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-d);
  letter-spacing: .02em;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 0;
  border-top: 2px dashed currentColor;
}

/* علامة قطعة الباترون: No. 04 — */
.piece-no {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  direction: ltr;
  display: inline-block;
}

/* ───────────── الأزرار ───────────── */

.btn {
  --b: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid var(--b);
  background: var(--b);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(29, 80, 100, .55); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-accent { --b: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--teal); color: var(--on-dark); }
.btn-light { --b: #ffffff; color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-d);
  border-bottom: 1.5px dashed transparent;
  transition: border-color .2s, gap .25s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: 12px; }
.link-arrow svg { width: 18px; height: 18px; }

/* ───────────── الهيدر ───────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(237, 247, 246, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--on-dark);
  display: grid;
  place-items: center;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  left: 9px;
  bottom: 10px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--f-serif); font-weight: 700; font-size: 24px; direction: ltr; }
.brand-tag { font-size: 11.5px; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  position: relative;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 10px;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  inset-inline: 12px;
  bottom: 4px;
  border-top: 1.5px dashed var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent-d); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 6px; }
.nav-login:hover { color: var(--ink); }

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  place-items: center;
  margin-inline-start: auto;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 78px 0 0;
  z-index: 59;
  background: var(--paper);
  padding: 22px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, transform .35s var(--ease), visibility .3s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; transform: none; visibility: visible; }
.mobile-menu a:not(.btn) {
  font-family: var(--f-display);
  font-size: 24px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu a .piece-no { font-size: 14px; }
.mobile-menu .btn { margin-top: 18px; }

/* ───────────── خط القص (فاصل) ───────────── */

.cutline {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  color: var(--muted);
}
.cutline::before {
  content: '';
  flex: 1;
  border-top: 1.5px dashed rgba(63, 90, 95, .45);
}
.cutline svg {
  width: 22px;
  height: 22px;
  position: absolute;
  inset-inline-start: 8%;
  background: var(--paper);
  padding: 0 4px;
  box-sizing: content-box;
  transition: inset-inline-start 1.4s var(--ease);
}
.cutline.in svg { inset-inline-start: 84%; }

/* ───────────── الهيرو ───────────── */

.hero { position: relative; padding: clamp(28px, 5vw, 60px) 0 clamp(60px, 8vw, 110px); overflow-x: clip; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .h1 { margin: 18px 0 22px; }
.hero-copy .h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero-copy .h1 em::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: .06em;
  border-bottom: 3px dashed var(--accent-lt);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 44px;
  border-top: 1.5px dashed rgba(63, 90, 95, .4);
}
.hero-highlights div { padding: 16px 0 0; padding-inline-end: 14px; }
.hero-highlights div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 16px; }
.hero-highlights strong { display: block; font-family: var(--f-display); font-size: 17px; margin-bottom: 2px; }
.hero-highlights span { font-size: 13.5px; color: var(--muted); line-height: 1.6; display: block; }

/* الصورة كقطعة باترون: هامش خياطة متقطع + علامات + خط نسيج + تاج */
.piece {
  position: relative;
  aspect-ratio: 4 / 5;
  justify-self: center;
  width: min(100%, 470px);
  margin: 30px;
}
.piece-img {
  position: absolute;
  inset: 0;
  border-radius: 190px 190px 26px 26px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 40px 70px -40px rgba(29, 80, 100, .55);
}
.piece-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.loaded .piece-img img { transform: scale(1); }
.piece-seam {
  position: absolute;
  inset: -16px;
  border: 1.8px dashed var(--accent);
  border-radius: 206px 206px 40px 40px;
  pointer-events: none;
  opacity: .8;
}
/* علامات التطابق (notches) */
.piece-seam i {
  position: absolute;
  width: 2px;
  height: 16px;
  background: var(--accent);
}
.piece-seam i:nth-child(1) { right: -9px; top: 46%; transform: rotate(90deg); }
.piece-seam i:nth-child(2) { left: -9px; top: 46%; transform: rotate(90deg); }
.piece-seam i:nth-child(3) { left: 50%; bottom: -9px; }
.piece-grain {
  position: absolute;
  top: 22%;
  bottom: 18%;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, .85);
  transform: translateX(-50%);
  mix-blend-mode: difference;
}
.piece-grain::before, .piece-grain::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  border: solid rgba(255, 255, 255, .9);
  border-width: 2px 2px 0 0;
  transform: translateX(-50%) rotate(-45deg);
}
.piece-grain::before { top: -2px; }
.piece-grain::after { bottom: -2px; transform: translateX(-50%) rotate(135deg); }
.piece-tag {
  position: absolute;
  inset-inline-start: -46px;
  bottom: 12%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px 16px 16px 6px;
  padding: 12px 16px 12px 22px;
  box-shadow: 0 18px 36px -20px rgba(29, 80, 100, .45);
  max-width: 230px;
  transform: rotate(-4deg);
  font-size: 13px;
  line-height: 1.6;
}
.piece-tag::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  transform: translateY(-50%);
}
.piece-tag b { display: block; font-family: var(--f-serif); font-style: italic; font-size: 16px; color: var(--accent-d); direction: ltr; text-align: end; }
.piece-ruler {
  position: absolute;
  inset-inline: 8%;
  bottom: -54px;
  height: 22px;
  border-top: 1.5px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 12px) top / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 60px) top / 100% 13px no-repeat;
  opacity: .55;
}

/* رسمة باترون في الخلفية بتترسم لوحدها */
.hero-draft {
  position: absolute;
  inset-inline-end: -6%;
  top: -30px;
  width: min(760px, 62vw);
  opacity: .32;
  pointer-events: none;
  z-index: 0;
}
.hero-draft path, .hero-draft line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw 3.4s var(--ease) .3s forwards;
}
.hero-draft .dash { stroke-dasharray: 6 7; stroke-dashoffset: 0; animation: fadein 1.6s ease 1.8s both; stroke-width: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ظهور تدريجي */
.rise { opacity: 0; transform: translateY(26px); }
.loaded .rise { animation: rise .9s var(--ease) forwards; }
.loaded .rise:nth-child(2) { animation-delay: .08s; }
.loaded .rise:nth-child(3) { animation-delay: .16s; }
.loaded .rise:nth-child(4) { animation-delay: .24s; }
.loaded .rise:nth-child(5) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ───────────── شريط التصنيفات ───────────── */

.marquee {
  border-block: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  padding: 18px 0;
  transform: rotate(-1.2deg);
  margin: 10px -10px 0;
}
.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 34px);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 42px;
}
.marquee span::after { content: '✂'; color: var(--accent-lt); font-size: .7em; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ───────────── الأقسام ───────────── */

.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section-tight { padding: clamp(50px, 7vw, 90px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(34px, 5vw, 60px);
}
.section-head .lead { max-width: 560px; margin-top: 14px; }
.section-head-center { text-align: center; grid-template-columns: 1fr; justify-items: center; }
.section-head-center .lead { margin-inline: auto; }

.dark {
  background: var(--ink);
  color: var(--on-dark);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1.2px),
    linear-gradient(rgba(242, 185, 165, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 185, 165, .06) 1px, transparent 1px);
  background-size: 24px 24px, 240px 240px, 240px 240px;
}
.dark .lead, .dark .muted { color: rgba(255, 255, 255, .68); }
.dark .eyebrow { color: var(--accent-lt); }
.dark .piece-no { color: rgba(255, 255, 255, .55); }

/* ───────────── كروت الخدمات (تاج باترون) ───────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.svc:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 30px 50px -30px rgba(29, 80, 100, .45); }
.svc-img { aspect-ratio: 16 / 11; overflow: hidden; position: relative; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.02); transition: transform 1s var(--ease), filter .6s; }
.svc:hover .svc-img img { transform: scale(1.05); filter: saturate(1); }
.svc-img::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px dashed rgba(255, 255, 255, .75);
  border-radius: 14px;
  pointer-events: none;
}
.svc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-body .piece-no { margin-bottom: 2px; }
.svc-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
/* ثقب التاج */
.svc::before {
  content: '';
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
}

/* ───────────── الخطوات على المازورة ───────────── */

.tape {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 20px;
}
.tape::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 46px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(29, 80, 100, .75) 0 1px, transparent 1px 10px) bottom / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(29, 80, 100, .9) 0 1.5px, transparent 1.5px 50px) bottom / 100% 17px no-repeat,
    var(--teal-lt);
  box-shadow: inset 0 -1px 0 rgba(29, 80, 100, .25), 0 14px 26px -18px rgba(29, 80, 100, .5);
}
.dark .tape::before { box-shadow: 0 14px 26px -18px rgba(0, 0, 0, .8); }
.step { position: relative; padding: 76px 18px 0; }
.step-num {
  position: absolute;
  top: 7px;
  inset-inline-start: 18px;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  direction: ltr;
}
.step-num small { font-size: 12px; font-style: italic; opacity: .7; margin-left: 2px; }
.step::after {
  content: '';
  position: absolute;
  top: 46px;
  inset-inline-start: 26px;
  width: 1.5px;
  height: 22px;
  background: var(--accent);
}
.step h3 { margin: 0 0 6px; font-family: var(--f-display); font-size: 20px; }
.step p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.dark .step p { color: rgba(255, 255, 255, .7); }

/* ───────────── الجمهورين ───────────── */

.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.aud {
  position: relative;
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.aud-bg { position: absolute; inset: 0; z-index: -1; }
.aud-bg img { width: 100%; height: 100%; object-fit: cover; }
.aud-bg::after { content: ''; position: absolute; inset: 0; }
.aud-ind { background: var(--surface); border: 1px solid var(--line); }
.aud-ind .aud-bg { inset: auto auto 0 0; width: 40%; height: 58%; border-radius: 0 24px 0 0; overflow: hidden; }
.aud-fac { color: var(--on-dark); }
.aud-fac .aud-bg::after { background: linear-gradient(180deg, rgba(29, 80, 100, .35), rgba(29, 80, 100, .92) 70%); }
.aud h3 { font-family: var(--f-display); font-size: clamp(26px, 3vw, 36px); margin: 12px 0 10px; line-height: 1.3; }
.aud ul { list-style: none; padding: 0; margin: 16px 0 28px; display: grid; gap: 10px; max-width: 360px; }
.aud li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.7; }
.aud li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 9px;
  width: 16px;
  border-top: 2px dashed var(--accent);
}
.aud-fac li::before { border-color: var(--accent-lt); }
.aud .btn { margin-top: auto; align-self: flex-start; }
.aud-ind ul { max-width: 56%; }

/* ───────────── معرض الأعمال ───────────── */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

.gallery { columns: 3 280px; column-gap: 20px; }
.work {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  text-align: inherit;
}
.work img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.work:nth-child(3n+1) img { aspect-ratio: 4 / 5; object-fit: cover; }
.work:nth-child(3n+2) img { aspect-ratio: 1 / 1; object-fit: cover; }
.work:nth-child(3n) img { aspect-ratio: 3 / 4; object-fit: cover; }
.work:hover img { transform: scale(1.05); }
.work-cap {
  position: absolute;
  inset: auto 12px 12px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transform: translateY(8px);
  opacity: 0;
  transition: all .45s var(--ease);
  color: var(--text);
}
.work:hover .work-cap, .work:focus-visible .work-cap { transform: none; opacity: 1; }
.work-cap b { font-size: 14.5px; }
.work-cap span { font-size: 12px; color: var(--accent-d); font-weight: 600; }
.work.hide { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(29, 80, 100, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 14px; }

/* ───────────── السرية ───────────── */

.seal-band { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 5vw, 70px); align-items: center; }
.seal {
  width: 190px;
  height: 190px;
  position: relative;
  display: grid;
  place-items: center;
}
.seal svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 26s linear infinite; }
.seal-core {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1.5px dashed var(--accent-lt);
  display: grid;
  place-items: center;
  color: var(--accent-lt);
}
.seal-core svg { width: 42px; height: 42px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────── الأسئلة الشائعة ───────────── */

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 22px;
  transition: border-color .2s, box-shadow .3s;
}
.faq details[open] { border-color: var(--ink); box-shadow: 0 16px 30px -24px rgba(29, 80, 100, .6); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--f-display);
  font-size: 18.5px;
  line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  position: relative;
  transition: transform .35s var(--ease), background .2s;
}
.faq summary i::before, .faq summary i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.8px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary i { background: var(--ink); border-color: var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--paper); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { margin: 0 0 20px; color: var(--muted); line-height: 1.9; max-width: 820px; }

/* ───────────── الأبلكيشن ───────────── */

.app-band { display: grid; grid-template-columns: 1fr auto; gap: clamp(30px, 6vw, 90px); align-items: center; }
.phone {
  width: 290px;
  aspect-ratio: 390 / 844;
  border-radius: 46px;
  padding: 11px;
  background: #0d0c0a;
  box-shadow: 0 0 0 1.5px #3a352f, 0 50px 90px -40px rgba(0, 0, 0, .7);
  position: relative;
  transform: rotate(3deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; }
.phone::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 90px;
  height: 24px;
  border-radius: 20px;
  background: #0d0c0a;
  transform: translateX(-50%);
  z-index: 2;
}
.checks { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.checks li svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent-lt); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: var(--on-dark);
  transition: background .2s, border-color .2s;
}
.store:hover { background: rgba(255, 255, 255, .08); border-color: var(--on-dark); }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; opacity: .7; line-height: 1.2; }
.store b { font-size: 16px; line-height: 1.2; direction: ltr; display: block; }
.store.soon { opacity: .6; pointer-events: none; }

/* ───────────── CTA ───────────── */

.cta {
  position: relative;
  border-radius: 34px;
  background: var(--accent);
  color: #fff;
  padding: clamp(40px, 6vw, 80px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1.8px dashed rgba(255, 255, 255, .45);
  border-radius: 24px;
  pointer-events: none;
}
.cta .display { font-size: clamp(30px, 4vw, 50px); }
.cta p { margin: 12px 0 0; color: rgba(255, 255, 255, .85); font-size: 17px; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.cta .btn { --b: #fff; color: var(--accent-d); }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.cta .btn-ghost:hover { background: #fff; color: var(--accent-d); }

/* ───────────── هيدر الصفحات الداخلية ───────────── */

.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(30px, 4vw, 50px); position: relative; }
.page-hero .h1 { font-size: clamp(38px, 5.6vw, 72px); margin: 14px 0 16px; }
.page-hero .lead { max-width: 680px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

/* ───────────── صفحات المحتوى ───────────── */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.split-img { position: relative; }
.split-img .main { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; }
.split-img .main img { width: 100%; height: 100%; object-fit: cover; }
.split-img .float {
  position: absolute;
  width: 44%;
  aspect-ratio: 1;
  inset-inline-end: -30px;
  bottom: -34px;
  border-radius: 22px;
  overflow: hidden;
  border: 8px solid var(--paper);
  box-shadow: 0 30px 50px -30px rgba(29, 80, 100, .6);
}
/* الصورة الصغيرة دايمًا ناحية النص: لو الصورة آخر عنصر في الصف تقلب للناحية التانية */
.split > .split-img:last-child .float { inset-inline-end: auto; inset-inline-start: -30px; }
.split-img .float img { width: 100%; height: 100%; object-fit: cover; }
.prose p { margin: 0 0 18px; line-height: 2; font-size: 17px; }
.prose h2 { font-family: var(--f-display); font-size: 25px; margin: 34px 0 12px; }
.prose ul { padding-inline-start: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 6px; line-height: 1.9; }
.prose li::marker { color: var(--accent); }

.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 50px; align-items: start; }
.legal-aside { position: sticky; top: 100px; }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; gap: 30px; }
  .legal-aside { position: static; order: -1; }
}

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { border-top: 2px solid var(--ink); padding-top: 22px; }
.value h3 { font-family: var(--f-display); font-size: 22px; margin: 10px 0 8px; }
.value p { margin: 0; color: var(--muted); line-height: 1.9; }

.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.point {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.point-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.point-icon svg { width: 22px; height: 22px; }
.point h3 { margin: 0 0 4px; font-family: var(--f-display); font-size: 19px; }
.point p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.dark .point { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.dark .point p { color: rgba(255, 255, 255, .68); }
.dark .point-icon { background: rgba(242, 185, 165, .14); color: var(--accent-lt); }

/* ───────────── النماذج ───────────── */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
  position: relative;
}
.form-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px dashed var(--line);
  border-radius: 20px;
  pointer-events: none;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; }
.form-grid .full { grid-column: 1 / -1; }
.fieldset-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 20px;
  margin-top: 10px;
}
.fieldset-title::after { content: ''; flex: 1; border-top: 1.5px dashed var(--line); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.field .opt { color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  padding: 12px 16px;
  font: inherit;
  font-size: 15.5px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 4px var(--badge); }
.input::placeholder, .textarea::placeholder { color: #7d9296; }
.field-error { color: #b42318; font-size: 13px; min-height: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--paper);
  transition: all .2s;
}
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop {
  border: 1.8px dashed var(--line);
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  cursor: pointer;
  background: var(--paper);
  transition: border-color .2s, background .2s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-bg); }
.drop svg { width: 34px; height: 34px; color: var(--accent); margin: 0 auto 8px; }
.drop b { display: block; font-size: 15.5px; }
.drop small { color: var(--muted); }
.previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.previews figure { margin: 0; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; position: relative; background: var(--paper-2); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.previews img { width: 100%; height: 100%; object-fit: cover; }
.previews button {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(29, 80, 100, .75);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.form-done {
  display: none;
  text-align: center;
  padding: 30px 10px;
  position: relative;
}
.form-done.show { display: block; }
.form-done .tick {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent-d);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.form-done .tick svg { width: 40px; height: 40px; }
.alert {
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14.5px;
  background: #fbe9e6;
  color: #8a2a1b;
  display: none;
}
.alert.show { display: block; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 50px); align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.ccard {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  transition: border-color .2s, transform .3s var(--ease);
}
a.ccard:hover { border-color: var(--ink); transform: translateX(-4px); }
.ccard .point-icon { flex-shrink: 0; }
.ccard small { display: block; color: var(--muted); font-size: 12.5px; }
.ccard b { font-size: 16px; font-weight: 600; }
.map {
  margin-top: 14px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  filter: grayscale(.4) sepia(.15);
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* ───────────── الفوتر ───────────── */

.site-footer { background: var(--ink); color: var(--on-dark); padding: 0 0 30px; margin-top: 40px; position: relative; }
.site-footer .cutline { color: rgba(255, 255, 255, .5); }
.site-footer .cutline::before { border-color: rgba(255, 255, 255, .25); }
.site-footer .cutline svg { background: var(--ink); }
.footer-big {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(64px, 14vw, 210px);
  line-height: .9;
  letter-spacing: -.02em;
  direction: ltr;
  text-align: center;
  padding: 50px 0 30px;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .35);
  user-select: none;
}
.footer-big span { color: var(--accent); -webkit-text-stroke: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-grid h4 { font-family: var(--f-display); font-size: 17px; margin: 0 0 14px; color: var(--accent-lt); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: rgba(255, 255, 255, .78); font-size: 14.5px; transition: color .2s; }
.footer-grid a:hover { color: var(--on-dark); }
.footer-grid p { color: rgba(255, 255, 255, .65); font-size: 14.5px; margin: 12px 0 0; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  color: var(--on-dark);
}
.socials a:hover { background: var(--paper); color: var(--ink); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ═══════════════ الشات العائم ═══════════════ */

.chat-fab {
  position: fixed;
  z-index: 90;
  inset-inline-end: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: var(--on-dark);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 38px -14px rgba(29, 80, 100, .65);
  transition: transform .3s var(--ease);
}
.chat-fab:hover { transform: scale(1.06) rotate(-6deg); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed var(--accent);
  animation: spin 18s linear infinite;
}
.chat-fab .badge {
  position: absolute;
  top: -2px;
  inset-inline-start: -2px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: none;
  place-items: center;
  padding: 0 6px;
  border: 2px solid var(--paper);
}
.chat-fab .badge.show { display: grid; }
.chat-hint {
  position: fixed;
  z-index: 89;
  inset-inline-end: 98px;
  bottom: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  font-size: 14px;
  box-shadow: 0 14px 30px -18px rgba(29, 80, 100, .5);
  opacity: 0;
  transform: translateY(8px);
  transition: all .5s var(--ease);
  pointer-events: none;
  max-width: 230px;
}
.chat-hint.show { opacity: 1; transform: none; }

.chat {
  position: fixed;
  z-index: 95;
  inset-inline-end: 22px;
  bottom: 22px;
  width: min(390px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 44px));
  background: #ece5da;
  border-radius: 26px;
  box-shadow: 0 40px 90px -30px rgba(29, 80, 100, .6), 0 0 0 1px rgba(29, 80, 100, .08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom left;
  transform: scale(.6) translateY(40px);
  opacity: 0;
  visibility: hidden;
  transition: transform .45s var(--ease), opacity .3s, visibility .3s;
}
.chat.open { transform: none; opacity: 1; visibility: visible; }
.chat-head {
  background: var(--ink);
  color: var(--on-dark);
  padding: 14px 14px 14px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-head .brand-mark { width: 42px; height: 42px; background: var(--paper); color: var(--ink); font-size: 25px; }
.chat-head .who { flex: 1; min-width: 0; line-height: 1.3; }
.chat-head .who b { font-family: var(--f-serif); font-size: 20px; direction: ltr; display: block; text-align: start; }
.chat-head .who small { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.chat-head .who small.typing { color: var(--accent-lt); }
.chat-x {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: var(--on-dark);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.chat-x svg { width: 18px; height: 18px; }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; display: inline-block; margin-inline-end: 5px; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 5px; scroll-behavior: smooth; }
.chat-day { align-self: center; background: rgba(255, 255, 255, .85); color: var(--muted); font-size: 12px; font-weight: 500; border-radius: 9px; padding: 2px 12px; margin: 8px 0; }
.msg {
  max-width: 80%;
  padding: 8px 12px 5px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  position: relative;
  word-wrap: break-word;
  white-space: pre-wrap;
  animation: pop .3s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.msg.them { align-self: flex-start; background: var(--surface); border-start-start-radius: 4px; box-shadow: 0 1px 1px rgba(29, 80, 100, .06); }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--on-dark); border-start-end-radius: 4px; }
.msg .meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11px; opacity: .7; margin-top: 2px; white-space: nowrap; }
.msg .tick { font-size: 12px; letter-spacing: -3px; }
.msg .tick.read { color: var(--accent-lt); opacity: 1; }
.msg.deleted { font-style: italic; opacity: .75; }
.msg img { max-width: 220px; max-height: 240px; border-radius: 12px; display: block; margin: 2px 0 4px; cursor: zoom-in; }
.msg audio { width: 220px; height: 36px; display: block; }
.msg .file { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: underline; }
.msg.failed { opacity: .6; }
.typing-bubble { align-self: flex-start; background: var(--surface); border-radius: 18px 18px 18px 4px; padding: 12px 14px; display: none; gap: 4px; }
.typing-bubble.show { display: flex; }
.typing-bubble i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1.1s infinite; }
.typing-bubble i:nth-child(2) { animation-delay: .15s; }
.typing-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-start { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; overflow-y: auto; }
.chat-start h4 { font-family: var(--f-display); font-size: 22px; margin: 6px 0 0; }
.chat-start p { margin: 0 0 6px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.chat-start .input { background: var(--surface); }
.chat-foot { padding: 8px 10px 12px; display: flex; gap: 8px; align-items: flex-end; }
.chat-input {
  flex: 1;
  background: var(--surface);
  border-radius: 24px;
  display: flex;
  align-items: flex-end;
  min-height: 48px;
}
.chat-input textarea {
  flex: 1;
  border: 0;
  background: transparent;
  resize: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 16px;
  max-height: 120px;
  outline: none;
  color: var(--text);
}
.icon-btn {
  width: 42px;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-btn svg { width: 21px; height: 21px; }
.send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: var(--on-dark);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.send-btn svg { width: 21px; height: 21px; }
.send-btn.rec { background: #b42318; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(180, 35, 24, .15); } }
.rec-bar { flex: 1; display: none; align-items: center; gap: 10px; padding: 0 14px; font-weight: 600; }
.rec-bar.show { display: flex; }
.rec-bar i { width: 10px; height: 10px; border-radius: 50%; background: #b42318; animation: dot 1s infinite; }

/* ───────────── الموبايل ───────────── */

@media (max-width: 1080px) {
  .nav-links, .nav-cta .nav-login { display: none; }
  .menu-btn { display: grid; }
  .nav-cta .btn { display: none; }
}

@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid, .app-band, .seal-band { grid-template-columns: 1fr; }
  .hero-copy { text-align: start; }
  .piece { width: min(78%, 400px); margin-top: 20px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tape { grid-template-columns: 1fr; gap: 0; }
  .tape::before {
    inset: 0 auto 0 auto;
    inset-inline-start: 0;
    width: 46px;
    height: auto;
    background:
      repeating-linear-gradient(180deg, rgba(29, 80, 100, .75) 0 1px, transparent 1px 10px) left / 9px 100% no-repeat,
      repeating-linear-gradient(180deg, rgba(29, 80, 100, .9) 0 1.5px, transparent 1.5px 50px) left / 17px 100% no-repeat,
      var(--teal-lt);
  }
  [dir="rtl"] .tape::before { background-position: right, right, 0 0; }
  .step { padding: 18px 0 24px; padding-inline-start: 76px; }
  .step-num { top: 18px; inset-inline-start: 58px; transform: translateX(50%); display: none; }
  .step::after { top: 34px; inset-inline-start: 46px; width: 22px; height: 1.5px; }
  .audience, .values, .points { grid-template-columns: 1fr; }
  .aud { min-height: 380px; }
  /* كارت الأفراد: الصورة تنزل تحت النص بدل ما تغطيه */
  .aud-ind { padding-bottom: 0; }
  .aud-ind ul { max-width: none; }
  .aud-ind .aud-bg {
    position: relative;
    order: 10;
    z-index: 0;
    inset: auto;
    width: auto;
    height: 190px;
    margin: 26px calc(clamp(28px, 4vw, 48px) * -1) 0;
    border-radius: 0;
  }
  .section-head { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .seal { width: 150px; height: 150px; }
  .phone { width: 250px; margin-inline: auto; }
  .split-img .float, .split > .split-img:last-child .float { inset-inline-start: auto; inset-inline-end: 12px; width: 38%; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  /* الخدمات على الموبايل: صف بيتسحب بالعرض بدل عمود طويل */
  .services-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 18px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .services-grid .svc { flex: 0 0 82%; scroll-snap-align: center; }
  .services-grid .svc:hover { transform: none; }
  .svc-body { padding: 18px 20px 22px; }
  .hero-highlights { grid-template-columns: 1fr; }
  .hero-highlights div + div { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); }
  .hero-highlights div { padding: 12px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .piece-tag { inset-inline-start: -14px; max-width: 190px; font-size: 12px; }
  .btn { min-height: 50px; }
  .hero-actions .btn { flex: 1; }
  .chat { inset: 0; width: 100%; height: 100%; border-radius: 0; bottom: 0; }
  .chat-fab { bottom: 16px; inset-inline-end: 16px; }
  .chat-hint { display: none; }
  .gallery { columns: 2 150px; column-gap: 12px; }
  .work { margin-bottom: 12px; border-radius: 14px; }
  .work-cap { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rise, .reveal { opacity: 1; transform: none; }
}

/* ───────────── لوجو من اللوحة + أرقام + آراء العملاء ───────────── */

.brand-mark.has-logo { background: transparent !important; overflow: hidden; }
.brand-mark.has-logo::after { display: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }

.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-block: 1.5px dashed var(--line); }
.stat { padding: 26px 20px; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; inset-block: 22%; inset-inline-start: 0; border-inline-start: 1.5px dashed var(--line); }
.stat b { display: block; font-family: var(--f-serif); font-weight: 700; font-size: clamp(40px, 5vw, 58px); line-height: 1; color: var(--accent); direction: ltr; unicode-bidi: isolate; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }

.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 400px)); justify-content: center; gap: 20px; }
@media (max-width: 620px) { .testi-grid { grid-template-columns: 1fr; } }
.testi { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.testi::before { content: '”'; position: absolute; top: 4px; inset-inline-end: 20px; font-family: var(--f-serif); font-size: 90px; line-height: 1; color: var(--accent-bg); }
.testi-stars { color: #c9922e; letter-spacing: 2px; font-size: 15px; }
.testi blockquote { margin: 0; font-size: 16px; line-height: 1.9; flex: 1; position: relative; }
.testi figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.testi figcaption img, .testi-ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testi-ava { background: var(--accent-bg); color: var(--accent-d); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.testi figcaption b { display: block; font-size: 15px; }
.testi figcaption small { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 620px) { .stat { padding: 18px 10px; } .stats-band { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3)::before { display: none; } }

/* ───────────── سؤال الموافقة على أدوات القياس ───────────── */
.consent-bar { position: fixed; z-index: 90; inset-inline: 16px; bottom: 16px; margin-inline: auto; max-width: 620px;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--ink); color: var(--on-dark);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); transform: translateY(20px); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
.consent-bar.show { transform: none; opacity: 1; }
.consent-bar p { margin: 0; flex: 1; font-size: 14px; line-height: 1.7; }
.consent-bar div { display: flex; gap: 8px; flex-shrink: 0; }
.consent-bar .btn { --b: var(--paper); color: var(--ink); min-height: 40px; }
.consent-bar .btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .35); }
@media (max-width: 620px) { .consent-bar { flex-direction: column; align-items: stretch; bottom: 90px; } .consent-bar div .btn { flex: 1; } }

/* ───────────── النسخة الإنجليزية (من الشمال لليمين) ───────────── */

.lang-switch {
  display: inline-grid; place-items: center; min-width: 42px; height: 38px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.lang-switch:hover { border-color: var(--ink); }
.lang-switch:lang(ar) { font-family: var(--f-body); letter-spacing: 0; font-size: 14px; }
.footer-lang { margin: 16px 0 0; }
.footer-lang a { text-decoration: underline; text-underline-offset: 4px; }
.mobile-menu a:lang(en), .mobile-menu a:lang(ar) { font-family: inherit; }

/* الخطوط: عناوين الإنجليزي بخط سيريف أنيق (نفس خط الأرقام «No. 01») */
html[lang="en"] {
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
}
html[lang="en"] .display { letter-spacing: -.015em; line-height: 1.08; }
html[lang="en"] .marquee span { font-style: italic; }

/* الاتجاهات */
[dir="ltr"] .nav-links a::after { transform-origin: left; }
[dir="ltr"] .ic-arrow { transform: scaleX(-1); }
[dir="ltr"] .marquee-track { animation-name: marquee-ltr; }
@keyframes marquee-ltr { to { transform: translateX(-50%); } }
[dir="ltr"] a.ccard:hover { transform: translateX(4px); }
[dir="ltr"] .chat { transform-origin: bottom right; }
[dir="ltr"] .chat-hint { border-radius: 16px 16px 16px 4px; }
[dir="ltr"] .piece-tag::before { left: auto; right: 8px; }

/* القايمة: كل رابط في سطر واحد، والإنجليزي كلامه أطول فبنصغّر المسافات شوية */
.nav-links a { white-space: nowrap; }
html[lang="en"] .nav-links a { padding: 8px 9px; font-size: 14.5px; }
@media (max-width: 1320px) { html[lang="en"] .nav-cta .nav-login { display: none; } }
@media (max-width: 1180px) { html[lang="en"] .nav-links a { padding: 8px 7px; font-size: 14px; } html[lang="en"] .brand-tag { display: none; } }
@media (max-width: 1080px) { .nav-cta { margin-inline-start: auto; } }
