/* בלי · הפיצה של הראל — handmade personal menu */
@font-face { font-family: Wordmark; src: url('./wordmark.ttf') format('truetype'); font-display: swap; }

:root {
  --paper: #fbf5ea;
  --paper-deep: #f6eddc;
  --ink: #2e2419;
  --ink-soft: #5d4d3d;
  --green: #1d7a46;
  --red: #c0342f;
  --gold: #c98a2e;
  --line: #e2d3ba;
  --font-display: 'Frank Ruhl Libre', 'David Libre', serif;
  --font-text: 'Assistant', 'Heebo', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

.flag-line {
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0 33.4%, #ffffff 33.4% 66.7%, var(--red) 66.7% 100%);
}

main { max-width: 640px; margin: 0 auto; padding: 0 18px 40px; }
section { scroll-margin-top: 60px; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: center; gap: 2px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 11px; border-radius: 8px;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--red); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 26px 0 6px; }
.hero-ornament { color: var(--gold); font-size: 10px; letter-spacing: 10px; margin: 0 0 6px; }
.brand-word {
  font-family: var(--font-display);
  font-size: clamp(64px, 17vw, 110px);
  font-weight: 700; line-height: 1.1; color: var(--ink);
  letter-spacing: 1px; margin: 4px 0 8px;
}
.brand-intro { font-size: 16px; color: var(--ink-soft); max-width: 46ch; margin: 0 auto 20px; }
.hero-photo {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 42%;
  border: 6px solid #fffdf6; border-radius: 8px;
  box-shadow: 0 10px 26px rgba(84, 56, 24, 0.16);
}

/* ---------- Sections ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: 27px; font-weight: 700; text-align: center;
  color: var(--ink);
  margin: 46px 0 18px;
}
.section-he { font-weight: 400; font-size: 20px; color: var(--ink-soft); }
.section-title::after {
  content: ''; display: block; width: 64px; height: 3px; margin: 10px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 0 33%, #ffffff 33% 66%, var(--red) 66% 100%);
}

/* ---------- Dishes: open rows, printed-menu feel ---------- */
.dish-list { display: flex; flex-direction: column; }
.dish { padding: 22px 0 20px; text-align: center; }
.dish + .dish { border-top: 1px dashed var(--line); }
.dish-name {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 500; line-height: 1.35; margin: 0;
}
.dish-it {
  display: block; font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 15px; color: var(--red); margin-top: 1px;
}
.dish-detail { margin: 8px auto 0; max-width: 52ch; font-size: 15.5px; color: var(--ink-soft); }
.dish-img {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border: 5px solid #fffdf6; border-radius: 8px;
  box-shadow: 0 8px 22px rgba(84, 56, 24, 0.14);
  margin: 0 auto 14px;
}

/* ---------- About ---------- */
.about-note {
  max-width: 40em; margin: 14px auto 0;
  padding-right: 16px; border-right: 3px solid var(--gold);
  font-size: 16px; line-height: 1.9; color: var(--ink);
  text-align: right;
}
.dough-note { border-right-color: var(--green); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery-img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  border: 5px solid #fffdf6; border-radius: 8px;
  box-shadow: 0 8px 20px rgba(84, 56, 24, 0.13);
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Chat ---------- */
.chat-shell {
  display: flex; flex-direction: column; height: min(58vh, 400px); overflow: hidden;
  border: 1px solid var(--line); border-top: 5px solid var(--green);
  border-radius: 12px; background: #fffdf6;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 18px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-message {
  max-width: 82%; padding: 10px 13px; border-radius: 16px;
  font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere;
}
.chat-message.from-user { margin-left: auto; background: #dcefe2; border-bottom-left-radius: 5px; }
.chat-message.from-bot { margin-right: auto; background: #fff; border: 1px solid var(--line); border-bottom-right-radius: 5px; }
.chat-message.typing { display: flex; gap: 5px; align-items: center; min-height: 36px; }
.chat-message.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); opacity: 0.45; animation: chat-typing 1s infinite ease-in-out; }
.chat-message.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-message.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-typing { 50% { opacity: 1; transform: translateY(-3px); } }
.chat-status {
  margin: 0; padding: 6px 14px; font-size: 13px; color: var(--red);
  border-top: 1px dashed var(--line); text-align: center;
}
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fffdf6; }
.chat-form input {
  flex: 1; min-width: 0;
  border: 1px solid #d8c8ad; border-radius: 999px; padding: 12px 16px;
  font-family: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.chat-form input:focus { outline: 2px solid rgba(29,122,70,0.45); outline-offset: 1px; }
.chat-form button {
  border: 0; border-radius: 999px; padding: 0 20px;
  background: var(--green); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.chat-form button:disabled { opacity: 0.45; cursor: default; }

/* ---------- Contact ---------- */
.contact-links { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }
.contact-btn {
  display: inline-block; padding: 10px 28px; border-radius: 999px;
  border: 2px solid; text-decoration: none; font-size: 15px; font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.contact-wa { border-color: var(--green); color: var(--green); }
.contact-wa:hover, .contact-wa:focus-visible { background: var(--green); color: #fff; }
.contact-ig { border-color: var(--red); color: var(--red); }
.contact-ig:hover, .contact-ig:focus-visible { background: var(--red); color: #fff; }

/* ---------- Closing ---------- */
.closing {
  margin-top: 48px; padding: 26px 22px; border-radius: 12px;
  background: #173f35; color: #f8efdc;
  text-align: center; font-size: 15.5px; line-height: 1.9;
}
.closing p { margin: 0; }
.closing::before {
  content: ''; display: block; width: 72px; height: 4px; margin: 0 auto 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 0 33%, #ffffff 33% 66%, var(--red) 66% 100%);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.chat-message a { color: var(--green); text-decoration: underline; }
.signoff { text-align: center; margin: 26px auto 30px; font-size: 13.5px; color: var(--ink-soft); letter-spacing: 0.4px; }
