/* Our Shul 59 — shared styles */
:root {
  --navy: #003789;
  --navy-2: #123f9e;
  --gold: #a88b3a;
  --gold-2: #d9b766;
  --cream: #faf6ee;
  --paper: #ffffff;
  --ink: #1b1f2a;
  --muted: #5d6474;
  --line: #e6dfd0;
  --ok: #2f7d4f;
  --err: #b3261e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 31, 79, .10);
  --serif: "Frank Ruhl Libre", Georgia, serif;
  --sans: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: .6em;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(168, 139, 58, .35); }
.btn-gold:hover { background: #927832; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 46px; width: auto; }
.footer-logo { height: 54px; width: auto; margin-bottom: 8px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: .55em 1.1em; font-size: .92rem; }
@media (max-width: 480px) {
  .logo img { height: 38px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: .5em .9em; font-size: .85rem; }
  .lang-toggle { padding: .4em .7em; font-size: .85rem; }
  .tier .btn, .hero-ctas .btn { white-space: normal; }
}
.lang-toggle {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: .45em .9em; font: 600 .9rem var(--sans); cursor: pointer; color: var(--navy);
}

/* Hero: 3 photos side by side behind a blue overlay, campaign text on top */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--navy);
  min-height: min(82vh, 680px); display: grid; align-items: center; padding: 72px 0;
}
.mosaic {
  position: absolute; inset: 0; display: grid;
  grid-template-columns: repeat(3, 1fr); grid-template-rows: minmax(0, 1fr); gap: 3px;
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.95); }
.mosaic .m-main { object-position: center 25%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,31,79,.62) 0%, rgba(0,31,79,.5) 75%),
    linear-gradient(180deg, rgba(0,31,79,.1), rgba(0,31,79,.35));
}
.hero-text { position: relative; z-index: 1; text-align: center; }
.hero h1 { color: #fff; max-width: 18ch; margin-inline: auto; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero .eyebrow { color: var(--gold-2); }
.hero .lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 44ch; margin-inline: auto; }
.hero .sub { max-width: 52ch; margin-inline: auto; color: rgba(255,255,255,.8); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.5em; }
@media (max-width: 700px) {
  .hero { min-height: 560px; padding: 56px 0; }
}

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Footer */
.site-footer { background: #001f4f; color: rgba(255,255,255,.7); padding: 36px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--gold-2); }

/* ---------- Join section ---------- */
.join-page { padding: 64px 0 80px; }
.join-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .join-layout { grid-template-columns: 1fr; } }
.join-intro { margin-bottom: 28px; }
.join-intro p { color: var(--muted); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,31,79,.04);
}
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-title h2 { font-size: 1.4rem; margin: 0; }
.step-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

/* option cards (radio) */
.options { display: grid; gap: 12px; }
.options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.options.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .options.cols-3, .options.cols-2 { grid-template-columns: 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label {
  display: block; height: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 16px;
  cursor: pointer; background: var(--cream); transition: border-color .15s, background .15s;
}
.opt label:hover { border-color: var(--gold-2); }
.opt input:checked + label { border-color: var(--navy); background: #eaf0fb; box-shadow: inset 0 0 0 1px var(--navy); }
.opt input:focus-visible + label { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.opt .opt-name { display: block; font-weight: 700; color: var(--navy); }
.opt .opt-amt { display: block; font: 800 1.6rem var(--sans); color: var(--navy); }
.opt .opt-sub { display: block; font-size: .9rem; color: var(--muted); }
.opt .flag { font-size: 1.6rem; display: block; margin-bottom: 4px; }

.custom-amt { margin-top: 14px; display: none; }
.custom-amt.show { display: block; }

/* form fields */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .opt-tag { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; padding: .75em .9em; border: 1.5px solid var(--line); border-radius: 10px;
  font: 1rem var(--sans); background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,55,137,.15); }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.field .err { display: none; color: var(--err); font-size: .85rem; margin-top: 4px; }
.field.invalid .err { display: block; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.input-prefix input { padding-inline-start: 2em; }
.hint { font-size: .9rem; color: var(--muted); margin-top: 12px; }
[data-show-for] { display: none; }
[data-show-for].on { display: block; }

.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }

/* payment placeholder */
.pay-box {
  border: 2px dashed var(--line); border-radius: 14px; padding: 20px; background: var(--cream);
}
.pay-box .proc-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.secure { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-top: 12px; justify-content: center; }

/* summary */
.summary { position: sticky; top: 88px; }
.summary h3 { margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.sum-row span:first-child { color: var(--muted); }
.sum-row strong { text-align: end; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.sum-total .big { font: 800 1.9rem var(--sans); color: var(--navy); }
.sum-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.form-error { display: none; background: #fdecea; color: var(--err); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: .95rem; }
.form-error.show { display: block; }

/* thank you */
.thanks { padding: 48px 24px; }
.thanks .tick {
  width: 76px; height: 76px; border-radius: 50%; background: var(--ok); color: #fff;
  display: grid; place-items: center; font-size: 2.4rem; margin: 0 auto 20px;
}

/* ₪ glyph is heavy in Heebo at display sizes — tone it down */
.cur { font-size: .55em; font-weight: 600; vertical-align: .45em; margin-inline-end: 2px; }

/* tier option cards on the form */
.opt.featured label { border-color: var(--gold); }
.opt .opt-tag-pop {
  display: inline-block; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .15em .7em; border-radius: 999px; margin-bottom: 6px;
}
.opt .opt-amt small { font-size: .9rem; font-weight: 500; color: var(--muted); }

/* closing band */
.closing { background: var(--navy); color: #fff; padding: 64px 0; }
.closing h2 { color: #fff; }
.closing-inner { text-align: center; }
.closing p { opacity: .9; font-size: 1.08rem; }

/* inline success */
#success { display: none; }
body.done #success { display: block; }
body.done #joinForm, body.done .join-intro { display: none; }
#join { scroll-margin-top: 68px; }
.wall-hint { margin: 4px 0 0; padding-inline-start: 28px; }
.thanks { text-align: center; }
.btn-block { white-space: normal; }
.join-layout > * { min-width: 0; }
@media (max-width: 900px) { .join-layout { grid-template-columns: minmax(0, 1fr); } }
#submitBtn { flex-wrap: wrap; row-gap: 0; padding-block: .9em; }
.btn-amt { opacity: .9; font-weight: 800; }
.btn-amt::before { content: "·"; margin-inline-end: .5em; }
@media (max-width: 480px) { .btn-amt { flex-basis: 100%; } .btn-amt::before { content: none; } }

/* Logo lockup: Our Shul | 59 shield */
.logo { gap: 12px; }
.logo .wordmark { height: 28px; width: auto; flex: none; }
.logo-sep { width: 2px; height: 34px; background: var(--gold); border-radius: 2px; flex: none; }
.logo .route-badge { height: 40px; width: 40px; flex: none; }
.hero-badge { width: 72px; height: 72px; margin: 0 auto 16px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.footer-brand .footer-logo { height: 32px; margin: 0; }
.footer-brand .logo-sep { background: var(--gold-2); height: 40px; }
.footer-brand .route-badge { height: 46px; width: 46px; }
@media (max-width: 480px) {
  .logo { gap: 8px; }
  .logo .wordmark { height: 20px; }
  .logo-sep { height: 26px; }
  .logo .route-badge { height: 32px; width: 32px; }
}
.logo { flex: none; }
@media (max-width: 420px) { .header-actions .btn { display: none; } }
.logo .route-badge { filter: drop-shadow(0 0 1px rgba(0,0,0,.55)) drop-shadow(0 1px 3px rgba(0,0,0,.18)); }
