/* كل القيم منقولة من design/mobile-ar.html (أقل من 1024) وdesign/laptop-ar.html (من 1024) */
@font-face { font-family: "Thmanyah"; src: url("../fonts/thmanyah-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Thmanyah"; src: url("../fonts/thmanyah-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah"; src: url("../fonts/thmanyah-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah"; src: url("../fonts/thmanyah-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roast"; src: url("../fonts/roast-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roast"; src: url("../fonts/roast-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --panel: #CFCBC4;
  --caramel: #AC7645;
  --purple: #9780BD;
  --ink: #0F0F0F;
  --ink-2: #3D3A36;
  --green: #A4C05C;
  --line: rgba(15,15,15,.12);
  --rule: rgba(15,15,15,.15);
  --soft: rgba(255,255,255,.6);
  --serif: "Thmanyah", serif;
  --latin: "Roast", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); }
/* الإنجليزي: design/mobile-en.html يستخدم Roast للصفحة كلها، والتقييمات العربية بـ Thmanyah */
html[lang="en"] body { font-family: "Roast", "Thmanyah", sans-serif; }
html[lang="en"] .review-quote { font-family: var(--serif); }
a { color: inherit; }
h1, h2, p, figure, blockquote { margin: 0; }
button { font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.ico { display: block; flex: none; width: 14px; height: 14px; stroke-width: 2; }
[dir="ltr"] [data-arrow] { transform: scaleX(-1); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.only-desk, .only-desk-flex { display: none; }
.only-mob-flex { display: flex; }

.kicker, .studio-index, .badge, .lang, .review-name, .contact-label, .foot-domain {
  font-family: var(--latin); font-size: 11px; font-weight: 700;
}
.kicker, .studio-index, .contact-label { letter-spacing: .14em; }
.panel-head .kicker, .studio-index, .contact-label { color: var(--ink-2); }

/* أزرار مشتركة */
.btn-soft {
  height: 40px; padding: 0 16px; flex: none; border-radius: 999px; background: var(--soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; text-decoration: none;
}
.btn-dark {
  height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 500; text-decoration: none;
}
.arrow-circle {
  width: 40px; height: 40px; flex: none; border-radius: 999px; background: rgba(15,15,15,.06);
  display: inline-flex; align-items: center; justify-content: center;
}
.arrow-circle .ico { stroke-width: 1.8; }

/* ===================== جوال: design/mobile-ar.html ===================== */
.page { display: flex; flex-direction: column; }

/* الهيدر */
.top { padding: 16px 18px 12px; display: flex; align-items: center; justify-content: space-between; }
.studio-index { display: none; }
.lang {
  height: 32px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 999px;
  display: inline-flex; align-items: center; text-decoration: none;
}
.lang[lang="ar"] { font-family: "Roast", "Thmanyah", sans-serif; } /* زر «ع» في التصميم: Roast 11 */
/* الإنجليزي: الشعار يبقى فوق يسار والزر يمين (row-reverse في design/mobile-en.html) */
[dir="ltr"] .top { flex-direction: row-reverse; }
.logo { width: 70px; height: auto; }

/* بطاقة التعريف */
.card { display: flex; flex-direction: column; }
.video { margin: 0 12px; position: relative; border-radius: 24px; overflow: hidden; }
.video-img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  height: 26px; padding: 0 10px; gap: 6px; border-radius: 999px;
  background: rgba(15,15,15,.55); color: #FFFFFF;
  display: inline-flex; align-items: center; letter-spacing: .12em;
}
.play { width: 8px; height: 8px; }

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 22px 0; }
.id { display: flex; flex-direction: column; gap: 4px; }
.name { font-size: 28px; font-weight: 700; line-height: 1.1; }
.descriptor { font-size: 12px; color: var(--ink-2); }
.card-more { display: flex; flex-direction: column; gap: 12px; }
.intro { font-size: 13px; font-weight: 300; line-height: 1.8; }
.facts { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--ink-2); }
.fact { display: inline-flex; align-items: center; gap: 8px; }
.fact .ico { width: 14px; height: 14px; stroke-width: 1.7; color: var(--ink-2); }
.map-link { color: var(--ink); font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; }
.stat { padding: 13px 10px; display: flex; flex-direction: column; gap: 3px; }
.stat-num { align-self: flex-start; unicode-bidi: isolate; font-size: 16px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 11px; color: var(--ink-2); }

.social { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; padding: 4px; }
.social-item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 0; text-decoration: none; border-radius: 14px; }
.social-item .ico { width: 19px; height: 19px; stroke-width: 1.6; color: var(--ink); }
.social-item span { font-size: 11px; color: var(--ink-2); }

/* الحجز والواتساب */
.btn-book {
  flex: 1; height: 40px; padding: 0 20px; border-radius: 999px;
  background: var(--green); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.btn-book .ico { width: 18px; height: 18px; }
.btn-wa {
  width: 40px; height: 40px; flex: none; border: 1.5px solid rgba(15,15,15,.4); border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
}
.btn-wa .ico { width: 20px; height: 20px; stroke-width: 1.7; }
.cta-card { display: none; gap: 8px; }

.cta-dock { position: sticky; bottom: 14px; padding: 14px 12px 0; z-index: 5; }
.cta-pill {
  display: flex; gap: 8px; padding: 7px; background: var(--panel);
  border: 1px solid rgba(15,15,15,.1); border-radius: 999px; box-shadow: 0 12px 30px rgba(15,15,15,.16);
}

/* ---------- الألواح ---------- */
.panels { padding: 20px 12px 0; display: flex; flex-direction: column; gap: 12px; }
.panel { border-radius: 24px; color: var(--ink); display: flex; flex-direction: column; background: var(--panel); padding: 18px 16px; gap: 10px; }
.panel-head { display: flex; align-items: center; gap: 10px; }
.panel-title { font-size: 17px; font-weight: 700; }
/* ترتيب الجوال: التقييمات بعد المتجر */
.panel-daily { order: 1; } .panel-week { order: 2; } .panel-next { order: 3; } .panel-upcoming { order: 4; }
.panel-services { order: 5; } .panel-store { order: 6; } .panel-reviews { order: 7; } .panel-contact { order: 8; }

/* الممارسة الحرة */
.panel-daily { background: var(--purple); padding: 12px; flex-direction: row; align-items: center; gap: 12px; }
.daily-img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; flex: none; }
.daily-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.daily-title { font-size: 15px; font-weight: 500; }
.daily-sub { font-size: 11px; }
.btn-daily {
  height: 40px; padding: 0 16px; flex: none; border-radius: 999px; background: var(--ink); color: #FFFFFF;
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; text-decoration: none;
}
.btn-daily .ico { display: none; }

/* جدول الأسبوع */
.panel-week { gap: 12px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day {
  height: 52px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: rgba(255,255,255,.55); color: var(--ink);
}
.day[aria-selected="true"] { background: var(--ink); color: #FFFFFF; }
.day-name { font-size: 11px; }
.day-date { font-size: 15px; font-weight: 500; line-height: 1; }
.week-heading { margin-top: 2px; font-size: 13px; font-weight: 500; }
.slot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time btn" "text btn";
  align-items: center; column-gap: 12px; row-gap: 2px; padding: 11px 0; border-top: 1px solid var(--rule);
}
.slot-time { grid-area: time; font-size: 11px; font-weight: 500; }
.slot-text { grid-area: text; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.slot .btn-soft { grid-area: btn; }
.slot-title { font-size: 14px; font-weight: 500; }
.slot-aud { font-size: 11px; color: var(--ink-2); }
.foot-btn .btn-full { flex: 1; }

/* البرنامج القادم */
.panel-next { background: var(--caramel); padding: 16px; gap: 12px; }
.next-top { display: flex; gap: 12px; }
.next-img { width: 104px; height: 104px; object-fit: cover; border-radius: 14px; flex: none; }
.next-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.next-starts, .next-line { font-size: 11px; font-weight: 500; }
.next-title { font-size: 15px; font-weight: 700; line-height: 1.3; }

/* البرامج القادمة */
.progs { display: flex; flex-direction: column; gap: 10px; }
.prog { background: #FFFFFF; border-radius: 16px; padding: 8px; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.prog-img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; flex: none; }
.prog-subs .prog-img { border-radius: 14px; }
.prog-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.prog-subs .prog-text { gap: 3px; }
.prog-date { font-size: 11px; font-weight: 500; }
.prog-title { font-size: 14px; font-weight: 500; }
.prog-line { font-size: 11px; color: var(--ink-2); }
.prog-subs .arrow-circle .ico { width: 15px; height: 15px; }

/* التقييمات */
.panel-reviews { background: var(--purple); gap: 8px; }
.reviews-title { font-size: 15px; font-weight: 700; }
.review-quote { font-size: 13px; line-height: 1.75; min-height: 92px; }
.review-foot { display: flex; align-items: center; gap: 4px; }
.review-name { margin-inline-end: auto; }
.dot { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dot span { width: 8px; height: 8px; border-radius: 999px; display: block; background: rgba(15,15,15,.3); }
.dot[aria-pressed="true"] span { background: var(--ink); }

/* الخدمات */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.tile-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.tile-img.contain { object-fit: contain; background: var(--ink); }
.tile-title { font-size: 13px; font-weight: 500; }
.row-link { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.row-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.row-title { font-size: 14px; font-weight: 500; }
.row-sub { font-size: 11px; color: var(--ink-2); }
.row-link .ico, .about .ico { stroke-width: 1.6; }

/* المتجر */
.store-sub { font-size: 12px; color: var(--ink-2); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.product-img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.pays { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.pay-label { font-size: 11px; color: var(--ink-2); }
.pay-chip { height: 24px; padding: 0 8px; border: 1px solid rgba(15,15,15,.25); border-radius: 7px; display: inline-flex; align-items: center; font-size: 11px; }

/* التواصل */
.panel-contact { padding: 6px 16px; gap: 0; }
.contact-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-value { unicode-bidi: isolate; font-size: 13px; }
.about { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; text-decoration: none; font-size: 13px; font-weight: 500; }

/* الفوتر */
.foot { padding: 20px 22px 28px; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--ink-2); }
.foot-domain { font-weight: 400; letter-spacing: .14em; }

/* ===================== لابتوب: design/laptop-ar.html ===================== */
@media (min-width: 1024px) {
  .only-desk { display: inline; }
  .only-desk-flex { display: flex; }
  .only-mob, .only-mob-flex { display: none; }

  /* الإطار: نفس الـ div الخارجي في التصميم، padding 24 وgap 16، وعرض أقصى 1440 في النص */
  .page {
    max-width: 1440px; margin: 0 auto; padding: 24px;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    grid-template-areas: "card top" "card panels" "card foot";
    grid-template-rows: auto auto 1fr;
    gap: 16px;
    align-items: start;
  }

  .top { grid-area: top; padding: 6px 6px 2px; gap: 12px; justify-content: flex-start; }
  .studio-index { display: inline; }
  .lang { margin-inline-start: auto; height: 36px; padding: 0 14px; border-color: rgba(15,15,15,.35); }
  [dir="ltr"] .lang { margin-inline-start: 0; }
  [dir="ltr"] .studio-index { margin-inline-start: auto; }
  .logo { width: 88px; }

  .card {
    grid-area: card; position: sticky; top: 24px;
    background: var(--panel); border-radius: 24px; overflow: hidden;
  }
  .video { margin: 0; border-radius: 0; overflow: visible; }
  .video::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(207,203,196,0) 50%, #CFCBC4 100%);
  }
  .badge { top: 16px; inset-inline-start: 16px; height: 32px; padding: 0 12px; gap: 8px; z-index: 1; }
  .play { width: 10px; height: 10px; }

  .card-body { padding: 0 26px 26px; margin-top: -28px; position: relative; gap: 14px; }
  .id { gap: 14px; }
  .name { font-size: 30px; line-height: 1; }
  .card-more { gap: 14px; }
  .facts { font-size: 12px; }
  .fact .ico { width: 15px; height: 15px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
  .stat { padding: 16px 18px; gap: 4px; outline: 1px solid rgba(15,15,15,.08); }
  .stat-num { font-size: 20px; }
  .social { padding: 6px; }
  .social-item { gap: 6px; padding: 10px 0; }
  .social-item .ico { width: 20px; height: 20px; }
  .cta-card { display: flex; }
  .cta-card .btn-book { padding: 0 22px; font-size: 14px; }
  .cta-dock { display: none; }

  /* الشبكة */
  .panels { grid-area: panels; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; align-self: stretch; }
  .panel { padding: 22px; gap: 14px; order: 0; }
  .panel-title { font-size: 18px; }
  .panel-head { gap: 12px; }
  .panel-daily, .panel-contact { grid-column: span 6; }
  .panel-week, .panel-upcoming { grid-column: span 4; }
  .panel-next, .panel-reviews { grid-column: span 2; }
  .panel-services, .panel-store { grid-column: span 3; }

  .panel-daily { padding: 12px; padding-inline-end: 18px; gap: 16px; }
  .daily-img { width: 72px; height: 72px; border-radius: 16px; }
  .daily-text { gap: 3px; }
  .daily-title { font-size: 18px; }
  .daily-sub { font-size: 12px; }
  .btn-daily { padding: 0 20px; }
  .btn-daily .ico { display: block; }

  .head-btn { margin-inline-start: auto; }
  .head-btn .btn-soft, .slot .btn-soft, .about { padding: 0 18px; }
  .days { gap: 6px; }
  .day { height: 56px; }
  .day-date { font-size: 16px; }
  .week-heading { margin-top: 4px; }
  .slot { grid-template-columns: 150px minmax(0, 1fr) auto; grid-template-areas: "time text btn"; column-gap: 14px; padding: 12px 0; }
  .slot-time { font-size: 12px; }

  .panel-next { padding: 18px; gap: 10px; }
  .next-top { flex-direction: column; gap: 10px; }
  .next-img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 16px; }
  .next-text { gap: 10px; }
  .next-text .kicker { margin-top: 4px; }
  .next-starts { font-size: 12px; }
  .next-title { font-size: 18px; line-height: 1.25; }
  .panel-next .btn-dark { margin-top: auto; }

  .progs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prog { border-radius: 18px; padding: 10px; }
  .prog-img { width: 88px; height: 88px; border-radius: 14px; }
  .prog-text { gap: 3px; }
  .arrow-circle .ico { width: 15px; height: 15px; }

  .panel-reviews { gap: 10px; }
  .review-foot { margin-top: auto; } /* تعديل ماريا: الاسم والنقاط أسفل اللوح */

  .panel-services, .panel-store { gap: 12px; }
  .tiles { gap: 10px; }
  .tile-img { border-radius: 14px; }
  .row-link .ico { width: 15px; height: 15px; }

  .store-sub { font-size: 13px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } /* تعديل ماريا: 2×2 على اللابتوب */
  .product-img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center; } /* تعديل ماريا: 4:3 */
  .product-img { border-radius: 14px; }
  .pays { gap: 6px; }
  .pay-chip { padding: 0 9px; }
  .panel-store .btn-dark { margin-top: auto; }

  .panel-contact { padding: 18px 22px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
  .contact-item { flex-direction: column; align-items: stretch; gap: 3px; padding: 0; border: 0; }
  .contact-value { font-size: 14px; }
  [dir="rtl"] .contact-value { text-align: right; }
  .about { margin-inline-start: auto; height: 40px; border-radius: 999px; background: var(--soft); }
  .about .ico { display: none; }

  .foot { grid-area: foot; padding: 8px 6px 4px; flex-wrap: wrap; justify-content: flex-start; }
  .foot-domain { margin-inline-start: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
