:root {
  --bg: #f5f0e8;
  --bg-2: #ece5da;
  --bg-3: #e2d9cb;
  --line: rgba(40,30,20,.14);
  --text: #1f1a15;
  --muted: #6b6258;
  --accent: #b0652a;
  --accent-ink: #fffaf3;
  --wa: #25d366;
  --radius: 14px;
  --gutter: clamp(16px, 5vw, 72px);
  --nav-h: 68px;
  --display: "Frank Ruhl Libre", Georgia, serif;
  --body: "Heebo", system-ui, sans-serif;
  --glass: rgba(245,240,232,.7);
  --glass-solid: rgba(245,240,232,.94);
  --shadow: rgba(60,40,20,.18);
  --ghost-line: rgba(31,26,21,.45);
  --text-soft: rgba(31,26,21,.82);
  --err: #b3261e;
  color-scheme: light;
}
html[lang="en"] { --display: "Instrument Serif", Georgia, serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; min-height: 100svh; display: flex; flex-direction: column;
}
body.locked { overflow: hidden; }
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 5vw, 60px); }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 400; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  margin: 0 0 14px; color: var(--accent);
  font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
html[lang="he"] .eyebrow { letter-spacing: .06em; font-size: 15px; }
.lede { color: var(--muted); max-width: 56ch; margin: 18px 0 0; font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px;
  transition: transform .2s, background .2s, color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn svg .fill { fill: currentColor; stroke: none; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #06260f; }

.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(8px); font-size: 20px;
  display: grid; place-items: center;
}
.icon-btn:hover { border-color: var(--text); }

/* Header + drop-down menu */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h); flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter); background: var(--bg); border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { background: var(--glass-solid); backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font: 500 22px/1 "Instrument Serif", Georgia, serif;
}
.brand-name { font: 400 22px/1 "Instrument Serif", Georgia, serif; letter-spacing: .02em; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-link, .menu-btn { color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-link:hover, .nav-link[aria-current], .menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--text); }
.nav-link { padding: 0 8px; }
.menu { position: relative; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 8px;
  background: none; border: 0;
}
.menu-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-chev { transition: transform .2s; }
.menu-btn[aria-expanded="true"] .menu-chev { transform: rotate(180deg); }
.menu-icon { display: none; }
.menu-list {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 240px;
  display: grid; padding: 8px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 18px 50px var(--shadow);
}
.menu-list[hidden] { display: none; }
.menu-list a { padding: 11px 14px; border-radius: 9px; font-size: 16px; white-space: nowrap; }
.menu-list a:hover { background: var(--bg-3); }
.menu-list a[aria-current] { color: var(--accent); }
.menu-about, .menu-home { display: none; }
.menu-about { border-top: 1px solid var(--line); border-radius: 0 0 9px 9px !important; margin-top: 4px; }
.menu-home { border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0 !important; margin-bottom: 4px; }
.lang {
  height: 40px; min-width: 44px; padding: 0 12px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line); font-size: 14px; font-weight: 500;
}
.lang:hover { border-color: var(--text); }
@media (max-width: 720px) {
  .brand-name, .nav-link { display: none; }
  .menu-about, .menu-home { display: block; }
  .menu-label, .menu-chev { display: none; }
  .menu-icon { display: block; }
  .menu-btn { width: 40px; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
  .menu { position: static; }
  .menu-list { inset-inline: var(--gutter); top: calc(var(--nav-h) - 4px); min-width: 0; }
  .nav-end { gap: 8px; }
}

/* Home: one photo, the name, the menu. Nothing on top of the photo.
   Same container and heading style as the category pages. */
.home { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.home-photo { margin: 0; }
.home-photo img {
  width: 100%; height: auto; max-height: calc(100svh - var(--nav-h) - 120px); object-fit: cover;
  border-radius: var(--radius); animation: fade-in 1.2s ease both;
}
.home .page-head { margin-bottom: clamp(28px, 5vh, 48px); }
/* The name on the home page is in Caveat (Latin only, so Hebrew falls back to the normal heading font) */
.home .page-head h1 { font-family: "Caveat", var(--display); font-weight: 700; font-style: normal; letter-spacing: 0; font-size: clamp(56px, 7.5vw, 104px); line-height: 1; }
.home-cats { display: grid; border-bottom: 1px solid var(--line); max-width: 560px; }
.home-cats a {
  display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line);
  font-size: 19px; transition: color .2s, padding .2s;
}
.home-cats a span { color: var(--accent); font: 400 20px/1 "Instrument Serif", Georgia, serif; min-width: 28px; }
.home-cats a:hover { color: var(--accent); padding-inline-start: 6px; }
@media (max-width: 860px) {
  .home { grid-template-columns: 1fr; }
  .home-photo img { max-height: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Category pages */
.page { padding: clamp(48px, 9vh, 110px) var(--gutter) clamp(60px, 10vh, 120px); max-width: 1500px; width: 100%; margin: 0 auto; }
.page-head { margin-bottom: clamp(40px, 7vh, 80px); }
.page-head h1 { font-size: clamp(42px, 6vw, 80px); }
.page-end {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: clamp(56px, 9vh, 100px); padding-top: 36px; border-top: 1px solid var(--line);
}
.page-end .next { color: var(--muted); font-size: 16px; margin-inline-start: auto; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--ghost-line); }
.btn-ghost:hover { border-color: var(--text); }
.page-end .next:hover { color: var(--text); }

/* Photo rows (built in app.js: whole photos, each row filled edge to edge) */
.grid { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 24px); }
.row { display: flex; gap: clamp(14px, 1.8vw, 24px); }
@media (max-width: 600px) { .grid, .row { gap: 10px; } }
.tile {
  position: relative; min-width: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: var(--bg-3);
  opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease;
}
.tile.in { opacity: 1; transform: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform .6s; }
.tile img.loaded { opacity: 1; }
.tile:hover img { transform: scale(1.03); }

/* About + contact page */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding: clamp(48px, 9vh, 110px) var(--gutter); max-width: 1400px; margin: 0 auto; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-text p { color: var(--text-soft); max-width: 56ch; }
.about-text h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 16px; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 0 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); grid-row: span 2; color: var(--accent); font: 400 26px/1 "Instrument Serif", Georgia, serif; }
.steps strong { font-weight: 500; }
.steps span { color: var(--muted); font-size: 15.5px; }

.contact { padding: clamp(80px, 11vw, 140px) var(--gutter); background: var(--bg-2); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); max-width: 1240px; margin: 0 auto; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } }
.contact-label { margin: 22px 0 12px; font-size: 18px; font-weight: 500; }
.contact-links { display: grid; gap: 4px; margin-top: 26px; }
.contact-links a { display: flex; align-items: center; gap: 14px; min-height: 48px; font-size: 17px; border-bottom: 1px solid var(--line); }
.contact-links a:hover { color: var(--accent); }
.contact-links svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; flex: none; }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start;
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 34px);
}
.form .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 16px/1.4 var(--body);
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form-err { grid-column: 1 / -1; margin: 0; color: var(--err); font-size: 14px; }

.footer {
  display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.footer a:hover { color: var(--text); }
.footer { align-items: center; flex-wrap: wrap; }
.social { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.social svg .fill { fill: currentColor; stroke: none; }
.follow { margin-top: 34px; }
.social-big { gap: 12px; margin-top: 12px; }
.social-big a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 16px; color: var(--text); }
.social-big a:hover { border-color: var(--accent); color: var(--accent); }
.social-big svg { stroke: var(--accent); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8,7,6,.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-figure img { max-width: 92vw; max-height: 84svh; object-fit: contain; border-radius: 4px; transition: opacity .25s; }
.lb-figure img.fading { opacity: .25; }
.lb-figure figcaption { font-size: 14px; color: var(--muted); }
.lb-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 30px; line-height: 1; }
.lb-prev { inset-inline-start: 14px; }
.lb-next { inset-inline-end: 14px; }
@media (max-width: 600px) { .lb-arrow { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .tile { opacity: 1; transform: none; }
}

/* About: "What you get" */
.gets-title { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; margin: 30px 0 10px; }
.gets { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.gets li { position: relative; padding-inline-start: 22px; color: var(--muted); line-height: 1.6; }
.gets li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.gets strong { color: var(--text); font-weight: 500; }

/* the photo viewer stays dark in every theme */
.lightbox { --text: #f2ede4; --muted: #a8a096; --line: rgba(242,237,228,.12); --glass: rgba(18,17,16,.6); color: var(--text); }
