:root {
  --ink: #3b3b3d;
  --ink-soft: #66666a;
  --bg: #fffdf8;
  --card: #ffffff;
  --line: #ece7da;
  --teal: #1ba7b8;
  --yellow: #fbb913;
  --orange: #ee5a24;
  --green: #1e8f4e;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f3f1ea;
    --ink-soft: #b9b6ad;
    --bg: #1d1d1f;
    --card: #272729;
    --line: #38383b;
  }
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Heebo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 16px; }
a { color: inherit; }

/* header */
/* header and footer follow the Havayot site: logo straight on a warm bar */
:root { --bar: #e7e0d4; --bar-ink: #3b3b3d; }
header { background: var(--bar); color: var(--bar-ink); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: 1.25rem; }
.brand { padding-inline-end: 20px; border-inline-end: 1px solid rgba(59, 59, 61, .25); }
.brand img { height: 68px; width: auto; display: block; }
@media (max-width: 480px) { .brand { padding-inline-end: 0; border: 0; } .brand img { height: 48px; } .nav { gap: 8px; } .nav-end { gap: 6px; } .lang { padding: 6px 10px; } .btn.wa { padding: 8px 14px; } }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand small { font-size: .85rem; font-weight: 500; color: var(--teal); }
.card a { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--orange); }
.nav ul { display: flex; gap: 22px; list-style: none; padding: 0; font-weight: 500; }
.nav ul a { text-decoration: none; }
.nav ul a:hover { color: var(--orange); }
.lang { font-weight: 700; text-decoration: none; border: 1px solid rgba(59, 59, 61, .3); border-radius: 999px; padding: 6px 14px; }
.lang:hover { background: var(--yellow); border-color: var(--yellow); color: #3b3b3d; }
.nav-end { display: flex; align-items: center; gap: 10px; }
@media (max-width: 640px) { .nav ul { display: none; } }

/* buttons */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: var(--orange); color: #fff; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(238, 90, 36, .3); }
.wa-icon { width: 1.2em; height: 1.2em; fill: currentColor; vertical-align: -.2em; margin-inline-end: 8px; }
.btn.wa { background: #25d366; color: #073b1c; padding: 10px 22px; }
.btn.wa:hover { box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.wa-link { color: #128c4a; font-weight: 700; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.ghost:hover { box-shadow: none; background: var(--yellow); border-color: var(--yellow); color: #3b3b3d; }

/* hero */
.hero { padding-block: 72px 56px; display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.eyebrow { color: var(--teal); font-weight: 700; letter-spacing: .02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.1; font-weight: 900; margin-block: 10px 18px; }
h1 mark { background: linear-gradient(transparent 58%, var(--yellow) 58%); color: inherit; padding-inline: 4px; }
.hero p { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; aspect-ratio: 1; max-width: 380px; margin-inline: auto; }
.blocks span { border-radius: 14px; }
.blocks span:nth-child(1) { background: var(--teal); border-radius: 50%; }
.blocks span:nth-child(2) { background: var(--yellow); }
.blocks span:nth-child(3) { background: var(--ink); border-start-end-radius: 60px; }
.blocks span:nth-child(4) { background: var(--orange); }
.blocks span:nth-child(5) { background: var(--green); border-radius: 60px 14px 60px 14px; }
.blocks span:nth-child(6) { background: var(--teal); opacity: .55; }
.blocks span:nth-child(7) { background: var(--yellow); border-radius: 50%; }
.blocks span:nth-child(8) { background: var(--ink); opacity: .85; }
.blocks span:nth-child(9) { background: var(--orange); border-radius: 14px 60px 14px 60px; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; padding-block: 44px 32px; } .blocks { max-width: 260px; } }

/* sections */
section { padding-block: 56px; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 900; margin-bottom: 8px; }
.lead { color: var(--ink-soft); margin-bottom: 30px; max-width: 38em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; border-top: 6px solid var(--c, var(--teal));
}
.card .pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.card .pay a { margin-top: 0; padding: 6px 14px; border: 2px solid var(--orange); border-radius: 999px; font-size: .9rem; text-decoration: none; }
.card .pay a:hover { background: var(--orange); color: #fff; }
.card .icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card:nth-child(4n+1) { --c: var(--teal); }
.card:nth-child(4n+2) { --c: var(--yellow); }
.card:nth-child(4n+3) { --c: var(--orange); }
.card:nth-child(4n+4) { --c: var(--green); }

.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; }
.steps li { counter-increment: s; padding: 20px; padding-inline-start: 0; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-weight: 900; margin-bottom: 10px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--ink-soft); }


/* info */
.info { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.info div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info b { display: block; color: var(--teal); margin-bottom: 4px; }

/* calendar */
.cal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 1.2rem; }
.cal-head button {
  min-width: 40px; height: 40px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer;
}
.cal-head button span { font-size: .9rem; }
@media (max-width: 480px) { .cal-head button span { display: none; } .cal-head button { font-size: 1.4rem; padding-inline: 0; width: 40px; } }
.cal-head button:hover { background: var(--yellow); color: #3b3b3d; border-color: var(--yellow); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-weight: 700; font-size: .85rem; color: var(--ink-soft); padding-block: 4px; }
.cal-day {
  min-height: 76px; border-radius: 10px; padding: 4px 6px; font-size: .85rem;
  background: var(--bg); border: 1px solid transparent; overflow: hidden;
}
.cal-day.blank { background: transparent; }
.cal-day.open { background: color-mix(in srgb, var(--teal) 16%, var(--bg)); border-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.cal-day.today .num { background: var(--orange); color: #fff; border-radius: 50%; padding: 0 6px; }
.cal-day .hrs, .cal-ev, .upcoming li span { unicode-bidi: plaintext; }
.cal-day .hrs { direction: ltr; text-align: left; display: block; font-size: .7rem; color: var(--teal); font-weight: 500; }
[dir="rtl"] .cal-day .hrs { text-align: right; }
.cal-day.closed { background: repeating-linear-gradient(135deg, var(--bg), var(--bg) 6px, var(--line) 6px, var(--line) 8px); }
.cal-day.closed .hrs { color: var(--orange); font-weight: 700; display: block; }
.cal-hol { display: block; font-size: .68rem; color: var(--ink-soft); line-height: 1.25; }
.cal-ev {
  display: block; margin-top: 3px; padding: 1px 6px; border-radius: 6px; font-size: .72rem; font-weight: 700;
  background: var(--orange); color: #fff; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; text-decoration: none;
}
.cal-legend { margin-top: 12px; font-size: .85rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot.open { background: var(--teal); opacity: .5; }
.dot.ev { background: var(--orange); margin-inline-start: 12px; }
.dot.closed { background: repeating-linear-gradient(135deg, var(--line), var(--line) 3px, var(--ink-soft) 3px, var(--ink-soft) 4px); margin-inline-start: 12px; }
.upcoming { margin-top: 24px; }
.upcoming h3 { margin-bottom: 8px; }
.upcoming ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.upcoming li { background: var(--card); border: 1px solid var(--line); border-inline-start: 6px solid var(--orange); border-radius: 12px; padding: 10px 16px; }
.upcoming li span { color: var(--ink-soft); }
@media (max-width: 640px) { .cal { padding: 10px; } .cal-day { min-height: 56px; padding: 3px; font-size: .78rem; } .cal-day .hrs { display: none; } .cal-hol { font-size: .58rem; } .cal-ev { font-size: .62rem; padding: 1px 3px; } }

footer { background: var(--bar); color: var(--bar-ink); padding-block: 28px; margin-top: 24px; font-size: .92rem; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer .f-main { height: 72px; width: auto; }
footer .f-partners { display: flex; align-items: center; gap: 28px; }
footer .f-partners img { height: 84px; width: auto; }
footer .f-copy { flex-basis: 100%; padding-top: 14px; border-top: 1px solid rgba(59, 59, 61, .2); }
@media (max-width: 480px) { footer .f-partners { gap: 18px; } footer .f-partners img { height: 64px; } footer .f-main { height: 56px; } }

/* faq */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding-block: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 8px; }
.faq details p { color: var(--ink-soft); padding-bottom: 16px; }
.faq details a { color: var(--orange); font-weight: 700; }

/* open-now badge + directions */
.open-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.open-badge[hidden] { display: none; }
.open-badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); }
.open-badge.open::before { background: var(--green); box-shadow: 0 0 0 4px rgba(30, 143, 78, .2); }
.map-link { color: var(--orange); font-weight: 700; }

/* volunteer popup */
.vol { border: 0; border-radius: 24px; padding: 40px 28px 28px; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; background: #3b3b3d; color: #fff; text-align: center; margin: auto; }
.vol::backdrop { background: rgba(0, 0, 0, .55); }
.vol h2 { color: #fff; margin-bottom: 4px; }
.vol .vol-sub { font-size: 1.15rem; font-weight: 700; color: var(--yellow); margin-bottom: 14px; }
.vol p { color: #d7d4cb; margin: 0 auto 16px; }
.vol ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.vol li { background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 6px 14px; }
.vol .btn { background: var(--yellow); color: #3b3b3d; }
.vol small { display: block; margin-top: 14px; color: #d7d4cb; }
.vol-close { position: absolute; inset-block-start: 10px; inset-inline-end: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.vol-close:hover { background: rgba(255, 255, 255, .15); }
.vol :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gallery .shot { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: var(--line); }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery .shot:hover img { transform: scale(1.05); }
#lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; margin: auto; }
#lightbox::backdrop { background: rgba(0, 0, 0, .8); }
#lightbox img { display: block; max-width: 96vw; max-height: 92vh; border-radius: 12px; }
#lightbox button { position: absolute; top: 8px; inset-inline-end: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
