/* ===== פדיון הבן – המדריך המלא ===== */

/* ---------- צבעים ופונטים: מוגדרים פעם אחת ---------- */
:root {
  /* ארבעת צבעי הבסיס. אזור הניהול משנה אותם, וכל השאר נגזר מהם */
  --ink: #1A2744;     /* דיו: כחול לילה */
  --blue: #243260;    /* משני: כחול עמוק */
  --yellow: #C9973A;  /* הדגשה ראשית: זהב */
  --teal: #8A6420;    /* הדגשה משנית: זהב כהה, לטקסט על רקע בהיר */

  --brand: var(--ink);
  --accent: var(--yellow);
  --accent-2: var(--teal);
  --accent-light: color-mix(in srgb, var(--yellow) 55%, #fff);
  --bg: color-mix(in srgb, var(--yellow) 7%, #fff);
  --surface: color-mix(in srgb, var(--yellow) 15%, #fff);
  --text: color-mix(in srgb, var(--ink) 92%, #000);
  --muted: color-mix(in srgb, var(--ink) 72%, #fff);
  --line: color-mix(in srgb, var(--ink) 12%, #fff);
  --on-dark: rgb(255 255 255 / .78);
  --wa: #25D366;

  --font-head: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --font-body: 'Heebo', Arial, sans-serif;

  --shadow-card: 0 30px 70px color-mix(in srgb, var(--ink) 16%, transparent);
  --shadow-pop: 0 18px 40px color-mix(in srgb, var(--ink) 32%, transparent);
  --r-card: 26px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.75; color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.icon { width: 22px; height: 22px; flex: none; }

/* ---------- כפתורים ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border: 0; border-radius: 999px; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { color: var(--ink); background: linear-gradient(135deg, var(--accent-light), var(--accent)); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 42%, transparent); }
.btn--ink { color: #fff; background: linear-gradient(135deg, var(--blue), var(--ink)); box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 38%, transparent); }
.btn--ghost-dark { color: #fff; border: 2px solid rgb(255 255 255 / .5); background: rgb(255 255 255 / .12); }
.btn--outline-ink { color: var(--ink); border: 2px solid var(--ink); background: transparent; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 18px; }

/* ---------- תפריט צף ---------- */
.nav-wrap { position: fixed; inset: 14px 0 auto 0; z-index: 50; }
.nav { position: relative; width: min(1160px, 100% - 24px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 12px; border-radius: 999px; background: rgb(255 255 255 / .96); box-shadow: var(--shadow-pop); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.logo__mark svg { width: 26px; height: 26px; }
.logo__text { display: grid; font-family: var(--font-head); font-weight: 900; font-size: 20px; line-height: 1.1; color: var(--ink); }
.logo__text small { font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--muted); }
.logo__img { height: 42px; width: auto; max-width: 170px; object-fit: contain; }
.logo--has-img .logo__mark, .logo--has-img .logo__text { display: none; }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__text small { color: var(--on-dark); }
.nav__links { display: none; gap: 2px; }
.nav__links a { padding: 9px 13px; border-radius: 999px; font-weight: 500; font-size: 16px; color: var(--ink); }
.nav__links a:hover { background: var(--surface); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__lang { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; font-size: 16px; color: var(--ink); }
.nav__cta { display: none; }
.nav__toggle { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #fff; background: var(--ink); cursor: pointer; }
.nav__toggle svg { width: 24px; height: 24px; }
.nav--open .nav__links { display: grid; position: absolute; inset: calc(100% + 10px) 0 auto 0; padding: 14px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-pop); }
.nav--open .nav__links a { padding: 13px 16px; font-size: 18px; }

/* ---------- פתיחה ---------- */
.hero { position: relative; padding: 130px 0 110px; color: #fff; background: radial-gradient(ellipse at 20% 30%, var(--blue), var(--ink) 70%); overflow: hidden; }
.hero__deco { position: absolute; inset: 0; pointer-events: none; }
.ring { position: absolute; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.ring--a { width: 620px; height: 620px; top: -220px; inset-inline-end: -180px; }
.ring--b { width: 420px; height: 420px; bottom: -200px; inset-inline-start: -120px; }
.glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--accent); opacity: .16; filter: blur(90px); top: 20%; inset-inline-end: 12%; }
.hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
.pill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 16px; color: var(--accent-light); background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.pill-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero__title { margin-top: 20px; font-weight: 900; font-size: clamp(40px, 7vw, 76px); line-height: 1.08; }
.hero__title em, .title em { font-style: normal; background: linear-gradient(90deg, var(--accent-light), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 20px; max-width: 34em; font-size: 19px; color: var(--on-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 16px; font-weight: 500; color: var(--on-dark); }
.hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__ticks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A2744' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.hero__visual { position: relative; width: min(400px, 82vw); margin-inline: auto; aspect-ratio: 1; }
.hero__circle { position: absolute; inset: 6%; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--accent) 16%, var(--ink)); border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 30px 80px rgb(0 0 0 / .4); }
.hero__circle img { width: 100%; height: 100%; object-fit: cover; }
.hero__halo { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--accent) 50%, transparent); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.float { position: absolute; display: grid; justify-items: center; padding: 10px 16px; border-radius: 20px; font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--ink); background: #fff; box-shadow: var(--shadow-pop); }
.float b { font-family: var(--font-head); font-weight: 900; font-size: 30px; color: var(--accent-2); }
.float--a { top: 4%; inset-inline-start: -4%; }
.float--b { bottom: 6%; inset-inline-end: -4%; }

/* ---------- גלים ---------- */
.wave { position: absolute; inset-inline: 0; width: 100%; height: 70px; }
.wave--bottom { bottom: -1px; }
.wave--top { top: -1px; }

/* ---------- מקטעים וכותרות ---------- */
.section { position: relative; padding: 84px 0; }
.section--white { background: #fff; }
.head { max-width: 720px; margin-bottom: 44px; }
.head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: block; font-size: 16px; font-weight: 700; letter-spacing: .02em; color: var(--accent-2); }
.title { margin-top: 8px; font-weight: 900; font-size: clamp(32px, 5vw, 54px); color: var(--ink); }
.head__sub { margin-top: 14px; font-size: 19px; color: var(--muted); }
.dark .eyebrow { color: var(--accent-light); }
.dark .title { color: #fff; }
.dark .head__sub { color: var(--on-dark); }

/* ---------- מה זה ---------- */
.about { display: grid; gap: 40px; align-items: center; }
.about__text p { margin-bottom: 16px; color: var(--muted); }
.about__text p.lead-p { font-size: 20px; color: var(--text); }
.verse { margin: 26px 0; padding: 24px 26px; border-radius: var(--r-card); border-inline-start: 5px solid var(--accent); background: var(--bg); font-family: var(--font-head); font-size: 22px; line-height: 1.6; color: var(--ink); }
.verse cite { display: block; margin-top: 8px; font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: 16px; color: var(--accent-2); }
.about__visual { position: relative; }
.about__visual img { width: 100%; border-radius: 32px; background: var(--surface); box-shadow: var(--shadow-card); }
.about__visual::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 32px; border: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); z-index: 0; }
.about__visual img { position: relative; z-index: 1; }

/* ---------- הלכות ---------- */
.rules { display: grid; gap: 22px; }
.rule { position: relative; padding: 30px 26px; border-radius: var(--r-card); background: #fff; border: 2px solid var(--surface); box-shadow: var(--shadow-card); transition: transform .2s ease; }
.rule:hover { transform: translateY(-4px); }
.rule__num { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border-radius: 50%; font-family: var(--font-head); font-weight: 900; font-size: 28px; color: var(--ink); background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.rule h3 { font-size: 23px; color: var(--ink); margin-bottom: 8px; }
.rule p { color: var(--muted); }

/* ---------- סדר הטקס ---------- */
.ceremony { position: relative; padding: 130px 0 140px; background: var(--ink); overflow: hidden; }
.ceremony .wave path { fill: var(--bg); }
.ceremony .wave--bottom path { fill: #fff; }
.dots { position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--accent) 35%, transparent) 1.5px, transparent 1.5px); background-size: 26px 26px; mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 85%); opacity: .5; pointer-events: none; }
.steps { position: relative; display: grid; gap: 20px; }
.step { display: flex; gap: 20px; align-items: flex-start; padding: 26px 24px; border-radius: var(--r-card); background: rgb(255 255 255 / .06); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); }
.step__num { flex: none; font-family: var(--font-head); font-weight: 900; font-size: 54px; line-height: .9; color: var(--accent); }
.step h3 { font-size: 22px; color: #fff; margin-bottom: 6px; }
.step p { color: var(--on-dark); }

/* ---------- כהנים ---------- */
.kohanim { display: grid; gap: 22px; }
.kohen { position: relative; padding: 28px 24px; border-radius: var(--r-card); background: var(--bg); border: 2px solid var(--surface); }
.kohen:has(.kohen__name:empty) { display: none; }
.kohen__avatar { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; color: var(--ink); background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.kohen__name { font-size: 22px; color: var(--ink); }
.kohen__area { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 700; font-size: 16px; color: var(--accent-2); }
.kohen__area:has(span:empty), .kohen__note:empty, .kohen__phone:has(span:empty) { display: none; }
.kohen__area .icon { width: 18px; height: 18px; }
.kohen__note { margin-top: 8px; font-size: 16px; color: var(--muted); }
.kohen__phone { margin-top: 16px; direction: ltr; }
.kohanim-empty { display: none; padding: 34px 28px; border-radius: var(--r-card); background: var(--bg); border: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); text-align: center; }
.kohanim-empty h3 { font-size: 24px; color: var(--ink); margin-bottom: 8px; }
.kohanim-empty p { color: var(--muted); max-width: 34em; margin-inline: auto; }
.kohanim:not(:has(.kohen__name:not(:empty))) { display: none; }
.kohanim:not(:has(.kohen__name:not(:empty))) + .kohanim-empty { display: block; }
.join { display: grid; gap: 18px; align-items: center; margin-top: 28px; padding: 28px; border-radius: var(--r-card); color: #fff; background: linear-gradient(135deg, var(--blue), var(--ink)); box-shadow: var(--shadow-card); }
.join h3 { font-size: 24px; }
.join p { color: var(--on-dark); }
.note { display: flex; gap: 12px; margin-top: 22px; padding: 18px 22px; border-radius: 20px; background: var(--surface); font-size: 16px; color: var(--text); }
.note .icon { color: var(--accent-2); margin-top: 3px; }

/* ---------- גלריה: מופיעה רק כשיש תמונות ---------- */
.gallery:not(:has(img[src])) { display: none; }
body:not(:has(.gallery img[src])) a[href$="#gallery"] { display: none; }
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-card); }
.gallery__grid img:not([src]) { display: none; }

/* ---------- שאלות נפוצות ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details { margin-bottom: 12px; border-radius: 22px; background: var(--bg); border: 2px solid var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 22px; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-family: var(--font-body); font-size: 24px; line-height: 1; color: var(--ink); background: var(--accent-light); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- יצירת קשר ---------- */
.cta { position: relative; padding: 90px 0 130px; color: var(--ink); background: linear-gradient(135deg, var(--accent-light), var(--accent)); overflow: hidden; }
.cta__outline { position: absolute; top: 10px; inset-inline-start: -10px; font-family: var(--font-head); font-weight: 900; font-size: clamp(90px, 18vw, 240px); line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--ink) 14%, transparent); pointer-events: none; }
.cta__grid { position: relative; display: grid; gap: 40px; align-items: center; }
.cta__title { font-weight: 900; font-size: clamp(36px, 6vw, 62px); }
.cta__sub { margin-top: 14px; font-size: 19px; font-weight: 500; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta .wave path { fill: var(--ink); }
.lead { position: relative; display: grid; gap: 14px; padding: 26px 22px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-card); }
.lead__title { font-size: 26px; color: var(--ink); }
.lead__field { display: grid; gap: 6px; font-size: 16px; font-weight: 700; color: var(--muted); }
.lead__field input, .lead__field select, .lead__field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; font: inherit; font-size: 17px; font-weight: 500; color: var(--ink); }
.lead__field textarea { min-height: 84px; resize: vertical; }
.lead__field input:focus, .lead__field select:focus, .lead__field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.lead__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lead__submit { width: 100%; }
.lead__submit:disabled { opacity: .6; }
.lead__msg { min-height: 1.4em; font-size: 16px; font-weight: 700; color: var(--accent-2); }
.lead__msg--bad { color: #B42318; }
.lead__done { padding: 28px 10px; text-align: center; font-family: var(--font-head); font-weight: 900; font-size: 26px; color: var(--ink); }
.lead__privacy { font-size: 16px; color: var(--muted); }

/* ---------- כותרת תחתונה ---------- */
.footer { padding: 36px 0 110px; color: var(--on-dark); background: var(--ink); }
.footer__grid { display: grid; gap: 24px; }
.footer__line { margin-top: 12px; max-width: 30em; font-size: 16px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 16px; }
.footer__links a { padding: 8px 0; color: var(--accent-light); }
.footer__disclaimer { margin-top: 26px; padding: 16px 20px; border-radius: 18px; background: rgb(255 255 255 / .06); font-size: 16px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .12); font-size: 16px; }
.footer__admin { opacity: .6; }
.footer__admin:hover { opacity: 1; }

/* ---------- וואטסאפ ---------- */
/* עד שמכניסים מספר וואטסאפ אמיתי באזור הניהול, כפתורי הוואטסאפ מוסתרים */
a[href*="wa.me/972500000000"], a[href$="wa.me/972"], a[href*="wa.me/972?"] { display: none !important; }
.wa-float { position: fixed; left: 18px; bottom: 18px; z-index: 60; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff; background: var(--wa); box-shadow: 0 10px 26px rgb(37 211 102 / .45); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); opacity: .45; animation: pulse 2.4s ease-out infinite; z-index: -1; }
@keyframes pulse { from { transform: scale(1); opacity: .45; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- הופעה בגלילה ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- טאבלט ומחשב ---------- */
@media (min-width: 720px) {
  .rules { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .kohanim { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .join { grid-template-columns: 1fr auto; padding: 34px 38px; }
  .footer__grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .lead { padding: 32px 30px; }
  .nav__cta { display: inline-flex; }
}
@media (min-width: 1020px) {
  .nav { padding: 8px 12px 8px 14px; }
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .hero { padding: 170px 0 150px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
  .about { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .rules, .kohanim { grid-template-columns: repeat(3, 1fr); }
  .cta__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .section { padding: 110px 0; }
}

/* כשאזור הניהול פתוח במחשב, האתר זז ימינה כדי שיהיה גלוי */
@media (min-width: 1100px) {
  .adm-open .nav-wrap { left: 600px; }
  .adm-open .nav__links, .adm-open .nav__cta, .adm-open .wa-float { display: none; }
  .adm-open .nav__toggle { display: grid; }
}

/* עמוד באנגלית: כיוון משמאל לימין */
[dir="ltr"] .wa-float { left: auto; right: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__halo, .wa-float::before { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn:hover, .rule:hover { transform: none; }
}
