/* GatherOn - colours sampled from menu.gatheron.ae */
:root {
  --navy: #2c2c64;       /* menu cards */
  --blue: #0a3c85;       /* landing buttons / links */
  --red: #ee3a2f;        /* titles + splash buttons */
  --ink: #111;
  --muted: #555;
  --line: #ddd;
  --wm: #dfe2ee;        /* outlined "food" watermark */
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; -webkit-text-size-adjust: 100%; }
[dir="rtl"] body, [lang="ar"] body { font-family: "Cairo", var(--font); }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* wordmark fallback until the real logo is uploaded in the back office */
.wordmark {
  font-family: "Kaushan Script", cursive; font-size: clamp(54px, 16vw, 110px); line-height: 1.1; text-align: center;
  background: linear-gradient(100deg, #e04a3f 0%, #d9423f 28%, #3a4fa8 52%, #e98a3c 68%, #6cc3c9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .1em;
}
.logo-img { max-width: min(70vw, 360px); height: auto; margin: 0 auto; }

.lang-toggle {
  border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font-weight: 700; border-radius: 999px;
  padding: 6px 14px; cursor: pointer; font-size: 14px; flex: none;
}

/* ---------- landing ---------- */
.landing { padding: 20px; }
.langbar { display: flex; justify-content: flex-end; max-width: 800px; margin: 0 auto 4px; }
.landing header { display: flex; justify-content: center; margin-bottom: 25px; }
.landing h1 { font-size: clamp(24px, 6vw, 34px); margin: 0; text-align: center; font-weight: 800; }
.list { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; width: 100%; max-width: 800px;
  background: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}
.card > img, .card > .ph { width: 100%; height: 220px; object-fit: cover; background: #eee; border-radius: 12px 12px 0 0; }
.card .ph { display: grid; place-items: center; font-size: 80px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.details { display: flex; justify-content: space-between; padding: 12px; align-items: flex-start; gap: 16px; }
.left { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.location { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.address { color: var(--muted); font-size: 14px; }
.btn {
  padding: 10px 16px; background: var(--blue); color: #fff; border-radius: 8px; font-weight: 700; border: 0; cursor: pointer;
  white-space: nowrap; text-decoration: none; font-size: 15px;
}
.card-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); width: 100%; gap: 6px 16px; font-size: 14px; color: var(--blue); }
.card-meta a { color: inherit; text-decoration: none; font-weight: 600; display: block; }
.card-meta a:hover, .hours-link:hover { text-decoration: underline; }
.hours-container { position: relative; min-width: 0; }
.hours-link {
  background: transparent; border: 0; color: var(--blue); font-weight: 600; cursor: pointer; padding: 0; text-align: start;
  line-height: 1.3; font-size: inherit;
}
.hours-link.closed, .hours-status.closed { color: #b00020; }
.hours-link.closing-soon, .hours-status.closing-soon { color: #c28b00; }
.hours-link.closing-critical, .hours-status.closing-critical { color: #d35400; }
.hours-popup {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15); padding: 10px 14px; min-width: 230px; display: none; color: #000; z-index: 10;
}
.hours-popup.visible { display: block; }
.hours-popup h4 { margin: 0 0 6px; font-size: 14px; color: var(--blue); }
.hours-status { font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; color: var(--blue); }
.day-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #333; }
.day-row + .day-row { margin-top: 4px; }
.loyalty-banner-wrapper { display: flex; justify-content: center; margin: 32px 0; }
.loyalty-banner-link { width: 100%; max-width: 800px; display: block; }
.loyalty-banner { background: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .1); overflow: hidden; border: 1px solid #eee; }
.loyalty-banner img { width: 100%; height: auto; }

/* ---------- menu page ---------- */
.menu-page { background: #fff; }
#loader { position: fixed; inset: 0; background: #000; display: grid; place-items: center; z-index: 10000; transition: opacity .3s; }
#loader .wordmark { animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.08); opacity: 1; } }

.hero { min-height: 100vh; min-height: 100svh; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.hero-name { color: #fff; opacity: .8; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.skip-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; width: 100%; }
.btn-red {
  border: 0; border-radius: 20px; background: var(--red); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  font-size: clamp(1rem, 4vw, 1.85rem); width: clamp(10rem, 80vw, 15.5rem); height: clamp(3rem, 15vw, 5rem); transition: opacity .2s;
}
.btn-red:hover { opacity: .85; }
[lang="ar"].btn-red, .btn-red[lang="ar"] { font-family: "Cairo", var(--font); }

.catnav {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 10px 12px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); scrollbar-width: none;
}
.catnav::-webkit-scrollbar { display: none; }
.catnav a {
  flex: none; text-decoration: none; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 999px; padding: 6px 14px;
  font-weight: 700; font-size: 14px; text-transform: uppercase; white-space: nowrap;
}
.catnav a.active { background: var(--navy); color: #fff; }
.catnav .lang-toggle { border-color: var(--red); color: var(--red); }

.menu { max-width: 1000px; margin: 0 auto; padding: 0 16px 40px; }
.cat { scroll-margin-top: 56px; padding-bottom: 24px; }
.cat-head { position: relative; text-align: center; padding: 46px 0 14px; overflow: hidden; }
.cat-head .wm {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
  font-family: "Kaushan Script", cursive; font-size: min(38vw, 220px); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--wm);
}
.cat-head h2 {
  position: relative; z-index: 1; margin: 0; color: var(--red); font-weight: 800; text-transform: uppercase; line-height: 1.05;
  font-size: clamp(30px, 8.6vw, 58px); letter-spacing: .01em; text-wrap: balance;
}

/* cards: navy tiles, photo overlapping the top edge, white price pill */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 84px 14px; padding-top: 80px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 96px 20px; } }
.card-item {
  position: relative; background: var(--navy); color: #fff; border-radius: 22px; padding: 18px 12px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.card-item.has-photo { padding-top: calc(78% - 48px); } /* % = card width, so the photo (78% wide) always clears the title */
.card-item .photo {
  position: absolute; top: -64px; left: 50%; transform: translateX(-50%); width: 78%; aspect-ratio: 1 / 1;
  object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25));
}
.card-item h3 { margin: 0; font-size: clamp(14px, 3.8vw, 18px); font-weight: 800; text-transform: uppercase; line-height: 1.15; }
.card-item p { margin: 0; font-size: clamp(11px, 3vw, 13px); line-height: 1.35; opacity: .92; }
.pills { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pill { background: #fff; color: var(--navy); font-weight: 800; border-radius: 999px; padding: 7px 16px; font-size: clamp(13px, 3.6vw, 16px); white-space: nowrap; }
.card-item.soldout { opacity: .6; }
.card-item.soldout .pill { background: transparent; color: #fff; border: 1.5px solid #fff; }

/* list / steps: one navy panel with rows */
.panel { background: var(--navy); color: #fff; border-radius: 22px; padding: 18px 20px; max-width: 640px; margin: 20px auto 0; }
.panel h4 { margin: 20px 0 8px; font-size: clamp(22px, 6vw, 34px); font-weight: 800; text-transform: uppercase; }
.panel h4:first-child { margin-top: 4px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 5px 0; font-weight: 700; font-size: clamp(14px, 3.8vw, 17px); }
.row.plus .nm::before { content: "+ "; }
.row .nm { unicode-bidi: isolate; }
.row small { display: block; font-weight: 400; opacity: .85; font-size: 12px; }
.row .pr { white-space: nowrap; flex: none; }
.row.soldout { opacity: .55; }

.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.foot { background: #000; color: #fff; text-align: center; padding: 28px 16px 36px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.foot a { color: #fff; }
.foot .back { opacity: .7; margin-top: 8px; }

/* cards with no photos: no room reserved for the overlapping picture */
.cards.nophoto { padding-top: 24px; gap: 14px; }
