/* =====================================================================
   تراس المدينة السياحي — الصفحة التعريفية
   هوية «بيت لمّة إدلب» بالثيم الليلي: أخضر غامق، كتابة كريمية بخط Bukra،
   وكلمة واحدة ذهبية بخط الثلث.
   ===================================================================== */

@font-face { font-family: "Bukra"; src: url("../fonts/bukra-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Bukra"; src: url("../fonts/bukra-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bukra"; src: url("../fonts/bukra-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thuluth"; src: url("../fonts/thuluth.woff2") format("woff2"); font-display: swap; }

:root {
  --night: #0B1E14;
  --deep: #0E2418;
  --deep-2: #12301F;
  --green: #214C33;
  --green-hi: #2E6146;
  --cream: #F4EEDF;
  --cream-dim: rgba(244, 238, 223, .72);
  --cream-faint: rgba(244, 238, 223, .14);
  --gold: #BEA048;
  --gold-hi: #E2C77A;
  --gold-dim: #9C8236;

  --font: "Bukra", "Segoe UI", Tahoma, sans-serif;
  --accent-font: "Thuluth", "Bukra", serif;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --gutter: 20px;
  --maxw: 1240px;
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
  background: var(--night);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  color: var(--cream);
  background: var(--deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.accent {
  font-family: var(--accent-font);
  font-weight: 400;
  background: linear-gradient(180deg, #F0D88E 5%, var(--gold) 55%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
  padding: .1em .06em .25em;
}

.skip-link {
  position: absolute;
  top: -60px; right: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--deep);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 8px; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--gold {
  background: linear-gradient(180deg, #E8CF85, var(--gold) 60%, #A98C3C);
  color: var(--deep);
  box-shadow: 0 12px 30px -12px rgba(226, 199, 122, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn--gold:hover { box-shadow: 0 16px 36px -12px rgba(226, 199, 122, .75), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--line { border-color: rgba(244, 238, 223, .4); color: var(--cream); }
.btn--line:hover { border-color: var(--gold-hi); }

/* ---------- الشريط العلوي ---------- */
.topbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px var(--gutter);
  padding-top: max(10px, env(safe-area-inset-top));
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.topbar.is-solid {
  background: rgba(11, 30, 20, .96);
  box-shadow: 0 1px 0 var(--cream-faint);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand .brand-name { height: 30px; opacity: 0; transition: opacity .4s; }
.topbar.is-solid .brand-name { opacity: 1; }
.topnav { display: none; gap: 30px; margin-inline-start: auto; font-weight: 400; }
.topnav a { text-decoration: none; font-size: 15px; color: var(--cream-dim); transition: color .2s; }
.topnav a:hover { color: var(--gold-hi); }
.topbar .btn { margin-inline-start: auto; }
@media (min-width: 900px) {
  .topnav { display: flex; }
  .topbar .btn { margin-inline-start: 10px; }
}

/* ---------- أوراق الزيتون الزخرفية ---------- */
.leaf { position: absolute; fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; opacity: .22; pointer-events: none; }
.leaf--a { width: 64px; top: 22%; right: -12px; transform: rotate(28deg); }
.leaf--b { width: 40px; top: 50%; left: 5%; transform: rotate(-36deg); opacity: .32; }
.leaf--c { width: 84px; bottom: 7%; right: 7%; transform: rotate(-12deg); opacity: .14; }

/* =====================================================================
   البطل: سهرة على التراس
   ===================================================================== */
.hero { position: relative; height: 100svh; }
.js .hero.is-scrolly { height: 260svh; }
.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(226, 199, 122, .16), transparent 70%),
    radial-gradient(90% 60% at 50% 100%, #1A3F2A, transparent 70%),
    linear-gradient(180deg, var(--night), var(--deep) 60%, #102A1C);
}

/* إنارة السهرة: سلك وأضواء معلّقة */
.lights {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 120px;
  overflow: visible;
  pointer-events: none;
}
.wire { fill: none; stroke: rgba(244, 238, 223, .22); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bulbs { position: absolute; inset: 0; pointer-events: none; }
.bulb {
  position: absolute;
  width: 7px; height: 7px;
  margin: -1px 0 0 -3.5px;
  border-radius: 50%;
  background: #FFE7A8;
  box-shadow: 0 0 6px 2px rgba(255, 214, 120, .9), 0 0 22px 8px rgba(255, 196, 90, .35);
  animation: twinkle 3.6s ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}
@keyframes twinkle { 50% { opacity: .5; } }

.hero-copy {
  position: relative;
  z-index: 3;
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 84px var(--gutter) 0;
}
.hero-logo img { width: min(74vw, 320px); height: auto; }
.hero-tag {
  margin: 12px 0 0;
  font-weight: 700;
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.3;
}
.hero-tag .accent { font-size: 1.5em; }
.hero-sub { margin: 2px 0 18px; color: var(--cream-dim); font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (min-width: 900px) {
  .hero-copy { padding-top: 100px; }
  .hero-logo img { width: min(32vw, 420px); }
  .hero-sub { font-size: 17px; }
}

/* المشهد ثلاثي الأبعاد: الموضع والميلان يحدّدهما home.js */
.table-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  perspective: 1100px;
  perspective-origin: 50% 35%;
  pointer-events: none;
}
.table {
  --T: min(94vw, 560px, 62svh);
  --tilt: 64deg;
  --spin: 0deg;
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--T);
  height: var(--T);
  margin-left: calc(var(--T) / -2);
  margin-top: calc(var(--T) / -2);
  transform-style: preserve-3d;
  transform: translate3d(0, 76svh, 0) rotateX(var(--tilt)) rotateZ(var(--spin));
  will-change: transform;
}
@media (min-width: 900px) { .table { --T: min(52vw, 760px, 82svh); } }

/* ظلّ الطاولة تحتها */
.table-shadow {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25) 70%, transparent);
  transform: translate3d(3%, 5%, -30px);
}
/* سطح الطاولة صورة جاهزة (images/home/table.webp): لا تدرّجات ولا ظلال تُعاد كل إطار */
.table-top {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.plates { position: absolute; inset: 0; transform-style: preserve-3d; }
.plate {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--T) * .27);
  height: calc(var(--T) * .27);
  max-width: none;
  margin: calc(var(--T) * -.135) 0 0 calc(var(--T) * -.135);
  transform: translate3d(var(--x), var(--y), 1px);
}

.table-word {
  will-change: transform, opacity;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.1;
  font-weight: 700;
  font-size: clamp(15px, 4vw, 24px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.table-word .accent { font-size: 2.3em; }

.scroll-hint {
  position: absolute;
  z-index: 3;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  margin: 0 0 0 -11px;
}
.scroll-hint span {
  display: block;
  width: 22px; height: 34px;
  border: 1.5px solid rgba(244, 238, 223, .4);
  border-radius: 12px;
  position: relative;
}
.scroll-hint span::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold-hi);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 60% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }

/* =====================================================================
   الأطباق: أربع محطات
   ===================================================================== */
.dishes { position: relative; background: var(--deep); }
.dishes-track { display: flex; flex-direction: column; }
.panel {
  position: relative;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 70px var(--gutter);
  overflow: hidden;
  background: radial-gradient(70% 55% at 50% 35%, rgba(226, 199, 122, .1), transparent 70%), var(--deep);
}
.panel:nth-child(even) { background: radial-gradient(70% 55% at 50% 35%, rgba(226, 199, 122, .1), transparent 70%), var(--deep-2); }
.panel-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}
.watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(120px, 42vw, 360px);
  opacity: .12;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}
.panel-dish {
  position: relative;
  width: min(104vw, 540px);
  max-width: none;
  margin: -8% 0;
  height: auto;
  will-change: transform;
}
.panel-text { position: relative; max-width: 30rem; }
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-weight: 400;
  font-size: 14px;
  color: var(--gold-hi);
}
.kicker span { font-weight: 700; color: var(--gold); letter-spacing: .08em; }
.panel h2 { font-size: clamp(30px, 8vw, 56px); line-height: 1.3; }
.panel h2 .accent { font-size: 1.35em; }
.panel-text > p:not(.kicker) { margin: 8px 0 18px; color: var(--cream-dim); font-size: clamp(16px, 1.6vw, 18px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--cream-faint);
  background: rgba(244, 238, 223, .05);
  font-size: 14px;
  font-weight: 400;
}

/* الشاشات الكبيرة: المحطات تتحرّك أفقياً مع التمرير */
@media (min-width: 900px) {
  .dishes.is-horizontal { height: 100svh; overflow: hidden; }
  .is-horizontal .dishes-track { flex-direction: row; width: 400vw; height: 100%; }
  .panel {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 40px;
    padding: 90px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    min-height: 100svh;
  }
  .is-horizontal .panel { width: 100vw; flex: none; }
  .panel-text { order: -1; }
  .panel-media { min-height: 0; }
  .panel-dish { width: min(52vw, 730px); }
  .watermark { font-size: min(26vw, 380px); }
}

/* =====================================================================
   حلقة المنيو
   ===================================================================== */
.ring-section {
  padding: 100px 0 80px;
  overflow: hidden;
  background: radial-gradient(60% 50% at 50% 70%, rgba(226, 199, 122, .08), transparent 70%), var(--night);
}
.section-title { font-size: clamp(32px, 7vw, 60px); line-height: 1.3; }
.section-title .accent { font-size: 1.35em; }
.section-sub { margin: 6px 0 0; color: var(--cream-dim); }
.ring-viewport {
  --card: clamp(150px, 20vw, 220px);
  position: relative;
  height: calc(var(--card) * 1.62);
  margin-top: 30px;
  perspective: 1200px;
  perspective-origin: 50% 30%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.ring-viewport.is-dragging { cursor: grabbing; }
.ring {
  position: absolute;
  left: 50%;
  top: 10px;
  width: var(--card);
  margin-left: calc(var(--card) / -2);
  transform-style: preserve-3d;
  will-change: transform;
}
.dish-card {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1D4430, #12301F);
  border: 1px solid rgba(226, 199, 122, .25);
  box-shadow: 0 20px 34px -18px rgba(0, 0, 0, .7);
  text-decoration: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.dish-card img { width: 100%; height: auto; pointer-events: none; }
.dish-card b { margin-top: 4px; font-size: 15px; line-height: 1.4; text-align: center; }
.dish-card span { font-size: 12px; color: var(--gold-hi); font-weight: 400; }
.ring-cta { display: flex; justify-content: center; margin-top: 10px; }

/* =====================================================================
   المكان
   ===================================================================== */
.place { padding-block: 90px; }
.features { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 820px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature {
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(244, 238, 223, .06), rgba(244, 238, 223, .02));
  border: 1px solid var(--cream-faint);
  transition: border-color .3s, transform .3s var(--ease);
}
.feature:hover { border-color: rgba(226, 199, 122, .4); transform: translateY(-3px); }
.feature svg {
  width: 52px; height: 52px;
  fill: none;
  stroke: var(--gold-hi);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { margin: 14px 0 4px; font-size: 20px; }
.feature p { margin: 0; color: var(--cream-dim); }

/* =====================================================================
   زورونا
   ===================================================================== */
.visit {
  padding-block: 90px;
  background: radial-gradient(80% 70% at 50% 0%, var(--green-hi), var(--green) 45%, #173A27);
}
.visit-welcome { margin: 0; font-size: clamp(54px, 13vw, 110px); line-height: 1.2; }
.visit .section-title { margin-top: -6px; }
.visit-grid { display: grid; gap: 14px; margin-top: 34px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.info {
  padding: 24px;
  border-radius: 24px;
  background: rgba(11, 30, 20, .28);
  border: 1px solid rgba(244, 238, 223, .16);
}
.info h3 { font-size: 19px; color: var(--gold-hi); margin-bottom: 6px; }
.info p { margin: 0; opacity: .85; }
.info .link { display: inline-block; margin-top: 12px; color: var(--gold-hi); font-weight: 700; text-underline-offset: 6px; }
.info-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn--ghost { border-color: rgba(244, 238, 223, .45); color: var(--cream); }
.hours { margin: 0; padding: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 12px; opacity: .9; }

/* ---------- الفوتر ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 36px max(30px, env(safe-area-inset-bottom));
}
.footer-logo { width: 170px; height: auto; }
.footer-links { display: flex; gap: 22px; font-weight: 400; }
.footer-links a { text-decoration: none; color: var(--cream-dim); }
.footer-links a:hover { color: var(--gold-hi); }
.copyright { width: 100%; margin: 0; font-size: 13px; color: rgba(244, 238, 223, .5); }

/* ---------- ظهور العناصر ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
