:root {
  --green: #1f3d36;
  --green-deep: #16302c;
  --gold: #c9a24a;
  --sand: #f4f1ea;
  --ink: #1b2129;
  --muted: #5b6470;
  --line: #e2ddd2;
  --white: #ffffff;
}
* { box-sizing: border-box; min-width: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
}
a { color: var(--green); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ב״ה — top right of every page, above everything else */
.bh-top { background: var(--sand); color: var(--green-deep); text-align: right; padding: 6px 20px 0; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.06em; max-width: 1080px; margin: 0 auto; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 241, 234, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { text-decoration: none; color: var(--green-deep); font-weight: 800; letter-spacing: 0.02em; line-height: 1.1; }
.brand small { display: block; font-weight: 500; letter-spacing: 0.22em; font-size: 0.65rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; color: var(--green-deep); }
.nav a:hover { background: rgba(31, 61, 54, 0.08); }
.nav a.cta { background: var(--green); color: var(--white); }
.nav a.cta:hover { background: var(--green-deep); }
@media (max-width: 640px) { .nav a:not(.cta) { display: none; } }

/* Hero */
.hero { position: relative; color: var(--white); min-height: 520px; display: grid; align-items: end; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(22,48,44,0.15) 0%, rgba(22,48,44,0.75) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 6px; letter-spacing: 0.04em; line-height: 1.05; }
.hero .sub { letter-spacing: 0.3em; font-size: 0.85rem; margin: 0 0 18px; opacity: 0.95; }
.tags { display: flex; flex-wrap: wrap; margin: 0 0 26px; padding: 0; list-style: none; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.95; }
.tags li + li::before { content: "|"; margin: 0 14px; opacity: 0.55; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; padding: 12px 20px; border-radius: 10px; font-weight: 700; }
.btn.gold { background: var(--gold); color: var(--green-deep); }
.btn.ghost { padding-left: 4px; padding-right: 4px; color: var(--white); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(255,255,255,0.6); }
.btn.green { background: var(--green); color: var(--white); }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: 1.6rem; margin: 0 0 8px; color: var(--green-deep); letter-spacing: 0.03em; }
.eyebrow { letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.72rem; color: var(--muted); font-weight: 700; margin: 0 0 6px; }
.lead { color: var(--muted); max-width: 60ch; margin: 0 0 24px; }
.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid.two { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.card h3 { margin: 0 0 12px; font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-deep); }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows li > span { min-width: 0; }
.rows li:last-child { border-bottom: 0; }
.rows b { color: var(--green-deep); text-align: right; flex: none; max-width: 48%; }
.rows small { display: block; color: var(--muted); font-size: 0.85rem; }
.hours dt { font-weight: 600; color: var(--muted); margin-top: 10px; }
.hours dd { margin: 0; font-weight: 700; color: var(--green-deep); }
.note { font-size: 0.9rem; color: var(--muted); }

/* Gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #ddd; }
.gallery a.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.03); }

/* Access strip */
.access { display: grid; gap: 16px; }
@media (min-width: 720px) { .access { grid-template-columns: 1fr 1fr; } }
.access .card { display: flex; gap: 16px; align-items: flex-start; }
.access .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; flex: none; font-size: 1.2rem; }

/* Payment page */
.embed { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-height: 900px; }
.embed iframe { display: block; width: 100%; height: 1400px; border: 0; }

/* Terms */
.terms h2 { font-size: 1.15rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 32px; }
.terms p { max-width: 72ch; }
.terms .card { max-width: 72ch; }

/* Footer */
footer { background: var(--green-deep); color: rgba(255,255,255,0.85); padding: 40px 0; font-size: 0.95rem; }
footer .wrap { display: grid; gap: 16px; }
@media (min-width: 720px) { footer .wrap { grid-template-columns: 1fr 1fr; } }
footer a { color: var(--white); }
footer .bh { letter-spacing: 0.1em; font-size: 0.8rem; opacity: 0.7; }

/* Photo lightbox (lightbox.js) */
body.lb-open { overflow: hidden; }
.lb[hidden] { display: none !important; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(22, 48, 44, 0.94); display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; }
.lb figure { margin: 0; grid-column: 2; display: grid; justify-items: center; align-content: center; gap: 10px; max-height: 100vh; padding: 56px 0 40px; }
.lb img { max-width: 100%; max-height: calc(100vh - 130px); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lb figcaption { color: rgba(255,255,255,0.85); font-size: 0.95rem; text-align: center; padding: 0 12px; }
.lb button { appearance: none; border: 0; background: rgba(255,255,255,0.12); color: var(--white); cursor: pointer; border-radius: 50%; width: 44px; height: 44px; font-size: 2rem; line-height: 1; display: grid; place-items: center; justify-self: center; }
.lb button:hover { background: rgba(255,255,255,0.25); }
.lb .lb-prev { grid-column: 1; } .lb .lb-next { grid-column: 3; }
.lb .lb-close { position: absolute; top: 12px; right: 12px; font-size: 1.6rem; }
.lb .lb-count { position: absolute; top: 22px; left: 16px; color: rgba(255,255,255,0.8); font-size: 0.9rem; letter-spacing: 0.1em; }
@media (max-width: 640px) {
  .lb { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .lb button { width: 38px; height: 38px; font-size: 1.6rem; }
}

/* Home page: recognising our donors */
.donors-strip .card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.donors-strip .card h3 { margin: 0 0 4px; }
.donors-strip .card p { margin: 0; color: var(--muted); }
