/* =====================================================================
   Green Cafe Restaurant — styles
   Palette taken from the brand: logo forest green, brass script,
   red brick and warm lamp light from the restaurant itself.
   ===================================================================== */

:root {
  --ink: #0c1813;
  --forest-900: #10211b;
  --forest-800: #152c24;
  --forest-700: #1f4a3d;   /* logo green */
  --forest-500: #2f6b57;
  --brass: #c9a46a;        /* logo script / lamp brass */
  --brass-200: #e6cfa4;
  --brick: #b5523b;
  --cream: #f5efe4;
  --paper: #faf6ef;
  --line-dark: rgba(245, 239, 228, .14);
  --line-light: rgba(16, 33, 27, .12);
  --text-dark: #17261f;
  --muted-dark: #5d6b64;
  --muted-light: rgba(245, 239, 228, .68);

  --f-display: "Frank Ruhl Libre", "Times New Roman", serif;
  --f-body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-accent: "Cormorant Garamond", "Frank Ruhl Libre", serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 72px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-dark);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--brass); color: var(--ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.2vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted-dark); max-width: 56ch; margin: 0 0 32px; font-weight: 300; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--forest-500); margin: 0 0 18px;
}
.hero .eyebrow { color: var(--brass); }
[dir="ltr"] .hero__shade { --shade-dir: 90deg; }
[lang="he"] .eyebrow, [lang="he"] .info-row dt { letter-spacing: .04em; }
.eyebrow__line { width: 34px; height: 1px; background: currentColor; display: inline-block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 500; font-size: 1rem; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .93rem; }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-200); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(201, 164, 106, .7); }
.btn--ghost { border-color: rgba(245, 239, 228, .45); color: var(--cream); backdrop-filter: blur(6px); background: rgba(12, 24, 19, .18); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(245, 239, 228, .1); transform: translateY(-2px); }
.btn--forest { background: var(--forest-700); color: var(--cream); }
.btn--forest:hover { background: var(--forest-500); transform: translateY(-2px); }
.btn--outline { border-color: var(--line-light); color: var(--text-dark); }
.btn--outline:hover { border-color: var(--forest-700); transform: translateY(-2px); }
.btn svg, .link-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
[dir="rtl"] .btn svg.btn__arrow, [dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
.btn:hover .btn__arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(4px); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--brass); font-weight: 500; border-bottom: 1px solid rgba(201, 164, 106, .4); padding-bottom: 4px; transition: border-color .3s; }
.link-arrow:hover { border-color: var(--brass); }
.link-arrow:hover svg { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  color: var(--cream);
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease), height .45s var(--ease);
}
.nav.is-solid { background: rgba(16, 33, 27, .9); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line-dark); --nav-h: 66px; height: 66px; }
.nav__inner { height: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 28px; }
.nav__logo img { height: 40px; width: auto; transition: height .45s var(--ease); }
.nav.is-solid .nav__logo img { height: 34px; }
.nav__links { display: flex; gap: 6px; margin-inline-start: auto; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: .95rem; color: rgba(245, 239, 228, .82); transition: color .3s, background-color .3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--cream); background: rgba(245, 239, 228, .08); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang {
  height: 42px; min-width: 46px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(245, 239, 228, .3); background: transparent; font-size: .85rem; font-weight: 500; letter-spacing: .06em;
  transition: border-color .3s, background-color .3s;
}
.lang:hover { border-color: var(--brass); background: rgba(201, 164, 106, .12); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(245, 239, 228, .3); background: transparent; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 45; background: var(--forest-900); color: var(--cream);
  display: flex; align-items: center; padding: 100px var(--gutter) 40px;
  opacity: 0; transition: opacity .4s var(--ease);
}
.drawer.is-open { opacity: 1; }
.drawer nav { display: grid; gap: 6px; width: 100%; }
.drawer a { font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.25; padding: 6px 0; border-bottom: 1px solid var(--line-dark); transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease), color .3s; }
.drawer.is-open a { transform: none; opacity: 1; }
.drawer.is-open a:nth-child(2) { transition-delay: .05s; }
.drawer.is-open a:nth-child(3) { transition-delay: .1s; }
.drawer.is-open a:nth-child(4) { transition-delay: .15s; }
.drawer.is-open a:nth-child(5) { transition-delay: .2s; }
.drawer a:hover { color: var(--brass); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh; color: var(--cream);
  display: grid; grid-template-rows: 1fr; overflow: hidden; background: var(--ink);
}
@supports (height: 100svh) { .hero { min-height: 100svh; } }
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  transform: scale(1.14); animation: kenburns 14s var(--ease) forwards;
  filter: saturate(1.05) contrast(1.02);
}
@keyframes kenburns { to { transform: scale(1.02); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(var(--shade-dir, 270deg), rgba(12, 24, 19, .72) 0%, rgba(12, 24, 19, .35) 45%, rgba(12, 24, 19, 0) 75%),
    radial-gradient(120% 90% at 50% 110%, rgba(12, 24, 19, .95) 15%, rgba(12, 24, 19, 0) 60%),
    linear-gradient(180deg, rgba(12, 24, 19, .62) 0%, rgba(12, 24, 19, .28) 30%, rgba(12, 24, 19, .55) 70%, rgba(12, 24, 19, .92) 100%);
}
.hero__shade::after { /* film grain */
  content: ""; position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__content { position: relative; align-self: end; padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(56px, 11vh, 110px); }
.hero__title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(3rem, 9.2vw, 8.2rem); line-height: .98; letter-spacing: -.02em;
  margin: 0 0 26px; max-width: 14ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > * { display: inline-block; }
.hero__title em { font-style: normal; color: var(--brass); }
[lang="en"] .hero__title em { font-family: var(--f-accent); font-style: italic; font-weight: 500; }
.hero__lead { max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 300; color: rgba(245, 239, 228, .85); margin: 0 0 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }


/* hero entrance */
.reveal-hero { opacity: 0; transform: translateY(30px); animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
.hero__title .reveal-hero { transform: translateY(105%); opacity: 1; animation-name: rise-line; animation-duration: 1.2s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-line { to { transform: none; } }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee { background: var(--forest-700); color: var(--cream); overflow: hidden; padding: 18px 0; border-block: 1px solid rgba(201, 164, 106, .25); }
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(1.25rem, 2.4vw, 1.8rem); padding-inline: 26px; white-space: nowrap; display: inline-flex; align-items: center; gap: 52px; }
.marquee__track span::after { content: "✦"; color: var(--brass); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* =====================================================================
   MENU
   ===================================================================== */
.menu { padding-bottom: clamp(60px, 8vw, 110px); }
.menu__head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.menu__head .lead { margin-inline: auto; }

.menu__bar { position: sticky; top: 66px; z-index: 30; background: rgba(250, 246, 239, .92); backdrop-filter: blur(14px); border-block: 1px solid var(--line-light); }
.menu__bar-inner { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.search { position: relative; flex: none; }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; fill: none; stroke: var(--muted-dark); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 220px; height: 44px; border-radius: 999px; border: 1px solid var(--line-light); background: #fff;
  padding-inline: 42px 16px; font: inherit; font-size: .95rem; color: var(--text-dark); transition: border-color .3s, box-shadow .3s, width .4s var(--ease);
}
.search input:focus { outline: none; border-color: var(--forest-500); box-shadow: 0 0 0 4px rgba(47, 107, 87, .14); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding: 2px; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; background: transparent;
  font-size: .93rem; color: var(--muted-dark); white-space: nowrap; transition: color .3s, background-color .3s, border-color .3s;
}
.tab:first-child { margin-inline-start: 18px; }
.tab:last-child { margin-inline-end: 18px; }
.tab:hover { color: var(--text-dark); border-color: var(--line-light); }
.tab.is-active { background: var(--forest-700); color: var(--cream); }

.menu__body { padding-top: 30px; min-height: 70vh; }
.cat { padding-top: clamp(50px, 6vw, 80px); }
.cat[hidden] { display: none; }
.cat__head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line-light); }
.cat__num { font-family: var(--f-accent); font-style: italic; font-size: 1.4rem; color: var(--brass); line-height: 1; padding-bottom: 6px; }
.cat__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1; margin: 0; }
.cat__alt { font-family: var(--f-accent); font-style: italic; font-size: 1.25rem; color: var(--muted-dark); padding-bottom: 4px; }
[lang="en"] .cat__alt { font-family: var(--f-display); font-style: normal; font-size: 1.1rem; }

.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 40px; list-style: none; padding: 0; margin: 0; }
.item {
  display: flex; align-items: center; gap: 10px;
  margin-inline: -12px; padding-inline-end: 12px; border-radius: 16px;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.item:hover { background: #fff; box-shadow: 0 18px 40px -26px rgba(16, 33, 27, .35); }
.item__main {
  flex: 1; min-width: 0; display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center;
  padding: 12px; border: 0; background: transparent; text-align: start; border-radius: 16px;
}
.item__img { width: 112px; aspect-ratio: 213 / 184; border-radius: 12px; overflow: hidden; background: var(--cream); position: relative; }
.item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.item:hover .item__img img { transform: scale(1.08); }
.item__badge {
  position: absolute; top: 6px; inset-inline-start: 6px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--brick); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .35); animation: pop .4s var(--ease);
}
.item__add {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--forest-700); background: transparent; color: var(--forest-700);
  display: grid; place-items: center; transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.item__add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.item__add:hover, .item.in-cart .item__add { background: var(--forest-700); color: var(--cream); }
.item__add:active { transform: scale(.88); }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.item__body { min-width: 0; }
.item__row { display: flex; align-items: baseline; gap: 12px; }
.item__name { font-family: var(--f-display); font-weight: 500; font-size: 1.22rem; line-height: 1.25; margin: 0; }
.item__dots { flex: 1; min-width: 20px; border-bottom: 1.5px dotted rgba(16, 33, 27, .28); translate: 0 -5px; }
.item__price { font-weight: 600; font-size: 1.05rem; color: var(--forest-700); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item__price small { font-weight: 400; font-size: .85em; margin-inline-start: 2px; }
.item__alt { display: block; font-size: .82rem; color: var(--muted-dark); letter-spacing: .02em; margin-top: 2px; }

.menu__empty { text-align: center; padding: 60px 0 20px; color: var(--muted-dark); font-size: 1.1rem; }
.menu__note { margin-top: 56px; font-size: .88rem; color: var(--muted-dark); text-align: center; }

/* =====================================================================
   VISIT
   ===================================================================== */
.visit { background: var(--cream); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.visit__info { display: grid; gap: 0; margin-bottom: 32px; border-top: 1px solid var(--line-light); }
.info-row { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.info-row dt { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--forest-500); padding-top: 4px; }
.info-row dd { margin: 0; font-size: 1.1rem; }
.info-row dd a { border-bottom: 1px solid var(--line-light); transition: border-color .3s; }
.info-row dd a:hover { border-color: var(--forest-700); }
.info-note { display: block; font-size: .92rem; color: var(--muted-dark); margin-top: 4px; }
.hours { display: grid; gap: 4px; }
.hours span { display: flex; justify-content: space-between; gap: 20px; max-width: 300px; }
.visit__pending { border: 1px dashed rgba(16, 33, 27, .25); border-radius: 14px; padding: 18px 20px; color: var(--muted-dark); font-size: .95rem; margin-top: 24px; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1.1; box-shadow: 0 40px 80px -40px rgba(16, 33, 27, .5); }
.visit__media img { width: 100%; height: 100%; object-fit: cover; }
.visit__map { position: absolute; inset: 0; }
.visit__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--ink); color: var(--muted-light); padding: 64px 0 40px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.footer__logo { height: 44px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; }
.footer__nav a { transition: color .3s; }
.footer__nav a:hover { color: var(--brass); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: border-color .3s, color .3s; }
.footer__social a:hover { border-color: var(--brass); color: var(--brass); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__copy { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .85rem; text-align: center; }

/* WhatsApp */
.wa { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .35s var(--ease); }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; fill: currentColor; }
.wa[hidden] { display: none; }

@keyframes fade { from { opacity: 0; } }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__actions { margin-inline-start: auto; }
  .burger { display: block; }
  .items { gap: 4px 28px; }
}

@media (max-width: 860px) {
  .visit__grid { grid-template-columns: 1fr; }
  .items { grid-template-columns: 1fr; }
  .menu__bar-inner { flex-direction: column; align-items: stretch; gap: 10px; padding-block: 10px; }
  .search input { width: 100%; }
  .tabs { margin-inline: calc(var(--gutter) * -1); }
  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .visit__media { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  :root { --nav-h: 64px; }
  .nav__cta { display: none; }
  .nav__logo img { height: 32px; }
  .hero__title { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .item__main { grid-template-columns: 84px 1fr; gap: 14px; padding: 10px; }
  .item__add { width: 40px; height: 40px; }
  .item__img { width: 84px; }
  .item__name { font-size: 1.08rem; }
  .cat__head { grid-template-columns: auto 1fr; }
  .cat__alt { grid-column: 1 / -1; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-hero { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
  .marquee__track { animation: none; }
}

/* =====================================================================
   PERSONALITY — handwriting accents, stamp, stickers, notes
   ===================================================================== */
:root { --f-hand: "Amatic SC", "Frank Ruhl Libre", cursive; }
::selection { background: var(--brass); color: var(--ink); }

.hand { font-family: var(--f-hand); font-weight: 700; font-size: 1.32em; line-height: .8; color: var(--brick); letter-spacing: 0; display: inline-block; transform: rotate(-3deg); }
.footer .hand { color: var(--brass); }

.hero__title .line--accent { padding-bottom: .32em; margin-bottom: -.2em; }
.hero__title em { position: relative; }
.squiggle { position: absolute; inset-inline: 0; bottom: -.16em; width: 100%; height: .3em; overflow: visible; }
.squiggle path { fill: none; stroke: var(--brick); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.1s var(--ease) 1.25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.stamp {
  position: absolute; z-index: 2; bottom: clamp(28px, 6vh, 60px); inset-inline-end: var(--gutter);
  width: 136px; height: 136px; border-radius: 50%; display: grid; place-items: center; color: var(--cream);
}
.stamp__ring { direction: ltr; unicode-bidi: isolate; position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.stamp__ring text { fill: currentColor; font-family: var(--f-body); font-size: 15.5px; font-weight: 600; letter-spacing: 2px; }
.stamp__arrow { position: relative; width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--brass); color: var(--ink); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.stamp:hover .stamp__arrow { transform: translateY(5px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* footer sign-off */
.footer__big { font-family: var(--f-display); font-weight: 500; color: var(--cream); font-size: clamp(2.6rem, 8vw, 6.4rem); line-height: 1; margin: 0 0 56px; letter-spacing: -.02em; }
.footer__inner { padding-top: 40px; border-top: 1px solid var(--line-dark); }

/* =====================================================================
   CART BUTTONS
   ===================================================================== */
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(245, 239, 228, .3); background: transparent; display: grid; place-items: center; transition: border-color .3s, background-color .3s; }
.cart-btn:hover { border-color: var(--brass); background: rgba(201, 164, 106, .12); }
.cart-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.cart-btn__count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--brick); color: #fff; font-size: .74rem; font-weight: 700; display: grid; place-items: center; }
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.95); } }

.cartbar {
  position: fixed; z-index: 40; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 8px 10px; padding-inline-end: 24px;
  border: 0; border-radius: 999px; background: var(--forest-700); color: var(--cream);
  box-shadow: 0 20px 40px -14px rgba(12, 24, 19, .65), 0 0 0 1px rgba(201, 164, 106, .35) inset;
  font-weight: 500; animation: slideup .5s var(--ease); transition: background-color .3s;
  width: max-content; max-width: calc(100vw - 32px);
}
.cartbar.bump { animation: bump .5s var(--ease); }
.cartbar:hover { background: var(--forest-500); }
.cartbar__count { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; background: var(--brass); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.cartbar__total { font-weight: 700; padding-inline-start: 14px; border-inline-start: 1px solid rgba(245, 239, 228, .25); }
body.has-dialog .cartbar { display: none; }
@keyframes slideup { from { translate: -50% 120%; } }

/* =====================================================================
   DIALOG BASE
   ===================================================================== */
body.has-dialog { overflow: hidden; }
.sheet, .cart { border: 0; padding: 0; background: transparent; color: var(--text-dark); max-width: 100vw; max-height: 100dvh; }
.sheet::backdrop, .cart::backdrop { background: rgba(8, 16, 13, .6); backdrop-filter: blur(4px); animation: fade .3s var(--ease); }
.sheet.is-closing::backdrop, .cart.is-closing::backdrop { opacity: 0; transition: opacity .26s; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-light); background: #fff; display: grid; place-items: center; transition: border-color .3s, transform .3s var(--ease); flex: none; }
.icon-btn:hover { border-color: var(--forest-700); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .cart__back svg { transform: scaleX(-1); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; pointer-events: none; }

/* dish sheet */
.sheet { width: min(900px, calc(100vw - 32px)); margin: auto; }
.sheet__panel { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper); border-radius: 24px; overflow: hidden; animation: sheetin .45s var(--ease); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.sheet.is-closing .sheet__panel { animation: sheetout .26s var(--ease) forwards; }
@keyframes sheetin { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes sheetout { to { opacity: 0; transform: translateY(18px) scale(.98); } }
.sheet__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; }
.dish-sheet__img { background: var(--forest-900); min-height: 100%; display: grid; place-items: center; }
.dish-sheet__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.dish-sheet__body { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.dish-sheet__cat { margin: 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--forest-500); font-weight: 500; }
[lang="he"] .dish-sheet__cat { letter-spacing: .04em; }
.dish-sheet__name { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.08; margin: 6px 0 0; }
.dish-sheet__alt { margin: 4px 0 18px; color: var(--muted-dark); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.size { flex: 1 1 80px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line-light); background: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: border-color .25s, background-color .25s; }
.size b { font-weight: 600; }
.size span { font-size: .85rem; color: var(--muted-dark); }
.size.is-on { border-color: var(--forest-700); background: rgba(31, 74, 61, .07); }
.dish-sheet__row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.dish-sheet__add { flex: 1; justify-content: space-between; }
.dish-sheet__sum { font-weight: 700; }
.qty { display: inline-flex; align-items: center; height: 54px; border-radius: 999px; border: 1.5px solid var(--line-light); background: #fff; }
.qty button { width: 46px; height: 100%; border: 0; background: transparent; font-size: 1.35rem; line-height: 1; color: var(--forest-700); border-radius: 999px; transition: background-color .2s; }
.qty button:hover { background: rgba(31, 74, 61, .08); }
.qty output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty--sm { height: 38px; }
.qty--sm button { width: 34px; font-size: 1.1rem; }

/* cart drawer */
.cart { width: min(460px, 100vw); height: 100dvh; margin: 0; margin-inline-start: auto; }
.cart__panel { height: 100%; display: flex; flex-direction: column; background: var(--paper); animation: drawerin .45s var(--ease); box-shadow: 0 0 60px rgba(0, 0, 0, .35); }
[dir="rtl"] .cart__panel { animation-name: drawerin-rtl; }
.cart.is-closing .cart__panel { animation: drawerout .26s var(--ease) forwards; }
[dir="rtl"] .cart.is-closing .cart__panel { animation-name: drawerout-rtl; }
@keyframes drawerin { from { transform: translateX(100%); } }
@keyframes drawerin-rtl { from { transform: translateX(-100%); } }
@keyframes drawerout { to { transform: translateX(100%); } }
@keyframes drawerout-rtl { to { transform: translateX(-100%); } }
.cart__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-light); }
.cart__title { flex: 1; margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.7rem; line-height: 1; }
.cart__step { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; }
.cart__scroll { flex: 1; overflow-y: auto; padding: 18px 20px 24px; overscroll-behavior: contain; }
.cart__foot { padding: 16px 20px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-light); background: #fff; display: grid; gap: 12px; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.cart__total strong { font-size: 1.45rem; font-family: var(--f-display); }

.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "img body total" "img qty qty"; gap: 4px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-light); animation: fade .35s var(--ease); }
.line img { grid-area: img; width: 64px; height: 56px; object-fit: cover; border-radius: 10px; }
.line__body { grid-area: body; min-width: 0; }
.line__name { margin: 0; font-weight: 500; line-height: 1.3; }
.line__unit { margin: 0; font-size: .85rem; color: var(--muted-dark); }
.line__total { grid-area: total; margin: 0; font-weight: 700; white-space: nowrap; }
.line .qty { grid-area: qty; justify-self: start; }
.cart__empty { text-align: center; padding: 60px 10px; color: var(--muted-dark); }
.cart__empty-big { font-family: var(--f-hand); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--brick); margin: 0 0 8px; transform: rotate(-3deg); }
.cart__empty .btn { margin-top: 18px; }

/* checkout form */
.field-group { border: 0; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; min-width: 0; }
.field-group legend { font-family: var(--f-display); font-size: 1.2rem; font-weight: 500; margin-bottom: 10px; padding: 0; }
.field { display: grid; gap: 6px; font-size: .88rem; color: var(--muted-dark); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text-dark); background: #fff;
  border: 1.5px solid var(--line-light); border-radius: 12px; padding: 12px 14px; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 60px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest-500); box-shadow: 0 0 0 4px rgba(47, 107, 87, .14); }
.field input[aria-invalid="true"] { border-color: var(--brick); box-shadow: 0 0 0 4px rgba(181, 82, 59, .14); }
.field-row { display: flex; gap: 10px; }
.field--grow { flex: 1; min-width: 0; }
.field--sm { width: 32%; flex: none; }
.cart form > .cart__scroll > .field { margin-bottom: 22px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(16, 33, 27, .06); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg span { display: block; text-align: center; padding: 11px 8px; border-radius: 12px; font-weight: 500; color: var(--muted-dark); transition: background-color .25s, color .25s, box-shadow .25s; pointer-events: none; }
.seg input:checked + span { background: #fff; color: var(--forest-700); box-shadow: 0 6px 14px -8px rgba(16, 33, 27, .4); }
.seg input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.pay { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--forest-700); background: rgba(31, 74, 61, .06); }
.pay input { accent-color: var(--forest-700); width: 18px; height: 18px; margin: 0; }
.pay__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--forest-700); stroke-width: 1.5; stroke-linejoin: round; display: block; }
.pay__text { display: grid; }
.pay__text small { color: var(--muted-dark); font-size: .85rem; }
.form-error { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(181, 82, 59, .1); color: #8f3a27; font-size: .92rem; }

/* done */
.cart__done .cart__scroll { text-align: center; padding-top: 40px; }
.done__badge { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--forest-700); display: grid; place-items: center; animation: pop .6s var(--ease); }
.done__badge svg { width: 40px; height: 40px; fill: none; stroke: var(--brass); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s var(--ease) .3s forwards; }
.done__title { font-family: var(--f-display); font-weight: 500; font-size: 2rem; margin: 0 0 8px; }
.done__text { color: var(--muted-dark); margin: 0 auto 22px; max-width: 32ch; }
.done__id { display: block; font-size: 1.6rem; color: var(--text-dark); letter-spacing: .08em; margin-top: 6px; }
.done__summary { text-align: start; background: #fff; border-radius: 16px; padding: 14px 18px; border: 1px solid var(--line-light); }
.done__lines { list-style: none; margin: 0; padding: 0; }
.done__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .95rem; }
.done__total { display: flex; justify-content: space-between; margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--line-light); }
.done__meta { margin: 6px 0 0; font-size: .85rem; color: var(--muted-dark); }

/* toast */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 92px; translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--cream); padding: 12px 22px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); transition: opacity .3s var(--ease), translate .4s var(--ease); white-space: nowrap;
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* responsive for the new parts */
@media (max-width: 860px) {
  .sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; }
  .sheet__panel { grid-template-columns: 1fr; border-radius: 24px 24px 0 0; max-height: 92dvh; overflow-y: auto; animation-name: sheetup; }
  .sheet.is-closing .sheet__panel { animation-name: sheetdown; }
  .dish-sheet__img img { aspect-ratio: 4 / 3; max-height: 40dvh; }
  .sheet__panel { display: flex; flex-direction: column; }
  .dish-sheet__body { padding: 22px 20px max(22px, env(safe-area-inset-bottom)); }
}
@keyframes sheetup { from { transform: translateY(100%); } }
@keyframes sheetdown { to { transform: translateY(100%); } }
@media (max-width: 560px) {
  .stamp { width: 104px; height: 104px; bottom: 22px; }
  .stamp__ring text { font-size: 17px; }
  .stamp__arrow { width: 44px; height: 44px; padding: 11px; }
  .hero__content { padding-bottom: 140px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .footer__big { margin-bottom: 36px; }
  .nav__actions { gap: 8px; }
  .lang, .cart-btn, .burger { width: 42px; height: 42px; min-width: 42px; padding: 0; }
}

/* lift WhatsApp button above the cart bar */
.wa { transition: transform .35s var(--ease), bottom .35s var(--ease); }
body.has-cart .wa { bottom: 90px; }
body.has-dialog .wa { display: none; }

/* payment methods: selectable cards */
.pay { cursor: pointer; border-color: var(--line-light); background: #fff; transition: border-color .25s, background-color .25s, opacity .25s; }
.pay:has(input:checked) { border-color: var(--forest-700); background: rgba(31, 74, 61, .06); }
.pay.is-disabled { cursor: not-allowed; opacity: .55; }
.pay__icon--visa svg { width: 44px; height: 30px; stroke: none; }
.pay__icon--visa rect { fill: #1a1f71; }
.pay__icon--visa text { fill: #fff; font-family: var(--f-body); font-weight: 700; font-style: italic; font-size: 13px; letter-spacing: .5px; }
.field-group .pay + .pay { margin-top: 0; }

/* keep the hero stamp clear of the floating WhatsApp button */
.stamp { bottom: 100px; }
@media (max-width: 560px) {
  .stamp { bottom: 92px; }
  .hero__content { padding-bottom: 214px; }
}
@media (max-width: 1080px) {
  .stamp { display: none; }
}
.wa { transition: transform .35s var(--ease), bottom .35s var(--ease), opacity .3s; }
body.in-menu .wa { opacity: 0; transform: scale(.6); pointer-events: none; }

/* =====================================================================
   LANGUAGE PICKER
   ===================================================================== */
.langs { position: relative; }
.lang { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.lang svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.langs__menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; min-width: 168px;
  display: grid; gap: 2px; padding: 6px; border-radius: 16px;
  background: var(--forest-900); border: 1px solid rgba(201, 164, 106, .3);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .6); animation: fade .2s var(--ease);
}
.langs__menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  padding: 11px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--cream);
  font-size: 1rem; text-align: start; transition: background-color .2s, color .2s;
}
.langs__menu button:hover { background: rgba(245, 239, 228, .08); }
.langs__menu button[aria-checked="true"] { color: var(--brass); }
.langs__menu button[aria-checked="true"]::after { content: "✓"; font-size: .9em; }
.langs__menu button[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--f-body); }
.langs__menu button[lang="he"] { font-family: "Heebo", var(--f-body); }
@media (max-width: 560px) {
  .lang svg { display: none; }
}

/* =====================================================================
   ARABIC — fonts and typography (right-to-left like Hebrew)
   ===================================================================== */
html[lang="ar"] {
  --f-display: "Amiri", "Frank Ruhl Libre", serif;
  --f-body: "IBM Plex Sans Arabic", "Heebo", system-ui, sans-serif;
  --f-accent: "Amiri", "Frank Ruhl Libre", serif;
  --f-hand: "Lalezar", "IBM Plex Sans Arabic", sans-serif;
}
/* letter-spacing breaks the joined Arabic letters */
html[lang="ar"] *:not(text) { letter-spacing: 0 !important; }
html[lang="ar"] .hero__title { font-weight: 700; line-height: 1.25; }
html[lang="ar"] .hero__title .line { padding-block: .06em .18em; }
html[lang="ar"] .h2, html[lang="ar"] .cat__title, html[lang="ar"] .dish-sheet__name,
html[lang="ar"] .done__title, html[lang="ar"] .footer__big { font-weight: 700; line-height: 1.3; }
html[lang="ar"] .item__name { font-weight: 700; line-height: 1.45; }
html[lang="ar"] .cart__title { font-weight: 700; line-height: 1.3; }
html[lang="ar"] .hand { font-weight: 400; font-size: 1.05em; line-height: 1.15; }
html[lang="ar"] .cart__empty-big { font-weight: 400; font-size: 2.6rem; }
/* the small secondary name is Hebrew: show it in Hebrew fonts, upright */
html[lang="ar"] .cat__alt { font-family: "Frank Ruhl Libre", serif; font-style: normal; font-size: 1.1rem; }
