@font-face { font-family: "Thmanyah Serif Display"; src: url("fonts/thmanyah-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Thmanyah Serif Display"; src: url("fonts/thmanyah-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Serif Display"; src: url("fonts/thmanyah-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Serif Display"; 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;
  --soft-on-panel: rgba(255,255,255,.6);
  --soft-on-white: rgba(15,15,15,.06);
  --r-panel: 24px;
  --r-card: 16px;
  --r-img: 14px;
  --btn-h: 40px;
  --gutter: 16px;
  --font: "Thmanyah Serif Display", "Geeza Pro", "Noto Naskh Arabic", Georgia, serif;
  --latin: "Roast", ui-sans-serif, system-ui, 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(--font);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
svg { width: 18px; height: 18px; flex: none; }

/* ---------- الهيكل: جوال أولاً ---------- */
.page {
  padding: 12px var(--gutter) calc(var(--btn-h) + 40px + env(safe-area-inset-bottom, 0px));
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { height: 34px; width: auto; }

/* ---------- الأزرار ---------- */
.btn, .chip, .btn-book, .btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); min-height: var(--btn-h);
  border-radius: 999px; border: 0;
  text-decoration: none; font: inherit; font-size: 13px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn { padding: 0 18px; }
.btn-soft { background: var(--soft-on-white); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.lang { min-width: var(--btn-h); padding: 0 14px; font-family: var(--latin); font-size: 11px; letter-spacing: .14em; }
.lang[lang="ar"] { font-family: var(--font); font-size: 14px; letter-spacing: 0; }
a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ---------- بطاقة التعريف ---------- */
.card { display: flex; flex-direction: column; gap: 14px; }
.video { position: relative; }
.video-img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-panel); background: var(--panel); }
.badge {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px;
  height: 24px; padding: 0 10px; display: inline-flex; align-items: center;
  border-radius: 999px; background: rgba(255,255,255,.85); color: var(--ink);
  font-family: var(--latin); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.name { font-size: 28px; font-weight: 700; line-height: 1.25; }
.descriptor { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.intro { color: var(--ink-2); font-size: 13px; }
.facts { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 13px; }
.facts li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.map-link { font-weight: 500; color: var(--ink); text-underline-offset: 3px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 12px 4px; border-radius: var(--r-card); background: var(--soft-on-white); text-align: center;
}
.stat-num { font-size: 20px; font-weight: 700; line-height: 1.2; font-variant-numeric: lining-nums; }
.stat-label { font-size: 11px; color: var(--ink-2); line-height: 1.3; }

.social { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 0 14px; background: var(--soft-on-white); color: var(--ink); }

/* الزر الثابت: على الجوال مثبت تحت، وعلى اللابتوب داخل البطاقة */
.cta {
  position: fixed; z-index: 20;
  inset-inline: 0; bottom: 0;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 10px; align-items: center;
  background: linear-gradient(to top, rgba(255,255,255,1) 55%, rgba(255,255,255,0));
  transition: transform .3s ease, opacity .3s ease;
}
.cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.btn-book { flex: 1; padding: 0 20px; background: var(--green); color: var(--ink); font-weight: 700; font-size: 14px; }
.btn-wa { width: var(--btn-h); flex: none; background: var(--ink); color: #fff; }
.btn-wa svg { width: 20px; height: 20px; }

/* ---------- الألواح ---------- */
.panels { display: flex; flex-direction: column; gap: 16px; }
.panel { border-radius: var(--r-panel); padding: 18px; background: var(--panel); }
.panel-purple { background: var(--purple); color: var(--ink); }
.panel-title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.panel-sub { font-size: 13px; color: var(--ink); opacity: .85; }

.panel-daily { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.daily-img { width: 112px; height: 112px; object-fit: cover; border-radius: var(--r-img); }
.daily-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.daily-body .btn { margin-top: 6px; }

/* ---------- لابتوب ---------- */
@media (min-width: 1024px) {
  .page {
    max-width: 1280px;
    padding: 24px 32px 48px;
    display: grid;
    grid-template-columns: minmax(360px, 400px) 1fr;
    grid-template-areas: "card top" "card panels";
    grid-template-rows: auto 1fr;
    column-gap: 24px; row-gap: 20px;
    align-items: start;
  }
  .top { grid-area: top; }
  .card {
    grid-area: card;
    position: sticky; top: 24px;
    padding: 18px; border-radius: var(--r-panel); background: var(--panel);
  }
  .panels {
    grid-area: panels;
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  }
  .panel-daily { grid-column: span 6; grid-template-columns: 140px 1fr; }
  .daily-img { width: 140px; height: 140px; }
  .name { font-size: 30px; }
  .panel-title { font-size: 18px; }
  .video-img { border-radius: var(--r-img); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .chip { background: var(--soft-on-panel); }
  .cta { position: static; padding: 0; background: none; }
  .cta.is-hidden { transform: none; opacity: 1; pointer-events: auto; }
}

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