/* Queeze brand: Pantone 2189 C navy, 4005 C gold; light vanilla grounds #F8F3EC/#EFE7DB with navy as ink (owner's choice); Montserrat (guide p.5) */
:root {
  --bg: #f8f3ec;
  --surface: #efe7db;
  --cream: #efe7db;
  --cream-2: #e4d8c4;
  --gold-ink: #8a6a43; /* gold dark enough to read as text on cream */
  --navy-ink: #0a3449;
  --soft-ink: #4a5a66;
  --ink: #0a3449;
  --muted: #4a5a66;
  --accent: #bf9d74;
  --accent-ink: #0a3449;
  --m: clamp(16px, 2.2vw, 32px);
  --font: 'Montserrat', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
[dir='rtl'] { --font: 'Noto Kufi Arabic', 'Montserrat', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: -80px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 50; }
.skip:focus { top: 8px; }

/* Logo is the traced mark used on the live menu, painted with currentColor */
.logo {
  display: inline-block; width: 150px; aspect-ratio: 1775 / 503; background: currentColor;
  -webkit-mask: url('menu/assets/logo.svg') center / contain no-repeat; mask: url('menu/assets/logo.svg') center / contain no-repeat;
}
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; text-decoration: none; color: var(--ink); }
.wordmark-sub { font: 700 13px/1 'Montserrat', sans-serif; letter-spacing: .32em; color: var(--accent); }

.btn, .cta-fixed {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 17px; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover, .cta-fixed:hover { background: #d3b48c; transform: translateY(-2px); }
.btn:active, .cta-fixed:active { transform: translateY(1px); }

/* ---------- Hero: the drink cropped by a Queeze triangle ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; display: grid; grid-template-columns: repeat(12, 1fr); }
.hero-media {
  position: absolute; left: -12vw; top: -18svh; width: 72vw; height: 150svh; z-index: 2;
  clip-path: polygon(0 0, 100% 50%, 0 100%); /* the brand's triangle element */
  animation: shutter 1.1s var(--ease) both;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: settle 1.4s var(--ease) both, drift 18s ease-in-out 1.4s infinite alternate; }
.topbar { position: absolute; inset: var(--m) var(--m) auto var(--m); display: flex; justify-content: space-between; align-items: flex-start; z-index: 3; }
.lang { background: var(--bg); border: 0; color: var(--ink); font: 600 17px/1 'Noto Kufi Arabic', sans-serif; cursor: pointer; padding: 10px 14px; } /* sits over the hero photo */
.lang:hover { color: var(--gold-ink); }
[dir='rtl'] .lang { font-family: 'Montserrat', sans-serif; }
.hero-text { grid-column: 6 / 13; align-self: center; text-align: end; padding-inline-end: var(--m); z-index: 1; }
.hero h1 { font-weight: 800; font-size: clamp(96px, 13vw, 210px); line-height: .86; letter-spacing: -.05em; text-transform: lowercase; }
.hero h1 span { display: block; }
.lede { margin: 40px 0 0; margin-inline-start: auto; max-width: 28ch; font-size: 19px; }
.cta-fixed { position: fixed; right: var(--m); bottom: var(--m); z-index: 20; transition: transform .3s var(--ease), opacity .3s, background-color .2s; }
.cta-fixed.away { opacity: 0; transform: translateY(16px); pointer-events: none; }
[dir='rtl'] .cta-fixed { right: auto; left: var(--m); }

@keyframes shutter { from { clip-path: polygon(0 0, 0 50%, 0 100%); } }
@keyframes settle { from { transform: scale(1.12); } }
@keyframes drift { to { transform: scale(1.05) translateY(-1.5%); } }

/* ---------- About ---------- */
.about { padding: 20px; }
.panel { position: relative; background: var(--cream); color: var(--navy-ink); min-height: 110svh; overflow: hidden; display: grid; grid-template-columns: 63fr 37fr; }
.about-left { padding: 56px; }
.about h2 { font-weight: 700; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.03em; max-width: 12ch; }
.tri-photo { position: absolute; left: 56px; bottom: -8svh; width: 38vw; aspect-ratio: 4 / 5; margin: 0; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.tri-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.about-right { padding: 56px 56px 56px 0; display: flex; flex-direction: column; gap: 64px; align-items: flex-start; }
.block { max-width: 340px; }
.block h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.picker { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.picker button {
  font: 700 17px/1 var(--font); padding: 14px 18px; border: 0; cursor: pointer;
  background: var(--cream-2); color: var(--navy-ink); transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.picker button:hover { transform: translateY(-2px); }
.picker button[aria-checked='true'] { background: var(--navy-ink); color: var(--cream); }
.pick-result { margin-top: 16px; min-height: 3.1em; }
.pick-result b { font-weight: 800; }

/* ---------- Menu: rows with the dish riding beside them ---------- */
.menu { padding: 200px var(--m) 160px; }
.menu-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.menu h2 { font-weight: 800; font-size: clamp(56px, 8vw, 128px); line-height: .9; letter-spacing: -.04em; }
.menu-head p { max-width: 34ch; color: var(--muted); }
.tabs { display: flex; gap: 8px; margin: 48px 0 32px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; font: 700 16px/1 var(--font); padding: 14px 20px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); transition: background-color .2s, color .2s;
}
.tab:hover { background: var(--cream-2); }
.tab[aria-selected='true'] { background: var(--accent); color: var(--accent-ink); }
.menu-body { display: grid; grid-template-columns: minmax(0, 1fr) 34%; gap: 48px; align-items: start; }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: baseline;
  padding: 18px 20px; cursor: default; transition: background-color .2s, padding .25s var(--ease);
  opacity: 0; transform: translateY(16px); animation: rowIn .45s var(--ease) forwards;
}
.row:nth-child(odd) { background: var(--surface); }
.row:hover, .row.on { background: var(--accent); color: var(--accent-ink); padding-inline-start: 32px; }
.row:hover .ar, .row.on .ar, .row:hover .note, .row.on .note { color: var(--accent-ink); }
.row .name { font-weight: 700; font-size: 24px; line-height: 1.2; }
.row .ar { font-family: 'Noto Kufi Arabic', sans-serif; font-size: 16px; color: var(--muted); grid-column: 1; }
.row .note { font-size: 15px; color: var(--muted); grid-column: 1; }
.row .price { grid-row: 1 / span 2; grid-column: 2; font-weight: 700; font-size: 22px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .price small { font-size: 15px; font-weight: 500; }
.row .thumb { display: none; }
@keyframes rowIn { to { opacity: 1; transform: none; } }
.menu-photo { position: sticky; top: 96px; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .6s var(--ease); }
.menu-photo img.swap { opacity: 0; transform: scale(1.04); }

/* ---------- Gallery strip ---------- */
.gallery { background: var(--accent); color: var(--navy-ink); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 120px 0; }
.gallery h2 { font-size: 24px; font-weight: 700; margin: 0 var(--m) -12px; position: relative; z-index: 1; }
.gallery .count { color: var(--bg); }
.strip { display: flex; gap: 5vw; overflow-x: auto; scrollbar-width: none; padding: 0 var(--m) 24px; scroll-snap-type: x proximity; cursor: grab; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { flex: none; width: 16vw; min-width: 180px; aspect-ratio: 2 / 3; margin: 0; scroll-snap-align: start; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease); }
.strip figure:hover img { transform: scale(1.1); }
.strip figcaption { font-size: 15px; font-weight: 700; padding-top: 10px; color: var(--navy-ink); }
.strip figure { aspect-ratio: auto; }
.strip figure > div { aspect-ratio: 2 / 3; overflow: hidden; }

/* ---------- Visit ---------- */
.visit { position: relative; min-height: 100svh; }
.visit-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.card {
  position: sticky; top: 60px; margin: 60px var(--m) 60px auto; width: 400px; max-width: calc(100% - 2 * var(--m));
  background: var(--bg); color: var(--navy-ink); padding: 32px 32px 0; overflow: hidden;
}
[dir='rtl'] .card { margin: 60px auto 60px var(--m); }
.visit h2 { font-weight: 300; font-size: 36px; letter-spacing: -.02em; margin-bottom: 20px; }
.card address { font-style: normal; margin-bottom: 20px; }
.hours { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0 0 20px; font-variant-numeric: tabular-nums; }
.hours dd { margin: 0; text-align: right; }
.card p a { font-weight: 700; }
.btn-block { display: flex; width: calc(100% + 64px); margin: 24px -32px 0; min-height: 56px; background: var(--navy-ink); color: var(--bg); }
.btn-block:hover { background: #164b67; transform: none; }
.status { font-weight: 700; margin: -8px 0 20px; display: flex; align-items: center; gap: 10px; }
.status::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #9aa4ab; }
.status.open::before { background: #2f8f5b; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }
.branches { display: flex; gap: 6px; margin-bottom: 16px; }
.branches button { flex: 1; font: 700 15px/1 var(--font); padding: 12px; border: 0; cursor: pointer; background: var(--cream-2); color: var(--navy-ink); transition: background-color .2s, color .2s; }
.branches button[aria-selected='true'] { background: var(--navy-ink); color: var(--cream); }
.card address { min-height: 3.1em; }
.link { background: none; border: 0; padding: 0; font: 600 15px/1.4 var(--font); color: #8a6a43; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.copy-row { margin: -12px 0 20px; }
.hours .today { font-weight: 800; }

/* ---------- Footer ---------- */
.footer { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--cream); color: var(--navy-ink); }
.footer-photo { overflow: hidden; }
.footer-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transform-origin: 50% 70%; }
.footer-side { padding: 80px var(--m) var(--m) 8%; display: flex; flex-direction: column; gap: 56px; }
.footer .wordmark.small { color: var(--navy-ink); align-items: flex-start; }
.footer .logo { width: 120px; }
.footer nav { display: flex; flex-direction: column; gap: 20px; }
.footer nav a { font-weight: 700; font-size: clamp(32px, 3.4vw, 52px); line-height: 1; text-decoration: none; transition: transform .25s var(--ease), color .2s; width: fit-content; }
.footer nav:hover a { color: var(--soft-ink); }
.footer nav a:hover, .footer nav a:focus-visible { color: #8a6a43; transform: translateX(12px); }
[dir='rtl'] .footer nav a:hover { transform: translateX(-12px); }
.footer-info { display: flex; gap: 48px; font-size: 16px; }
.footer-info a { text-decoration: none; }
.footer-info a:hover { color: #8a6a43; }
.legal { margin-top: auto; font-size: 13px; color: var(--soft-ink); }

/* ---------- Entrances ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- RTL mirroring ---------- */
[dir='rtl'] .hero-media { left: auto; right: -12vw; clip-path: polygon(100% 0, 0 50%, 100% 100%); animation-name: shutterR; }
[dir='rtl'] .hero h1 { letter-spacing: 0; line-height: 1.1; font-size: clamp(80px, 10vw, 170px); }
[dir='rtl'] .about-right { padding: 56px 0 56px 56px; }
[dir='rtl'] .tri-photo { left: auto; right: 56px; }
[dir='rtl'] .row .price, [dir='rtl'] .hours dd { text-align: left; }
[dir='rtl'] .footer-side { padding: 80px 8% var(--m) var(--m); }
@keyframes shutterR { from { clip-path: polygon(100% 0, 100% 50%, 100% 100%); } }

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; min-height: 0; padding-bottom: 96vw; }
  .about { padding: 10px; }
  .about-left { padding: 40px 24px 0; }
  .about h2 { font-size: 8.5vw; }
  .about-right, [dir='rtl'] .about-right { padding: 40px 24px; gap: 40px; }
  .block { max-width: none; }
  .tri-photo, [dir='rtl'] .tri-photo { left: 7vw; right: auto; width: 86vw; bottom: -18vw; }
  .menu-body { grid-template-columns: minmax(0, 1fr); }
  .menu-photo { display: none; }
  .row { grid-template-columns: 64px minmax(0, 1fr); gap: 2px 16px; padding: 14px 12px; }
  .row .thumb { display: block; grid-row: 1 / span 3; width: 64px; height: 80px; object-fit: cover; }
  .row .name, .row .ar, .row .note, .row .price { grid-column: 2; }
  .row .price, [dir='rtl'] .row .price { grid-row: auto; font-size: 18px; text-align: start; margin-top: 4px; }
  .row .thumb { grid-row: 1 / span 4; }
  .row .name { font-size: 19px; }
  .footer { grid-template-columns: 1fr; }
  .footer-photo { height: 50svh; }
  .footer-side, [dir='rtl'] .footer-side { padding: 48px var(--m) 96px; gap: 40px; }
  .footer nav a { font-size: 8vw; padding: 6px 0; }
}
@media (max-width: 900px) and (orientation: portrait), (max-width: 700px) {
  .hero { display: block; }
  .hero-media, [dir='rtl'] .hero-media { left: 50%; right: auto; top: 72px; width: min(150vw, 90svh); margin-left: calc(min(150vw, 90svh) / -2); height: max(180px, calc(100svh - 272px - 36vw)); /* stops above the headline on short phones */ clip-path: polygon(0 0, 100% 0, 50% 100%); animation-name: shutterM; }
  .hero-text { position: absolute; left: 0; right: 0; bottom: 96px; padding: 0 12px; }
  .hero h1, [dir='rtl'] .hero h1 { font-size: 21vw; }
  .hero-media img { object-position: 50% 58%; }
  [dir='rtl'] .hero-media { height: max(160px, calc(100svh - 272px - 46vw)); } /* Arabic headline sets taller */
  .lede { font-size: 17px; margin-top: 20px; }
  .logo { width: 110px; }
  .menu { padding: 120px var(--m) 100px; }
  .gallery { min-height: 80svh; }
  .strip figure { width: 40vw; min-width: 0; }
  .visit { min-height: 0; padding-top: 70svh; }
  .visit-bg { height: 70svh; }
  .card, [dir='rtl'] .card { position: relative; top: auto; width: auto; margin: -80px var(--m) 0; }
  .footer-info { flex-direction: column; gap: 16px; }
  @keyframes shutterM { from { clip-path: polygon(0 0, 100% 0, 50% 0); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Saudi riyal sign: the image used as a mask so it takes the text colour */
.sar { display: inline-block; width: .82em; height: .82em; margin-inline-end: .12em; vertical-align: -.06em; background: currentColor; -webkit-mask: url('menu/assets/images/riyal.webp') center / contain no-repeat; mask: url('menu/assets/images/riyal.webp') center / contain no-repeat; }

/* Brand gold as a visible accent: price sign, the menu photo frame, the about panel's edge */
.row .sar { color: var(--accent); }
.row:hover .sar, .row.on .sar { color: var(--navy-ink); }
.menu-photo { border-bottom: 6px solid var(--accent); }
.panel { border-top: 6px solid var(--accent); }
.footer { border-top: 6px solid var(--accent); }
