/* =======================================================================
   طابور — التنسيقات
   الألوان والنمط البصري مأخوذة من «الدليل الرئيسي للعلامة التجارية ٢٠٢٦»
   ======================================================================= */

/* ---------- الخط الرسمي: XB Shafigh ----------
   خط العلامة المعتمد (صفحة ١٣ من الدليل). مو متوفر على قوقل فونتس.
   حاليًا الصفحة تستخدم أقرب بديل نسخي: Noto Naskh Arabic.

   لتفعيل الخط الرسمي:
   ١) حوّل ملفات الخط إلى woff2 وضعها في assets/fonts/
   ٢) شِل التعليق عن البلوك التالي.

@font-face {
  font-family: "XB Shafigh";
  src: url("../fonts/XBShafigh.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "XB Shafigh";
  src: url("../fonts/XBShafigh-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
*/

:root {
  /* ألوان الهوية — صفحة ١٢ من الدليل */
  --sea:   #80AFB2;   /* أزرق بحري */
  --rose:  #EDCABC;   /* زهري ترابي */
  --ink:   #0A0E11;
  --paper: #FBF8F5;

  --sea-deep:  #5F9499;
  --sea-tint:  #EAF2F2;
  --rose-tint: #FBEFE9;

  --muted: #6B7275;
  --line:  rgba(10, 14, 17, .10);
  --white: #FFFFFF;

  --radius:    20px;
  --radius-sm: 14px;
  --arch:      140px;              /* انحناء القوس — عنصر أساسي بالهوية */
  --shadow:    0 20px 44px -22px rgba(10, 14, 17, .30);
  --shadow-sm: 0 10px 24px -14px rgba(10, 14, 17, .24);

  --container: 1120px;
  --gap:       20px;

  --font: "XB Shafigh", "Noto Naskh Arabic", "Tajawal", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* لازم تكون !important لأن .btn و .section يحدّدون display ويتغلّبون على قاعدة المتصفح */
[hidden] { display: none !important; }

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

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gap);
  position: relative;
  z-index: 1;
}

/* ============================ اللوقو ============================ */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* اللوقو يرث لون النص — فيتلوّن حسب الخلفية تلقائيًا */
.logo {
  display: block;
  width: auto;
  aspect-ratio: 1654 / 715;
  height: 46px;
  color: inherit;
}

.logo svg, .logo img { height: 100%; width: auto; display: block; }

.logo--sm { height: 38px; }
.logo--md { height: 56px; }

/* ============================ نمط البلاط ============================ */
/* الشبكة المربعة هي العنصر البصري المميّز للعلامة (الدليل ص ٢٠–٢٣) */

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to left,  rgba(255,255,255,.26) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(255,255,255,.26) 1.5px, transparent 1.5px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}

.grid-bg--soft {
  background-image:
    linear-gradient(to left,  rgba(10,14,17,.05) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(10,14,17,.05) 1.5px, transparent 1.5px);
  background-size: 56px 56px;
}

/* ============================ الأزرار ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn:active { transform: scale(.975); }

.btn--primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 30px -14px rgba(10, 14, 17, .6);
}

.btn--xl { padding: 19px 44px; font-size: 1.2rem; }

.btn--ghost {
  background: rgba(255, 255, 255, .85);
  color: var(--ink);
  border: 1.5px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
}

.btn--dark  { background: var(--ink); color: var(--white); }

.btn--line {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn--block { width: 100%; }

@media (hover: hover) {
  .btn:hover         { transform: translateY(-2px); }
  .btn--ghost:hover  { background: var(--white); }
  .btn--line:hover   { border-color: var(--sea); color: var(--sea-deep); }
}

/* ============================ الهيرو ============================ */

.hero {
  position: relative;
  background: var(--sea);
  color: var(--white);
  padding-bottom: 56px;
  overflow: hidden;
  isolation: isolate;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
}

.nav__link {
  font-weight: 700;
  font-size: .95rem;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}

.nav__link:hover { background: var(--white); color: var(--sea-deep); }

.hero__inner {
  display: grid;
  gap: 32px;
  padding-top: 10px;
  align-items: center;
}



.hero__title {
  font-size: clamp(2rem, 7.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
  text-wrap: balance;
}

.hero__sub {
  font-size: clamp(1rem, 4vw, 1.25rem);
  color: rgba(255, 255, 255, .92);
  max-width: 46ch;
  margin-bottom: 28px;
  text-wrap: pretty;
}

/* الزرّان جنب بعض دائمًا — يتقاسمان العرض بالتساوي */
.hero__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.hero__actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 10px;
  white-space: nowrap;
}

.hero__actions .btn--xl { font-size: 1.05rem; padding-block: 17px; }

/* إطار القوس — مستوحى من أقواس الفروع في الدليل.
   المنتجات الثلاثة صور شفافة مركّبة فوق نمط البلاط. */




/* إطار الفيديو — يشغل نفس مساحة الواجهة السابقة فلا يتزحزح التخطيط */
.hero__media {
  position: relative;
  aspect-ratio: 1000 / 914;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
}

.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.section--mood  { background: var(--paper); }

.section__head { text-align: center; margin-bottom: 40px; }

.section__title {
  font-size: clamp(1.7rem, 6.2vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  text-wrap: balance;
}

.section__sub { color: var(--muted); margin-top: 6px; font-size: 1.02rem; }


.section__title--quote { max-width: 26ch; margin: 0 auto 36px; }

/* ============================ كروت الأقسام ============================ */

.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

/* صور المنتجات شفافة الخلفية — نعرضها كاملة فوق نمط البلاط */
.card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--sea-tint);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }

.card__title {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.card__emoji { font-size: 1.4rem; line-height: 1; }

.card__text { color: var(--muted); font-size: 1rem; flex: 1; margin-bottom: 14px; }

.card__meta {
  font-size: .85rem;
  font-weight: 700;
  color: var(--sea-deep);
  background: var(--sea-tint);
  padding: 5px 14px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 16px;
}

.card__cta { font-weight: 700; color: var(--ink); font-size: 1rem; }

@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    border-color: var(--sea);
    box-shadow: var(--shadow);
  }
  .card:hover .card__media img { transform: scale(1.05); }
}






/* ============================ تطبيقات التوصيل ============================ */

/* كتلة الطلب داخل الهيرو — كل الخيارات بدون تمرير */
.hero__order {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1.5px solid rgba(255, 255, 255, .26);
}


.hero__order-label {
  font-size: .9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 10px;
  line-height: 1.6;
}

.apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.app {
  --app-bg: var(--ink);
  --app-fg: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 68px;
  padding: 9px 4px;
  border-radius: 13px;
  background: var(--app-bg);
  color: var(--app-fg);
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: .72rem;
  line-height: 1.3;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* شارة اللوقو — مربّعة بحواف دائرية مثل أيقونة التطبيق */
.app img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.app:active { transform: scale(.975); }

@media (hover: hover) {
  .app:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}


/* ============================ الفوتر ============================ */

.footer {
  background: var(--sea);
  color: var(--white);
  padding-top: 44px;
  /* مساحة للزر الثابت في الجوال */
  padding-bottom: calc(44px + 88px + env(safe-area-inset-bottom));
  text-align: center;
}

.footer__logo { margin: 0 auto 10px; }

.footer__tagline {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  opacity: .95;
}

/* أزرار حسابات التواصل — تحت زر موقع الفرع، بنفس أسلوب أزرار التوصيل */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: .88rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}

.social img {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.social:active { transform: scale(.97); }

@media (hover: hover) {
  .social:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
}

.footer__line { font-size: .95rem; line-height: 2; color: rgba(255, 255, 255, .88); }

.footer__line a {
  color: var(--white);
  font-weight: 700;
  border-bottom: 2px solid var(--rose);
  padding-bottom: 1px;
}

/* ============================ الزر الثابت (جوال) ============================ */

.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--paper) 55%, transparent);
  transform: translateY(130%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.sticky-cta.is-visible { transform: translateY(0); pointer-events: auto; }

.sticky-cta .btn { padding-block: 17px; font-size: 1.12rem; }

/* ============================ ظهور تدريجي ============================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ============================ الشاشات الأكبر ============================ */

@media (min-width: 640px) {
  .apps { gap: 10px; }
  .app  { min-height: 82px; font-size: .85rem; padding: 12px 8px; }
  .app img { width: 36px; height: 36px; }
  .social { padding: 10px 20px; font-size: .95rem; }
  .social img { width: 24px; height: 24px; }
}

@media (min-width: 900px) {
  .section { padding-block: 92px; }

  .hero { padding-bottom: 92px; }

  .hero__inner {
    grid-template-columns: 1.02fr .98fr;
    gap: 52px;
    padding-top: 28px;
  }

  .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; }

  /* الزر الثابت للجوال فقط */
  .sticky-cta { display: none; }
  .footer { padding-bottom: 44px; }
}

/* ============================ تقليل الحركة ============================ */

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