:root {
  --bg: #0b0906;
  --bg-2: #14100a;
  --card: #1a140c;
  --line: #3a2d17;
  --gold: #e3be63;
  --gold-2: #c99a3a;
  --gold-soft: #f3dc9a;
  --text: #f2ead8;
  --muted: #b7a988;
  --ok: #7fc48a;
  --bad: #e07a6a;
  --radius: 14px;
  --head: 'Marcellus', Georgia, serif;
  --body: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--gold-soft); }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.ar { font-family: var(--body); direction: rtl; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; color: var(--gold); margin-bottom: .8em; display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid var(--gold);
  font: 700 .98rem/1 var(--body); cursor: pointer; transition: .2s; color: var(--gold); background: transparent;
}
.btn:hover { background: rgba(227,190,99,.12); color: var(--gold-soft); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #1a1205; border-color: transparent; }
.btn-gold:hover { filter: brightness(1.08); color: #1a1205; background: linear-gradient(180deg, var(--gold), var(--gold-2)); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,9,6,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: var(--head); font-weight: 400; font-size: 1.15rem; color: var(--gold-soft); }
.brand small { color: var(--muted); font-size: .85rem; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { color: var(--text); font-size: .98rem; }
.site-nav a[aria-current="page"], .site-nav a:not(.btn):hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--gold); border-radius: 999px; padding: .5em 1em; font: 700 .9rem var(--body); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; }
  .nav-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
}

/* Hero */
.hero {
  position: relative; min-height: min(86vh, 760px); display: grid; place-items: center; text-align: center;
  background: #000 url('/assets/img/hero.webp') center / cover no-repeat; overflow: hidden;
}
@media (max-width: 700px) { .hero { background-image: url('/assets/img/hero-sm.webp'); background-position: 30% center; } }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 45%, rgba(11,9,6,.95) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 60px 0; }
.hero-logo { width: min(250px, 58vw); margin: 0 auto 18px; filter: drop-shadow(0 6px 30px rgba(0,0,0,.8)); }
.hero h1 { font-size: clamp(1.6rem, 4.4vw, 2.6rem); color: var(--text); margin-bottom: .35em; }
.hero p { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.6em; }
.hero .btn-row { justify-content: center; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.page-head { padding: 64px 0 28px; text-align: center; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #120d07, var(--bg)); }
.page-head p { color: var(--muted); max-width: 640px; margin-inline: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.feature .icon { font-size: 1.8rem; margin-bottom: 10px; display: block; }

.offer-band { background: linear-gradient(120deg, #2a1d0a, #120d06 60%); border: 1px solid var(--gold-2); border-radius: var(--radius); padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.offer-band h2 { margin: 0 0 .2em; }
.offer-band p { margin: 0; color: var(--muted); }

/* Menu */
.menu-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 22px 0 6px; }
.menu-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: .45em 1.1em; color: var(--text); font-size: .95rem; }
.menu-tabs a:hover { border-color: var(--gold); color: var(--gold); }
.menu-cat { padding: 44px 0 10px; scroll-margin-top: 80px; }
.menu-cat-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--gold-2); padding-bottom: 10px; margin-bottom: 8px; gap: 12px; }
.menu-cat-head h2 { margin: 0; }
.menu-cat-head .ar { color: var(--gold); font-size: 1.3rem; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
@media (max-width: 760px) { .menu-list { grid-template-columns: 1fr; } }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.menu-item .name { font-weight: 700; }
.menu-item .price { color: var(--gold); font-weight: 700; white-space: nowrap; }
.menu-item .meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .92rem; }
.note-box { margin-top: 36px; padding: 16px 20px; border-left: 3px solid var(--gold); background: var(--card); color: var(--muted); border-radius: 0 10px 10px 0; }

/* Flavours */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: .35em .95em; font-size: .95rem; background: #120e08; }
.house h3 { display: flex; justify-content: space-between; gap: 10px; }
.house h3 .ar { color: var(--gold); font-size: 1.05rem; }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: .8em .95em; border-radius: 10px; border: 1px solid var(--line); background: #0f0c07; color: var(--text);
  font: 400 1rem var(--body);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-2); border-color: transparent; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .93rem; color: var(--muted); }
.check input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--gold); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 10px; border: 1px solid; margin-bottom: 18px; }
.alert-bad { border-color: var(--bad); color: #f4c0b6; background: rgba(224,122,106,.08); }
.alert-ok { border-color: var(--ok); color: #cfe9d3; background: rgba(127,196,138,.08); }
.form-card { max-width: 620px; margin-inline: auto; }

/* Code reveal */
.code-box { text-align: center; padding: 34px 20px; border: 2px dashed var(--gold); border-radius: var(--radius); background: #120d06; }
.code-box .code { font: 700 clamp(2.2rem, 9vw, 3.4rem)/1 var(--body); letter-spacing: .12em; color: var(--gold-soft); margin: 10px 0 14px; }

/* Map */
.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); filter: grayscale(.3) contrast(1.05); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 24px; background: #080604; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr 1fr; gap: 28px; }
.footer-grid h3 { font-size: 1.05rem; }
.footer-grid p { color: var(--muted); font-size: .95rem; }
.footer-base { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: #25d366; color: #062b14; font-weight: 700; padding: .8em 1.2em; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.wa-float:hover { color: #062b14; filter: brightness(1.05); }

/* Staff panel */
.staff { font-size: 16px; }
.staff .wrap { width: min(1200px, 100% - 24px); }
.staff-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.staff-tabs a { padding: .55em 1.1em; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.staff-tabs a.on { background: var(--gold); color: #1a1205; border-color: var(--gold); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--gold); font-weight: 700; background: #120e08; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: .15em .7em; border-radius: 999px; font-size: .8rem; border: 1px solid var(--line); }
.pill-ok { color: var(--ok); border-color: var(--ok); }
.pill-bad { color: var(--bad); border-color: var(--bad); }
.pill-new { color: var(--gold); border-color: var(--gold); }
.inline-form { display: inline; }
.inline-form button { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: .3em .7em; cursor: pointer; font: 400 .85rem var(--body); }
.inline-form button:hover { border-color: var(--gold); color: var(--gold); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 1.6rem; color: var(--gold-soft); }
.stat span { color: var(--muted); font-size: .85rem; }
.menu-edit td input, .menu-edit td select { padding: .45em .6em; font-size: .9rem; }
.menu-edit td.num input { width: 90px; }

/* Arabic sub-titles sit on their own line so bidi text never mixes */
h1 .ar, .page-head h1 .ar { display: block; font-size: .5em; margin-top: .35em; color: var(--gold); unicode-bidi: isolate; }
.ar { unicode-bidi: isolate; }
@media (max-width: 600px) {
  .menu-cat-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .menu-cat-head .ar { font-size: 1.05rem; }
}

/* Floating launch countdown (home, prelaunch) */
.countdown {
  position: fixed; z-index: 70; right: 20px; bottom: 20px; width: 300px;
  background: rgba(20,15,8,.94); backdrop-filter: blur(10px);
  border: 1px solid var(--gold-2); border-radius: 18px; padding: 16px 18px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(227,190,99,.08) inset;
  display: grid; gap: 12px; animation: cd-in .5s ease-out both;
}
@keyframes cd-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cd-head { display: flex; flex-direction: column; gap: 2px; padding-right: 26px; }
.cd-head .eyebrow { margin: 0; font-size: .7rem; }
.cd-head strong { font-family: var(--head); font-weight: 400; font-size: 1.25rem; color: var(--gold-soft); }
.cd-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.cd-clock div { background: #0d0a06; border: 1px solid var(--line); border-radius: 10px; padding: 8px 0 6px; }
.cd-clock b { display: block; font: 700 1.5rem/1 var(--body); color: var(--gold); font-variant-numeric: tabular-nums; }
.cd-clock span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.countdown .btn { width: 100%; }
.cd-close { position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.cd-close:hover { color: var(--gold); border-color: var(--gold); }
/* Minimised: a slim pill with just the opening date */
.countdown.cd-min { width: auto; padding: 10px 46px 10px 16px; gap: 0; }
.countdown.cd-min .cd-clock, .countdown.cd-min .btn, .countdown.cd-min .cd-head .eyebrow { display: none; }
.countdown.cd-min .cd-head strong { font-size: 1rem; }
.countdown.cd-min .cd-close { top: 50%; transform: translateY(-50%) rotate(45deg); }
@media (max-width: 600px) {
  .countdown { left: 12px; right: 12px; bottom: 12px; width: auto; grid-template-columns: 1fr auto; align-items: center; padding: 12px 14px; gap: 10px; }
  .cd-head { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 8px; }
  .cd-clock { gap: 4px; }
  .cd-clock div { padding: 6px 4px 4px; min-width: 44px; }
  .cd-clock b { font-size: 1.2rem; }
  .cd-clock span { font-size: .6rem; letter-spacing: .06em; }
  .countdown .btn { width: auto; }
  .countdown.cd-min { left: auto; }
  body:has(.countdown:not(.cd-min)) .site-footer { padding-bottom: 150px; }
}

/* Keep the WhatsApp button above the launch countdown */
body:has(.countdown) .wa-float { bottom: 250px; right: 20px; }
body:has(.countdown.cd-min) .wa-float { bottom: 80px; }
@media (max-width: 600px) {
  body:has(.countdown) .wa-float { bottom: 150px; right: 12px; }
  body:has(.countdown.cd-min) .wa-float { bottom: 72px; }
}
