:root {
  --green: #011716;
  --green-2: #04221f;
  --green-3: #0a302c;
  --gold: #b87932;
  --gold-light: #d79a52;
  --cream: #f4e9d6;
  --muted: #b9b3a5;
  --line: rgba(184, 121, 50, .28);
  --radius: 14px;
  --header-h: 76px;
  --display: "Secular One", "Heebo", system-ui, sans-serif;
  --latin: "Bebas Neue", "Secular One", sans-serif;
  --body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--green);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0; }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--gold); }

/* ---------- header ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  padding: env(safe-area-inset-top, 0px) clamp(16px, 4vw, 48px) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: background .3s, box-shadow .3s;
}
.topbar.scrolled { background: rgba(1, 23, 22, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: .9; direction: ltr; align-items: flex-start; }
.logo-main { font-family: var(--latin); font-size: 34px; letter-spacing: .08em; color: var(--cream); }
.logo-sub { font-family: var(--latin); font-size: 14px; letter-spacing: .42em; color: var(--gold); }
.nav { display: flex; gap: clamp(10px, 2vw, 28px); }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--cream);
  padding: 6px 2px; position: relative; opacity: .85; transition: opacity .2s, color .2s;
}
.nav a::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover, .nav a.active { opacity: 1; color: var(--gold-light); }
.nav a.active::after { transform: scaleX(1); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--cream); margin: 6px 0; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); inset-inline: 0; bottom: 0;
    flex-direction: column; gap: 0; padding: 24px clamp(16px, 4vw, 48px);
    background: rgba(1, 23, 22, .98);
    transform: translateY(-110%); transition: transform .35s ease; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { font-family: var(--display); font-size: 26px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .topbar.menu-open { background: var(--green); }
}

/* ---------- section scaffolding ---------- */
.section { padding: clamp(72px, 10vw, 128px) clamp(16px, 5vw, 64px); position: relative; }
.section.alt { background: var(--green-2); }
.wrap { max-width: 1200px; margin: 0 auto; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .12em; margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.sec-head h2 { font-size: clamp(38px, 6vw, 64px); }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 2px solid var(--gold); cursor: pointer; transition: all .2s; font-family: var(--body);
}
.btn-gold { background: var(--gold); color: var(--green); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--cream); }
.btn-ghost:hover { background: rgba(184, 121, 50, .15); }

/* ---------- hero / home ---------- */
.hero {
  min-height: min(100vh, 1000px); min-height: min(100svh, 1000px);
  padding: calc(var(--header-h) + 40px) clamp(16px, 5vw, 64px) 64px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  max-width: 1320px; margin: 0 auto;
}
.hero-text h1 { font-size: clamp(44px, 6.4vw, 84px); margin: 6px 0 22px; white-space: pre-line; }
.hero-text h1 em { font-style: normal; color: var(--gold); }
.hero-text .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hours {
  margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; background: rgba(4, 34, 31, .7); max-width: 520px;
}
.hours h3 { font-size: 22px; color: var(--gold); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.hours .open-now { font-family: var(--body); font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.open-now.is-open { background: rgba(80, 170, 100, .18); color: #8fd6a0; }
.open-now.is-closed { background: rgba(200, 80, 60, .18); color: #f0a090; }
.hours dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--muted); direction: rtl; }
.hours .note { color: var(--muted); font-size: 14px; margin-top: 12px; opacity: .8; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 220px 220px var(--radius) var(--radius);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
}
.hero-photo::before {
  content: ""; position: absolute; inset: -14px; border: 1px solid var(--gold);
  border-radius: 234px 234px 24px 24px; pointer-events: none;
}
.hero-badge {
  position: absolute; bottom: 28px; right: -24px; background: var(--gold); color: var(--green);
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  font-family: var(--latin); font-size: 22px; line-height: 1; letter-spacing: .05em; transform: rotate(-10deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.hero-badge small { display: block; font-size: 14px; letter-spacing: .2em; }

.quicklinks { padding: 0 clamp(16px, 5vw, 64px) clamp(64px, 8vw, 96px); }
.quicklinks .grid {
  max-width: 1200px; margin: 0 auto; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.ql {
  display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line); text-decoration: none; background: var(--green-2); transition: all .25s;
}
.ql svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.ql strong { font-family: var(--display); font-weight: 400; font-size: 21px; }
.ql span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.ql:hover { border-color: var(--gold); transform: translateY(-4px); background: var(--green-3); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 16px); }
  .hero-photo { order: -1; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-photo img { aspect-ratio: 1 / 1; }
  .hero-badge { right: 8px; width: 96px; height: 96px; font-size: 18px; }
}

/* ---------- menu ---------- */
.menu-tabs {
  position: sticky; top: var(--header-h); z-index: 10; display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; padding: 12px 0; margin-bottom: 32px; background: var(--green);
}
.menu-tabs button {
  font-family: var(--body); font-size: 15px; font-weight: 500; padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--cream); cursor: pointer; transition: all .2s;
}
.menu-tabs button:hover { border-color: var(--gold); }
.menu-tabs button.active { background: var(--gold); color: var(--green); border-color: var(--gold); font-weight: 700; }
.menu-cat { margin-bottom: 56px; scroll-margin-top: calc(var(--header-h) + 80px); }
.menu-cat h3 { font-size: 30px; color: var(--gold); margin-bottom: 22px; display: flex; align-items: center; gap: 16px; }
.menu-cat h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.dish {
  background: var(--green-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, border-color .25s;
}
.dish:hover { transform: translateY(-4px); border-color: var(--gold); }
.dish-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-3); cursor: zoom-in; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dish:hover .dish-img img { transform: scale(1.05); }
.dish-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dish h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; }
.price { color: var(--gold); font-weight: 800; font-size: 20px; white-space: nowrap; }
.dish p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.tag { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(184, 121, 50, .16); color: var(--gold-light); }
.dish.no-img { align-self: start; }
.dish.no-img .dish-body { padding-top: 22px; }
.menu-note { text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- style & history ---------- */
.style-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: 72px; }
.style-intro img { border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.style-intro .big { font-size: clamp(20px, 2vw, 25px); line-height: 1.6; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 96px; }
.feature { padding: 28px 24px; border-top: 3px solid var(--gold); background: var(--green); border-radius: 0 0 var(--radius) var(--radius); }
.feature .num { font-family: var(--latin); font-size: 46px; color: var(--gold); line-height: 1; }
.feature h4 { font-family: var(--display); font-weight: 400; font-size: 23px; margin: 8px 0; }
.feature p { color: var(--muted); font-size: 15.5px; }
.timeline-title { text-align: center; font-size: clamp(32px, 4vw, 46px); margin-bottom: 48px; }
.timeline { position: relative; max-width: 880px; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; right: 50%; width: 1px; background: var(--gold); opacity: .5; }
.timeline li { position: relative; width: 50%; padding: 0 0 48px 48px; }
.timeline li:nth-child(even) { margin-right: 50%; padding: 0 48px 48px 0; }
.timeline li::before {
  content: ""; position: absolute; top: 10px; left: -8px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--green-2); border: 3px solid var(--gold);
}
.timeline li:nth-child(even)::before { left: auto; right: -8px; }
.timeline .year { font-family: var(--latin); font-size: 40px; color: var(--gold); line-height: 1; letter-spacing: .04em; }
.timeline h4 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 6px 0; }
.timeline p { color: var(--muted); }
@media (max-width: 800px) {
  .style-intro { grid-template-columns: 1fr; }
  .timeline::before { right: 7px; }
  .timeline li, .timeline li:nth-child(even) { width: auto; margin: 0; padding: 0 40px 40px 0; }
  .timeline li::before, .timeline li:nth-child(even)::before { right: 0; left: auto; }
}

/* ---------- gallery ---------- */
.gallery-grid { columns: 3 280px; column-gap: 16px; }
.gallery-grid figure { margin: 0 0 16px; break-inside: avoid; position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery-grid img { width: 100%; transition: transform .5s; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px; font-weight: 500;
  background: linear-gradient(transparent, rgba(1, 23, 22, .9)); opacity: 0; transition: opacity .3s;
}
.gallery-grid figure:hover figcaption { opacity: 1; }
@media (hover: none) { .gallery-grid figcaption { opacity: 1; } }

/* ---------- events ---------- */
.events-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.events-hero img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.events-hero .big { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); margin-bottom: 28px; }
.event-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px; }
.event-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--green); }
.event-item h4 { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--gold-light); margin: 0 0 4px; }
.event-item p { color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 860px) { .events-hero { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .event-list { grid-template-columns: 1fr; } }

/* ---------- kashrut ---------- */
.kashrut-box {
  display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  max-width: 1000px; margin: 0 auto; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 48px);
  background: radial-gradient(circle at 80% 20%, rgba(184, 121, 50, .12), transparent 60%);
}
.kashrut-box .cert { cursor: zoom-in; border-radius: 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); transform: rotate(-2deg); transition: transform .3s; }
.kashrut-box .cert:hover { transform: rotate(0) scale(1.02); }
.kashrut-box h2 { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 14px; }
.kashrut-box .authority { color: var(--gold); font-weight: 700; margin: 16px 0; font-size: 18px; }
.kashrut-box ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kashrut-box li { display: flex; gap: 10px; align-items: center; }
.kashrut-box li::before { content: "✓"; color: var(--green); background: var(--gold); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
@media (max-width: 760px) {
  .kashrut-box { grid-template-columns: 1fr; }
  .kashrut-box .cert { max-width: 280px; margin: 0 auto; }
  .kashrut-box ul { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.contact-cards { display: grid; gap: 12px; align-content: start; }
.c-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--green-2); text-decoration: none; transition: all .2s;
}
a.c-card:hover { border-color: var(--gold); background: var(--green-3); }
.c-card .ic { width: 46px; height: 46px; border-radius: 50%; background: rgba(184, 121, 50, .15); display: grid; place-items: center; flex: none; }
.c-card .ic svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.8; }
.c-card small { display: block; color: var(--muted); font-size: 13px; }
.c-card strong { font-weight: 500; font-size: 17px; }
.c-card .ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.socials { display: flex; gap: 10px; margin-top: 6px; }
.socials a { flex: 1; text-align: center; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--green-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.4) contrast(1.05); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px clamp(16px, 5vw, 64px) calc(40px + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--muted); font-size: 14px; }
.footer .logo { align-items: center; margin-bottom: 10px; }
.footer .admin-link { color: var(--muted); opacity: .45; font-size: 12px; margin-top: 10px; display: inline-block; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 8, 7, .94); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox figure { margin: 0; max-width: min(1100px, 90vw); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { margin-top: 12px; color: var(--cream); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--cream); font-size: 48px; cursor: pointer; width: 60px; height: 60px; line-height: 1; }
.lb-close { top: 16px; left: 16px; }
.lb-prev { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { color: var(--gold); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
