/* ==========================================================
   B Sweets — Coming Soon
   ========================================================== */

:root{
  --bg: #efe7de;
  --ink: #4a3b31;
  --gold: #c9a227;
  --line: rgba(74,59,49,.18);
  --shadow: 0 10px 40px rgba(74,59,49,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }

html,body{
  height:100%;
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Segoe UI", Tahoma, "Noto Kufi Arabic", Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow:hidden;               /* لا تمرير — الصفحة بحجم الشاشة */
  overscroll-behavior:none;
}

/* ---------- المسرح ---------- */
.stage{
  position:fixed;
  inset:0;
  width:100%;
  height:100vh;
  height:var(--vh, 100vh);
  height:100dvh;                  /* يتعامل مع شريط المتصفح في الجوال */
  min-height:100%;
  display:block;
  background:var(--bg);
  overflow:hidden;
}

/* توهج ناعم يعطي إحساس العمق */
.stage::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(120% 80% at 50% 0%,   rgba(255,255,255,.10), transparent 60%),
    radial-gradient(120% 90% at 50% 100%, rgba(60,40,28,.22),   transparent 55%);
  z-index:2;
}

/* ---------- الصورة ---------- */
.stage picture,
.stage img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}

.stage img{
  object-fit:cover;
  object-position:center;
  opacity:0;
  transform:scale(1.06);
  transition:opacity 1.1s var(--ease), transform 1.6s var(--ease);
  will-change:opacity, transform;
  z-index:1;
}

.fit-contain .stage img{ object-fit:contain; }

/* بعد اكتمال التحميل */
.is-ready .stage img{
  opacity:1;
  transform:scale(1);
}

/* حركة Ken Burns الهادئة */
.kb.is-ready .stage img{
  animation:kenburns 26s var(--ease) 1.4s infinite alternate;
}
@keyframes kenburns{
  from{ transform:scale(1)    translate3d(0,0,0); }
  to  { transform:scale(1.07) translate3d(0,-1.2%,0); }
}
@media (prefers-reduced-motion: reduce){
  .kb.is-ready .stage img{ animation:none; }
  .stage img{ transition:opacity .4s linear; transform:none !important; }
}

/* ---------- شاشة التحميل ---------- */
.loader{
  position:fixed;
  inset:0;
  z-index:50;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:22px;
  background:var(--bg);
  transition:opacity .7s var(--ease), visibility .7s;
}
.is-ready .loader{
  opacity:0;
  visibility:hidden;
}

.loader__mark{
  font-family:"Georgia","Times New Roman",serif;
  font-size:clamp(38px, 9vw, 64px);
  letter-spacing:.06em;
  color:var(--ink);
  opacity:.9;
  animation:breathe 2.4s ease-in-out infinite;
}
.loader__mark small{
  display:block;
  font-size:.28em;
  letter-spacing:.42em;
  text-transform:uppercase;
  margin-top:.35em;
  opacity:.75;
}
@keyframes breathe{
  0%,100%{ opacity:.55; transform:translateY(0); }
  50%    { opacity:1;   transform:translateY(-3px); }
}

.loader__bar{
  width:min(180px, 42vw);
  height:2px;
  background:var(--line);
  border-radius:2px;
  overflow:hidden;
}
.loader__bar i{
  display:block;
  height:100%;
  width:40%;
  background:linear-gradient(90deg, transparent, var(--gold), transparent);
  animation:slide 1.4s ease-in-out infinite;
}
@keyframes slide{
  0%  { transform:translateX(-120%); }
  100%{ transform:translateX(320%); }
}

/* ---------- شريط التواصل ---------- */
.contact{
  position:fixed;
  z-index:20;
  left:50%;
  bottom:max(18px, env(safe-area-inset-bottom));
  transform:translateX(-50%) translateY(14px);
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.85);
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  opacity:0;
  visibility:hidden;
  transition:opacity .8s var(--ease) .5s, transform .8s var(--ease) .5s, visibility .8s .5s;
}
.is-ready .contact{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}

.contact a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:42px;
  min-width:42px;
  padding:0 12px;
  border-radius:999px;
  color:var(--ink);
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  letter-spacing:.01em;
  transition:background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.contact a:hover,
.contact a:focus-visible{
  background:var(--ink);
  color:#fff;
  transform:translateY(-2px);
  outline:none;
}
.contact a svg{ width:19px; height:19px; flex:none; }
.contact .sep{
  width:1px;
  height:20px;
  background:var(--line);
  margin:0 2px;
}
.contact .label{ white-space:nowrap; direction:ltr; }

@media (max-width:520px){
  .contact{ gap:2px; padding:7px 8px; }
  .contact a{ height:40px; min-width:40px; padding:0 10px; font-size:13px; }
  .contact .label{ display:none; }
  .contact a.has-label{ padding:0; }
}

/* ---------- رسالة الملفات الناقصة ---------- */
.notice{
  position:fixed;
  inset:0;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:var(--bg);
}
.notice__box{
  max-width:520px;
  width:100%;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px;
  box-shadow:var(--shadow);
  line-height:1.9;
}
.notice__box h1{ margin:0 0 10px; font-size:20px; }
.notice__box p{ margin:0 0 14px; font-size:15px; opacity:.85; }
.notice__box code{
  display:block;
  background:#faf6f1;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 12px;
  margin:6px 0;
  font-family:Consolas,monospace;
  font-size:13px;
  direction:ltr;
  text-align:left;
}
