/* ==========================================================================
   Corner Pizza — styles
   Uses logical properties (inline-start / inline-end) so the layout flips
   automatically when the page switches to Arabic (dir="rtl").
   ========================================================================== */

:root {
  --green: #15301f;
  --green-deep: #0d1f14;
  --cream: #f5f1e6;
  --paper: #fefdf7;
  --red: #9c1c21;
  --red-dark: #7f1519;
  --gold: #c9a961;
  --gold-ink: #8a6a2b;
  --ink: #15301f;
  --muted: #56605a;
  --line: rgba(21, 48, 31, 0.1);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 18px;
  --header-h: 80px;
}

html[lang='ar'] {
  --serif: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --sans: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  scrollbar-gutter: stable;           /* no layout jump when the product sheet locks page scrolling */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* Arabic joins its letters — never letter-space or uppercase it */
html[lang='ar'] * { letter-spacing: 0 !important; text-transform: none !important; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; }
html[lang='ar'] h1, html[lang='ar'] h2, html[lang='ar'] h3 { font-weight: 700; }

h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.1; }
html[lang='ar'] h2 { line-height: 1.35; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font: 700 12px/1.2 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--line::before { content: ''; width: 32px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 15px/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--cream { background: var(--cream); color: var(--green); }
.btn--cream:hover { background: #fff; }
.btn--ghost { border-color: rgba(245, 241, 230, 0.35); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(245, 241, 230, 0.06); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  color: var(--cream);
  transition: box-shadow 0.3s;
}
.site-header.is-stuck { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22); }

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; text-decoration: none; }
/* The logo's charcoal wordmark and green slice need a light backdrop, so the mark sits on a cream tile. */
.brand__tile { display: grid; flex: none; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--cream); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.55); }
.brand__logo { width: 34px; height: 34px; object-fit: contain; }
.brand__name { font: 500 22px/1 var(--serif); letter-spacing: -0.01em; }
html[lang='ar'] .brand__name { font-weight: 700; font-size: 21px; }

.nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav a {
  position: relative;
  padding: 6px 0;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(245, 241, 230, 0.2);
  border-radius: 999px;
}
.lang-switch button {
  min-width: 48px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.lang-switch button[lang='ar'] { font-family: 'Cairo', var(--sans); font-size: 15px; }
.lang-switch button:hover { background: rgba(245, 241, 230, 0.1); }
.lang-switch button[aria-pressed='true'] { background: var(--cream); color: var(--green); }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(245, 241, 230, 0.2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded='true'] .icon--open { display: none; }
.menu-toggle[aria-expanded='true'] .icon--close { display: block; }

.mobile-panel {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding-block: 8px 24px;
  border-top: 1px solid rgba(245, 241, 230, 0.1);
  background: var(--green);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.3);
}
.mobile-panel[hidden] { display: none; }
.mobile-panel__nav { display: flex; flex-direction: column; margin-bottom: 16px; }
.mobile-panel__nav a {
  padding: 16px 4px;
  border-bottom: 1px solid rgba(245, 241, 230, 0.08);
  font: 500 22px/1.2 var(--serif);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--green);
  color: var(--cream);
  padding-block: clamp(36px, 6vw, 72px) clamp(64px, 9vw, 112px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  margin: 4px 0 26px;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 11.5em;
}
html[lang='ar'] .hero h1 { line-height: 1.3; letter-spacing: 0; }
.hero__text { max-width: 31em; font-size: clamp(16px, 1.4vw, 17.5px); line-height: 1.75; color: rgba(245, 241, 230, 0.78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* The photo is cropped into a circle with a thin gold ring around it. */
.hero__visual {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  justify-self: end;
}
.hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 169, 97, 0.38);
  border-radius: 50%;
}
.hero__img {
  position: absolute;
  inset: 3.6%;
  width: 92.8%;
  height: 92.8%;
  border-radius: 50%;
  object-fit: cover;
}

/* Live badge — sized in container units so it scales with the circle. */
.hero__badge {
  position: absolute;
  inset-inline-start: -6%;
  bottom: 1%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2cqw;
  min-width: 51cqw;
  min-height: 19cqw;
  padding: 2.4cqw 3.6cqw;
  border-radius: 3cqw;
  background: var(--cream);
  color: var(--green);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.hero__badge-label { font: 700 2.4cqw/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.hero__badge-title { font: 600 4.5cqw/1.15 var(--serif); letter-spacing: -0.01em; }
html[lang='ar'] .hero__badge-title { font-weight: 700; }

/* ---------- Highlights ---------- */
.features { border-bottom: 1px solid var(--line); }
.features__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 36px;
}
.features__list li { display: flex; align-items: center; gap: 16px; }
.features__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(138, 106, 43, 0.28);
  border-radius: 50%;
}
.features__icon .icon { width: 22px; height: 22px; }
.features strong { display: block; font-size: 15.5px; line-height: 1.3; }
.features small { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 400px);
  align-items: end;
  gap: 32px 64px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2 { max-width: 12em; }
.section-head__text { color: var(--muted); font-size: 16px; line-height: 1.7; }

/* ---------- Menu ---------- */
.menu-grid { display: grid; gap: 24px; align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.menu-grid[data-cols='2'] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.menu-grid[data-cols='1'] { grid-template-columns: minmax(0, 1fr); }
.menu-col { display: grid; gap: 24px; align-content: start; }

.menu-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(21, 48, 31, 0.04), 0 8px 24px -12px rgba(21, 48, 31, 0.1);
}
.menu-card__img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.menu-card__body { padding: 24px 26px 14px; }
.menu-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.menu-card__title { font-size: 24px; line-height: 1.2; }
.menu-card__count { font-size: 13px; font-weight: 700; color: var(--red); white-space: nowrap; }

.menu-group__label {
  margin: 14px 0 0;
  font: 800 11px/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.menu-list { margin-bottom: 8px; }
.menu-item { border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
/* Each row is a button: tapping it opens the product sheet. */
.menu-item__btn {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: calc(100% + 20px);
  margin-inline: -10px;
  padding: 13px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: 600 15.5px/1.35 var(--sans);
  text-align: start;
  cursor: pointer;
  transition: background-color 0.15s;
}
.menu-item__btn:hover { background: rgba(21, 48, 31, 0.05); }
.menu-item__chev { flex: none; align-self: center; width: 16px; height: 16px; margin-inline-start: auto; color: var(--gold-ink); opacity: 0.5; transition: opacity 0.2s, transform 0.2s; }
.menu-item__btn:hover .menu-item__chev { opacity: 1; transform: translateX(3px); }
html[dir='rtl'] .menu-item__chev { transform: scaleX(-1); }
html[dir='rtl'] .menu-item__btn:hover .menu-item__chev { transform: scaleX(-1) translateX(3px); }
.menu-item__leader { flex: 1; min-width: 16px; border-bottom: 1px dotted rgba(21, 48, 31, 0.28); transform: translateY(-4px); }
.menu-item__price { font-weight: 500; font-size: 14.5px; color: var(--muted); white-space: nowrap; }

.menu-note { margin-top: 28px; font-size: 14px; color: var(--muted); }

/* ---------- Story ---------- */
.story { background: var(--paper); }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 104px); align-items: center; }

.story__collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; max-width: 540px; }
.story__photo { width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px -22px rgba(21, 48, 31, 0.45); }
.story__photo--tall { aspect-ratio: 3 / 4; }
.story__stack { display: grid; gap: 14px; margin-top: 18%; }
.story__stack .story__photo { aspect-ratio: 1; }
.story__tag {
  display: grid;
  gap: 2px;
  padding: 14px 18px 16px;
  border-radius: 14px;
  background: var(--green);
  color: var(--cream);
}
.story__tag strong { font: 500 18px/1.2 var(--serif); }
html[lang='ar'] .story__tag strong { font-weight: 700; }
.story__tag span { font-size: 13px; color: rgba(245, 241, 230, 0.7); }

.story__copy h2 { margin-bottom: 24px; max-width: 11em; }
.story__copy p:not(.eyebrow) { color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.story__copy p:not(.eyebrow) + p { margin-top: 16px; }
.story__copy .story__lead { color: var(--ink); font-size: 17.5px; }
.story__sign { margin-top: 28px !important; font: italic 600 22px/1.3 var(--serif); color: var(--gold-ink) !important; }
html[lang='ar'] .story__sign { font-style: normal; font-weight: 700; font-size: 21px; }

/* ---------- Visit ---------- */
.visit h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }

.map-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #e7e2d1;
}
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card__bar {
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 16px 22px;
  border-radius: 16px;
  background: var(--green);
  color: var(--cream);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
html[dir='rtl'] .map-card__bar { padding: 16px 22px 16px 18px; }
.map-card__title { font: 500 20px/1.25 var(--serif); }
html[lang='ar'] .map-card__title { font-weight: 700; font-size: 18px; }
.map-card__detail { margin-top: 2px; font-size: 13.5px; color: rgba(245, 241, 230, 0.7); }

.hours-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(21, 48, 31, 0.04), 0 8px 24px -12px rgba(21, 48, 31, 0.1);
}
.hours-card__title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 22px; }
.hours-card__title .icon { width: 20px; height: 20px; }

.hours-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  margin-inline: -12px;
  border-radius: 10px;
  font-size: 14.5px;
}
.hours-list__day { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.hours-list__time { color: var(--muted); white-space: nowrap; font-weight: 500; }
.hours-list li.is-today { background: var(--cream); }
.hours-list li.is-today .hours-list__time { color: var(--ink); font-weight: 600; }
.today-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(21, 48, 31, 0.07);
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Contact ---------- */
.contact { background: var(--green); color: var(--cream); padding-block: clamp(64px, 8vw, 96px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact h2 { margin-bottom: 20px; max-width: 9em; }
.contact__copy p:not(.eyebrow) { max-width: 26em; color: rgba(245, 241, 230, 0.75); font-size: 16.5px; line-height: 1.75; }

.contact__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.tile {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 18px 20px;
  border: 1px solid rgba(245, 241, 230, 0.14);
  border-radius: 16px;
  color: var(--cream);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
a.tile:hover { transform: translateY(-2px); }
.tile .icon { width: 22px; height: 22px; opacity: 0.9; }
.tile > span { min-width: 0; }
.tile small { display: block; font-size: 12.5px; line-height: 1.3; opacity: 0.8; }
.tile strong { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.35; overflow-wrap: break-word; }
.tile--red { background: var(--red); border-color: var(--red); color: #fff; }
.tile--red:hover { background: var(--red-dark); }
.tile--cream { background: var(--cream); border-color: var(--cream); color: var(--green); }
.tile--cream:hover { background: #fff; }
a.tile:not(.tile--red):not(.tile--cream):hover, .tile--static:hover { background: rgba(245, 241, 230, 0.06); border-color: rgba(245, 241, 230, 0.3); }
.tile--static small a { text-decoration: none; }
.tile--static small a:hover { text-decoration: underline; }

/* App store buttons */
.apps { max-width: 32em; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(245, 241, 230, 0.12); }
.apps__label { margin-bottom: 18px; font: 700 12px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
html[lang='ar'] .apps__label { font-size: 14px; }
.apps__buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 240px)); justify-content: start; gap: 14px; }
.store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 26px 12px 22px;
  border: 1px solid rgba(201, 169, 97, 0.55);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(245, 241, 230, 0.07), rgba(245, 241, 230, 0.02)), var(--green-deep);
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}
html[dir='rtl'] .store { padding: 12px 22px 12px 26px; }
.store .icon { flex: none; width: 28px; height: 28px; }
.icon--fill { fill: currentColor; stroke: none; }
.store__text { display: grid; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.78; }
.store strong { font: 600 20px/1.2 var(--sans); letter-spacing: -0.01em; }
a.store[href] { cursor: pointer; }
a.store:not([href]) { cursor: default; }
a.store[href]:hover { border-color: var(--gold); background: #112a1b; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28); }
a.store:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.store--badge { justify-self: start; padding: 0; border: 0; background: none; }
.store--badge:hover { background: none; }
.store--badge img { display: block; width: auto; height: 48px; }
.apps[hidden] { display: none; }

/* ---------- Product detail sheet ---------- */
/* Desktop: a large centred card — photo on one side; details, size, add-ons, quantity and Order on the other.
   Phone: a bottom sheet that slides up (drag the handle down to dismiss). */
html.is-locked { overflow: hidden; }

.sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.sheet[open] { display: grid; place-items: center; padding: 28px; }
.sheet::backdrop { background: rgba(8, 20, 13, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: sheet-fade 0.25s ease backwards; }
.sheet.is-closing::backdrop { animation: sheet-fade-out 0.22s ease forwards; }

.sheet__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
  grid-template-rows: minmax(0, 1fr);
  width: min(1140px, 100%);
  min-height: min(600px, calc(100vh - 56px));
  min-height: min(600px, calc(100dvh - 56px));
  max-height: min(780px, calc(100vh - 56px));
  max-height: min(780px, calc(100dvh - 56px));
  overflow: hidden;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.7);
  animation: sheet-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.sheet.is-closing .sheet__panel { animation: sheet-out 0.2s ease forwards; }
.sheet__panel.no-media { grid-template-columns: minmax(0, 1fr); width: min(620px, 100%); min-height: 0; }
.sheet__panel.no-media .sheet__media { display: none; }

.sheet__media { position: relative; min-height: 320px; background: #e9e3d2; }
.sheet__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet__media::after { content: ''; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(to top, rgba(8, 20, 13, 0.32), transparent); pointer-events: none; }

.sheet__body { display: flex; flex-direction: column; min-height: 0; }
.sheet__scroll { flex: 1 1 auto; min-height: 0; padding: 50px 48px 22px; overflow-y: auto; overscroll-behavior: contain; }

.sheet__eyebrow { margin: 0 0 12px; padding-inline-end: 56px; font: 800 11.5px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
html[lang='ar'] .sheet__eyebrow { font-size: 14px; }
.sheet__title { padding-inline-end: 52px; font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1.05; }
html[lang='ar'] .sheet__title { line-height: 1.3; }

.sheet__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px 5px 10px; border-radius: 999px; font: 700 12.5px/1.3 var(--sans); }
html[dir='rtl'] .tag { padding: 5px 10px 5px 13px; }
.tag .icon { width: 14px; height: 14px; }
.tag--spicy { background: rgba(156, 28, 33, 0.1); color: var(--red); }
.tag--veg { background: rgba(21, 48, 31, 0.09); color: #1f5a37; }
.tag--popular { background: rgba(201, 169, 97, 0.22); color: var(--gold-ink); }

.sheet__desc { margin-top: 18px; color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.sheet__section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.sheet__label { margin: 0 0 14px; font: 800 12px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
html[lang='ar'] .sheet__label { font-size: 14px; }
.sheet__tags[hidden], .sheet__desc[hidden], .sheet__section[hidden], .sheet__stores[hidden], .sheet__total[hidden] { display: none; }

/* sizes */
.sheet__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: baseline; gap: 8px; padding: 11px 20px; border: 1.5px solid rgba(21, 48, 31, 0.22); border-radius: 999px; font-size: 15px; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.chip b { font-weight: 800; }
.chip small { font-size: 13px; font-weight: 500; opacity: 0.75; }
.chip:hover span { border-color: var(--green); }
.chip input:checked + span { border-color: var(--green); background: var(--green); color: var(--cream); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

/* add-ons */
.sheet__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid rgba(21, 48, 31, 0.16); border-radius: 14px; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt__box { position: relative; flex: none; width: 22px; height: 22px; border: 1.5px solid rgba(21, 48, 31, 0.35); border-radius: 7px; transition: background-color 0.2s, border-color 0.2s; }
.opt__box::after { content: ''; position: absolute; top: 4px; inset-inline-start: 5px; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); opacity: 0; }
.opt input:checked + .opt__box { border-color: var(--green); background: var(--green); }
.opt input:checked + .opt__box::after { opacity: 1; }
.opt:hover { border-color: rgba(21, 48, 31, 0.4); }
.opt:has(input:checked) { border-color: var(--green); background: rgba(21, 48, 31, 0.05); }
.opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt__name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.opt__price { flex: none; color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }

/* total · quantity · order */
.sheet__actions { flex: none; padding: 18px 48px 28px; border-top: 1px solid var(--line); background: var(--paper); }
.sheet__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet__total span { font: 800 12px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
html[lang='ar'] .sheet__total span { font-size: 14px; }
.sheet__total strong { font: 600 30px/1 var(--serif); letter-spacing: -0.01em; }
html[lang='ar'] .sheet__total strong { font-weight: 700; }
.sheet__buy { display: flex; align-items: stretch; gap: 14px; }
.stepper { display: inline-flex; align-items: center; flex: none; padding: 4px; border: 1.5px solid rgba(21, 48, 31, 0.22); border-radius: 999px; }
.stepper__btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(21, 48, 31, 0.06); color: var(--green); cursor: pointer; transition: background-color 0.2s, color 0.2s, opacity 0.2s; }
.stepper__btn .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.stepper__btn:hover:not(:disabled) { background: var(--green); color: var(--cream); }
.stepper__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper__value { min-width: 46px; font: 800 19px/1 var(--sans); text-align: center; }
.sheet__order { flex: 1; padding: 0 28px; font-size: 17px; }
.sheet__stores { margin-top: 18px; }
.sheet__stores .apps__buttons { gap: 10px; }

.sheet__close {
  position: absolute;
  z-index: 5;
  top: 18px;
  inset-inline-end: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}
.sheet__close:hover { background: #fff; transform: scale(1.06); }
.sheet__grab { display: none; }
html[dir='rtl'] .icon--flip { transform: scaleX(-1); }

@keyframes sheet-fade { from { opacity: 0; } }
@keyframes sheet-fade-out { to { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }

@media (max-width: 960px) and (min-width: 720px) {
  .sheet__scroll { padding: 44px 32px 18px; }
  .sheet__actions { padding: 16px 32px 24px; }
}

@media (max-width: 719px) {
  .sheet[open] { padding: 0; place-items: end center; }
  .sheet__panel, .sheet__panel.no-media {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: 26px 26px 0 0;
    animation-name: sheet-up;
    animation-duration: 0.38s;
  }
  .sheet.is-closing .sheet__panel { animation-name: sheet-down; animation-duration: 0.24s; }
  .sheet__media { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .sheet__scroll { padding: 22px 22px 14px; }
  .sheet__title { font-size: 2rem; }
  .sheet__eyebrow, .sheet__title { padding-inline-end: 0; }
  .sheet__panel.no-media .sheet__scroll { padding-top: 40px; }
  .sheet__panel.no-media .sheet__eyebrow, .sheet__panel.no-media .sheet__title { padding-inline-end: 52px; }
  .sheet__opts { grid-template-columns: minmax(0, 1fr); }
  .sheet__actions { padding: 14px 22px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -12px 22px -14px rgba(21, 48, 31, 0.28); }
  .sheet__total { margin-bottom: 12px; }
  .sheet__total strong { font-size: 26px; }
  .sheet__order { padding: 0 18px; }
  .sheet__close { top: 14px; inset-inline-end: 14px; }
  .sheet__grab { display: block; position: absolute; z-index: 4; top: 0; inset-inline: 0; height: 32px; touch-action: none; cursor: grab; }
  .sheet__handle { position: absolute; top: 10px; inset-inline-start: 50%; width: 44px; height: 5px; margin-inline-start: -22px; border-radius: 99px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
  .sheet__panel.no-media .sheet__handle { background: rgba(21, 48, 31, 0.25); box-shadow: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid rgba(201, 169, 97, 0.2);
  background: var(--green-deep);
  color: rgba(245, 241, 230, 0.72);
  font-size: 14.5px;
}
.site-footer a { text-decoration: none; transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s, gap 0.2s; }
.site-footer a:hover { color: var(--cream); }
.icon--fill { fill: currentColor; stroke: none; }

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.4fr);
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

/* Brand block */
/* The logo symbol sits straight on the dark green (no plate), with the name to its right. */
.footer__logo { display: inline-flex; align-items: center; gap: 16px; color: var(--cream); }
.footer__logo img { flex: none; width: 64px; height: 64px; object-fit: contain; }
.footer__logo strong { display: block; font: 500 28px/1.1 var(--serif); letter-spacing: -0.01em; }
html[lang='ar'] .footer__logo strong { font-weight: 700; font-size: 25px; }
.footer__logo small { display: block; margin-top: 6px; font: 700 10.5px/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.footer__about { max-width: 30em; margin-top: 22px; line-height: 1.75; }
.footer__tagline { margin-top: 18px; font: italic 600 19px/1.35 var(--serif); color: var(--gold); }
html[lang='ar'] .footer__tagline { font-style: normal; font-weight: 700; font-size: 18px; }

.footer__social { display: flex; gap: 10px; margin-top: 26px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 241, 230, 0.16);
  border-radius: 12px;
  background: rgba(245, 241, 230, 0.03);
  color: var(--cream);
}
.footer__social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.footer__social .icon { width: 18px; height: 18px; }

/* Link columns */
.footer__col h3 { margin-bottom: 20px; font: 800 11.5px/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
html[lang='ar'] .footer__col h3 { font-size: 14px; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col li a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }

.footer__contact li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.footer__contact .icon { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--gold); }
.footer__contact li a { overflow-wrap: anywhere; }
.footer__link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(245, 241, 230, 0.35);
  color: var(--cream);
  font-weight: 700;
}
.footer__link-arrow:hover { gap: 12px; border-color: var(--gold); }
.footer__link-arrow .icon { width: 16px; height: 16px; }
html[dir='rtl'] .footer__link-arrow .icon { transform: scaleX(-1); }

/* Live status strip */
.footer__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: 22px;
  border-block: 1px solid rgba(245, 241, 230, 0.1);
}
.footer__status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.footer__status strong { color: var(--cream); font-weight: 700; }
.footer__hours { padding-inline-start: 14px; border-inline-start: 1px solid rgba(245, 241, 230, 0.18); color: rgba(245, 241, 230, 0.6); }
.status-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #e0675f; }
.footer__status.is-open .status-dot { background: #58c47a; animation: status-pulse 2s infinite; }
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(88, 196, 122, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(88, 196, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(88, 196, 122, 0); }
}
.footer__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__chips li { padding: 7px 14px; border: 1px solid rgba(245, 241, 230, 0.16); border-radius: 999px; color: var(--cream); font-size: 12.5px; font-weight: 700; }

/* Bottom bar */
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 24px; color: rgba(245, 241, 230, 0.55); font-size: 13px; }
.footer__bottom-end { display: flex; align-items: center; gap: 20px; }
.footer__top-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 241, 230, 0.2);
  border-radius: 50%;
  color: var(--cream);
}
.footer__top-btn:hover { background: var(--cream); color: var(--green-deep) !important; transform: translateY(-2px); }

/* Oversized decorative wordmark, fading out at the bottom edge */
.footer__mark {
  height: 0.7em;
  margin-top: 10px;
  overflow: hidden;
  font: 600 clamp(56px, 15.5vw, 230px)/1 var(--serif);
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
html[lang='ar'] .footer__mark { font-weight: 800; }
.footer__mark span {
  display: inline-block;
  background: linear-gradient(to bottom, rgba(245, 241, 230, 0.14), rgba(245, 241, 230, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .features__list { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .section-head__text { max-width: 36em; }
  .visit__grid { grid-template-columns: 1fr; }
  .map-card { min-height: 380px; }
  .story__grid, .contact__grid { grid-template-columns: 1fr; }
  .story__collage { max-width: 480px; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand, .footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .nav, .header-call { display: none; }
  .menu-toggle { display: grid; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 420px; }
  .hero__badge { inset-inline-start: 0; }
}

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .brand__tile { width: 44px; height: 44px; border-radius: 12px; }
  .brand__logo { width: 30px; height: 30px; }
  .brand__name { font-size: 19px; }
  .lang-switch button { min-width: 42px; padding: 7px 11px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .features__list { grid-template-columns: 1fr; padding-block: 28px; }
  .menu-card__body { padding: 22px 22px 12px; }
  .contact__tiles { grid-template-columns: 1fr; }
  .apps__buttons { grid-template-columns: 1fr; }
  .map-card { min-height: 460px; }
  .map-card__bar { flex-direction: column; align-items: stretch; padding: 16px !important; }
  .map-card__bar .btn { width: 100%; }
  .hours-card { padding: 22px; }
  .footer__hours { flex-basis: 100%; padding-inline-start: 0; border-inline-start: 0; }
  .footer__bottom { align-items: flex-start; }
  .footer__bottom-end { width: 100%; justify-content: space-between; }
}
