/* =========================================================================
   SOCOTRA — site.css
   Source of truth: SOCOTRA Brand Guide (2026). Palette, type roles and
   patterns below come straight from it. Edit tokens here, not inline.
   ========================================================================= */

/* ---------- Fonts ---------------------------------------------------------
   Display: P22 Mackinac Pro (licensed — NOT bundled).
   Until the licensed webfont is added, "Young Serif" (OFL) stands in for
   Latin display text. To switch to Mackinac, see README > Fonts: drop the
   .woff2 into /assets/fonts/ and swap the first @font-face src below.
   Arabic companions: Markazi Text (display) + IBM Plex Sans Arabic (body).
   Each family is split by unicode-range, so Latin and Arabic text share one
   font-family name and mixed-language lines just work.
--------------------------------------------------------------------------- */
/* P22 Mackinac Pro — licensed, not bundled. Two ways to switch it on:
   A) Adobe Fonts: add your kit <link> to each page's <head> (README > Fonts).
   B) Self-host: drop the .woff2 into /assets/fonts/ and uncomment the block below.
@font-face {
  font-family: "P22 Mackinac Pro";
  src: url("/assets/fonts/p22-mackinac-pro-extrabold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
*/
@font-face {
  font-family: "Socotra Display";
  src: url("/assets/fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Socotra Display";
  src: url("/assets/fonts/markazi-text-ar.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Socotra Sans";
  src: url("/assets/fonts/metropolis-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Socotra Sans";
  src: url("/assets/fonts/metropolis-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Socotra Sans";
  src: url("/assets/fonts/metropolis-600.woff2") format("woff2");
  font-weight: 600 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Socotra Sans";
  src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Socotra Sans";
  src: url("/assets/fonts/plex-arabic-600.woff2") format("woff2");
  font-weight: 600 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Socotra Label";
  src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Socotra Label";
  src: url("/assets/fonts/plex-arabic-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

/* ---------- Tokens -------------------------------------------------------- */
:root {
  /* Brand palette */
  --deep-brown: #46332a;
  --sage: #42442f;
  --olive: #80876e;
  --mocha: #6e5e4d;
  --khaki: #d1c5b3;
  --charcoal: #413d3b;
  --camel: #98613d;
  --beige: #f3ece2;
  /* Tints derived from the palette (no new hues) */
  --surface: color-mix(in srgb, var(--khaki) 30%, var(--beige));
  --line: color-mix(in srgb, var(--khaki) 85%, var(--mocha));

  /* Type */
  /* Mackinac first when present; "Socotra Display" is the stand-in + the Arabic face */
  --font-display: "p22-mackinac-pro", "P22 Mackinac Pro", "Socotra Display", Georgia, serif;
  --font-body: "Socotra Sans", "Metropolis", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Socotra Label", "Barlow Condensed", "Arial Narrow", sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);
  --step-3: clamp(2rem, 1.45rem + 2.1vw, 3.125rem);
  --step-4: clamp(2.4rem, 1.5rem + 3.6vw, 4.5rem);
  --step-5: clamp(2.75rem, 1.4rem + 5.2vw, 6rem);

  /* Layout */
  --gutter: clamp(1.25rem, 4.2vw, 3.75rem);
  --col-gap: clamp(1rem, 2vw, 2rem);
  --maxw: 1360px;
  --section: clamp(5rem, 11vw, 10rem);
  --header-h: 72px;
  --dome: clamp(36px, 6.5vw, 104px);

  /* Shape — soft corners from the brand mockups; arches from the printed menu */
  --r-soft: clamp(18px, 2vw, 28px);
  --r-arch: 100vmax;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.7, 0.12, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
@media (min-width: 1200px) { :root { --header-h: 88px; } }

/* Arabic: Arabic script must never be letter-spaced or uppercased */
:lang(ar) { --tracking: 0; }

/* ---------- Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--beige);
  color: var(--deep-brown);
  font: 400 var(--step-0)/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(ar) body, body:lang(ar) { line-height: 1.85; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--khaki); color: var(--deep-brown); }
:focus-visible { outline: 2px solid var(--camel); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; inset-inline-start: 1rem; top: 1rem; z-index: 100;
  padding: 0.75rem 1.25rem; border-radius: 999px;
  background: var(--deep-brown); color: var(--beige);
  font: 600 var(--step--1)/1 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* ---------- Type roles ---------------------------------------------------- */
.display, .display-xl, .display-l, .display-m, .display-s {
  font-family: var(--font-display); font-weight: 800; font-synthesis: none;
  text-wrap: balance; letter-spacing: -0.012em;
}
.display-xl { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.02em; }
.display-l  { font-size: var(--step-4); line-height: 1.06; }
.display-m  { font-size: var(--step-3); line-height: 1.1; }
.display-s  { font-size: var(--step-2); line-height: 1.2; }
:lang(ar) .display-xl, :lang(ar) .display-l, :lang(ar) .display-m, :lang(ar) .display-s { letter-spacing: 0; line-height: 1.3; }
:lang(ar) .display-xl { font-size: calc(var(--step-5) * 1.05); line-height: 1.2; }

.label {
  font-family: var(--font-label); font-weight: 600;
  font-size: 0.9375rem; line-height: 1.2;
  letter-spacing: var(--tracking, 0.09em); text-transform: uppercase;
}
:lang(ar) .label { text-transform: none; font-size: 0.95rem; }
.eyebrow { color: var(--mocha); display: block; margin-bottom: 1.25rem; }
.on-dark .eyebrow { color: var(--khaki); }

/* Brand subheadline role: Barlow Condensed, sentence case (as set in the guide's menu spec) */
.subhead { font-family: var(--font-label); font-weight: 600; font-size: var(--step-1); line-height: 1.35; letter-spacing: 0.005em; }
:lang(ar) .subhead { letter-spacing: 0; }

.lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.65; max-width: 36em; }
.prose { max-width: 38em; }
.prose p { color: var(--ink-soft, var(--deep-brown)); }
.muted { color: var(--mocha); }
.on-dark .muted { color: var(--khaki); }

/* ---------- Buttons & links ---------------------------------------------- */
.btn {
  --btn-bg: var(--deep-brown); --btn-fg: var(--beige); --btn-bd: var(--deep-brown);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.85em 1.6em;
  border: 1px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-label); font-weight: 600; font-size: 0.9375rem; line-height: 1;
  letter-spacing: var(--tracking, 0.1em); text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
:lang(ar) .btn { text-transform: none; font-size: 1rem; }
.btn:hover { --btn-bg: var(--sage); --btn-bd: var(--sage); }
.btn--outline { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; color: inherit; }
.btn--outline:hover { --btn-bg: var(--deep-brown); --btn-fg: var(--beige); --btn-bd: var(--deep-brown); }
.btn--light { --btn-bg: var(--beige); --btn-fg: var(--deep-brown); --btn-bd: var(--beige); }
.btn--light:hover { --btn-bg: var(--khaki); --btn-bd: var(--khaki); }
.on-dark .btn--outline:hover, .btn--outline-light:hover { --btn-bg: var(--beige); --btn-fg: var(--deep-brown); --btn-bd: var(--beige); }
.btn--sm { min-height: 40px; padding: 0.7em 1.2em; font-size: 0.875rem; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-label); font-weight: 600; font-size: 0.9375rem;
  letter-spacing: var(--tracking, 0.1em); text-transform: uppercase;
  text-decoration: underline; text-decoration-color: var(--camel); text-underline-offset: 0.45em; text-decoration-thickness: 1px;
  transition: text-underline-offset 0.3s var(--ease), color 0.3s;
}
:lang(ar) .text-link { text-transform: none; font-size: 1rem; }
.text-link:hover { text-underline-offset: 0.3em; color: var(--camel); }
.on-dark .text-link { text-decoration-color: var(--khaki); }
.on-dark .text-link:hover { color: var(--khaki); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* ---------- Brand marks --------------------------------------------------- */
.logo { display: block; height: auto; }
.logo--h { aspect-ratio: 3.737; }
.logo--primary { aspect-ratio: 1.648; }
.logo--emblem { aspect-ratio: 1; }

/* ---------- Image slots / placeholders ------------------------------------
   Every image is a <figure class="media"> with the final path in <img src>.
   Until a photo exists at that path, the figure shows an on-brand surface
   (palette tone + faint brand pattern). Drop the photo in — nothing else
   to change. Tone: data-tone="khaki|beige|olive|sage|brown|charcoal".
   Pattern: data-pattern="waves|sand|none".
--------------------------------------------------------------------------- */
.media {
  --ph-bg: var(--khaki); --ph-ink: var(--mocha); --ph-op: 0.13; --ph-label: var(--mocha);
  --ph-pattern: url("/assets/patterns/island-waves.svg");
  position: relative; margin: 0; overflow: hidden; isolation: isolate;
  aspect-ratio: var(--ar, 4 / 5);
  background: var(--ph-bg);
}
.media::before {
  content: ""; position: absolute; inset: -2%; z-index: 0;
  background: var(--ph-ink); opacity: var(--ph-op);
  -webkit-mask: var(--ph-pattern) center / cover no-repeat;
          mask: var(--ph-pattern) center / cover no-repeat;
  transform: scale(var(--ph-scale, 1)); transform-origin: var(--ph-pos, center);
}
.media[data-pattern="sand"] { --ph-pattern: url("/assets/patterns/sand.svg"); }
.media[data-pattern="none"]::before { display: none; }
.media[data-tone="beige"]    { --ph-bg: var(--beige);      --ph-ink: var(--khaki);      --ph-op: 0.7;  --ph-label: var(--mocha); }
.media[data-tone="khaki"]    { --ph-bg: var(--khaki);      --ph-ink: var(--mocha);      --ph-op: 0.12; --ph-label: var(--deep-brown); }
.media[data-tone="olive"]    { --ph-bg: var(--olive);      --ph-ink: var(--sage);       --ph-op: 0.2;  --ph-label: var(--beige); }
.media[data-tone="sage"]     { --ph-bg: var(--sage);       --ph-ink: var(--olive);      --ph-op: 0.24; --ph-label: var(--khaki); }
.media[data-tone="brown"]    { --ph-bg: var(--deep-brown); --ph-ink: var(--mocha);      --ph-op: 0.35; --ph-label: var(--khaki); }
.media[data-tone="charcoal"] { --ph-bg: var(--charcoal);   --ph-ink: var(--mocha);      --ph-op: 0.35; --ph-label: var(--khaki); }
.media > img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%);
}
@media (scripting: enabled) {
  .media > img { opacity: 0; transition: opacity 0.9s var(--ease); }
  .media > img.is-loaded { opacity: 1; }
  .media > img.is-missing { display: none; }
}
.media__label {
  position: absolute; inset-inline-start: 1rem; bottom: 0.9rem; z-index: 0; display: none;
  max-width: calc(100% - 2rem);
  font: 500 0.6875rem/1.45 var(--font-body); letter-spacing: 0.02em; color: var(--ph-label);
  direction: ltr; text-align: left; overflow-wrap: anywhere;
}
.media__label b { display: block; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.show-image-labels .media__label { display: block; }
.media:has(> img.is-loaded) .media__label { display: none; }
.media--fill { position: absolute; inset: 0; aspect-ratio: auto; }
.media--soft { border-radius: var(--r-soft); }
.media--arch { border-radius: var(--r-arch) var(--r-arch) calc(var(--r-soft) * 0.6) calc(var(--r-soft) * 0.6); }
.media--circle { border-radius: 50%; aspect-ratio: 1; }
.media--circle .media__label { inset-inline-start: 50%; transform: translateX(-50%); text-align: center; bottom: 1.5rem; }
figcaption.caption { margin-top: 0.9rem; font-size: var(--step--1); color: var(--mocha); }

/* ---------- Header -------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--deep-brown);
  --mark: var(--olive); --word: var(--deep-brown);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.site-header[data-state="solid"] { background: var(--beige); box-shadow: 0 1px 0 var(--line); }
/* Over a photograph: the guide's charcoal variation (camel mark, khaki word) */
.site-header[data-state="overlay"] { color: var(--beige); --mark: var(--camel); --word: var(--khaki); }
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; flex: none; border-radius: 6px; text-decoration: none; }
.brand .logo { width: clamp(118px, 12vw, 172px); }
.brand .logo * { transition: fill 0.45s var(--ease); }

.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: clamp(1rem, 1.6vw, 2.1rem); }
.primary-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none;
  /* labels are two words ("Our Story", "Visit Us"); without this they break
     onto a second line and the header grows to two rows */
  white-space: nowrap;
}
.primary-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 8px; height: 1px;
  background: var(--camel); transform: scaleX(0); transform-origin: var(--origin, left);
  transition: transform 0.4s var(--ease);
}
[dir="rtl"] .primary-nav a::after { --origin: right; }
.site-header[data-state="overlay"] .primary-nav a::after { background: var(--khaki); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.header-actions .btn--reserve, .header-actions .lang { display: none; }
.header-actions .btn { white-space: nowrap; }
.btn__icon { width: 18px; height: 18px; flex: none; }
.btn--call { padding-inline: 1.1em; gap: 0.5em; }
.site-header[data-state="overlay"] .btn--call { border-color: color-mix(in srgb, currentColor 55%, transparent); }
.site-header[data-state="overlay"] .btn--order { --btn-bg: var(--beige); --btn-fg: var(--deep-brown); --btn-bd: var(--beige); }
.site-header[data-state="overlay"] .btn--order:hover { --btn-bg: var(--khaki); --btn-bd: var(--khaki); }

.lang { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; white-space: nowrap; }
.lang a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; opacity: 0.72; transition: opacity 0.3s; }
.lang a:hover, .lang a[aria-current="true"] { opacity: 1; }
.lang a[aria-current="true"] { text-decoration: underline; text-decoration-color: var(--camel); text-underline-offset: 0.45em; }
.lang a[lang="ar"] { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 1rem; }
.lang__sep { opacity: 0.45; }

.menu-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-inline-end: -8px;
  border: 0; background: none; cursor: pointer; border-radius: 50%;
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 859px) {
  .btn--call .btn__label { display: none; }
  .btn--call { padding-inline: 0.85em; }
}
@media (max-width: 419px) {
  .brand .logo { width: 112px; }
  .header-actions .btn--order { padding-inline: 1em; font-size: 0.8125rem; min-height: 40px; }
}
@media (min-width: 900px) {
  .header-actions .lang { display: inline-flex; }
}
/* The full nav (6 links + language switch + Reserve/Call/Order) needs ~1100px of
   its own. Switching it on at 1200px left ~3px of slack, so any wider font or a
   zoomed browser pushed ORDER ONLINE off the edge. 1260px keeps real headroom;
   below it the hamburger handles navigation. */
@media (min-width: 1260px) {
  .primary-nav { display: block; }
  .header-actions .btn--reserve { display: inline-flex; }
  .menu-toggle { display: none; }
  .header-actions { gap: 1.1rem; }
}

/* ---------- Mobile navigation overlay ------------------------------------ */
.mobile-nav {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0px) 0 calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
  background: var(--deep-brown); color: var(--beige);
  --mark: var(--camel); --word: var(--khaki);
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden;
  clip-path: circle(0% at calc(100% - 44px) 36px);
  transition: clip-path 0.75s var(--ease-in-out), visibility 0s linear 0.75s;
}
[dir="rtl"] .mobile-nav { clip-path: circle(0% at 44px 36px); }
.mobile-nav.is-open { visibility: visible; clip-path: circle(150% at calc(100% - 44px) 36px); transition: clip-path 0.75s var(--ease-in-out), visibility 0s; }
[dir="rtl"] .mobile-nav.is-open { clip-path: circle(150% at 44px 36px); }
.mobile-nav::after {
  content: ""; position: absolute; inset-inline-end: -18%; bottom: -12%; width: 90vw; max-width: 620px; aspect-ratio: 1;
  background: var(--mocha); opacity: 0.35; pointer-events: none;
  -webkit-mask: url("/assets/patterns/waves-corner.svg") center / contain no-repeat;
          mask: url("/assets/patterns/waves-corner.svg") center / contain no-repeat;
}
.mobile-nav__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
.mobile-nav__body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 2rem; }
.mobile-nav__links a {
  display: block; padding-block: 0.28em; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 8.5vw, 3.25rem); line-height: 1.12; letter-spacing: -0.01em;
}
:lang(ar) .mobile-nav__links a { letter-spacing: 0; line-height: 1.4; }
.mobile-nav__links a[aria-current="page"] { color: var(--khaki); }
.mobile-nav__links a:hover { color: var(--khaki); }
.mobile-nav__foot { position: relative; z-index: 1; display: grid; gap: 1.5rem; }
.mobile-nav__foot .actions { gap: 0.75rem; }
.mobile-nav__foot .lang { font-size: 1rem; }
.mobile-nav__foot address { font-style: normal; font-size: 0.9375rem; color: var(--khaki); }
@media (prefers-reduced-motion: no-preference) {
  .mobile-nav__links li { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
  .mobile-nav.is-open .mobile-nav__links li { opacity: 1; transform: none; transition-delay: calc(0.18s + var(--i) * 0.05s); }
}
html.nav-open { overflow: hidden; }

/* ---------- Hero (home + inner pages with photography) -------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  height: 100svh; min-height: 600px; max-height: 1200px;
  color: var(--beige); background: var(--sage);
}
.hero--page { height: 78svh; min-height: 520px; max-height: 860px; }
.hero__media { position: absolute; inset: 0; z-index: -1; will-change: transform; }
.hero__media .media { position: absolute; inset: 0; aspect-ratio: auto; }
.hero__media .media::after {
  /* dragon's blood tree silhouette — shown only while no photo is in place */
  content: ""; position: absolute; z-index: 0;
  inset-inline-end: 6%; bottom: 10%; width: min(46vw, 640px); aspect-ratio: 1.26;
  background: var(--olive); opacity: 0.32;
  -webkit-mask: url("/assets/patterns/tree.svg") center / contain no-repeat;
          mask: url("/assets/patterns/tree.svg") center / contain no-repeat;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(70 51 42 / 0.42) 0%, rgb(70 51 42 / 0) 26%),
    linear-gradient(0deg, rgb(70 51 42 / 0.7) 0%, rgb(70 51 42 / 0.18) 48%, rgb(70 51 42 / 0) 70%);
}
.hero__content {
  position: absolute; inset-inline: 0; bottom: calc(var(--dome) + clamp(2rem, 6vh, 4.5rem)); z-index: 3;
  will-change: transform, opacity;
}
.hero--page .hero__content { bottom: clamp(2.5rem, 8vh, 5rem); }
.hero__title { max-width: 15ch; margin-bottom: 1.5rem; }
.hero__media .media__label { top: calc(var(--header-h) + 1rem); bottom: auto; inset-inline-start: auto; inset-inline-end: var(--gutter); text-align: end; }
:lang(ar) .hero__title { max-width: 14ch; }
.hero__lede { max-width: 30em; margin-bottom: 2rem; color: var(--beige); opacity: 0.92; }
.hero .text-link { text-decoration-color: var(--khaki); }
.hero .text-link:hover { color: var(--khaki); }

.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: calc(var(--dome) + 1.25rem);
  width: 44px; height: clamp(56px, 9vh, 88px); margin-left: -22px;
  display: flex; justify-content: center; color: var(--khaki);
}
.scroll-cue span:first-child { width: 1px; height: 100%; background: currentColor; opacity: 0.35; position: relative; overflow: hidden; }
.scroll-cue span:first-child::after {
  content: ""; position: absolute; inset: 0; background: var(--beige);
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue span:first-child::after { animation: cue 2.6s var(--ease-in-out) infinite 1.6s; }
}
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }
@media (max-width: 719px) { .scroll-cue { display: none; } }

/* Hero entrance — the page's one orchestrated moment */
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: block; }
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .hero .split-line > span { transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: calc(0.15s + var(--i, 0) * 0.12s); }
  .hero .fade-in { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(0.55s + var(--i, 0) * 0.1s); }
  .hero--reveal .split-line > span { transition-delay: calc(1.35s + var(--i, 0) * 0.12s); }
  .hero--reveal .fade-in { transition-delay: calc(1.75s + var(--i, 0) * 0.1s); }
  .is-ready .hero .split-line > span { transform: none; }
  .is-ready .hero .fade-in { opacity: 1; transform: none; }
  .hero__media .media > img, .hero__media .media::before, .hero__media .media::after { scale: 1.06; transition: scale 2.4s var(--ease), opacity 0.9s var(--ease); }
  .is-ready .hero__media .media > img, .is-ready .hero__media .media::before, .is-ready .hero__media .media::after { scale: 1; }
}

/* ---------- Homepage opening: the dragon's blood tree opens into the photo ----
   The hero image is revealed through the brand's own tree silhouette, which
   grows from the trunk outward until it fills the screen. Vector mask, so it
   costs nothing to download. Skipped entirely for reduced-motion visitors. */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .hero--reveal { background: var(--deep-brown); }
  .hero--reveal .hero__media {
    /* Two mask layers, unioned: the tree, and a soft circle that stays at zero
       size until the end, then expands past the viewport. Scaling the tree alone
       can never clear the frame — the gaps between its branches scale with it —
       so the circle is what finally washes the brown away. */
    -webkit-mask-image: url("/assets/patterns/tree.svg"), radial-gradient(circle, #000 58%, rgba(0,0,0,0) 100%);
            mask-image: url("/assets/patterns/tree.svg"), radial-gradient(circle, #000 58%, rgba(0,0,0,0) 100%);
    -webkit-mask-position: center 62%, center 62%;
            mask-position: center 62%, center 62%;
    -webkit-mask-repeat: no-repeat, no-repeat;
            mask-repeat: no-repeat, no-repeat;
    -webkit-mask-size: 0 auto, 0 0;
            mask-size: 0 auto, 0 0;
    -webkit-mask-composite: source-over;
            mask-composite: add;
    animation: tree-open 2.7s cubic-bezier(0.62, 0, 0.2, 1) 0.25s both;
  }
  .hero--reveal .hero__scrim { animation: scrim-in 1.1s var(--ease) 1.25s both; }
  .hero--reveal .scroll-cue { animation: cue-in 0.8s var(--ease) 2s both; }
}
@keyframes tree-open {
  0%   { -webkit-mask-size: 0 auto, 0 0;            mask-size: 0 auto, 0 0; }
  8%   { -webkit-mask-size: 26vmin auto, 0 0;       mask-size: 26vmin auto, 0 0; }
  42%  { -webkit-mask-size: 90vmin auto, 0 0;       mask-size: 90vmin auto, 0 0; }
  58%  { -webkit-mask-size: 170vmin auto, 0 0;      mask-size: 170vmin auto, 0 0; }
  /* the tree is now huge; the circle opens out and clears the last branches */
  100% { -webkit-mask-size: 460vmax auto, 420vmax 420vmax; mask-size: 460vmax auto, 420vmax 420vmax; }
}
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cue-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Page intro (inner pages without a photo hero) ----------------- */
.page-intro { padding-top: calc(var(--header-h) + clamp(3.5rem, 9vw, 8rem)); padding-bottom: clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.page-intro .display-xl { max-width: 14ch; }
.page-intro .lede { margin-top: 1.75rem; color: var(--mocha); }
.page-intro__corner {
  position: absolute; inset-inline-end: -8%; top: -10%; width: min(56vw, 720px); aspect-ratio: 1; pointer-events: none;
  background: var(--khaki); opacity: 0.55;
  -webkit-mask: url("/assets/patterns/waves-corner.svg") center / contain no-repeat;
          mask: url("/assets/patterns/waves-corner.svg") center / contain no-repeat;
}

/* ---------- Sections ------------------------------------------------------ */
.section { position: relative; padding-block: var(--section); }
.on-dark { color: var(--beige); }
.bg-beige { background: var(--beige); }
.bg-surface { background: var(--surface); }
.bg-khaki { background: var(--khaki); }
.bg-sage { background: var(--sage); }
.bg-brown { background: var(--deep-brown); }
.bg-charcoal { background: var(--charcoal); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head > div { max-width: 44rem; }
.section-head p { margin: 1.25rem 0 0; }

/* Home — story. The beige section rises over the hero with a canopy-shaped top edge. */
.story {
  position: relative; z-index: 2;
  margin-top: calc(var(--dome) * -1);
  padding-top: calc(var(--dome) + clamp(3rem, 7vw, 6rem));
  padding-bottom: var(--section);
  background: var(--beige);
  border-radius: 50% 50% 0 0 / var(--dome) var(--dome) 0 0;
}
.story__grid { align-items: start; row-gap: 3rem; }
.story__media { grid-column: 1 / -1; }
.story__text { grid-column: 1 / -1; position: relative; }
.story__small { grid-column: 1 / -1; }
.story__text .display-l { margin-bottom: 1.75rem; max-width: 13ch; }
:lang(ar) .story__text .display-l { max-width: 15ch; }
.story__text p { max-width: 32em; }
.story__text .text-link { margin-top: 0.75rem; }
.branch { width: min(100%, 440px); height: auto; color: var(--olive); margin-bottom: 1.5rem; margin-inline-start: -2%; overflow: visible; }
.branch__l { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .branch__l { stroke-dashoffset: calc(1 - var(--grow, 0)); }
}
@media (min-width: 720px) {
  .story__media { grid-column: 1 / span 6; }
  .story__text { grid-column: 7 / span 6; padding-top: clamp(1rem, 4vw, 4rem); }
  .story__small { grid-column: 8 / span 4; margin-top: -1rem; }
}
@media (min-width: 1100px) {
  .story__media { grid-column: 1 / span 5; }
  .story__text { grid-column: 7 / span 5; }
  .story__small { grid-column: 9 / span 3; margin-top: -4rem; }
}

/* Home — island */
.island { overflow: hidden; }
.island__pattern {
  position: absolute; inset-inline-end: -14%; top: -18%; width: min(80vw, 1000px); aspect-ratio: 1; pointer-events: none;
  background: var(--olive); opacity: 0.22;
  -webkit-mask: url("/assets/patterns/waves-corner.svg") center / contain no-repeat;
          mask: url("/assets/patterns/waves-corner.svg") center / contain no-repeat;
}
.island__title { grid-column: 1 / -1; max-width: 15ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); position: relative; }
.island__media { grid-column: 1 / -1; position: relative; }
.island__body { grid-column: 1 / -1; position: relative; margin-top: 2.5rem; }
.island__body .lede { color: var(--beige); }
.island__notes { display: grid; gap: 2rem; margin-top: 2.75rem; padding-top: 2.25rem; border-top: 1px solid rgb(209 197 179 / 0.28); }
.island__notes h3 { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3; margin-bottom: 0.5rem; font-weight: 800; }
.island__notes p { color: var(--khaki); margin: 0; font-size: 0.975rem; }
@media (min-width: 720px) {
  .island__notes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .island__media { grid-column: 1 / span 7; }
  .island__body { grid-column: 9 / span 4; margin-top: clamp(4rem, 10vw, 9rem); }
  .island__notes { grid-template-columns: 1fr; }
}

/* Home — food */
.dishes { row-gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.dish { grid-column: 1 / -1; }
.dish__meta { margin-top: 1.25rem; }
.dish__meta .label { color: var(--mocha); }
.dish__name { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1.2; margin: 0.4rem 0 0.4rem; }
.dish__desc { color: var(--mocha); margin: 0; max-width: 28em; }
.dish__price { font-family: var(--font-label); font-weight: 600; font-size: var(--step-1); color: var(--camel); margin-top: 0.4rem; display: block; }
.dish__price:empty { display: none; }
.dish a.dish__link { text-decoration: none; display: block; border-radius: var(--r-soft); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .dish .media > img, .dish .media::before { transition: transform 1.1s var(--ease), opacity 0.9s var(--ease); }
  .dish__link:hover .media > img, .dish__link:hover .media::before { transform: scale(1.035); }
}
@media (min-width: 720px) {
  .dish:nth-child(1) { grid-column: 1 / span 12; }
  .dish:nth-child(2) { grid-column: 1 / span 6; }
  .dish:nth-child(3) { grid-column: 7 / span 6; margin-top: 5rem; }
}
@media (min-width: 1100px) {
  .dish:nth-child(1) { grid-column: 1 / span 5; }
  .dish:nth-child(2) { grid-column: 6 / span 4; margin-top: 9rem; }
  .dish:nth-child(3) { grid-column: 10 / span 3; margin-top: 3.5rem; }
}

/* Home — coffee & drinks */
.drinks { overflow: hidden; }
.drinks__band {
  position: absolute; inset-inline: 0; top: 0; height: 56px;
  background: var(--olive); opacity: 0.5;
  -webkit-mask: url("/assets/patterns/ornament-h.svg") center / auto 56px repeat-x;
          mask: url("/assets/patterns/ornament-h.svg") center / auto 56px repeat-x;
}
.drinks__sand {
  position: absolute; inset: 0; pointer-events: none; background: var(--mocha); opacity: 0.16;
  -webkit-mask: url("/assets/patterns/sand.svg") center / cover no-repeat;
          mask: url("/assets/patterns/sand.svg") center / cover no-repeat;
}
.drinks .grid { position: relative; align-items: center; row-gap: 3.5rem; }
.drinks__text { grid-column: 1 / -1; }
.drinks__text .display-l { max-width: 14ch; margin-bottom: 1.5rem; }
.drinks__text .lede { color: var(--khaki); }
ul.drink-list { margin: 2.5rem 0 2.75rem; border-top: 1px solid rgb(209 197 179 / 0.25); }
.drink-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-block: 1.05rem; border-bottom: 1px solid rgb(209 197 179 / 0.25);
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1.2;
}
.drink-list li span.label { color: var(--khaki); font-size: 0.8125rem; }
.drinks__media { grid-column: 1 / -1; position: relative; padding-bottom: 12%; }
.drinks__media .media--arch { width: 80%; margin-inline-start: auto; }
.drinks__media .media--circle { position: absolute; inset-inline-start: 0; bottom: 0; width: 42%; border: 6px solid var(--deep-brown); }
@media (min-width: 1000px) {
  .drinks__text { grid-column: 1 / span 6; }
  .drinks__media { grid-column: 7 / span 6; }
}

/* Home — catering teaser */
.gather .grid { align-items: center; row-gap: 3rem; }
.gather__media { grid-column: 1 / -1; }
.gather__text { grid-column: 1 / -1; }
.gather__text .display-l { margin-bottom: 1.5rem; max-width: 12ch; }
@media (min-width: 900px) {
  .gather__media { grid-column: 1 / span 7; }
  .gather__text { grid-column: 9 / span 4; }
}

/* Home — gallery strip */
.strip {
  display: flex; gap: var(--col-gap); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--gutter); padding-bottom: 1.25rem; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--khaki) transparent;
}
.strip > .media { flex: none; height: clamp(300px, 42vw, 520px); width: auto; scroll-snap-align: start; }
.strip:focus-visible { outline-offset: -2px; }

/* Visit block (home + visit page) */
.visit .grid { row-gap: 3rem; align-items: start; }
.visit__info { grid-column: 1 / -1; }
.visit__map { grid-column: 1 / -1; }
.visit__address { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1.12; font-style: normal; margin: 1.5rem 0 2rem; }
.visit__address span { display: block; }
.info-rows { display: grid; gap: 1.5rem; margin: 0 0 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.info-rows dt { margin-bottom: 0.35rem; color: var(--mocha); }
.info-rows dd { margin: 0; }
.tbd { color: var(--mocha); font-style: italic; }
@media (min-width: 720px) { .info-rows { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .visit__info { grid-column: 1 / span 6; }
  .visit__map { grid-column: 8 / span 5; }
}
.map-card { position: relative; }
.map-card .media { --ar: 4 / 5; }
.map-card__pin {
  position: absolute; z-index: 2; left: 50%; top: 44%; width: 84px; translate: -50% -50%;
  --mark: var(--deep-brown);
}
.map-card__action { position: absolute; z-index: 2; inset-inline: 1.25rem; bottom: 1.25rem; display: flex; justify-content: center; }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--deep-brown); color: var(--beige); padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 2rem); }
.site-footer__band {
  position: absolute; inset-inline: 0; top: 0; height: 44px; background: var(--mocha); opacity: 0.7;
  -webkit-mask: url("/assets/patterns/ornament-h.svg") center / auto 44px repeat-x;
          mask: url("/assets/patterns/ornament-h.svg") center / auto 44px repeat-x;
}
.site-footer__grid { row-gap: 3rem; position: relative; }
.site-footer__brand { grid-column: 1 / -1; --mark: var(--camel); --word: var(--khaki); --desc: var(--beige); }
.site-footer__brand .logo { width: min(280px, 70vw); }
.site-footer__col { grid-column: span 6; }
.site-footer__col h2 { color: var(--khaki); margin-bottom: 1rem; }
.site-footer__col ul { display: grid; gap: 0.35rem; }
.site-footer__col a { text-decoration: none; }
.site-footer__col a:hover { text-decoration: underline; text-decoration-color: var(--camel); }
.site-footer__col address { font-style: normal; }
.site-footer__base {
  position: relative; margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: 1.5rem; border-top: 1px solid rgb(209 197 179 / 0.22);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--step--1); color: var(--khaki);
}
@media (min-width: 900px) {
  .site-footer__brand { grid-column: 1 / span 4; }
  .site-footer__col { grid-column: span 2; }
  .site-footer__col--wide { grid-column: span 3; }
}

/* ---------- Our Story page ------------------------------------------------ */
.manifesto { max-width: 21ch; }
.story-body .grid { row-gap: 3rem; align-items: start; }
.story-body__text { grid-column: 1 / -1; }
.story-body__aside { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .story-body__text { grid-column: 1 / span 6; }
  .story-body__aside { grid-column: 8 / span 5; position: sticky; top: calc(var(--header-h) + 2rem); }
}
.pullquote { margin: 0; padding: 0; }
.pullquote { padding-top: 1.75rem; border-top: 1px solid var(--camel); }
.pullquote blockquote { margin: 0; }
.pullquote p { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem); line-height: 1.25; letter-spacing: -0.005em; margin: 0; text-wrap: pretty; }
:lang(ar) .pullquote p { letter-spacing: 0; line-height: 1.4; }
.values { display: grid; gap: 3rem; }
.value .media { margin-bottom: 1.5rem; }
.value h3 { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; margin-bottom: 0.75rem; }
.value p { color: var(--mocha); margin: 0; max-width: 30em; }
@media (min-width: 900px) {
  .values { grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); }
  .value:nth-child(2) { margin-top: 8rem; }
}

/* ---------- Menu page ----------------------------------------------------- */
.menu-nav {
  position: sticky; top: var(--header-h); z-index: 20;
  background: var(--beige); border-block: 1px solid var(--line);
}
.menu-nav ul { display: flex; gap: 0.5rem; overflow-x: auto; padding-block: 0.75rem; scrollbar-width: none; }
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.1rem; border-radius: 999px;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.menu-nav a:hover { border-color: var(--line); }
.menu-nav a[aria-current="true"] { background: var(--deep-brown); color: var(--beige); }
.menu-panels { display: grid; gap: clamp(2rem, 4vw, 3rem); padding-block: clamp(3rem, 6vw, 5rem) var(--section); }
@media (min-width: 900px) { .menu-panels { grid-template-columns: 1fr 1fr; align-items: start; } .menu-panel:nth-child(even) { margin-top: 6rem; } }
.menu-panel {
  position: relative; background: var(--surface);
  border-radius: 50% 50% var(--r-soft) var(--r-soft) / clamp(90px, 12vw, 160px) clamp(90px, 12vw, 160px) var(--r-soft) var(--r-soft);
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3.25rem) clamp(2rem, 4vw, 3rem);
  scroll-margin-top: calc(var(--header-h) + 88px);
  /* isolate each panel's paint work so long-page scrolling stays at 60fps */
  contain: layout paint style;
}
.menu-panel__head { text-align: center; margin-bottom: 2.25rem; --mark: var(--olive); }
.menu-panel__head .logo--emblem { width: 44px; margin: 0 auto 1.1rem; }
.menu-panel__band {
  height: 28px; margin: 0 auto 2rem; width: min(100%, 360px); background: var(--olive); opacity: 0.55;
  -webkit-mask: url("/assets/patterns/ornament-h.svg") center / auto 28px repeat-x;
          mask: url("/assets/patterns/ornament-h.svg") center / auto 28px repeat-x;
}
.menu-item { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.menu-item:first-of-type { border-top: 0; }
.menu-item__row { display: flex; align-items: baseline; gap: 1rem; }
.menu-item__name { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); line-height: 1.25; margin: 0; }
.menu-item__price { margin-inline-start: auto; font-family: var(--font-label); font-weight: 600; font-size: var(--step-1); color: var(--mocha); white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-item__sig {
  display: inline-block; margin-inline-start: 0.6rem; vertical-align: 0.18em;
  padding: 0.15rem 0.5rem 0.1rem; border-radius: 999px;
  background: var(--camel); color: var(--beige); font-size: 0.6875rem; letter-spacing: 0.08em;
}
:lang(ar) .menu-item__sig { letter-spacing: 0; font-size: 0.75rem; }
.menu-item__desc { font-family: var(--font-label); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; margin: 0.35rem 0 0; color: var(--deep-brown); }
:lang(ar) .menu-item__desc { font-weight: 400; font-size: 0.975rem; line-height: 1.6; color: var(--mocha); }
.menu-note { text-align: center; color: var(--mocha); font-size: var(--step--1); }

/* Category bar: dropdown of every section + the chips across */
.menu-nav__inner { display: flex; align-items: center; gap: 0.75rem; }
.menu-nav__chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-block: 0.75rem; scrollbar-width: none; scroll-behavior: auto; }
.menu-nav__chips::-webkit-scrollbar { display: none; }
.menu-jump { position: relative; flex: none; }
.menu-jump__btn {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 40px; padding: 0 1rem;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; list-style: none; white-space: nowrap;
  background: var(--beige); color: var(--deep-brown);
}
.menu-jump__btn::-webkit-details-marker { display: none; }
.menu-jump__btn:hover { border-color: var(--mocha); }
.menu-jump__btn:focus-visible { outline: 2px solid var(--camel); outline-offset: 2px; }
.menu-jump__chev { width: 8px; height: 8px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; rotate: 45deg; margin-block-start: -4px; transition: rotate 0.25s var(--ease); }
.menu-jump[open] .menu-jump__chev { rotate: -135deg; margin-block-start: 2px; }
.menu-jump[open] .menu-jump__btn { background: var(--deep-brown); color: var(--beige); border-color: var(--deep-brown); }
.menu-jump__panel {
  position: absolute; z-index: 30; inset-inline-start: 0; top: calc(100% + 0.6rem);
  width: min(92vw, 560px); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  padding: 0.5rem; border: 1px solid var(--line); border-radius: var(--r-soft);
  background: var(--beige); box-shadow: 0 20px 44px rgb(65 61 59 / 0.18);
}
.menu-jump__panel ul { display: grid; gap: 0.15rem; }
@media (min-width: 620px) { .menu-jump__panel ul { grid-template-columns: 1fr 1fr; } }
.menu-jump__panel a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  min-width: 0; overflow-wrap: anywhere; text-wrap: pretty;
  padding: 0.6rem 0.85rem; border-radius: 10px; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; line-height: 1.3;
}
.menu-jump__panel a:hover, .menu-jump__panel a:focus-visible { background: var(--surface); }
.menu-jump__panel a span { flex: none; font-family: var(--font-label); font-weight: 600; font-size: 0.8125rem; color: var(--mocha); }

/* ---------- Catering & events page --------------------------------------- */
.offers { row-gap: 3.5rem; }
.offer { grid-column: 1 / -1; }
.offer .media { margin-bottom: 1.75rem; }
.offer h2 { margin-bottom: 1rem; }
.offer p { color: var(--mocha); max-width: 30em; }
@media (min-width: 900px) {
  .offer:nth-child(1) { grid-column: 1 / span 6; }
  .offer:nth-child(2) { grid-column: 8 / span 5; margin-top: 9rem; }
}
.inquiry .grid { row-gap: 3rem; }
.inquiry__intro { grid-column: 1 / -1; }
.inquiry__form { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .inquiry__intro { grid-column: 1 / span 4; }
  .inquiry__form { grid-column: 6 / span 7; }
}
.form { display: grid; gap: 1.75rem 1.5rem; }
@media (min-width: 720px) { .form { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.5rem; }
.field label, .field legend { font-family: var(--font-label); font-weight: 600; font-size: 0.875rem; letter-spacing: var(--tracking, 0.09em); text-transform: uppercase; color: var(--mocha); }
:lang(ar) .field label, :lang(ar) .field legend { text-transform: none; font-size: 0.95rem; }
.field .req { color: var(--camel); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem;
  border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--beige) 60%, white);
  color: var(--deep-brown); font: 400 1rem/1.5 var(--font-body);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--camel); box-shadow: 0 0 0 3px rgb(152 97 61 / 0.18); }
.field [aria-invalid="true"] { border-color: var(--camel); }
.field__error { font-size: 0.875rem; color: var(--camel); min-height: 0; }
.field__error:empty { display: none; }
.form__status { grid-column: 1 / -1; font-size: 0.975rem; }
.form__status:empty { display: none; }
.form__status[data-kind="ok"] { padding: 1rem 1.25rem; border-radius: 12px; background: var(--surface); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__foot small { color: var(--mocha); }

/* ---------- Gallery page -------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter {
  min-height: 42px; padding: 0 1.15rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.filter:hover { border-color: var(--mocha); }
.filter[aria-pressed="true"] { background: var(--deep-brown); border-color: var(--deep-brown); color: var(--beige); }
.masonry { columns: 1; column-gap: var(--col-gap); }
@media (min-width: 600px) { .masonry { columns: 2; } }
@media (min-width: 1000px) { .masonry { columns: 3; } }
.masonry__item { break-inside: avoid; margin-bottom: var(--col-gap); }
.masonry__item[hidden] { display: none; }
.masonry__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-soft); text-align: start; }
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(70 51 42 / 0.96); color: var(--beige);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: flex-end; padding: calc(env(safe-area-inset-top, 0px) + 1rem) var(--gutter) 0; }
.lightbox__stage { display: grid; place-items: center; padding: 1rem var(--gutter); min-height: 0; }
.lightbox__stage .media { width: min(100%, 1100px); max-height: 100%; aspect-ratio: var(--ar); height: auto; max-width: calc((100svh - 200px) * var(--arn, 1)); }
.lightbox__nav { display: flex; justify-content: center; gap: 1rem; padding: 0 var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 1.25rem); }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; background: transparent; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
[dir="rtl"] .icon-btn--dir svg { transform: scaleX(-1); }

/* ---------- 404 ----------------------------------------------------------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 3rem) var(--gutter) 4rem; }
.notfound .logo--emblem { width: 96px; margin: 0 auto 2rem; --mark: var(--olive); }
.notfound .actions { justify-content: center; margin-top: 2rem; }

/* ---------- Reveal on scroll (subtle; images clip up, copy fades) --------- */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  /* A shorter rise over a longer, softer curve reads as drifting into place
     rather than sliding. --d is set per element in site.js to stagger siblings. */
  [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease), transform 1.25s var(--ease); transition-delay: var(--d, 0s); }
  [data-reveal="media"] { opacity: 1; transform: none; clip-path: inset(14% 0 0 0); transition: clip-path 1.4s var(--ease); transition-delay: var(--d, 0s); }
  [data-reveal].is-in { opacity: 1; transform: none; }
  [data-reveal="media"].is-in { clip-path: inset(0 0 0 0); }
}

/* ---------- Page transitions (cross-document View Transitions) ------------ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.28s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.45s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Print --------------------------------------------------------- */
@media print {
  .site-header, .mobile-nav, .scroll-cue, .menu-nav, .site-footer__band { display: none !important; }
  body { background: #fff; }
  .menu-panel { break-inside: avoid; background: none; border: 1px solid var(--line); }
}

/* ---------- Visit page cards + hours list --------------------------------- */
.split-card { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .split-card:first-child { grid-column: 1 / span 5; }
  .split-card:last-child { grid-column: 7 / span 5; }
}
.hours { margin: 0; display: grid; gap: 0.35rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; }
.hours dt { margin: 0; color: inherit; font: inherit; letter-spacing: 0; text-transform: none; }
.hours dd { margin: 0; white-space: nowrap; }

/* ---------- First-order offer popup --------------------------------------- */
.offer-pop {
  position: fixed; z-index: 70; inset-inline-start: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  padding: 1.75rem 1.5rem 1.5rem; border-radius: var(--r-soft);
  background: var(--deep-brown); color: var(--beige); overflow: hidden; isolation: isolate;
  box-shadow: 0 18px 50px rgb(65 61 59 / 0.3);
}
.offer-pop[hidden] { display: none; }
.offer-pop__sand {
  position: absolute; inset: 0; z-index: -1; background: var(--mocha); opacity: 0.3;
  -webkit-mask: url("/assets/patterns/sand.svg") center / cover no-repeat;
          mask: url("/assets/patterns/sand.svg") center / cover no-repeat;
}
.offer-pop__mark { width: 40px; margin-bottom: 1rem; --mark: var(--camel); }
.offer-pop__label { display: block; color: var(--khaki); margin-bottom: 0.6rem; }
.offer-pop h2 { margin-bottom: 0.75rem; }
.offer-pop p { font-size: 0.975rem; color: var(--khaki); margin-bottom: 1.25rem; }
.offer-pop small { display: block; margin-top: 1rem; font-size: 0.75rem; line-height: 1.5; color: var(--khaki); opacity: 0.75; }
.offer-pop__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.offer-pop__no {
  min-height: 40px; padding: 0 0.25rem; border: 0; background: none; color: var(--khaki); cursor: pointer;
  font-family: var(--font-label); font-weight: 600; font-size: 0.875rem; letter-spacing: var(--tracking, 0.09em);
  text-transform: uppercase; text-decoration: underline; text-underline-offset: 0.35em;
}
:lang(ar) .offer-pop__no { text-transform: none; font-size: 0.95rem; }
.offer-pop__close {
  position: absolute; z-index: 2; inset-inline-end: 0.5rem; top: 0.5rem;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--khaki); cursor: pointer;
}
.offer-pop__close svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .offer-pop { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
  .offer-pop.is-in { opacity: 1; transform: none; }
}
@media (max-width: 599px) {
  .offer-pop { inset-inline: 0.75rem; width: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem); }
}

/* ---------- Socotra endemics: section markers ------------------------------
   Filled silhouettes in the same language as the SOCOTRA emblem. Each one is a
   plant that grows nowhere else on earth; they mark sections rather than
   decorate them, and grow up from their base as you reach them. */
.bot-mark { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; pointer-events: none; }
.bot-mark .bot { width: 100%; height: auto; display: block; color: inherit; }
.bot-mark__cap { text-align: center; color: var(--mocha); opacity: 0.62; display: grid; gap: 0.15rem; }
.bot-mark__cap b {
  font-family: var(--font-label); font-weight: 600; font-size: 0.6875rem;
  letter-spacing: var(--tracking, 0.11em); text-transform: uppercase; white-space: nowrap;
}
.bot-mark__cap i { font-size: 0.6875rem; line-height: 1.3; font-style: italic; opacity: 0.8; }
:lang(ar) .bot-mark__cap b { text-transform: none; letter-spacing: 0; font-size: 0.8125rem; }
.on-dark .bot-mark__cap { color: var(--khaki); opacity: 0.5; }

/* a marker sitting on its own, centring a section break */
.bot-mark--row { width: clamp(84px, 9vw, 116px); margin: clamp(3rem, 6vw, 5rem) auto 0; color: var(--olive); }

/* markers tucked into the corner of a full-bleed section */
.bot-mark--island, .bot-mark--drinks {
  position: absolute; z-index: 1; width: clamp(72px, 7.5vw, 104px);
  color: var(--khaki); opacity: 0.85;
}
.bot-mark--island { inset-inline-start: var(--gutter); bottom: clamp(2rem, 5vw, 3.5rem); }
.bot-mark--drinks { inset-inline-end: var(--gutter); bottom: clamp(2rem, 5vw, 3.5rem); color: var(--olive); }
@media (max-width: 999px) {
  .bot-mark--island, .bot-mark--drinks { position: static; margin: 2.5rem auto 0; width: 84px; }
}

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  /* the clip goes on the shape, never the observed element — a fully clipped
     element never reports as intersecting, so it would never reveal */
  [data-reveal="grow"] { opacity: 1; transform: none; }
  [data-reveal="grow"] .bot { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
  [data-reveal="grow"].is-in .bot { clip-path: inset(0 0 0 0); }
  [data-reveal="grow"] .bot-mark__cap { opacity: 0; transition: opacity 0.7s var(--ease) 0.55s; }
  [data-reveal="grow"].is-in .bot-mark__cap { opacity: 0.62; }
  .on-dark [data-reveal="grow"].is-in .bot-mark__cap { opacity: 0.5; }
}

/* ---------- Provenance notes ----------------------------------------------- */
.drinks__note {
  max-width: 34em; margin: 1.5rem 0 0; padding-inline-start: 1.1rem;
  border-inline-start: 1px solid var(--camel);
  font-size: 0.975rem; line-height: 1.7; color: var(--khaki);
}
.menu-panel__note {
  margin: -0.75rem auto 1.75rem; max-width: 34em; text-align: center;
  font-size: 0.9rem; line-height: 1.6; color: var(--mocha);
}

/* ---------- Arabic brand lockup --------------------------------------------
   The tree emblem is unchanged from the brand guide; سقطرى is set beside it in
   the brand's Arabic display face. The guide has no Arabic lockup — this is a
   typographic setting, not a redrawn logo. */
.brand-ar { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand .brand-ar__mark, .brand-ar .brand-ar__mark { width: clamp(32px, 3.4vw, 40px); flex: none; }
.brand-ar__word {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.45rem, 1.2rem + 0.7vw, 1.9rem); line-height: 1;
  color: var(--word, var(--deep-brown)); padding-block-start: 0.12em;
}
.brand-ar--stack { flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.brand-ar--stack .brand-ar__mark, .site-footer .brand-ar--stack .brand-ar__mark { width: 76px; }
.brand-ar--stack .brand-ar__word { font-size: clamp(2.1rem, 1.6rem + 1.6vw, 3rem); }

/* ---------- Open / closed right now ---------------------------------------- */
.open-state {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-label); font-weight: 600; font-size: 0.8125rem;
  letter-spacing: var(--tracking, 0.09em); text-transform: uppercase; color: var(--mocha);
}
:lang(ar) .open-state { text-transform: none; letter-spacing: 0; font-size: 0.9375rem; }
.open-state:empty { display: none; }
.open-state::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--mocha); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mocha) 18%, transparent);
}
.open-state[data-open="true"] { color: var(--olive); }
.open-state[data-open="true"]::before { background: var(--olive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--olive) 22%, transparent); }
.on-dark .open-state { color: var(--khaki); }
.on-dark .open-state::before { background: var(--khaki); }
.info-rows .open-state { margin-top: 0.45rem; }
