/* NAFAS public website */

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 16px; } }

/* ---------- Header (on sage, so the cream logo is never recoloured) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--sage); color: var(--cream); transition: box-shadow 200ms var(--ease); }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(247, 238, 220, 0.15), 0 8px 24px rgba(56, 79, 64, 0.12); }
.site-header .container { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-size: 15px; color: rgba(247, 238, 220, 0.86); transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.site-nav a:hover { color: var(--cream); background: rgba(247, 238, 220, 0.08); }
.site-nav a[aria-current="page"] { color: var(--cream); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px; border-radius: 2px; background: var(--terra); }
.header-cta { margin-left: 8px; height: 42px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--cream); cursor: pointer; place-items: center; }
.menu-toggle:hover { background: rgba(247, 238, 220, 0.1); }
@media (max-width: 900px) {
  .site-nav, .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .brand img { height: 34px; }
}
.mobile-menu {
  position: fixed; inset: 76px 0 0; z-index: 49; background: var(--sage); color: var(--cream);
  padding: 24px 16px 40px; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a:not(.btn) { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 4px; font-size: 28px; font-weight: 300; text-decoration: none; border-bottom: 1px solid rgba(247, 238, 220, 0.16); }
.mobile-menu a .ar { font-size: 18px; opacity: 0.75; }
.mobile-menu .btn { margin-top: 28px; height: 54px; }

/* ---------- Type ---------- */
.display { font-weight: 300; letter-spacing: -0.01em; line-height: 1.04; }
.h1 { font-size: clamp(44px, 6vw, 84px); }
.h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; }
.h3 { font-size: 26px; font-weight: 400; line-height: 1.2; }
.ar-line { display: block; font-family: var(--font-ar); direction: rtl; font-weight: 400; color: var(--sage); margin-top: 10px; font-size: 0.5em; line-height: 1.4; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 36rem; font-weight: 300; }
.section { padding: 128px 0; }
.section-sm { padding: 80px 0; }
@media (max-width: 720px) { .section { padding: 80px 0; } .section-sm { padding: 56px 0; } }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; align-items: end; margin-bottom: 64px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; } }
.section-head p { color: var(--ink-2); font-weight: 300; font-size: 17px; }

/* ---------- Hero: the doorway ---------- */
.hero { position: relative; background: var(--sage); color: var(--cream); overflow: hidden; }
.hero-arches { position: absolute; inset: 0; pointer-events: none; }
.hero-arches svg, .essence-figure .arches svg, .way-arch svg, .page-hero .arch-deco svg { height: 100%; width: auto; }
.essence-figure .arches { display: grid; justify-items: center; align-items: end; }
.hero-inner { position: relative; display: grid; justify-items: center; text-align: center; padding: 56px 0 64px; min-height: min(calc(100dvh - 76px - 64px), 820px); align-content: center; }
.hero-door {
  position: relative; width: min(640px, 88vw); padding: 64px 32px 40px; display: grid; justify-items: center; gap: 28px;
}
.hero-door::before { content: ""; position: absolute; inset: 0 0 -80px; border: 1px solid rgba(247, 238, 220, 0.7); border-bottom: 0; border-radius: 999px 999px 0 0; }
.hero-mark { width: clamp(84px, 11vw, 132px); animation: markIn 1200ms var(--ease) both 100ms; }
@keyframes markIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
.hero-lockup { width: min(520px, 76vw); }
.hero-line { font-size: clamp(20px, 2.2vw, 26px); font-weight: 300; line-height: 1.4; }
.hero-line .ar { display: block; font-size: 0.86em; color: var(--sand); margin-top: 4px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 560px) {
  .hero-door { padding: 48px 16px 24px; }
  .hero-actions .btn { width: 100%; }
  .hero-arches { display: none; }
}

/* Sand band of services, as on the sign */
.band { background: var(--sand); color: var(--forest); }
.band ul { list-style: none; margin: 0 auto; padding: 0 32px; max-width: 1240px; display: grid; grid-template-columns: repeat(5, 1fr); }
.band li { padding: 26px 12px; text-align: center; display: grid; gap: 2px; }
.band li + li { border-left: 1px solid rgba(56, 79, 64, 0.22); }
.band .label-wide { color: var(--forest); font-size: 12px; }
.band .ar { font-size: 15px; color: var(--sage); }
@media (max-width: 860px) {
  .band ul { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
  .band li + li { border-left: 0; }
  .band li { border-bottom: 1px solid rgba(56, 79, 64, 0.14); }
  .band li:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ---------- Essence ---------- */
.essence { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 80px; align-items: center; }
@media (max-width: 920px) { .essence { grid-template-columns: 1fr; gap: 48px; } }
.essence-copy { display: grid; gap: 28px; }
.essence-ar { font-family: var(--font-ar); direction: rtl; font-size: 19px; line-height: 1.9; color: var(--ink-2); }
.essence-figure { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-card) var(--r-card); background: var(--sage); overflow: hidden; display: grid; place-items: center; }
.essence-figure .arches { position: absolute; inset: 0; }
.essence-figure img { position: relative; width: 38%; }
.essence-figure figcaption { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; color: var(--cream); }

/* ---------- Spaces ---------- */
.spaces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .spaces { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .spaces { grid-template-columns: 1fr; } }
.space { display: grid; grid-template-rows: auto 1fr; border-radius: 999px 999px var(--r-card) var(--r-card); background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.space-art { position: relative; aspect-ratio: 1 / 0.92; background: var(--sage); border-radius: 999px 999px 0 0; display: grid; place-items: center; color: var(--cream); }
.space:nth-child(2) .space-art { background: var(--forest); }
.space:nth-child(4) .space-art { background: var(--forest); }
.space-art::before { content: ""; position: absolute; inset: 12px 12px 0; border: 1px solid rgba(247, 238, 220, 0.45); border-bottom: 0; border-radius: 999px 999px 0 0; }
.space-art::after { content: ""; position: absolute; inset: 26px 26px 0; border: 1px solid rgba(216, 170, 135, 0.8); border-bottom: 0; border-radius: 999px 999px 0 0; }
.space-art svg { position: relative; width: 46%; height: auto; stroke-width: 1.2; }
.space-body { padding: 24px 22px 26px; display: grid; gap: 8px; align-content: start; }
.space-name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.space-name h3 { font-size: 20px; font-weight: 400; letter-spacing: 0.02em; }
.space-name .ar { font-size: 17px; color: var(--sage); }
.space-body p { font-size: 14.5px; color: var(--ink-2); font-weight: 300; }
.space-rooms { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.space-rooms span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--forest); }

/* ---------- Two ways in ---------- */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } }
.way { position: relative; overflow: hidden; border-radius: var(--r-panel); padding: 48px 44px; display: grid; gap: 20px; align-content: start; min-height: 440px; }
.way-book { background: var(--forest); color: var(--cream); }
.way-order { background: var(--sand); color: var(--forest); }
@media (max-width: 560px) { .way { padding: 36px 24px; min-height: 0; } }
.way h3 { font-size: clamp(30px, 3vw, 40px); font-weight: 300; line-height: 1.1; }
.way h3 .ar { display: block; font-size: 0.6em; margin-top: 8px; opacity: 0.8; }
.way ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.way li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: baseline; font-weight: 300; font-size: 16px; counter-increment: s; }
.way li::before { content: counter(s, decimal-leading-zero); font-size: 13px; letter-spacing: 0.1em; opacity: 0.7; }
.way .btn { justify-self: start; margin-top: 16px; }
.way-arch { position: absolute; right: -60px; bottom: -40px; width: 260px; height: 320px; pointer-events: none; opacity: 0.9; }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 36px; }
@media (max-width: 560px) { .card { padding: 24px; } }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td { color: var(--terra-ink); }
.hours tr.closed td:last-child { color: var(--muted); }
.contact-list { display: grid; gap: 16px; margin-top: 20px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink-2); font-size: 16px; }
.contact-list a:hover { color: var(--ink); }
.contact-list .icon { color: var(--sage); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--sand); padding: 88px 0 40px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(247, 238, 220, 0.12); align-items: start; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }
.footer-logo { width: min(320px, 80vw); }
.footer-col h4 { margin-bottom: 16px; }
.footer-col .label-wide { color: var(--terra); }
.footer-col a { display: block; padding: 5px 0; color: var(--cream); text-decoration: none; font-weight: 300; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; color: rgba(235, 221, 202, 0.7); }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Inner page heads ---------- */
.page-hero { background: var(--sage); color: var(--cream); position: relative; overflow: hidden; }
.page-hero .container { position: relative; padding-top: 56px; padding-bottom: 56px; display: grid; gap: 14px; }
.page-hero .label-wide { color: var(--sand); }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 300; line-height: 1.05; }
.page-hero h1 .ar { display: block; font-size: 0.55em; margin-top: 8px; color: var(--sand); }
.page-hero p { max-width: 40rem; color: rgba(247, 238, 220, 0.9); font-weight: 300; font-size: 17px; }
.page-hero .arch-deco { position: absolute; right: -40px; bottom: -2px; height: 130%; width: auto; opacity: 0.9; }
@media (max-width: 720px) { .page-hero .container { padding-top: 40px; padding-bottom: 40px; } .page-hero .arch-deco { opacity: 0.35; } }

/* ---------- Order ---------- */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; padding: 48px 0 128px; }
@media (max-width: 1040px) { .order-layout { grid-template-columns: 1fr; padding-bottom: 120px; } }
.menu-cats { position: sticky; top: 76px; z-index: 5; background: var(--cream); padding: 16px 0; margin-bottom: 8px; }
.menu-group { margin-bottom: 40px; }
.menu-group h2 { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.menu-group h2 .label-wide { color: var(--forest); }
.menu-group h2 .ar { font-size: 16px; color: var(--sage); }
.item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item-name { font-size: 18px; font-weight: 400; }
.item-desc { font-size: 14px; color: var(--muted); font-weight: 300; }
.item-side { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 16px; }
.item-price { font-size: 16px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.item.sold-out { opacity: 0.5; }
.add-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--forest); display: grid; place-items: center; cursor: pointer; transition: background-color 140ms var(--ease), color 140ms var(--ease), transform 100ms var(--ease); }
.add-btn:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.add-btn:active { transform: scale(0.94); }

.panel-order { position: sticky; top: 100px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.panel-order-head { background: var(--forest); color: var(--cream); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.panel-order-head h2 { font-size: 20px; font-weight: 400; }
.panel-order-head .ar { font-size: 15px; color: var(--sand); }
.panel-order-body { padding: 20px 24px 24px; display: grid; gap: 16px; }
.lines { display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; font-size: 15px; }
.line-price { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.empty { padding: 12px 0; color: var(--muted); font-size: 15px; font-weight: 300; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.total-row strong { font-size: 24px; font-weight: 400; font-variant-numeric: tabular-nums; }
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.where button {
  display: grid; gap: 0; text-align: left; padding: 10px 12px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-size: 14px;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease), color 140ms var(--ease);
}
.where button .ar { font-size: 13px; color: var(--muted); text-align: right; }
.where button:hover { border-color: var(--sage); }
.where button[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: var(--cream); }
.where button[aria-pressed="true"] .ar { color: var(--sand); }
.where .full { grid-column: 1 / -1; }

.track { display: grid; gap: 20px; justify-items: center; text-align: center; }
.track-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.track-step { display: grid; gap: 8px; justify-items: center; font-size: 13px; color: var(--muted); }
.track-step i { width: 100%; height: 4px; border-radius: 2px; background: var(--sand); }
.track-step.done { color: var(--forest); }
.track-step.done i { background: var(--sage); }
.track-step.now i { background: linear-gradient(90deg, var(--sage) 50%, var(--sand) 50%); background-size: 200% 100%; animation: progress 1.6s linear infinite; }
@keyframes progress { from { background-position: 100% 0; } to { background-position: 0 0; } }

.order-bar { display: none; }
@media (max-width: 1040px) {
  .panel-order { position: fixed; inset: auto 0 0 0; top: auto; z-index: 60; max-height: 90dvh; overflow: auto; border-radius: 24px 24px 0 0; transform: translateY(105%); transition: transform 320ms var(--ease); }
  .panel-order.open { transform: none; }
  .order-bar {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 55;
    height: 58px; padding: 0 8px 0 22px; align-items: center; justify-content: space-between;
    border-radius: 999px; background: var(--forest); color: var(--cream); border: 0; cursor: pointer; font-size: 15px; box-shadow: var(--shadow-float);
  }
  .order-bar .btn { height: 42px; }
  .scrim { position: fixed; inset: 0; z-index: 58; background: rgba(46, 67, 53, 0.45); opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease); }
  .scrim.open { opacity: 1; pointer-events: auto; }
}
.close-sheet { display: none !important; }
@media (max-width: 1040px) { .close-sheet { display: grid !important; } }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.icon-btn:hover:not([disabled]) { background: var(--sand); color: var(--ink); }
.icon-btn[disabled] { opacity: 0.35; cursor: default; }
.panel-order-head .icon-btn { border-color: rgba(247, 238, 220, 0.3); color: var(--cream); }
.panel-order-head .icon-btn:hover { background: rgba(247, 238, 220, 0.1); color: var(--cream); }

/* ---------- Book a space ---------- */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding: 48px 0 128px; }
@media (max-width: 1040px) { .book-layout { grid-template-columns: 1fr; } }
.steps { display: grid; gap: 16px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 28px 32px 32px; transition: opacity 200ms var(--ease); }
@media (max-width: 560px) { .step { padding: 22px 18px 24px; } }
.step.locked { opacity: 0.5; pointer-events: none; }
.step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.step-num { font-size: 12px; letter-spacing: 0.2em; color: var(--terra-ink); }
.step-head h2 { font-size: 24px; font-weight: 400; }
.step-head .ar { font-size: 17px; color: var(--sage); margin-inline-start: auto; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-title { font-size: 20px; font-weight: 400; }
.cal-nav { display: flex; gap: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 520px; }
.cal-dow { text-align: center; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); padding-bottom: 6px; }
.cal-day { position: relative; aspect-ratio: 1; border: 0; border-radius: 999px; background: transparent; cursor: pointer; display: grid; place-items: center; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; transition: background-color 140ms var(--ease), color 140ms var(--ease); }
.cal-day:hover:not([disabled]) { background: var(--sand); }
.cal-day[disabled] { color: rgba(56, 79, 64, 0.28); cursor: default; }
.cal-day.today::before { content: ""; position: absolute; inset: 4px; border-radius: 999px; border: 1px solid var(--terra); }
.cal-day[aria-pressed="true"] { background: var(--forest); color: var(--cream); }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.time { height: 44px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-size: 15px; font-variant-numeric: tabular-nums; transition: border-color 140ms var(--ease), background-color 140ms var(--ease), color 140ms var(--ease); }
.time:hover:not([disabled]) { border-color: var(--sage); }
.time[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.time[disabled] { opacity: 0.35; cursor: default; text-decoration: line-through; }
.duration { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.room {
  display: grid; gap: 4px; align-content: start; text-align: left; padding: 18px 18px 16px; min-height: 132px;
  border-radius: 120px 120px var(--r-ctl) var(--r-ctl); border: 1px solid var(--line-strong); background: #fff; cursor: pointer;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease), color 140ms var(--ease);
  padding-top: 40px;
}
.room:hover:not([disabled]) { border-color: var(--sage); }
.room-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.room strong { font-weight: 400; font-size: 17px; }
.room .ar { font-size: 15px; color: var(--sage); }
.room small { font-size: 13px; color: var(--muted); }
.room .room-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.room[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: var(--cream); }
.room[aria-pressed="true"] .ar, .room[aria-pressed="true"] small, .room[aria-pressed="true"] .room-meta { color: var(--cream); }
.room[disabled] { cursor: default; background: transparent; opacity: 0.55; }
.room[disabled] .room-meta span:last-child { color: var(--bad); }

.summary { position: sticky; top: 100px; }
.summary .arch-card { padding-top: 64px; }
.summary h2 { font-size: 22px; font-weight: 400; text-align: center; }
.summary h2 .ar { display: block; font-size: 16px; color: var(--sage); margin-top: 2px; }
.summary dl { margin: 24px 0 0; display: grid; gap: 12px; }
.summary dl div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; font-size: 15px; }
.summary dt { color: var(--muted); font-size: 13px; letter-spacing: 0.06em; padding-top: 2px; }
.summary dd { margin: 0; }
.summary .note { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--sand); font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 1040px) { .summary { position: static; } .summary .arch-card { padding-top: 48px; } }

.done-wrap { display: grid; justify-items: center; padding: 64px 0 128px; }
.done { width: min(560px, 100%); text-align: center; display: grid; gap: 18px; }
.done .arch-card { padding-top: 88px; display: grid; gap: 14px; justify-items: center; }
.done-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.lookup { max-width: 560px; margin: 0 auto; padding: 48px 0 128px; display: grid; gap: 24px; }
.status-card { display: grid; gap: 14px; justify-items: center; text-align: center; }
.status-card dl { width: 100%; margin: 8px 0 0; display: grid; gap: 10px; text-align: left; }
.status-card dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: 15px; }
.status-card dt { color: var(--muted); font-size: 13px; }
.status-card dd { margin: 0; }
.team-note { width: 100%; padding: 14px 16px; border-radius: 14px; background: var(--sand); font-size: 14.5px; text-align: left; }

[data-turnstile]:empty { display: none; }

/* Arabic subtitles sit directly under their English line */
.page-hero h1 .ar, .ar-line, .way h3 .ar, .hero-line .ar { text-align: left; }
.times > p, .rooms > p { grid-column: 1 / -1; }
.hero-line .ar { text-align: center; }

/* ---------- Hero sized to the screen: the whole doorway fits on phones, tablets and laptops ---------- */
.hero-inner { min-height: calc(100svh - 76px - 64px); padding: clamp(24px, 4vh, 48px) 0; }
.hero-door { width: min(560px, 86vw); padding: clamp(32px, 6vh, 56px) 24px clamp(24px, 4vh, 40px); gap: clamp(14px, 2.4vh, 24px); }
.hero-door::before { inset: 0 0 -100vh; }
.hero-mark { width: auto; height: clamp(72px, 17vh, 160px); animation: markIn 1200ms var(--ease) both 100ms; }
.hero-lockup { width: auto; height: clamp(64px, 15vh, 150px); max-width: 100%; }
.hero-line { font-size: clamp(16px, 2.2vh, 21px); }
.hero-line .ar { font-size: 0.9em; margin-top: 2px; }
.hero { padding-bottom: 0; }
@media (max-width: 560px) {
  .hero-inner { min-height: calc(100svh - 76px - 160px); }
  .hero-door { width: 100%; }
}
/* Short laptop screens: tighten further */
@media (max-height: 760px) and (min-width: 561px) {
  .hero-mark { height: clamp(64px, 14vh, 120px); }
  .hero-lockup { height: clamp(56px, 13vh, 110px); }
}
.hero-inner { min-height: min(calc(100svh - 140px), 860px); }
@media (max-width: 1024px) { .hero-arches { display: none; } .hero-inner { min-height: min(calc(100svh - 140px), 720px); } }
@media (max-width: 560px) { .hero-inner { min-height: min(calc(100svh - 236px), 620px); } }
@media (max-width: 720px) {
  .menu-cats .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .menu-cats .chips::-webkit-scrollbar { display: none; }
  .menu-cats .chip { flex: none; }
  .page-hero h1 { font-size: clamp(30px, 8.5vw, 40px); }
  .page-hero p { font-size: 15.5px; }
}
@media (max-height: 820px) and (min-width: 721px) {
  .page-hero .container { padding-top: 36px; padding-bottom: 36px; }
  .page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); }
}

/* ---------- Round 3 polish ---------- */
/* Order lines: name | stepper | price on one row */
.line-edit { grid-template-columns: minmax(0, 1fr) auto 64px; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line-edit:last-child { border-bottom: 0; }
.line-info { display: grid; min-width: 0; }
.line-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-each { font-size: 12.5px; color: var(--muted); }
.line-edit .stepper { height: 32px; }
.line-edit .stepper button { width: 30px; height: 30px; }
.line-edit .line-price { font-size: 15px; }

/* Hero: leave room for the services band on the first screen */
.hero-inner { min-height: min(calc(100svh - 76px - 104px), 820px); padding: clamp(16px, 3vh, 40px) 0; }
.hero-door { padding-top: clamp(28px, 5vh, 52px); padding-bottom: clamp(16px, 3vh, 32px); }
.hero-mark { height: clamp(64px, 15vh, 150px); }
.hero-lockup { height: clamp(58px, 13vh, 140px); }
.band li { padding: 20px 12px; }
@media (max-width: 1024px) { .hero-inner { min-height: min(calc(100svh - 76px - 104px), 700px); } }
@media (max-width: 560px) { .hero-inner { min-height: min(calc(100svh - 236px), 600px); } }

/* Essence: a calmer, smaller doorway beside the text */
.essence { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(40px, 6vw, 96px); }
.essence-figure { width: 100%; max-width: 380px; max-height: min(68vh, 500px); justify-self: end; aspect-ratio: 4 / 5; }
.essence-figure img { width: 34%; }
@media (max-width: 920px) { .essence-figure { justify-self: center; max-width: 320px; } }

/* Space drawings: centred, even weight */
.space-art svg { width: 52%; stroke-width: 1.4; overflow: visible; }
/* Push each drawing down a little so it clears the two arch lines at the top */
.space-art { padding-top: 14%; }

/* Visit section head */
.visit-head { margin-bottom: 40px; }

/* Booking polish */
.step.is-done .step-num { color: var(--good); }
.step-pick { margin-inline-start: auto; font-size: 14px; color: var(--ink-2); background: var(--sand); padding: 4px 12px; border-radius: 999px; }
.step-head .ar { margin-inline-start: 0; }
.cal-grid { max-width: 560px; }
.room { min-height: 148px; }
.room .room-meta span:last-child::before { content: "● "; font-size: 9px; vertical-align: 2px; }
.room:not([disabled]) .room-meta span:last-child { color: var(--good); }
.room[aria-pressed="true"] .room-meta span:last-child { color: var(--cream); }
.room { border-radius: 64px 64px var(--r-ctl) var(--r-ctl); padding: 32px 20px 16px; }
.cal-grid { max-width: 440px; }

/* ======================================================================
   Phones and small tablets: everything more compact
   ====================================================================== */
@media (max-width: 920px) {
  .essence { grid-template-columns: 1fr; gap: 32px; }
  .essence-figure { justify-self: center; max-width: 260px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }

  /* Header */
  .site-header .container { height: 60px; }
  .brand img { height: 28px; }
  .mobile-menu { inset: 60px 0 0; }
  .mobile-menu a:not(.btn) { font-size: 22px; padding: 14px 4px; }
  .mobile-menu .btn { height: 48px; }

  /* Type and rhythm */
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .section-head { margin-bottom: 28px; gap: 12px; }
  .section-head p { font-size: 15px; }
  .h2 { font-size: clamp(26px, 7.4vw, 32px); }
  .ar-line { font-size: 0.62em; margin-top: 6px; }
  .lede { font-size: 15.5px; }
  .label-wide { font-size: 11px; letter-spacing: 0.26em; }
  .btn { height: 44px; padding: 0 20px; font-size: 14.5px; }

  /* Hero */
  .hero-inner { min-height: 0; padding: 20px 0 28px; }
  .hero-door { padding: 32px 12px 8px; gap: 14px; }
  .hero-mark { height: 72px; }
  .hero-lockup { height: auto; width: min(260px, 72vw); }
  .hero-line { font-size: 15px; }
  .band li { padding: 14px 8px; }
  .band .label-wide { font-size: 10px; letter-spacing: 0.2em; }
  .band .ar { font-size: 13px; }

  /* Essence */
  .essence-copy { gap: 18px; }
  .essence-ar { font-size: 16px; line-height: 1.8; }
  .essence-figure { max-width: 200px; }

  /* Spaces: compact horizontal cards (small arch on the left) */
  .spaces { grid-template-columns: 1fr; gap: 10px; }
  .space { grid-template-columns: 88px 1fr; grid-template-rows: auto; border-radius: 16px; align-items: stretch; }
  .space-art { aspect-ratio: auto; min-height: 112px; border-radius: 44px 44px 0 0; margin: 10px 0 0 10px; }
  .space-art::before { inset: 6px 6px 0; }
  .space-art::after { inset: 13px 13px 0; }
  .space-art svg { width: 62%; }
  .space-body { padding: 14px 16px; gap: 4px; }
  .space-name h3 { font-size: 17px; }
  .space-name .ar { font-size: 15px; }
  .space-body p { font-size: 13.5px; line-height: 1.5; }
  .space-rooms { margin-top: 4px; }

  /* Two ways in */
  .way { padding: 28px 20px; gap: 14px; border-radius: 20px; }
  .way h3 { font-size: 24px; }
  .way li { font-size: 14.5px; grid-template-columns: 30px 1fr; }
  .way .btn { margin-top: 6px; }
  .way-arch { width: 150px; height: 190px; right: -40px; bottom: -30px; }

  /* Visit + footer */
  .card { padding: 20px; border-radius: 18px; }
  .h3 { font-size: 20px; }
  .hours { font-size: 14px; }
  .hours td { padding: 9px 0; }
  .contact-list a, .contact-list div { font-size: 15px; }
  .site-footer { padding: 48px 0 28px; }
  .footer-top { gap: 24px; padding-bottom: 32px; }
  .footer-logo { width: 220px; }

  /* Inner page heads */
  .page-hero .container { padding-top: 28px; padding-bottom: 28px; gap: 8px; }
  .page-hero h1 { font-size: clamp(26px, 7.4vw, 32px); }
  .page-hero p { font-size: 14.5px; }

  /* Order */
  .order-layout { padding: 16px 0 112px; gap: 16px; }
  .menu-cats { top: 60px; padding: 10px 0; }
  .menu-cats .chips { margin: 0; padding: 0; }
  .chip { min-height: 36px; padding: 6px 14px; font-size: 13.5px; }
  .menu-group { margin-bottom: 24px; }
  .menu-group h2 { padding-bottom: 10px; }
  .item { padding: 12px 0; }
  .item-name { font-size: 16px; }
  .item-desc { font-size: 13px; }
  .item-side { gap: 10px; }
  .item-price { font-size: 15px; }
  .add-btn { width: 36px; height: 36px; }
  .panel-order-head { padding: 16px 18px; }
  .panel-order-body { padding: 16px 18px 20px; gap: 14px; }
  .input, .select, .textarea { min-height: 44px; padding: 10px 14px; font-size: 16px; } /* 16px stops iPhone zooming in */
  .where button { padding: 8px 10px; font-size: 13.5px; }
  .order-bar { height: 52px; }

  /* Book */
  .book-layout { padding: 16px 0 72px; gap: 16px; }
  .step { padding: 18px 16px 20px; border-radius: 18px; }
  .step-head { margin-bottom: 14px; gap: 8px; }
  .step-head h2 { font-size: 19px; }
  .step-head .ar { font-size: 14px; }
  .step-pick { font-size: 12.5px; padding: 3px 10px; }
  .cal-title { font-size: 17px; }
  .cal-day { font-size: 14px; }
  .times { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
  .time { height: 40px; font-size: 14px; }
  .rooms { grid-template-columns: 1fr; gap: 8px; }
  .room { min-height: 0; padding: 16px 16px 12px; border-radius: 16px; }
  .summary .arch-card { padding: 40px 20px 20px; border-radius: 140px 140px 18px 18px; }
  .summary .arch-card::before { border-radius: 132px 132px 0 0; }
  .arch-card { padding: 56px 20px 24px; }
  .code { font-size: 24px; }
  .lookup { padding: 24px 0 72px; gap: 16px; }
  .done-wrap { padding: 24px 0 72px; }
}
@media (max-width: 380px) {
  .h2, .page-hero h1 { font-size: 25px; }
  .band .label-wide { font-size: 9.5px; letter-spacing: 0.14em; }
  .where { grid-template-columns: 1fr; }
}
.order-layout > section, .book-layout > * { min-width: 0; }
@media (max-width: 720px) {
  .essence-figure figcaption { font-size: 9px; letter-spacing: 0.18em; bottom: 16px; white-space: nowrap; }
  .space-art svg { width: 80%; stroke-width: 1.6; }
}
.brand-logo { height: 40px; width: auto; aspect-ratio: 2796 / 590; display: block; }
@media (max-width: 900px) { .brand-logo { height: 34px; } }
@media (max-width: 720px) { .brand-logo { height: 28px; } }

/* ======================================================================
   Round 5: languages, doorway transition, contact pop-ups, footer, bigger hero
   ====================================================================== */

/* Keep the page hidden for an instant while Arabic text is put in place */
html.i18n-pending body { visibility: hidden; }
/* While switching language, the sage doorway stays closed until the new page is ready */
html.veil-pending body::after { content: ""; position: fixed; inset: 0; z-index: 998; background: var(--sage); }

/* Language button */
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; margin-inline-start: 12px;
  border-radius: 999px; border: 1px solid rgba(247, 238, 220, 0.45); background: transparent; color: var(--cream);
  font-size: 15px; cursor: pointer; transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.lang-btn:hover { background: rgba(247, 238, 220, 0.12); border-color: var(--cream); }
.lang-btn[lang="ar"] span { font-family: var(--font-ar); font-size: 16px; }
.lang-btn[lang="en"] span { font-family: var(--font); }
.lang-mobile { display: none; }
@media (max-width: 900px) {
  .lang-desktop { display: none; }
  .lang-mobile { display: inline-flex; margin-inline-start: auto; height: 36px; padding: 0 12px; font-size: 14px; }
  .menu-toggle { margin-inline-start: 4px; margin-left: 4px; }
  [dir="rtl"] .menu-toggle { margin-left: 0; margin-right: 4px; }
}

/* The doorway: a sage arch grows from the floor, the language changes, the arch opens upward */
.lang-veil {
  position: fixed; inset: 0; z-index: 999; background: var(--sage); color: var(--cream);
  display: grid; place-items: center; pointer-events: all;
  clip-path: circle(0% at 50% 100%);
}
.lang-veil-arches { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--cream); stroke-width: 1; opacity: 0.55; }
.lang-veil-arches .t { stroke: var(--terra); }
.lang-veil-center { position: relative; display: grid; justify-items: center; gap: 18px; }
.lang-veil-center img { height: 120px; width: auto; }
.lang-veil-center span { font-size: 26px; font-weight: 300; letter-spacing: 0.08em; }
.lang-veil.is-entering { animation: veilIn 700ms cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.lang-veil.is-entering .lang-veil-center { animation: veilText 600ms var(--ease) 180ms both; }
.lang-veil.is-covering { clip-path: circle(150% at 50% 100%); }
.lang-veil.is-leaving { clip-path: circle(150% at 50% 0%); animation: veilOut 900ms cubic-bezier(0.65, 0, 0.35, 1) 120ms forwards; }
.lang-veil.is-leaving .lang-veil-center { animation: veilTextOut 400ms var(--ease) forwards; }
@keyframes veilIn { from { clip-path: circle(0% at 50% 100%); } to { clip-path: circle(150% at 50% 100%); } }
@keyframes veilOut { from { clip-path: circle(150% at 50% 0%); } to { clip-path: circle(0% at 50% 0%); } }
@keyframes veilText { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes veilTextOut { to { opacity: 0; transform: translateY(-14px); } }
.lang-veil-arches path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: drawArch 900ms var(--ease) forwards; }
.lang-veil.is-covering .lang-veil-arches path, .lang-veil.is-leaving .lang-veil-arches path { stroke-dashoffset: 0; animation: none; }
@keyframes drawArch { to { stroke-dashoffset: 0; } }

/* Contact rows and pop-ups */
.contact-row {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line);
  background: none; font: inherit; font-size: 16px; color: var(--ink-2); text-decoration: none; text-align: start; cursor: pointer;
  transition: color 140ms var(--ease);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row:hover { color: var(--ink); }
.contact-row .icon { color: var(--sage); }
.contact-row .chev { margin-inline-start: auto; color: var(--muted); }
.contact-list { gap: 0; margin-top: 12px; }

.contact-modal { border: 0; padding: 0; width: min(560px, calc(100vw - 24px)); border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-float); }
.contact-modal::backdrop { background: rgba(46, 67, 53, 0.5); backdrop-filter: blur(2px); }
.contact-modal[open] { animation: modalIn 320ms var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.contact-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 0 24px; }
.contact-modal-head h2 { font-size: 22px; font-weight: 400; }
.contact-modal-body { padding: 16px 24px 24px; display: grid; gap: 14px; }
.map-frame { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--sand); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.phone-big { font-size: 26px; font-weight: 300; text-align: center; letter-spacing: 0.04em; }
.contact-options { display: grid; gap: 8px; }
.contact-option {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: #fff; font: inherit; font-size: 16px; color: var(--ink); text-decoration: none; cursor: pointer; text-align: start;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}
.contact-option:hover { border-color: var(--sage); background: var(--cream); }
.co-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--forest); flex: none; }
.co-icon.wa { background: #dcefe2; color: #1f7a45; }

/* Footer: four columns, socials, legal links, no team link */
.footer-top { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-link { display: flex; align-items: center; gap: 10px; padding: 5px 0; border: 0; background: none; color: var(--cream); font: inherit; font-weight: 300; font-size: 15px; cursor: pointer; text-align: start; }
.footer-link:hover { color: #fff; }
.footer-link .icon { color: var(--terra); }
.socials { display: flex; gap: 10px; margin-bottom: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(247, 238, 220, 0.3); display: grid !important; place-items: center; padding: 0 !important; color: var(--cream); transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.socials a:hover { background: rgba(247, 238, 220, 0.1); border-color: var(--cream); }
.footer-handle { font-size: 14px !important; opacity: 0.85; }
.footer-legal { display: flex; gap: 20px; }

/* Header without the café button */
.site-nav { margin-left: auto; }
[dir="rtl"] .site-nav { margin-left: 0; margin-right: auto; }

/* Bigger hero logo and tagline */
.hero-mark { height: clamp(80px, 19vh, 180px); }
.hero-lockup { height: clamp(76px, 19vh, 196px); }
.hero-line { font-size: clamp(17px, 2.6vh, 24px); }
.hero-door { width: min(640px, 88vw); gap: clamp(14px, 2.6vh, 26px); }
@media (max-width: 720px) {
  .hero-mark { height: 92px; }
  .hero-lockup { height: auto; width: min(300px, 80vw); }
  .hero-line { font-size: 16px; }
}

/* Secondary English line in Arabic mode */
.ar.en, .ar-line.en { font-family: var(--font); direction: ltr; text-align: right; }
.essence-en { font-family: var(--font); direction: ltr; display: block; text-align: right; font-size: 16px; color: var(--muted); }

/* ---------- Arabic / right-to-left ---------- */
[dir="rtl"] body { font-family: var(--font-ar); }
[dir="rtl"] .display, [dir="rtl"] .h2, [dir="rtl"] .page-hero h1 { letter-spacing: 0; line-height: 1.3; }
[dir="rtl"] .label-wide { letter-spacing: 0; text-transform: none; font-size: 14px; }
[dir="rtl"] .band .label-wide { font-size: 15px; }
[dir="rtl"] .band li + li { border-left: 0; border-right: 1px solid rgba(56, 79, 64, 0.22); }
@media (max-width: 860px) { [dir="rtl"] .band li + li { border-right: 0; } }
[dir="rtl"] .arrow, [dir="rtl"] .cal-nav .icon, [dir="rtl"] .contact-row .chev { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .page-hero .arch-deco { right: auto; left: -40px; }
[dir="rtl"] .way-arch { right: auto; left: -60px; }
[dir="rtl"] .select { background-position: left 14px center; padding-right: 16px; padding-left: 40px; }
[dir="rtl"] .hours td:last-child { text-align: left; }
[dir="rtl"] .line-price { text-align: left; }
[dir="rtl"] .room, [dir="rtl"] .where button { text-align: right; }
[dir="rtl"] .where button .ar { text-align: left; }
[dir="rtl"] .page-hero h1 .ar, [dir="rtl"] .ar-line, [dir="rtl"] .way h3 .ar { text-align: right; }
[dir="rtl"] .hero-line .ar { text-align: center; }
[dir="rtl"] .summary dl, [dir="rtl"] .status-card dl, [dir="rtl"] .team-note { text-align: right; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[name="code"] { direction: ltr; text-align: right; }
[dir="rtl"] .contact-modal-head { padding: 18px 24px 0 20px; }
[dir="rtl"] .item-desc, [dir="rtl"] .lede { font-weight: 400; }

[dir="rtl"] .band li { justify-items: center; text-align: center; }
[dir="rtl"] .band .ar.en { text-align: center; }
[dir="rtl"] .site-nav a { font-size: 16px; }

/* Terms and privacy */
.legal { max-width: 780px; padding: 48px 0 112px; display: grid; gap: 36px; }
.legal section { display: grid; gap: 12px; }
.legal h2 { font-size: 24px; font-weight: 400; color: var(--forest); }
.legal p, .legal li { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); font-weight: 300; }
.legal ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.legal li::marker { color: var(--terra-ink); }
.legal strong { font-weight: 500; color: var(--ink); }
[dir="rtl"] .legal p, [dir="rtl"] .legal li { font-weight: 400; font-size: 17px; }
@media (max-width: 720px) { .legal { padding: 28px 0 72px; gap: 26px; } .legal h2 { font-size: 20px; } .legal p, .legal li { font-size: 15px; } }

/* ======================================================================
   One language at a time: hide the secondary line in the other language
   ====================================================================== */
html:not([dir="rtl"]) .ar,
html:not([dir="rtl"]) .ar-line,
html:not([dir="rtl"]) .essence-ar { display: none !important; }
[dir="rtl"] .ar.en,
[dir="rtl"] .ar-line.en,
[dir="rtl"] .essence-en,
[dir="rtl"] .essence-ar:empty { display: none !important; }
/* Headings that used to carry a second line keep a calm rhythm */
.page-hero h1 { margin-bottom: 4px; }

.header-root, .footer-root { display: contents; }

/* ======================================================================
   Page transitions: the big green block shrinks into the next page's header
   (Chrome, Edge and Safari; other browsers simply open the page)
   ====================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.hero, .page-hero { view-transition-name: page-hero; }
.site-header { view-transition-name: site-header; }

::view-transition-group(site-header) { animation: none; }
::view-transition-group(page-hero) {
  animation-duration: 700ms;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  overflow: clip;
}
/* Don't stretch the contents: the block's edges move, the content fades and drifts */
::view-transition-old(page-hero), ::view-transition-new(page-hero) {
  width: 100%; height: 100%; object-fit: none; object-position: top center;
}
::view-transition-old(page-hero) { animation: vt-out 320ms ease both, vt-drift-up 700ms cubic-bezier(0.65, 0, 0.35, 1) both; }
::view-transition-new(page-hero) { animation: vt-in 420ms ease 260ms both, vt-drift-in 700ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both; }
::view-transition-old(root) { animation: vt-out 260ms ease both; }
::view-transition-new(root) { animation: vt-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both; }

@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@keyframes vt-drift-up { to { transform: translateY(-24px) scale(0.98); } }
@keyframes vt-drift-in { from { transform: translateY(28px); } }
@keyframes vt-rise { from { opacity: 0; transform: translateY(36px); } }

/* Keep the moving block solid sage while it shrinks, so it reads as one green rectangle getting smaller */
::view-transition-group(page-hero) { background: #687F69; }
::view-transition-new(root) { animation: vt-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) 320ms both; }
::view-transition-old(root) { animation: vt-out 220ms ease both; }

/* ======================================================================
   Phone menu: a sage circle grows from the menu button, links slide in
   ====================================================================== */
.menu-toggle { position: relative; }
.burger { position: relative; width: 20px; height: 14px; display: block; }
.burger i { position: absolute; left: 0; width: 100%; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 380ms var(--ease), opacity 200ms var(--ease), top 380ms var(--ease); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; }
.burger i:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 60px 0 0; z-index: 49; display: flex; flex-direction: column; gap: 28px;
  padding: 20px 20px max(28px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--sage); color: var(--cream);
  opacity: 1; transform: none; pointer-events: none; visibility: hidden;
  clip-path: circle(0px at var(--ox, 90%) var(--oy, 0px));
  transition: clip-path 560ms cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 560ms;
}
.mobile-menu.open {
  visibility: visible; pointer-events: auto;
  clip-path: circle(160vmax at var(--ox, 90%) var(--oy, 0px));
  transition: clip-path 620ms cubic-bezier(0.65, 0, 0.35, 1), visibility 0s;
}
.mm-arches { position: absolute; inset: auto -20% -6% auto; width: 75%; max-width: 320px; pointer-events: none; opacity: 0.9; }
[dir="rtl"] .mm-arches { inset: auto auto -6% -20%; }
.mm-arches svg { width: 100%; height: auto; }

.mm-links { display: grid; position: relative; }
.mobile-menu .mm-links a {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px;
  padding: 16px 4px; border-bottom: 1px solid rgba(247, 238, 220, 0.16);
  font-size: 26px; font-weight: 300; text-decoration: none; color: var(--cream);
  opacity: 0; transform: translateY(18px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease), color 160ms var(--ease);
}
.mm-num { font-size: 12px; letter-spacing: 0.18em; color: var(--terra); }
.mm-arrow { width: 20px; height: 20px; opacity: 0.55; transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
[dir="rtl"] .mm-arrow { transform: scaleX(-1); }
.mobile-menu .mm-links a[aria-current="page"] .mm-label { position: relative; }
.mobile-menu .mm-links a[aria-current="page"] .mm-label::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -4px; width: 28px; height: 1.5px; background: var(--terra); border-radius: 2px; }
.mobile-menu .mm-links a:active .mm-arrow { opacity: 1; transform: translateX(4px); }
[dir="rtl"] .mobile-menu .mm-links a:active .mm-arrow { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .mobile-menu .mm-links a { font-family: var(--font-ar); font-size: 24px; }

.mm-foot {
  position: relative; display: grid; gap: 14px; margin-top: auto;
  opacity: 0; transform: translateY(18px); transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.mm-foot .label-wide { color: var(--sand); }
.mm-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mm-actions a, .mm-actions button {
  display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px;
  border: 1px solid rgba(247, 238, 220, 0.22); background: rgba(247, 238, 220, 0.06);
  color: var(--cream); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer;
}
.mm-actions .icon { width: 20px; height: 20px; color: var(--terra); }
.mm-address { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--sand); font: inherit; font-size: 14px; padding: 4px 0; cursor: pointer; text-align: start; }
.mm-address .icon { color: var(--terra); }

/* Staggered entrance when open; quick, all-together exit when closing */
.mobile-menu.open .mm-links a, .mobile-menu.open .mm-foot {
  opacity: 1; transform: none;
  transition: opacity 420ms var(--ease), transform 520ms var(--ease), color 160ms var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms + 160ms);
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu.open { clip-path: none; transition: none; }
  .mobile-menu .mm-links a, .mm-foot { opacity: 1; transform: none; }
}

/* ======================================================================
   Loading screen: the NAFAS mark breathes in the middle of the screen.
   Only appears if loading takes longer than ~0.4 s, so fast loads never flash.
   ====================================================================== */
html.is-loading::before, html.is-loading::after {
  content: ""; position: fixed; z-index: 1001; pointer-events: none; opacity: 0;
  animation: loader-in 300ms ease 400ms forwards;
}
html.is-loading::after { inset: 0; z-index: 1000; background: var(--cream); }
html.is-loading::before {
  left: 50%; top: 50%; width: 64px; height: 105px; margin: -60px 0 0 -32px;
  background: url("/assets/brand/mark.svg") center / contain no-repeat;
  animation: loader-in 300ms ease 400ms forwards, loader-breathe 1.6s ease-in-out 400ms infinite;
}
@keyframes loader-in { to { opacity: 1; } }
@keyframes loader-breathe { 0%, 100% { transform: scale(1); filter: none; } 50% { transform: scale(1.08); } }
html.loader-out::before, html.loader-out::after { content: ""; position: fixed; z-index: 1000; pointer-events: none; animation: none; opacity: 0; transition: opacity 300ms ease; }
@media (prefers-reduced-motion: reduce) { html.is-loading::before { animation: loader-in 300ms ease 400ms forwards; } }

/* Small spinner inside buttons while they wait */
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy > * { visibility: hidden; }
.btn.is-busy::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 2px solid rgba(247, 238, 220, 0.35); border-top-color: var(--cream);
  animation: spin 700ms linear infinite;
}
.btn-ghost.is-busy::after { border-color: rgba(56, 79, 64, 0.25); border-top-color: var(--forest); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Phones: keep the side margins on the café, booking and status pages
   (an earlier phone rule reset them to zero, so content touched the screen edges) */
@media (max-width: 720px) {
  .order-layout { padding: 16px 16px 112px; }
  .book-layout { padding: 16px 16px 72px; }
  .done-wrap { padding: 24px 16px 72px; }
  .menu-cats { margin: 0 -16px; padding: 10px 16px; }
  .item { gap: 4px 12px; padding: 14px 0; }
  .item-side { gap: 8px; }
}

.mobile-menu .mm-actions a { display: grid; padding: 12px 6px; border-bottom: 1px solid rgba(247, 238, 220, 0.22); font-size: 13px; font-family: inherit; justify-content: initial; align-items: initial; }

/* Loading screen on sage, so the cream logo mark shows in full */
html.is-loading::after { background: var(--sage); }
/* Phones: messages sit above the café order bar */
@media (max-width: 1040px) { .toast { bottom: calc(88px + env(safe-area-inset-bottom)); } }

/* ======================================================================
   Sections that fit the screen, hover life on the spaces, Visit on sage
   ====================================================================== */

/* Vertical rhythm follows the screen height, so a section fits one screen with even space above and below */
@media (min-width: 721px) {
  .section { padding: clamp(48px, 9vh, 112px) 0; }
  .section-sm { padding: clamp(40px, 7vh, 80px) 0; }
  #spaces { padding-bottom: clamp(48px, 9vh, 112px) !important; }
  #visit { padding-bottom: clamp(48px, 9vh, 112px) !important; }
  .section-head { margin-bottom: clamp(24px, 5vh, 56px); gap: 32px; }
  .h2 { font-size: clamp(32px, min(4.2vw, 7.4vh), 56px); }
  .section-head .label-wide { margin-bottom: clamp(8px, 1.6vh, 16px) !important; }
  .essence-figure { max-height: min(60vh, 480px); }
  .way { min-height: 0; padding: clamp(28px, 5vh, 48px) clamp(28px, 3vw, 44px); gap: clamp(12px, 2vh, 20px); }
  .space-art { aspect-ratio: 1 / 0.78; }
  .space-body { padding: clamp(16px, 2.4vh, 24px) 22px clamp(18px, 2.6vh, 26px); }
  .space-body p { font-size: 14px; }
}

/* ---------- Spaces: hover and keyboard focus ---------- */
.space { transition: transform 420ms var(--ease), box-shadow 420ms var(--ease), border-color 300ms var(--ease); will-change: transform; }
.space-art svg { transition: transform 520ms var(--ease); }
.space-art::before, .space-art::after { transition: inset 520ms var(--ease), border-color 300ms var(--ease), opacity 300ms var(--ease); }
.space-rooms span { transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.space-name h3 { transition: color 300ms var(--ease); }
@media (hover: hover) {
  .space:hover, .space:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(56, 79, 64, 0.16), 0 4px 10px rgba(56, 79, 64, 0.08);
    border-color: rgba(56, 79, 64, 0.22);
  }
  .space:hover .space-art svg, .space:focus-within .space-art svg { transform: translateY(-6px) scale(1.08); }
  .space:hover .space-art::before, .space:focus-within .space-art::before { inset: 6px 6px 0; border-color: rgba(247, 238, 220, 0.75); }
  .space:hover .space-art::after, .space:focus-within .space-art::after { inset: 18px 18px 0; border-color: var(--terra); }
  .space:hover .space-rooms span, .space:focus-within .space-rooms span { background: var(--sage); color: var(--cream); }
  .space:hover .space-name h3, .space:focus-within .space-name h3 { color: var(--forest); }
}
/* Phones: a gentle press instead of hover */
.space:active { transform: scale(0.985); }

/* The "two ways" cards lift a little too */
.way { transition: transform 420ms var(--ease), box-shadow 420ms var(--ease); }
.way-arch { transition: transform 700ms var(--ease); }
@media (hover: hover) {
  .way:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(56, 79, 64, 0.16); }
  .way:hover .way-arch { transform: translateY(-14px); }
}

/* ---------- Visit us: its own sage section ---------- */
#visit { position: relative; overflow: hidden; background: var(--sage); color: var(--cream); }
#visit::before {
  content: ""; position: absolute; inset: auto -120px -60px auto; width: 420px; height: 520px; pointer-events: none;
  border: 1px solid rgba(247, 238, 220, 0.35); border-bottom: 0; border-radius: 999px 999px 0 0;
  box-shadow: inset 0 0 0 34px var(--sage), inset 0 0 0 35px rgba(216, 170, 135, 0.6);
}
[dir="rtl"] #visit::before { inset: auto auto -60px -120px; }
#visit .label-wide { color: var(--sand); }
#visit .display { color: var(--cream); }
#visit .section-head p { color: rgba(247, 238, 220, 0.88); }
#visit .container { position: relative; }
#visit .card { background: var(--paper); border-color: transparent; box-shadow: 0 16px 40px rgba(46, 67, 53, 0.18); }
@media (max-width: 720px) {
  #visit { padding-top: 56px; padding-bottom: 64px !important; }
  #visit::before { width: 260px; height: 320px; inset: auto -110px -40px auto; }
}
@media (prefers-reduced-motion: reduce) {
  .space, .way, .space-art svg, .way-arch { transition: none; }
}
@media (min-width: 721px) { #visit { padding-top: clamp(48px, 9vh, 112px); } }

/* Shorter laptop screens: tighter so each section still fits one screen */
@media (min-width: 721px) and (max-height: 900px) {
  .section, #spaces, #visit { padding-top: clamp(36px, 6vh, 64px) !important; padding-bottom: clamp(36px, 6vh, 64px) !important; }
  .section-head { margin-bottom: clamp(20px, 3.6vh, 40px); }
  .space-art { aspect-ratio: 1 / 0.66; }
  .space-body { gap: 4px; }
  .space-body p { font-size: 13.5px; line-height: 1.5; }
  .way { padding: 28px 32px; gap: 10px; }
  .way h3 { font-size: clamp(24px, 4.4vh, 34px); }
  .way ol { gap: 6px; margin-top: 2px; }
  .way li { font-size: 15px; }
  .way .btn { margin-top: 8px; }
  .hours td { padding: 7px 0; }
  #visit .card { padding: 24px 28px; }
  .contact-row { padding: 9px 4px; }
}
#visit .card { color: var(--ink); }
#visit .card .h3 { color: var(--forest); }

/* My booking: the result replaces the form, with a soft entrance */
.result-in { animation: resultIn 520ms var(--ease) both; }
@keyframes resultIn { from { opacity: 0; transform: translateY(16px); } }
.link-quiet { color: var(--ink-2); font-size: 15px; text-underline-offset: 4px; }
.link-quiet:hover { color: var(--ink); }
.back-arrow { transform: none; }
[dir="rtl"] .back-arrow { transform: scaleX(-1); }
.btn:hover .back-arrow { transform: translateX(-3px); }
[dir="rtl"] .btn:hover .back-arrow { transform: scaleX(-1) translateX(-3px); }

/* ======================================================================
   Book page: two tabs, "Book a space" and "My booking"
   ====================================================================== */
.tabs-wrap { display: flex; justify-content: center; margin-top: -26px; position: relative; z-index: 3; }
.tabs {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; gap: 0;
  border-radius: 999px; background: var(--paper); box-shadow: 0 10px 30px rgba(56, 79, 64, 0.14), 0 0 0 1px var(--line);
}
.tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--ink-2); white-space: nowrap; transition: color 280ms var(--ease);
}
.tab .icon { color: var(--terra-ink); transition: color 280ms var(--ease); }
.tab[aria-selected="true"] { color: var(--cream); }
.tab[aria-selected="true"] .icon { color: var(--terra); }
.tab-ink {
  position: absolute; left: 0; top: 5px; bottom: 5px; border-radius: 999px; background: var(--forest);
  transition: transform 420ms cubic-bezier(0.65, 0, 0.35, 1), width 420ms cubic-bezier(0.65, 0, 0.35, 1);
}
.tab-in { animation: tabIn 460ms var(--ease) both; }
@keyframes tabIn { from { opacity: 0; transform: translateY(12px); } }
.hero-swap.tab-in { animation-duration: 380ms; }
.book-layout { padding-top: 32px; }
.lookup { padding-top: 32px; }
.link-quiet { background: none; border: 0; cursor: pointer; font: inherit; text-decoration: underline; }
@media (max-width: 720px) {
  .tabs-wrap { margin-top: -22px; padding: 0 16px; }
  .tabs { display: grid; width: 100%; }
  .tab { padding: 0 10px; font-size: 14px; height: 42px; }
  .book-layout { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .tab-ink { transition: none; } }

/* ======================================================================
   Book page: the tabs ride above the green block during page transitions
   (they used to be hidden under it until the transition ended)
   ====================================================================== */
.tabs-wrap { view-transition-name: book-tabs; }
::view-transition-group(book-tabs) { animation-duration: 0s; }
::view-transition-new(book-tabs) { animation: vt-in 320ms ease 200ms both, vt-drift-in 520ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both; }
::view-transition-old(book-tabs) { animation: vt-out 160ms ease both; }

/* ======================================================================
   Booking stages: Date → Time → Space → Details, one at a time
   ====================================================================== */
.wizard { display: grid; gap: 16px; scroll-margin-top: 90px; }
.stages {
  --p: 0; position: relative; list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
}
.stages-bar { display: none; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; pointer-events: none; }
.stages-bar i { position: absolute; inset: 0; background: var(--terra); border-radius: 2px; transform-origin: left; transform: scaleX(calc((var(--p) + 1) / 4)); transition: transform 520ms cubic-bezier(0.65, 0, 0.35, 1); }
[dir="rtl"] .stages-bar i { transform-origin: right; }
.stage {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 0; border-radius: 999px;
  background: transparent; font: inherit; color: var(--ink); cursor: pointer; text-align: start; min-width: 0;
  transition: background-color 260ms var(--ease), color 260ms var(--ease), opacity 260ms var(--ease);
}
[dir="rtl"] .stage { padding: 8px 8px 8px 12px; }
.stage:disabled { cursor: default; opacity: 0.45; }
.stage:not(:disabled):not(.is-current):hover { background: var(--cream); }
.stage-dot {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  border: 1px solid var(--line-strong); color: var(--ink-2); transition: background-color 260ms var(--ease), color 260ms var(--ease), border-color 260ms var(--ease);
}
.stage-text { display: grid; min-width: 0; line-height: 1.25; }
.stage-label { font-size: 14px; }
.stage-pick { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-pick:empty { display: none; }
.stage.is-done .stage-dot { background: var(--sand); border-color: var(--sand); color: var(--forest); font-size: 0; }
.stage.is-done .stage-dot::before { content: "✓"; font-size: 14px; }
.stage.is-current { background: var(--forest); color: var(--cream); }
.stage.is-current .stage-dot { background: var(--cream); border-color: var(--cream); color: var(--forest); }
.stage.is-current .stage-pick { color: var(--sand); }

.steps > [hidden] { display: none !important; }
.stage-fwd { animation: stageFwd 460ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.stage-back { animation: stageBack 460ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes stageFwd { from { opacity: 0; transform: translateX(calc(36px * var(--flip, 1))) scale(0.99); } }
@keyframes stageBack { from { opacity: 0; transform: translateX(calc(-36px * var(--flip, 1))) scale(0.99); } }
[dir="rtl"] .steps { --flip: -1; }
.stage-foot { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.stage-foot .btn { height: 50px; }
.stage-foot .arrow { transition: transform 200ms var(--ease); }
.stage-foot .btn:not(:disabled):hover .arrow:not(.back-arrow) { transform: translateX(3px); }
[dir="rtl"] .stage-foot .arrow:not(.back-arrow) { transform: scaleX(-1); }
.step-head h2:focus { outline: none; }

@media (max-width: 720px) {
  .stages { padding: 4px; gap: 2px; }
  .stage { flex-direction: column; gap: 4px; padding: 6px 2px !important; border-radius: 18px; text-align: center; }
  .stage-dot { width: 26px; height: 26px; font-size: 12px; }
  .stage-text { justify-items: center; }
  .stage-label { font-size: 12.5px; }
  .stage-pick { display: none; }
  .stages { border-radius: 22px; }
  .stage-foot { margin-top: 18px; padding-top: 14px; }
  .stage-foot .btn { height: 46px; }
}

/* Calendar: months slide in the direction you move */
.cal-grid, .cal-title { --d: 1; }
[dir="rtl"] .cal-grid, [dir="rtl"] .cal-title { --d: -1; }
.cal-out-next { animation: calOutNext 170ms ease-in both; }
.cal-out-prev { animation: calOutPrev 170ms ease-in both; }
.cal-in-next { animation: calInNext 380ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.cal-in-prev { animation: calInPrev 380ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes calOutNext { to { opacity: 0; transform: translateX(calc(-32px * var(--d))); } }
@keyframes calOutPrev { to { opacity: 0; transform: translateX(calc(32px * var(--d))); } }
@keyframes calInNext { from { opacity: 0; transform: translateX(calc(32px * var(--d))); } }
@keyframes calInPrev { from { opacity: 0; transform: translateX(calc(-32px * var(--d))); } }
.cal-head { overflow: hidden; }
.cal-day.closed { text-decoration: line-through; text-decoration-color: rgba(216, 170, 135, 0.9); }

/* ======================================================================
   Café: category filter, out of stock, counter beside the lounge, saved picture
   ====================================================================== */
/* Switching category: old list fades down and out, new heading and items rise in one after another */
.menu-out { opacity: 0; transform: translateY(6px); transition: opacity 170ms ease, transform 170ms ease; }
.menu-in .menu-group h2 { animation: menuIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.menu-in .item { animation: menuIn 460ms cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(60ms + var(--i, 0) * 40ms); }
@keyframes menuIn { from { opacity: 0; transform: translateY(14px); } }
.menu-cats .chip { transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease); }
.menu-cats .chip:active { transform: scale(0.95); }
.item.sold-out { opacity: 1; }
.item.sold-out .item-name, .item.sold-out .item-desc, .item.sold-out .item-price { opacity: 0.5; }
.oos { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: #f3e3dc; color: #8a4a36; white-space: nowrap; }
.save-hint { margin: -6px 0 0; text-align: center; font-size: 13px; }
.track [data-save-img] { height: 48px; }

@media (prefers-reduced-motion: reduce) {
  .stage-fwd, .stage-back, .cal-out-next, .cal-out-prev, .cal-in-next, .cal-in-prev, .menu-in .menu-group h2, .menu-in .item { animation: none; }
  .menu-out { transition: none; }
  .stages-bar i { transition: none; }
}

/* ======================================================================
   Phone footer: compact, two columns
   ====================================================================== */
@media (max-width: 600px) {
  .site-footer { padding: 32px 0 20px; font-size: 13.5px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 20px 16px; padding-bottom: 20px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .footer-top > div:last-child { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .footer-top > div:last-child h4 { display: none; }
  .footer-logo { width: 150px; }
  .footer-col h4 { margin-bottom: 8px; font-size: 11px; }
  .footer-col a, .footer-link { font-size: 13.5px; padding: 3px 0; }
  .footer-link { gap: 8px; }
  .socials { margin: 0; gap: 8px; }
  .socials a { width: 36px; height: 36px; }
  .socials .icon { width: 18px; height: 18px; }
  .footer-handle { font-size: 13px !important; }
  .footer-bottom { padding-top: 14px; font-size: 12px; gap: 6px 16px; justify-content: center; text-align: center; }
  .footer-legal { gap: 14px; }
}

/* Language doorway: the logo lives inside the arch, so they always line up
   (the arch is drawn in a 600×900 box standing on the floor; the logo sits in its inner doorway) */
.lang-veil-door {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(100vw, 66.667vh); aspect-ratio: 600 / 900;
}
.lang-veil-door .lang-veil-arches { position: absolute; inset: 0; width: 100%; height: 100%; }
.lang-veil-door .lang-veil-center {
  position: absolute; left: 50%; top: 52%; translate: -50% -50%;
  gap: clamp(10px, 2vh, 18px); text-align: center; white-space: nowrap;
}
.lang-veil-door .lang-veil-center img { height: clamp(78px, 13vh, 120px); }
.lang-veil-door .lang-veil-center span { font-size: clamp(20px, 3vh, 26px); }

/* Pop-up when the booking form is missing something */
.missing-modal { width: min(420px, calc(100vw - 32px)); }
.missing-body { padding: 28px 26px 24px; display: grid; gap: 10px; text-align: center; justify-items: center; }
.missing-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(162, 68, 44, 0.1); color: var(--bad); font-size: 22px; font-weight: 500; }
.missing-body h2 { font-size: 22px; font-weight: 400; margin-top: 4px; }
.missing-list { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 8px; width: 100%; text-align: start; }
.missing-list li { position: relative; padding: 10px 14px 10px 30px; border-radius: 12px; background: var(--sand); font-size: 14px; color: var(--ink-2); }
.missing-list li::before { content: ""; position: absolute; inset-inline-start: 14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--bad); }
[dir="rtl"] .missing-list li { padding: 10px 30px 10px 14px; }
.time { white-space: nowrap; }
[dir="rtl"] .times { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
@media (max-width: 640px) { [dir="rtl"] .times { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }

/* My booking: "or open your saved picture" */
.or-line { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 13px; margin: -4px 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
[data-cform].is-drop { outline: 2px dashed var(--sage); outline-offset: 6px; }

/* Café: order something else | cancel order */
.track-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-danger { color: var(--bad); border-color: rgba(162, 68, 44, 0.35); }
.btn-danger:hover { background: rgba(162, 68, 44, 0.07); color: var(--bad); }

/* ======================================================================
   Shop: grid of items, a closer look, basket lines with a picture
   ====================================================================== */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 8px; }
.shop-grid .sk-card { height: 360px; }
.shop-card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 999px 999px var(--r-card) var(--r-card); overflow: hidden; transition: transform 360ms var(--ease), box-shadow 360ms var(--ease); }
.shop-card-img { display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; overflow: hidden; color: var(--muted); }
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease); }
.shop-card-body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.shop-card-name { all: unset; cursor: pointer; font-size: 17px; line-height: 1.3; color: var(--ink); }
.shop-card-name:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }
.shop-card-maker { font-size: 13px; color: var(--muted); font-weight: 300; }
.shop-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.shop-card.sold-out .shop-card-img img { filter: grayscale(0.6); opacity: 0.6; }
.shop-flag { justify-self: start; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--forest); }
@media (hover: hover) {
  .shop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
  .shop-card:hover .shop-card-img img { transform: scale(1.04); }
}
.menu-in .shop-card { animation: menuIn 460ms cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(40ms + var(--i, 0) * 40ms); }
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shop-card-body { padding: 10px 12px 12px; }
  .shop-card-name { font-size: 15px; }
  .shop-card-foot { flex-wrap: wrap; }
}
.line-thumb { width: 44px; height: 55px; border-radius: 22px 22px 6px 6px; object-fit: cover; background: var(--sand); }
.line-edit:has(.line-thumb) { grid-template-columns: 44px minmax(0, 1fr) auto 64px; }

/* A closer look */
.shop-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-panel); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-float); overflow: auto; }
.shop-dialog::backdrop { background: rgba(47, 59, 51, 0.45); backdrop-filter: blur(2px); }
.shop-dialog[open] { animation: menuIn 320ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.shop-dialog-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--paper); }
[dir="rtl"] .shop-dialog-close { right: auto; left: 14px; }
.shop-dialog-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.shop-gallery { background: var(--sand); padding: 20px; display: grid; gap: 12px; align-content: start; }
.shop-gallery-main { aspect-ratio: 4 / 5; border-radius: 999px 999px 14px 14px; overflow: hidden; background: var(--cream); }
.shop-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-thumb { width: 56px; height: 70px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--cream); }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-thumb[aria-pressed="true"] { border-color: var(--forest); }
.shop-dialog-info { padding: 44px 32px 32px; display: grid; gap: 12px; align-content: start; }
.shop-dialog-info h2 { font-size: 30px; font-weight: 400; line-height: 1.15; }
.shop-dialog-info [data-item-desc] { font-weight: 300; color: var(--ink-2); line-height: 1.6; white-space: pre-line; }
.shop-dialog-price { font-size: 24px; font-variant-numeric: tabular-nums; color: var(--forest); }
.shop-dialog-in { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) {
  .shop-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .shop-dialog-grid { grid-template-columns: 1fr; }
  .shop-gallery { padding: 16px; }
  .shop-gallery-main { max-height: 56dvh; margin: 0 auto; width: 100%; }
  .shop-dialog-info { padding: 20px 20px 32px; }
  .shop-dialog-info h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-in .shop-card, .shop-dialog[open] { animation: none; }
  .shop-card, .shop-card-img img { transition: none; }
}

/* ======================================================================
   Header: My orders + basket icons. The basket is a side drawer (computers)
   or a slide-up sheet (phones), so the menu and shop use the full width.
   ====================================================================== */
.head-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: 12px; }
.head-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(247, 238, 220, 0.45); background: transparent; color: var(--cream);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.head-btn:hover { background: rgba(247, 238, 220, 0.12); border-color: var(--cream); }
.head-btn .icon { width: 19px; height: 19px; }
.head-count {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--terra); color: var(--forest); font-size: 11.5px; font-weight: 500; line-height: 19px; text-align: center;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--sage);
}
.head-count.bump { animation: countBump 420ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes countBump { 0% { transform: scale(0.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (max-width: 900px) {
  .head-actions { margin-inline-start: auto; gap: 6px; }
  .head-btn { width: 36px; height: 36px; }
  .lang-mobile { margin-inline-start: 6px; }
}

/* The basket: no longer a column beside the menu */
.order-layout { grid-template-columns: minmax(0, 1fr); }
.order-layout:has([data-menu]) > section { width: 100%; max-width: 860px; margin-inline: auto; }
.close-sheet { display: grid !important; }
.scrim { position: fixed; inset: 0; z-index: 58; background: rgba(46, 67, 53, 0.45); opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease); }
.scrim.open { opacity: 1; pointer-events: auto; }
@media (min-width: 1041px) {
  .panel-order {
    position: fixed; top: 0; bottom: 0; right: 0; z-index: 60; width: min(440px, 100vw); overflow: auto;
    border-radius: var(--r-panel) 0 0 var(--r-panel); border-right: 0; box-shadow: var(--shadow-float);
    transform: translateX(105%); transition: transform 360ms var(--ease);
  }
  [dir="rtl"] .panel-order { right: auto; left: 0; border-radius: 0 var(--r-panel) var(--r-panel) 0; border-left: 0; border-right: 1px solid var(--line); transform: translateX(-105%); }
  .panel-order.open { transform: none; }
  .panel-order-head { position: sticky; top: 0; z-index: 1; }
}

/* My orders drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: auto; box-shadow: var(--shadow-float);
  border-radius: var(--r-panel) 0 0 var(--r-panel); animation: drawerIn 360ms var(--ease) both;
}
[dir="rtl"] .drawer { inset: 0 auto 0 0; border-radius: 0 var(--r-panel) var(--r-panel) 0; animation-name: drawerInRtl; }
.drawer.closing { animation: drawerOut 240ms var(--ease) both; }
[dir="rtl"] .drawer.closing { animation-name: drawerOutRtl; }
.drawer::backdrop { background: rgba(46, 67, 53, 0.45); }
@keyframes drawerIn { from { transform: translateX(105%); } }
@keyframes drawerInRtl { from { transform: translateX(-105%); } }
@keyframes drawerOut { to { transform: translateX(105%); } }
@keyframes drawerOutRtl { to { transform: translateX(-105%); } }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: var(--forest); color: var(--cream); }
.drawer-head h2 { font-size: 20px; font-weight: 400; }
.drawer-head .ar { font-size: 15px; color: var(--sand); }
.drawer-head .icon-btn { border-color: rgba(247, 238, 220, 0.3); color: var(--cream); }
.drawer-head .icon-btn:hover { background: rgba(247, 238, 220, 0.1); color: var(--cream); }
.mo-body { padding: 20px 24px; display: grid; gap: 14px; }
.mo-body .sk-card { height: 150px; }
.mo-card { border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; padding: 16px 18px; display: grid; gap: 8px; animation: menuIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.mo-card:nth-child(2) { animation-delay: 60ms; }
.mo-card:nth-child(3) { animation-delay: 120ms; }
.mo-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mo-kind { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.mo-kind .icon { color: var(--sage); }
.mo-code { font-size: 24px; letter-spacing: 0.08em; color: var(--forest); }
.mo-detail { font-size: 14px; color: var(--ink-2); font-weight: 300; }
.mo-lines { list-style: none; padding: 8px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 14px; }
.mo-lines li { display: flex; justify-content: space-between; gap: 12px; }
.mo-lines li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.mo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; }
.mo-foot strong { font-weight: 400; font-size: 18px; font-variant-numeric: tabular-nums; }
.mo-empty { display: grid; gap: 16px; padding: 12px 0; color: var(--ink-2); font-weight: 300; }
.mo-links { display: grid; gap: 8px; justify-items: start; }
.mo-note { padding: 0 24px 24px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) {
  .drawer { width: 100vw; border-radius: 0; }
  .drawer-head { padding: 16px 18px; }
  .mo-body { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer.closing, .mo-card, .head-count.bump { animation: none; }
  .panel-order { transition: none; }
}
/* Phones: the logo keeps its size next to the new icons; the language button gets compact */
.site-header .brand { flex-shrink: 0; }
@media (max-width: 480px) {
  .site-header .brand-logo { height: 30px; }
  .lang-mobile { padding: 0 10px; }
  .lang-mobile .icon { display: none; }
  .head-actions { gap: 4px; }
  .head-btn { width: 34px; height: 34px; }
  .head-btn .icon { width: 17px; height: 17px; }
}
@media (max-width: 900px) { .site-header .container { gap: 8px; } }
@media (max-width: 359px) {
  .site-header .brand-logo { height: 22px; }
  .head-btn { width: 32px; height: 32px; }
  .lang-mobile { padding: 0 8px; margin-inline-start: 4px; }
}

/* ======================================================================
   One drawer: Basket | My orders tabs (header bag icon)
   ====================================================================== */
.drawer { display: flex; flex-direction: column; }
.drawer:not([open]) { display: none; }
.drawer-head { gap: 12px; padding: 14px 16px 14px 20px; }
.drawer-head h2 { padding: 6px 0; }
.drawer-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(247, 238, 220, 0.1); }
.drawer-tabs button {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: rgba(247, 238, 220, 0.78); font: inherit; font-size: 15px; cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.drawer-tabs button:hover { color: var(--cream); }
.drawer-tabs button[aria-selected="true"] { background: var(--cream); color: var(--forest); }
.drawer-tab-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--terra); color: var(--forest); font-size: 12px; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.drawer-basket { padding: 20px 24px 28px; }
.mo-card.is-done { background: transparent; }
.mo-card .track-steps { margin: 4px 0 2px; }
.mo-hint { font-size: 13px; color: var(--muted); }
.mo-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.mo-total strong { font-size: 20px; font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.mo-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-top: 4px; }
.mo-body > .mo-note { padding: 0; text-align: center; }
@media (max-width: 560px) {
  .drawer-basket { padding: 16px 18px 24px; }
  .drawer-tabs button { padding: 0 12px; font-size: 14px; }
}

/* Drawer tabs are places: Café | Shop. Each has its basket and its orders. */
.drawer-tabs button .icon { width: 16px; height: 16px; }
.mo-body .drawer-basket { padding: 0; }
.mo-label { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
[dir="rtl"] .mo-label { letter-spacing: 0; font-size: 13px; }
.mo-label:first-child { margin-top: 0; }
.mo-go { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); color: var(--ink-2); font-size: 14.5px; font-weight: 300; }

/* ======================================================================
   Laptops: one wide panel, Café and Shop side by side
   ====================================================================== */
.drawer.is-wide { width: min(940px, calc(100vw - 64px)); display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.is-wide .drawer-head { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 0; padding: 0; align-items: stretch; }
.drawer-col-title { display: flex; align-items: center; gap: 10px; padding: 22px 28px; font-size: 20px; font-weight: 400; }
.drawer-col-title + .drawer-col-title { border-inline-start: 1px solid rgba(247, 238, 220, 0.14); }
.drawer-col-title .icon { width: 20px; height: 20px; color: var(--terra); }
.is-wide .drawer-head > .icon-btn { align-self: center; margin-inline-end: 20px; margin-inline-start: -28px; }
.drawer-cols { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.drawer-col { overflow: auto; padding: 24px 28px 32px; align-content: start; }
.drawer-col + .drawer-col { border-inline-start: 1px solid var(--line); background: rgba(235, 221, 202, 0.25); }
.is-wide .mo-card { background: #fff; }
.is-wide .where { grid-template-columns: 1fr 1fr; }

/* ======================================================================
   Phones: a sheet from the bottom with a grab handle; Send / Reserve stays in reach
   ====================================================================== */
.drawer.is-sheet {
  inset: auto 0 0 0; width: 100vw; max-width: 100vw; height: auto; max-height: 92dvh;
  border-radius: 26px 26px 0 0; display: flex; flex-direction: column; overflow: hidden;
  animation: sheetUp 380ms cubic-bezier(0.22, 1, 0.36, 1) both; transition: transform 260ms var(--ease);
}
[dir="rtl"] .drawer.is-sheet { inset: auto 0 0 0; border-radius: 26px 26px 0 0; animation-name: sheetUp; }
.drawer.is-sheet.closing, [dir="rtl"] .drawer.is-sheet.closing { animation: sheetDown 240ms var(--ease) both; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
.sheet-top { background: var(--forest); color: var(--cream); touch-action: none; flex: none; }
.sheet-grab { display: block; width: 42px; height: 5px; border-radius: 999px; background: rgba(247, 238, 220, 0.4); margin: 10px auto 0; }
.is-sheet .drawer-head { position: static; padding: 10px 14px 14px; }
.is-sheet .drawer-tabs { flex: 1; }
.is-sheet .drawer-tabs button { flex: 1; justify-content: center; }
.is-sheet .mo-body { overflow: auto; overscroll-behavior: contain; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); }
/* The Send / Reserve button sticks to the bottom of the sheet while you fill the form */
.is-sheet .drawer-basket [data-submit] {
  position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 2;
  box-shadow: 0 -12px 24px 6px var(--paper), var(--shadow-float);
}
@media (prefers-reduced-motion: reduce) {
  .drawer.is-sheet, .drawer.is-sheet.closing { animation: none; }
}
.is-wide .drawer-head .drawer-col-title { padding: 22px 28px; }

/* ======================================================================
   Computers, Café and Shop pages: basket and orders in a column on the right
   ====================================================================== */
.order-column { display: none; }
@media (min-width: 1041px) {
  .order-layout { grid-template-columns: minmax(0, 1fr) 400px; }
  .order-layout:has([data-menu]) > section { max-width: none; }
  .order-column {
    display: flex; flex-direction: column; position: sticky; top: 96px; max-height: calc(100dvh - 120px);
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden;
  }
  .order-column[hidden] { display: none; }
  .column-head { background: var(--forest); padding: 12px; flex: none; }
  .column-head .drawer-tabs { width: 100%; }
  .column-head .drawer-tabs button { flex: 1; justify-content: center; }
  .order-column .mo-body { overflow: auto; padding: 20px 22px 24px; }
  .order-column.flash { animation: columnFlash 900ms var(--ease); }
  .order-layout .order-bar, body:has(.order-column:not([hidden])) .order-bar { display: none !important; }
}
@keyframes columnFlash { 0% { box-shadow: 0 0 0 0 rgba(216, 170, 135, 0.9); } 100% { box-shadow: 0 0 0 14px rgba(216, 170, 135, 0); } }
@media (prefers-reduced-motion: reduce) { .order-column.flash { animation: none; } }

/* ======================================================================
   Phones: kept like the original. No bag icon in the header; the bottom bar
   opens "Your order" (Café) / "Your basket" (Shop) as a sheet from the bottom.
   ====================================================================== */
@media (max-width: 900px) {
  .head-actions { display: none; }
  .lang-mobile { margin-inline-start: auto; }
}
.is-classic .drawer-head { padding: 20px 24px; }
.is-classic .drawer-head h2 { font-size: 20px; font-weight: 400; padding: 0; }
.is-classic .drawer-head .ar { font-size: 15px; color: var(--sand); }
.is-classic.drawer.is-sheet { border-radius: 24px 24px 0 0; max-height: 90dvh; }
@media (max-width: 560px) { .is-classic .drawer-head { padding: 16px 18px; } }

/* A closed drawer is never drawn (the phone and laptop styles set their own display) */
.drawer:not([open]) { display: none !important; }

/* ======================================================================
   Orders as a small list; a row opens a pop-up with the details.
   The column / sheet title: "Your order" (Café) or "Your basket" (Shop).
   ====================================================================== */
.mo-rows { display: grid; gap: 8px; }
.mo-row {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer;
  font: inherit; color: var(--ink); text-align: start; transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 120ms var(--ease);
}
.mo-row:hover { border-color: var(--sage); box-shadow: var(--shadow-sm); }
.mo-row:active { transform: scale(0.99); }
.mo-row.is-done { background: transparent; color: var(--ink-2); }
.mo-row-code { font-size: 17px; letter-spacing: 0.08em; }
.mo-row-total { justify-self: end; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.mo-row-go { color: var(--muted); }
[dir="rtl"] .mo-row-go { transform: scaleX(-1); }
.mo-empty-line { padding: 4px 0 8px; }
.sheet-title h2 { font-size: 20px; font-weight: 400; color: var(--cream); }
.sheet-title .ar { font-size: 15px; color: var(--sand); }
.column-head .sheet-title { padding: 8px 12px; }

.order-pop { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--r-panel); background: var(--paper); box-shadow: var(--shadow-float); overflow: auto; }
.order-pop::backdrop { background: rgba(46, 67, 53, 0.5); }
.order-pop[open] { animation: menuIn 300ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.order-pop .mo-card { border: 0; border-radius: 0; background: transparent; padding: 24px 24px 22px; }
.order-pop-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1; background: var(--paper); }
.order-pop .mo-top { padding-inline-end: 48px; }
@media (max-width: 560px) {
  .order-pop { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 88dvh; }
  .order-pop[open] { animation: sheetUp 360ms cubic-bezier(0.22, 1, 0.36, 1) both; }
}

/* Phones: the sheet header stays at the top while you scroll; the View bar is always reachable */
.is-classic .sheet-top { position: sticky; top: 0; z-index: 3; }
@media (max-width: 1040px) { .order-bar { z-index: 56; } }

/* "Your orders" button in the column / sheet header, and the list in the pop-up */
.column-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-actions { display: flex; align-items: center; gap: 8px; }
.orders-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(247, 238, 220, 0.35); background: rgba(247, 238, 220, 0.08); color: var(--cream);
  font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background-color 160ms var(--ease);
}
.orders-btn:hover { background: rgba(247, 238, 220, 0.18); }
.order-pop-list { padding: 24px 24px 20px; display: grid; gap: 14px; }
.order-pop-list h2 { font-size: 22px; font-weight: 400; padding-inline-end: 48px; }
.order-pop-list .mo-note { text-align: center; }
.order-pop-back { display: inline-flex; align-items: center; gap: 8px; margin: 18px 24px 0; padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; }
.order-pop-back:hover { color: var(--ink); }
.order-pop-back + .mo-card { padding-top: 12px; }
@media (max-width: 420px) {
  .orders-btn { padding: 0 10px; font-size: 13px; }
  .orders-btn .icon { display: none; }
}

/* ======================================================================
   Right side: your orders when the basket is empty, only the basket while adding.
   Adding: the item flies from the + into the basket; the new line slides in from the left.
   ====================================================================== */
.mo-hint-top { font-size: 14px; color: var(--muted); font-weight: 300; }
.mo-row.is-new { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(216, 170, 135, 0.35); animation: rowIn 600ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
.flyer {
  position: fixed; z-index: 1000; pointer-events: none; display: grid; place-items: center; overflow: hidden;
  border-radius: 999px 999px 14px 14px; background: var(--forest); color: var(--cream); box-shadow: 0 10px 24px rgba(56, 79, 64, 0.3);
}
.flyer .icon { width: 20px; height: 20px; }
.flyer img { width: 100%; height: 100%; object-fit: cover; }
.catch { animation: catchIt 420ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes catchIt { 0% { transform: scale(1); } 40% { transform: scale(1.035); } 100% { transform: scale(1); } }
.order-bar.catch { animation: catchBar 420ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes catchBar { 40% { transform: scale(1.04); } }
.line-new { animation: lineIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-28px); } }
[dir="rtl"] .line-new { animation-name: lineInRtl; }
@keyframes lineInRtl { from { opacity: 0; transform: translateX(28px); } }
@media (prefers-reduced-motion: reduce) { .line-new, .catch, .order-bar.catch, .mo-row.is-new { animation: none; } }

/* ======================================================================
   Row -> pop-up: the tapped row glides to the middle and grows into the details
   ====================================================================== */
.order-pop.grows[open] { animation: none; transform-origin: center; }
.order-pop-inner { transition: opacity 220ms var(--ease); }
.order-pop.morphing .order-pop-inner { opacity: 0; transition-duration: 120ms; }
.order-pop.morphing { overflow: hidden; }
.order-pop[open]::backdrop { animation: popShade 320ms var(--ease) both; }
.order-pop.leaving::backdrop { animation: popShadeOut 380ms var(--ease) both; }
@keyframes popShade { from { background: rgba(46, 67, 53, 0); } }
@keyframes popShadeOut { to { background: rgba(46, 67, 53, 0); } }
.mo-row.is-lifted { visibility: hidden; }

/* ======================================================================
   Pop-up buttons: two equal halves. Adding / removing animations.
   ====================================================================== */
.order-pop .mo-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; padding-top: 8px; }
.order-pop .mo-actions .btn { width: 100%; height: 48px; justify-content: center; padding: 0 12px; font-size: 15px; }
@media (max-width: 380px) { .order-pop .mo-actions .btn { font-size: 14px; padding: 0 8px; } }

.line-edit { position: relative; }
.line-edit.landed { animation: landed 700ms var(--ease); }
@keyframes landed { 0% { background: rgba(216, 170, 135, 0.38); } 100% { background: transparent; } }
.line-edit.landed::before, .line-new::before { content: ""; position: absolute; inset-inline-start: -10px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--terra); animation: markFade 1200ms var(--ease) forwards; }
@keyframes markFade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.line-bump output { display: inline-block; animation: qtyBump 380ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.line-bump .line-price { animation: qtyBump 380ms cubic-bezier(0.34, 1.56, 0.64, 1); display: inline-block; }
@keyframes qtyBump { 40% { transform: scale(1.3); color: var(--forest); } }
.swap-in { animation: swapIn 360ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .line-edit.landed, .line-bump output, .line-bump .line-price, .swap-in, .line-edit.landed::before, .line-new::before { animation: none; } }

/* ======================================================================
   Computers: the basket in two steps (Your order -> Your details)
   ====================================================================== */
.drawer-basket:not(.staged) .stage-ui { display: none !important; }
.drawer-basket.staged[data-at="1"] [data-step="2"],
.drawer-basket.staged[data-at="2"] [data-step="1"] { display: none !important; }
.stage-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 999px; background: var(--sand); }
.stage-step {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.stage-step[aria-current="step"] { background: var(--forest); color: var(--cream); }
.stage-step:disabled { cursor: default; opacity: 0.6; }
.stage-num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; background: rgba(56, 79, 64, 0.12); }
.stage-step[aria-current="step"] .stage-num { background: var(--terra); color: var(--forest); }
.stage-next { height: 52px; }
.stage-back { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; }
.stage-back:hover { color: var(--ink); }

/* Steps: the room buttons a little smaller, and Next / Send always in reach at the bottom */
.order-column .where button { padding: 8px 10px; font-size: 13.5px; }
.order-column .where button .ar { font-size: 12px; }
.drawer-basket.staged .stage-next,
.drawer-basket.staged[data-at="2"] [data-submit] { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -14px 18px 4px var(--paper); }
.drawer-basket.staged .lines { gap: 0; }
.drawer-basket.staged .line-edit { padding: 8px 0; }

/* Shop pictures keep their 4:5 box whatever photo is inside (a tall photo can't stretch the card) */
.shop-card-img, .shop-gallery-main, .shop-thumb { position: relative; }
.shop-card-img img, .shop-gallery-main img, .shop-thumb img { position: absolute; inset: 0; }
.shop-card-img > .icon { position: absolute; inset: 0; margin: auto; }

/* Shop: how many are left */
.shop-flag.is-plenty { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); }
.shop-flag.is-low { background: #f3e3dc; color: #8a4a36; }
.stock-line { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.stock-line .icon { color: var(--sage); }

/* Phones: My orders button beside the language button */
.head-orders { display: none; }
@media (max-width: 900px) {
  .head-orders:not([hidden]) { display: grid; margin-inline-start: auto; width: 36px; height: 36px; }
  .head-orders:not([hidden]) + .lang-mobile { margin-inline-start: 6px; }
}
.order-filter { margin-bottom: 4px; }
.order-filter button { flex: 1; justify-content: center; }
.is-orders .order-filter { background: var(--sand); }
.is-orders .order-filter button { color: var(--ink-2); }
.is-orders .order-filter button[aria-selected="true"] { background: var(--forest); color: var(--cream); }

/* Phones: the menu (☰) opens above everything: the bottom bar, messages, flying items */
.mobile-menu { z-index: 1100; }
.site-header:has(.menu-toggle[aria-expanded="true"]) { z-index: 1101; }

/* Footer on phones: no logo (the header already shows it) */
@media (max-width: 720px) { .footer-top > div:first-child:has(.footer-logo) { display: none; } }

/* Phone menu: Call, WhatsApp, Instagram, Email in one row (two by two on very small phones) */
.mm-actions { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 359px) { .mm-actions { grid-template-columns: repeat(2, 1fr); } }

/* The email in the footer lines up like the address and phone */
.footer-col a.footer-link { display: flex; align-items: center; gap: 10px; text-decoration: none; overflow-wrap: anywhere; }

/* ======================================================================
   Shop photos that slide one after the other (2+ photos)
   ====================================================================== */
.slides { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; user-select: none; }
.slides-track { display: flex; height: 100%; transition: transform 760ms cubic-bezier(0.65, 0, 0.35, 1); will-change: transform; }
.slides-track img { position: static !important; flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.slides-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.slides-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(247, 238, 220, 0.65); box-shadow: 0 0 0 1px rgba(56, 79, 64, 0.25); transition: width 300ms var(--ease), background-color 300ms var(--ease); }
.slides-dots i.on { width: 18px; background: var(--cream); }
.shop-gallery-main .slides { border-radius: inherit; }
@media (prefers-reduced-motion: reduce) { .slides-track { transition: none; } }

/* ======================================================================
   Computers: the column runs from the top of the screen to the bottom,
   and closes into a thin strip (the menu / shop gets the room)
   ====================================================================== */
@media (min-width: 1041px) {
  .order-layout { transition: grid-template-columns 480ms cubic-bezier(0.65, 0, 0.35, 1); }
  .order-layout.col-closed { grid-template-columns: minmax(0, 1fr) 72px; }
  .order-column { height: calc(100dvh - 120px); max-height: none; transition: border-radius 300ms var(--ease); }
  .order-column .mo-body { flex: 1; align-content: start; }
  .order-column > :not(.col-strip) { transition: opacity 160ms ease; }
  .order-column.col-fading > * { opacity: 0; }
  .order-column.col-opening > * { animation: colIn 420ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes colIn { from { opacity: 0; transform: translateX(14px); } }
  .column-head .col-toggle { border-color: rgba(247, 238, 220, 0.3); color: var(--cream); flex: none; }
  .column-head .col-toggle:hover { background: rgba(247, 238, 220, 0.12); color: var(--cream); }
  [dir="rtl"] .col-toggle .icon, [dir="rtl"] .col-strip-arrow { transform: scaleX(-1); }
  .order-column.is-closed { background: var(--forest); border-color: var(--forest); border-radius: 36px; }
  .col-strip {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 0; width: 100%;
    border: 0; background: transparent; color: var(--cream); font: inherit; cursor: pointer; animation: colIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .col-strip:hover .col-strip-arrow { transform: translateX(-3px); }
  .col-strip-arrow { transition: transform 200ms var(--ease); opacity: 0.8; }
  .col-strip > .icon:not(.col-strip-arrow) { width: 22px; height: 22px; color: var(--terra); }
  .col-strip-n { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--terra); color: var(--forest); font-size: 12.5px; line-height: 24px; text-align: center; font-variant-numeric: tabular-nums; }
  .col-strip-text { writing-mode: vertical-rl; font-size: 18px; letter-spacing: 0.06em; white-space: nowrap; }
  .order-column.catch.is-closed .col-strip-n { animation: catchIt 420ms cubic-bezier(0.34, 1.56, 0.64, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .order-layout, .order-column > * { transition: none !important; animation: none !important; }
}

/* Book page: price per hour on each room */
.room-price { font-size: 14px; color: var(--forest); font-variant-numeric: tabular-nums; }
.room[aria-pressed="true"] .room-price { color: var(--cream); }
.room:disabled .room-price { opacity: 0.6; }
