/* ==========================================================
   TRIPLE B — Landing page
   كل الألوان والخطوط والأحجام الأساسية في المتغيرات تحت.
   ========================================================== */

:root {
  /* ---------- الألوان ---------- */
  /* --color-primary: #EF4F24; (البرتقالي — اتلغى حسب التصميم الجديد) */
  --color-primary: #EF4F24;      /* البرتقالي: الدوائر + الشريط + زرار المنيو */
  --color-on-primary: #FFFFFF;   /* لون الكلام فوق البرتقالي */
  --color-bg: #000000;           /* خلفية الصفحة */
  --color-text: #FFFFFF;         /* لون النصوص */
  --color-text-soft: #F2F2F2;    /* لون الفقرة الوصفية */
  --color-surface: #F3E7D3;      /* الكريمي (لون العناوين) */
  --color-neutral: #CFCFCF;      /* الرمادي: أيقونات السوشيال + زرار المنيو */
  --color-on-neutral: #111111;   /* لون الكلام/الأيقونة فوق الرمادي */
  --color-on-surface: #111111;   /* لون الأيقونة فوق الكريمي */
  --pattern-opacity: 1;          /* شفافية خلفية الشطرنج (0 = مخفية) */

  /* ---------- الخطوط ---------- */
  --font-main: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;   /* بديل Awan Zaman */
  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;    /* بديل Placard Condensed للعناوين الإنجليزية */

  /* ---------- الأبعاد ---------- */
  --content-max: 760px;          /* أقصى عرض للمحتوى على الشاشات الكبيرة */
  --section-gap: clamp(1.6rem, 5.5vw, 2.6rem);
  --radius-sm: 10px;
}

/* ---------- Base ---------- */
body {
  --bs-body-bg: var(--color-bg);
  --bs-body-color: var(--color-text);
  --bs-body-font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background-color: var(--color-bg);
}
.page > main,
.page > footer { position: relative; z-index: 1; }

.container-narrow { max-width: var(--content-max); }

.sep { opacity: .9; margin-inline: .15em; }

/* ---------- خلفية الشطرنج ----------
   3 أجزاء متصلة بنفس المربعات (مش علم سباق):
   1) فوق في الـ hero  : مثلث على اليمين بيتدرج ويزيد لتحت
   2) النص (عنوان + أطباق): عرض كامل وأوضح جزء
   3) تحت (منيو ← توصيل): مثلث زاويته القائمة فوق-يمين، والوتر نازل من فوق-شمال لتحت-يمين
*/
.top,
.checker-zone {
  --checker-color: #0f0f0f;                     /* لون المربعات الفاتحة فوق الأسود */
  --checker-cell: clamp(48px, 10.3vw, 104px);   /* حجم المربع الواحد */
  position: relative;
  isolation: isolate;                           /* الشطرنج z-index:-1 يفضل ورا المحتوى */
}
/* بيمنع margin العنوان إنه يزق المنطقة لتحت ويسيب فجوة بين الـ hero والشطرنج */
.checker-zone { display: flow-root; }
.top::before,
.checker-zone::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  pointer-events: none;
  opacity: var(--pattern-opacity);
  background-image: repeating-conic-gradient(var(--checker-color) 0 25%, transparent 0 50%);
  background-size: calc(var(--checker-cell) * 2) calc(var(--checker-cell) * 2);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-composite: source-over;
          mask-composite: add;
}

/* (1) الجزء العلوي: نص الـ hero التحتاني، ملزوق في آخر الـ hero */
.top::before {
  top: 12%;
  bottom: 0;
  background-position: center bottom;           /* آخر صف يتكمّل مع أول صف في المنطقة اللي بعده */
  -webkit-mask-image:
    linear-gradient(to bottom right, transparent 34%, #000 80%),
    linear-gradient(to top, #000 0%, transparent 28%);
          mask-image:
    linear-gradient(to bottom right, transparent 34%, #000 80%),
    linear-gradient(to top, #000 0%, transparent 28%);
}

/* (2)+(3) النص + الجزء السفلي */
.checker-zone::before {
  top: 0;
  bottom: 0;
  background-position: center top;
  -webkit-mask-image:
    linear-gradient(to bottom, #000 38%, transparent 100%),                      /* النص: كامل ثم يختفي */
    linear-gradient(to top right, transparent 66%, #000 97%);                    /* المثلث السفلي */
  -webkit-mask-size: 100% 60%, 100% 67%;
  -webkit-mask-position: 0 0, 0 100%;
          mask-image:
    linear-gradient(to bottom, #000 38%, transparent 100%),
    linear-gradient(to top right, transparent 66%, #000 97%);
          mask-size: 100% 60%, 100% 67%;
          mask-position: 0 0, 0 100%;
}

/* ---------- الموبايل: شطرنج أوضح وأكتر ---------- */
@media (max-width: 767.98px) {
  .top,
  .checker-zone {
    --checker-color: #1b1b1b;                   /* أفتح عشان يبان على شاشات الموبايل */
    --checker-cell: clamp(44px, 11vw, 70px);
  }
  .top::before {
    top: 6%;
    -webkit-mask-image:
      linear-gradient(to bottom right, transparent 18%, #000 60%),
      linear-gradient(to top, #000 0%, transparent 30%);
            mask-image:
      linear-gradient(to bottom right, transparent 18%, #000 60%),
      linear-gradient(to top, #000 0%, transparent 30%);
  }
  .checker-zone::before {
    -webkit-mask-image:
      linear-gradient(to bottom, #000 50%, transparent 100%),
      linear-gradient(to top right, transparent 42%, #000 82%);
    -webkit-mask-size: 100% 70%, 100% 80%;
            mask-image:
      linear-gradient(to bottom, #000 50%, transparent 100%),
      linear-gradient(to top right, transparent 42%, #000 82%);
            mask-size: 100% 70%, 100% 80%;
  }
}

/* ---------- Header + Hero ---------- */
.top { overflow-x: clip; }
.top__inner { position: relative; padding-top: clamp(1.2rem, 4vw, 2rem); padding-bottom: clamp(1rem, 4vw, 2rem); }

/* (معمول كومنت — الشكل البيضاوي البرتقالي)
.top__inner::before {
  content: "";
  position: absolute;
  z-index: 0;
  
  --edge: max(0px, calc((100vw - 100%) / 2));
  width: calc(56% + var(--edge));
  border-radius: 50%;
  background: var(--color-primary);
  left: calc(-28% - var(--edge));   
  top: -35%;
  bottom: 17%;               
  transform: rotate(-28deg);
}
*/
.top__inner > * { position: relative; z-index: 1; }

.site-header__logo { display: block; width: clamp(115px, 24vw, 175px); }
.site-header__logo img { display: block; width: 100%; }

.social--mini { gap: 6px; padding: 0; }
.social--mini a {
  display: grid;
  place-items: center;
  width: clamp(18px, 3.4vw, 24px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-on-surface);
  font-size: clamp(.6rem, 1.7vw, .8rem);
}
.site-header__follow-text { font-size: clamp(.8rem, 2.6vw, 1.05rem); font-weight: 500; }

.hero { margin-top: clamp(.4rem, 3vw, 1.2rem); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 4.9vw, 2rem);
  white-space: nowrap;
  line-height: 1.15;
  margin-bottom: .6rem;
  text-align: right;
}
.hero__desc {
  font-size: clamp(.7rem, 3.4vw, 1.22rem);
  font-weight: 600;
  line-height: 2.1;
  text-align: right;
  color: var(--color-text-soft);
  margin: 0;
}
.hero__desc span { display: block; white-space: nowrap; }   /* كل سطر مستقل زي التصميم */
.hero__visual img {
  display: block;
  max-width: none;
  width: 118%;
  margin-left: -18%;              /* الصورة بخلفيتها تلزق في حافة الشاشة الشمال */
  /* تدريج الحواف عشان الخلفية تدخل في أسود الصفحة */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 72%, transparent 100%),
                      linear-gradient(to bottom, transparent 0, #000 12%, #000 76%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 72%, transparent 100%),
                      linear-gradient(to bottom, transparent 0, #000 12%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

/* ---------- Title strip ---------- */
.section-title { margin-top: var(--section-gap); }
.title-strip {
  margin: 0;
  padding: .28em .5em;
  /* background: var(--color-primary); (برتقالي — معمول كومنت) */
  color: var(--color-surface);
  font-weight: 800;
  font-size: clamp(1.4rem, 6.4vw, 2.3rem);
  line-height: 1.5;
  text-align: center;
}

/* ---------- Dishes ---------- */
.showcase { margin-top: var(--section-gap); }

.dish {
  position: relative;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 13%;               /* مسافة بين فوق الدايرة وفوق الصورة */
}
/* (معمول كومنت — الدواير البرتقالية ورا الأطباق)
.dish::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 66%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--color-primary);
}
*/
.dish img { position: relative; display: block; }
.dish--burger img   { width: 74%; }
.dish--sandwich     { padding-top: 18%; }
.dish--sandwich::before { width: 64%; }
.dish--sandwich img { width: 100%; }

.btn-menu {
  display: inline-block;
  margin-top: var(--section-gap);
  padding: .35em 1em;
  /* background: var(--color-primary); (برتقالي — معمول كومنت) */
  background: var(--color-neutral);
  color: var(--color-on-neutral);
  font-weight: 700;
  font-size: clamp(1rem, 3.8vw, 1.35rem);
  line-height: 1.6;
}
.btn-menu:hover { color: var(--color-on-neutral); filter: brightness(1.08); }

/* ---------- Info blocks (follow / locations / delivery) ---------- */
.info-block { margin-top: var(--section-gap); }

.divider { display: flex; justify-content: center; }
.divider img { width: min(82%, 440px); display: block; }

.info-block__title {
  margin: clamp(.9rem, 3.5vw, 1.4rem) 0 clamp(.8rem, 3vw, 1.2rem);
  font-weight: 500;
  font-size: clamp(1.2rem, 4.6vw, 1.7rem);
  line-height: 1.4;
}

.social { gap: clamp(10px, 3vw, 18px); padding: 0; margin: 0; }
.info-block .social a {
  display: grid;
  place-items: center;
  width: clamp(42px, 9vw, 58px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-neutral);
  color: var(--color-on-neutral);
  font-size: clamp(1.15rem, 3.8vw, 1.6rem);
}
.info-block .social a:hover { filter: brightness(1.08); }
.gmaps-icon { width: 46%; height: auto; display: block; }

.branch { display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; }
.branch img { width: clamp(56px, 11vw, 80px); display: block; }
.branch__name { font-size: clamp(.95rem, 3.4vw, 1.3rem); font-weight: 500; }

.delivery { gap: clamp(12px, 3.6vw, 22px); padding: 0; margin: 0; }
.delivery a { display: block; width: clamp(50px, 12vw, 76px); }
.delivery img { display: block; width: 100%; border-radius: 14px; }

/* ---------- Skyline ---------- */
.skyline { margin-top: var(--section-gap); line-height: 0; }
.skyline img {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 8 / 5;
  max-height: 600px;
  object-fit: cover;
  object-position: center top;
}

/* ---------- Larger screens ---------- */
@media (min-width: 992px) {
  :root { --content-max: 820px; }
}


/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background-color: var(--color-bg);
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.is-hidden { opacity: 0; visibility: hidden; }

#preloader .spinner {
  width: 54px;
  height: 54px;
  border: 4px solid #333;
  border-top-color: var(--color-neutral);
  border-radius: 50%;
  animation: preloader-spin .9s linear infinite;
}
@keyframes preloader-spin { to { transform: rotate(360deg); } }

/* منع الـ scroll الأفقي أثناء حركة fade / zoom */
html, body { overflow-x: hidden; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #preloader { transition: none; }
  #preloader .spinner { animation: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
