/* ---------- Fonts ---------- */
@font-face { font-family: "Helvetica Neue LT"; src: url("assets/fonts/helvetica-roman.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Helvetica Neue LT"; src: url("assets/fonts/helvetica-bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "GE SS Two"; src: url("assets/fonts/ge-ss-two-light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "GE SS Two"; src: url("assets/fonts/ge-ss-two-medium.otf") format("opentype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "GE SS Two"; src: url("assets/fonts/ge-ss-two-bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

/* English digits inside Arabic text: GE SS Two draws 0–9 as Arabic numerals, so digits come from Helvetica */
@font-face { font-family: "FF Digits"; src: url("assets/fonts/helvetica-roman.otf") format("opentype"); font-weight: 300 500; font-display: swap; unicode-range: U+0030-0039, U+002B, U+002E, U+00D7; }
@font-face { font-family: "FF Digits"; src: url("assets/fonts/helvetica-bold.otf") format("opentype"); font-weight: 600 900; font-display: swap; unicode-range: U+0030-0039, U+002B, U+002E, U+00D7; }

/* ---------- Tokens ---------- */
:root {
  --red: #ee3342;
  --red-deep: #c21f2d;
  --ink: #0d0b0a;
  --panel: rgba(22, 20, 19, 0.92);
  --panel-line: rgba(255, 255, 255, 0.08);
  --text: #f4efe9;
  --muted: #b9b1a8;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Helvetica Neue LT", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 14px;
  --gutter: 16px;
  --nav-h: 58px;
}
html[lang="ar"] {
  --display: "FF Digits", "GE SS Two", "Anton", sans-serif;
  --body: "FF Digits", "GE SS Two", "Helvetica Neue LT", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Fixed wood background (pseudo-layer so it also works on iOS) */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.8) 100%),
    url("assets/img/wood.jpg") center / cover no-repeat;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; place-items: center;
  padding: calc(28px + env(safe-area-inset-top)) var(--gutter) 22px;
}
.logo {
  width: min(62vw, 300px); height: auto;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.6));
  animation: drop .7s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.96); } }

.lang {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); inset-inline-end: var(--gutter);
  min-width: 64px; height: 40px; padding: 0 14px;
  border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  font-family: "GE SS Two", var(--body); font-size: 15px; font-weight: 500;
}
.lang.is-en { font-family: "Helvetica Neue LT", sans-serif; font-weight: 700; letter-spacing: .06em; }
.lang:active { transform: scale(.96); }

/* ---------- Category nav ---------- */
.cats {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  background: rgba(13, 11, 10, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-line);
}
.cats-track {
  display: flex; gap: 8px; align-items: center; height: 100%;
  padding: 0 var(--gutter);
  overflow-x: auto; scrollbar-width: none;
  max-width: 1280px; margin: 0 auto;
}
.cats-track::-webkit-scrollbar { display: none; }
.cat {
  flex: none; height: 38px; padding: 0 18px;
  border: 0; border-radius: 999px;
  background: rgba(255,255,255,.07);
  font-family: var(--display); font-size: 16px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted);
  transition: background .2s, color .2s;
}
html[lang="ar"] .cat { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.cat.is-active { background: var(--red); color: #fff; }

/* ---------- Menu sections ---------- */
.menu { max-width: 1280px; margin: 0 auto; padding: 8px var(--gutter) 40px; }
.section { padding-top: 26px; }
.section-title {
  display: inline-block; margin: 0 0 18px;
  padding: 10px 44px 8px 32px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 6vw, 38px); line-height: 1; letter-spacing: .02em;
  text-transform: uppercase; color: #161313;
}
html[lang="ar"] .section-title { font-weight: 700; padding: 12px 32px 8px 44px; }

/* Red brush stroke behind titles — mirrored in Arabic so the clean edge sits where text starts */
.section-title, .card-title { position: relative; isolation: isolate; }
.section-title::before, .card-title::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("assets/img/brush.png") center / 100% 100% no-repeat;
}
html[dir="rtl"] .section-title::before, html[dir="rtl"] .card-title::before { transform: scaleX(-1); }

.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.grid.compact { grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* ---------- Card ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.8);
  text-align: start; padding: 0; width: 100%;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.card.in { opacity: 1; transform: none; }
.card:active { transform: scale(.985); }

.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1614; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
@media (hover: hover) { .card:hover .card-media img { transform: scale(1.04); } }

.badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  padding: 5px 10px 4px; border-radius: 6px;
  background: rgba(0,0,0,.72); color: #fff;
  font-family: var(--display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
html[lang="ar"] .badge { font-weight: 700; letter-spacing: 0; }
.badge.hot { background: var(--red); }

.card-title {
  position: relative; margin: -30px 0 0; z-index: 1;
  align-self: flex-start;
  padding: 14px 44px 10px 30px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 5.6vw, 28px); line-height: 1.05; letter-spacing: .02em;
  text-transform: uppercase; color: #141111;
}
html[lang="ar"] .card-title { font-weight: 700; padding: 16px 30px 10px 44px; line-height: 1.2; }
.card-sub {
  display: block; font-size: .56em; letter-spacing: .06em; margin-top: 2px;
}

.card-body { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.desc { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
html[lang="ar"] .desc { font-weight: 300; font-size: 15px; line-height: 1.8; }
.note {
  margin: 0; color: var(--red); font-weight: 700; font-size: 13.5px; line-height: 1.4; text-transform: uppercase;
}
html[lang="ar"] .note { text-transform: none; font-size: 14px; }

.prices { display: flex; gap: 22px; margin-top: auto; padding-top: 4px; }
.price { display: flex; flex-direction: column; gap: 2px; }
.price-label {
  font-family: var(--display); font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: #fff;
}
html[lang="ar"] .price-label { font-weight: 500; letter-spacing: 0; }
.price-val { font-family: "Helvetica Neue LT", var(--body); font-weight: 700; font-size: 22px; color: var(--red); line-height: 1.1; }
html[lang="ar"] .price-val { font-family: "FF Digits", "GE SS Two", sans-serif; }
.price-val small { font-size: .62em; font-weight: 700; margin-inline-start: 4px; }

/* Compact (sides) card */
.card.mini .card-title { font-size: clamp(17px, 4.4vw, 22px); padding: 11px 28px 8px 20px; margin-top: -24px; }
html[lang="ar"] .card.mini .card-title { padding: 12px 20px 8px 28px; }
.card.mini .card-body { padding: 8px 14px 14px; }
.card.mini .card-media { aspect-ratio: 4 / 3; }
.card.mini .price-val { font-size: 20px; }

/* ---------- Feature cards (Firefly Special) ---------- */
.special-box {
  border: 2px dashed var(--red); border-radius: calc(var(--radius) + 4px);
  padding: 14px;
  background: linear-gradient(135deg, rgba(238,51,66,.16), rgba(22,20,19,.85) 60%);
}
.grid.feature {
  grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; margin: 0 -14px; padding: 0 14px; scroll-padding: 0 14px;
}
.grid.feature::-webkit-scrollbar { display: none; }
.grid.feature .card { scroll-snap-align: start; }
.grid.feature .card-media { aspect-ratio: 4 / 5; }
.grid.feature .price-val { font-size: 24px; }
.sheet-body .card.portrait .card-media { aspect-ratio: 1 / 1; }

/* ---------- Price list (categories without photos) ---------- */
.section-note {
  margin: -8px 0 16px; color: var(--text); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
}
html[lang="ar"] .section-note { letter-spacing: 0; }
.list {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 6px 20px 10px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.8);
}
.rows { list-style: none; margin: 0; padding: 0; }
.row { padding: 16px 0; border-bottom: 1px solid rgba(244,239,233,.16); }
.rows > .row:last-child { border-bottom: 0; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.row-name {
  font-family: var(--display); font-size: 20px; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; color: var(--text);
}
html[lang="ar"] .row-name { font-weight: 700; font-size: 18px; letter-spacing: 0; }
.row-sub { font-size: .72em; color: var(--muted); }
.row-price {
  flex: none; font-family: "Helvetica Neue LT", var(--body); font-weight: 700; font-size: 19px; color: var(--red); white-space: nowrap;
}
html[lang="ar"] .row-price { font-family: "FF Digits", "GE SS Two", sans-serif; }
.row-price small { font-size: .62em; margin-inline-start: 4px; }
.row-desc { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 60ch; }
html[lang="ar"] .row-desc { font-weight: 300; font-size: 15px; line-height: 1.8; }

.extras {
  margin: 8px 0 10px; padding: 4px 18px;
  border: 2px dashed var(--red); border-radius: 10px;
}
.extras-title {
  margin: 12px 0 0; font-family: var(--display); font-weight: 400; font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--red);
}
html[lang="ar"] .extras-title { font-weight: 700; letter-spacing: 0; }

/* ---------- Detail sheet ---------- */
.sheet {
  width: min(720px, 100%); max-width: 100%; max-height: 100%;
  margin: auto auto 0; padding: 0;
  border: 0; border-radius: 22px 22px 0 0;
  background: #141110; color: var(--text);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.sheet[open] { animation: up .35s cubic-bezier(.2,.9,.3,1) both; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-body { max-height: 92dvh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
.sheet-body .card { opacity: 1; transform: none; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.sheet-body .card:active { transform: none; }
.sheet-body .card-media { aspect-ratio: 4 / 3; }
.sheet-body .card-title { font-size: clamp(28px, 7vw, 40px); }
.sheet-body .desc { font-size: 17px; color: #d9d2ca; }
html[lang="ar"] .sheet-body .desc { font-size: 18px; }
.sheet-body .card-body { padding: 16px 22px 28px; gap: 16px; }
.sheet-body .price-val { font-size: 28px; }
.sheet-close {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.65); color: #fff; font-size: 28px; line-height: 1;
}

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 20px var(--gutter) calc(36px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; }
.foot img { width: 90px; height: auto; margin: 0 auto 10px; opacity: .8; }
.foot p { margin: 0; }

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  :root { --gutter: 28px; --nav-h: 66px; }
  .logo { width: 300px; }
  .hero { padding-top: calc(36px + env(safe-area-inset-top)); padding-bottom: 28px; }
  .cats-track { gap: 12px; }
  .cat:first-child { margin-inline-start: auto; }
  .cat:last-child { margin-inline-end: auto; }
  .list { padding: 10px 32px 16px; }
  .list:not(.has-desc) > .rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .list:not(.has-desc) > .rows > .row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .row-name { font-size: 22px; }
  .row-price { font-size: 21px; }
  .extras { display: flex; align-items: center; gap: 32px; padding: 4px 24px; }
  .extras-title { margin: 0; flex: none; }
  .extras .rows { flex: 1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .extras .row { border-bottom: 0; }
  .cat { height: 44px; padding: 0 24px; font-size: 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .grid.compact { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .special-box { padding: 20px; }
  .grid.feature { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 18px; }
  .grid.single { grid-template-columns: 1fr; }
  .grid.single .card { flex-direction: row; }
  .grid.single .card-media { flex: 0 0 52%; aspect-ratio: auto; min-height: 320px; }
  .grid.single .card-main { flex: 1; display: flex; flex-direction: column; padding-top: 28px; }
  .grid.single .card-title { margin-top: 0; margin-inline-start: -28px; }
  html[lang="ar"] .grid.single .card-title { margin-inline-start: -28px; }
  .desc { font-size: 15px; }
  .card-title { font-size: 26px; max-width: calc(100% - 12px); }
  .sheet { margin: auto; border-radius: 22px; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid.compact { grid-template-columns: repeat(4, 1fr); }
  .grid.feature .card-media { aspect-ratio: 1 / 1; }
}

/* Card inner wrapper used for non-row layouts */
.card-main { display: flex; flex-direction: column; flex: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { opacity: 1; transform: none; }
}
