:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #faf7f2;
  --ink: #161413;
  --ink-soft: #4a4744;
  --ink-muted: #8a8580;
  --rule: #e7e1d6;
  --rule-strong: #d4ccbd;
  --accent: #8a6a3a;
  --accent-soft: #c2a576;
  --accent-strong: #6f5128;
  --success: #2f8a4a;
  --on-dark: #ffffff;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --serif-he: "Frank Ruhl Libre", "Cormorant Garamond", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.02);
  --shadow-md: 0 2px 6px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);

  --max: 960px;
  --header-h: 56px;
  --tabs-h: 52px;
}

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

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--tabs-h) + 8px); }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom);
}

html[lang="he"] body {
  font-family: var(--serif-he);
}

img { max-width: 100%; height: auto; display: block; }

button { font: inherit; }

/* ==================== App header ==================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.app-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { text-decoration: none; color: var(--ink); }

.brand-mark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.005em;
}

html[lang="he"] .brand-mark {
  font-family: var(--serif-he);
  font-style: normal;
  font-weight: 700;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 0;
}

.lang-btn {
  background: transparent;
  border: 0;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  cursor: pointer;
  border-radius: var(--r-pill);
  min-width: 36px;
  text-transform: uppercase;
  transition: color 0.15s, background 0.15s;
}

.lang-btn:hover { color: var(--ink); }

.lang-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-dark);
}

/* ==================== Hero ==================== */

.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0e0e0e;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("images/hero-table.jpg");
  background-size: cover;
  background-position: center 30%;
  filter: saturate(0.65) brightness(0.55);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.50) 60%, rgba(14,14,14,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  padding: 28px 20px 32px;
  color: var(--on-dark);
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--on-dark);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 18px;
}

.status-badge[data-state="closed"] .status-dot { background: #d44; }
.status-badge[data-state="closed"] .status-detail { display: none; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(47, 138, 74, 0.55);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 138, 74, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(47, 138, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 138, 74, 0); }
}

.status-detail {
  opacity: 0.8;
  font-weight: 400;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(48px, 10vw, 88px);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

html[lang="he"] .hero-name {
  font-family: var(--serif-he);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-tagline {
  font-size: 15px;
  margin: 12px 0 0;
  opacity: 0.92;
  letter-spacing: 0.02em;
}

.quick-info {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--on-dark);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.info-chip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 22px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--on-dark);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover { background: #fff; box-shadow: var(--shadow-lg); }

.btn-secondary {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.30);
  color: var(--on-dark);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-secondary:hover { background: rgba(255,255,255,0.20); }

/* ==================== Sticky tabs ==================== */

.tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  height: var(--tabs-h);
  background: rgba(247, 244, 239, 0.96);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.tabs-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs-inner::-webkit-scrollbar { display: none; }

.tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.tab:hover { background: var(--surface); color: var(--ink); }

.tab.active {
  background: var(--ink);
  color: var(--on-dark);
}

/* ==================== Menu / Cards ==================== */

.menu {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 96px;
}

.category {
  margin-top: 28px;
  scroll-margin-top: calc(var(--header-h) + var(--tabs-h) + 8px);
}

.category:first-child { margin-top: 8px; }

.category-head {
  padding: 8px 4px 14px;
}

.category-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  margin: 0;
  letter-spacing: 0.005em;
  color: var(--ink);
}

html[lang="he"] .category-title {
  font-family: var(--serif-he);
  font-style: normal;
  font-weight: 700;
}

.category-kicker {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
  margin: 4px 0 0;
  letter-spacing: 0.02em;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.card {
  display: flex;
  gap: 14px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--rule-strong);
}

.card-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-2);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb-mono {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 100%);
}

.thumb-initial {
  color: var(--on-dark);
  font-family: var(--serif);
  font-style: italic;
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}

.card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.card-name {
  font-size: 15.5px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.card-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 2px 0 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-strong);
  margin: 6px 0 0;
  letter-spacing: 0.005em;
}

.menu-disclaimer {
  margin: 32px 4px 0;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r-md);
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.55;
}

/* ==================== Practical info ==================== */

.practical {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.practical-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 16px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.practical-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

.practical-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}

.practical-line strong {
  font-weight: 600;
  font-size: 15px;
}

.practical-link {
  color: var(--accent-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.15s, border-color 0.15s;
  display: inline-block;
  margin-top: 8px;
  padding-bottom: 1px;
}

.practical-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-soft);
}

.practical-link-strong { font-weight: 600; font-size: 15px; }

.hours-list { margin: 0; padding: 0; }

.hours-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}

.hours-list > div:last-child { border-bottom: 0; }

.hours-list dt {
  font-weight: 500;
  color: var(--ink);
}

.hours-list dd {
  margin: 0;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.hours-list .closed dd { color: #b44; font-weight: 500; }

.map {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 36px;
}

.map iframe {
  width: 100%;
  height: 240px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  display: block;
}

/* ==================== Footer ==================== */

.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--rule);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  margin: 0;
  color: var(--ink);
}

html[lang="he"] .footer-brand {
  font-family: var(--serif-he);
  font-style: normal;
  font-weight: 700;
}

.footer-copy {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}

/* ==================== Floating reserve CTA ==================== */

.reserve-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--on-dark);
  padding: 14px 22px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}

.reserve-fab:hover { background: #2a2421; box-shadow: 0 16px 40px rgba(0,0,0,0.18); }
.reserve-fab:active { transform: scale(0.97); }
.reserve-fab svg { width: 18px; height: 18px; }

/* RTL: flip the FAB to bottom-left */
html[dir="rtl"] .reserve-fab { right: auto; left: 20px; }

/* ==================== Responsive ==================== */

@media (max-width: 540px) {
  .hero { min-height: 60vh; }
  .hero-content { padding: 24px 16px 28px; }
  .hero-name { font-size: clamp(52px, 14vw, 80px); }
  .info-chip { font-size: 12px; padding: 5px 10px; }
  .btn { padding: 12px 18px; }
  .menu { padding: 20px 14px 110px; }
  .category-title { font-size: 24px; }
  .card { padding: 10px; gap: 12px; }
  .card-thumb { width: 72px; height: 72px; }
  .card-name { font-size: 15px; }
  .card-desc { font-size: 12.5px; }
  .practical-inner { padding: 28px 14px 20px; gap: 24px; }
  .map iframe { height: 200px; }
  .reserve-fab { bottom: 14px; right: 14px; padding: 13px 18px; font-size: 14px; }
  html[dir="rtl"] .reserve-fab { right: auto; left: 14px; }
}

@media (min-width: 720px) {
  .category-head { padding-bottom: 18px; }
  .card { padding: 14px; gap: 16px; }
  .card-thumb { width: 96px; height: 96px; }
  .card-name { font-size: 16.5px; }
  .card-desc { font-size: 13.5px; -webkit-line-clamp: 3; }
}

@media (min-width: 960px) {
  .hero { min-height: 56vh; }
}
