/* כיוון: חם וחווייתי (library/directions/warm-experience.md) + ה-DNA, בצבעי המותג של גנזי המלך:
   זהב על כחול לילה. צבעים ופונטים מוגדרים כאן פעם אחת. */
:root {
  /* ארבעת צבעי הבסיס (אפשר לשנות מאזור הניהול): דיו/רקע לילה, שמנת, זהב ראשי, זהב עמוק */
  --ink: #141B2D;
  --blue: #F3EBDA;
  --yellow: #C4AE7E;
  --teal: #9C7F3C;
  /* נגזרים */
  --night: var(--ink);
  --night-2: color-mix(in srgb, var(--ink) 82%, #3a4a78);
  --night-3: color-mix(in srgb, var(--ink) 70%, #000);
  --cream: var(--blue);
  --gold: var(--yellow);
  --gold-l: color-mix(in srgb, var(--yellow) 55%, #fff6dc);
  --gold-d: var(--teal);
  --muted: color-mix(in srgb, var(--blue) 72%, var(--ink));
  --line: color-mix(in srgb, var(--yellow) 35%, transparent);
  --wa: #25D366;
  --font-head: 'Frank Ruhl Libre', serif;
  --font-body: 'Assistant', sans-serif;
  --max: 1180px;
  --shadow-card: 0 30px 70px color-mix(in srgb, #000 45%, transparent);
  --shadow-pop: 0 18px 40px color-mix(in srgb, var(--teal) 35%, transparent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.65; color: var(--cream); background: var(--night); overflow-x: clip; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* ---------- כותרות ותוויות ---------- */
.eyebrow { display: inline-block; font-size: 15px; font-weight: 800; letter-spacing: .04em; color: var(--gold); margin-bottom: 10px; }
.title { font-weight: 900; font-size: clamp(36px, 5.6vw, 64px); color: var(--cream); }
.title em, .hero__title em, .cta__title em { font-style: normal; background: linear-gradient(90deg, var(--gold-l), var(--gold), var(--gold-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.head { max-width: 720px; margin-bottom: 44px; }
.head--center { margin-inline: auto; text-align: center; }
.head--light .title { color: var(--cream); }

/* ---------- כפתורים ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-family: var(--font-body); font-weight: 800; font-size: 18px; line-height: 1.2; border: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 16px; }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 19px; }
.btn--xl { min-height: 64px; padding: 16px 36px; font-size: 21px; }
.btn--gold { color: var(--night); background: linear-gradient(135deg, var(--gold-l), var(--gold)); box-shadow: 0 10px 26px color-mix(in srgb, var(--gold) 40%, transparent), inset 0 1px 0 rgb(255 255 255 / .5); }
.btn--ghost { color: var(--cream); background: rgb(255 255 255 / .1); border: 2px solid rgb(243 235 218 / .45); }

/* ---------- תפריט צף ---------- */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding-inline: 14px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(100%, var(--max)); margin-inline: auto; padding: 8px 10px 8px 18px; border-radius: 999px; background: color-mix(in srgb, var(--night) 82%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 14px 40px rgb(0 0 0 / .35); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__img { width: 46px; height: 46px; object-fit: contain; }
.logo__text { font-family: var(--font-head); font-weight: 900; font-size: 22px; line-height: 1; color: var(--gold-l); display: flex; flex-direction: column; }
.logo__text small { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.nav__links { display: none; gap: 26px; font-weight: 700; font-size: 16px; }
.nav__links a:hover { color: var(--gold); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__wa { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--wa); }
.nav__wa svg { width: 22px; height: 22px; }

/* ---------- פתיחה: תמונה על כל המסך ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 150px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 62%; z-index: -3; }
.hero__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, color-mix(in srgb, var(--night) 55%, transparent) 0%, color-mix(in srgb, var(--night) 45%, transparent) 35%, var(--night) 92%); }
.hero__brand { position: absolute; z-index: -1; top: 16%; inset-inline: 0; text-align: center; font-family: var(--font-head); font-weight: 900; font-size: clamp(90px, 19vw, 260px); line-height: 1; color: rgb(243 235 218 / .1); white-space: nowrap; pointer-events: none; }
.hero__inner { position: relative; z-index: 2; }
.hero__text { max-width: 760px; }
.pill-tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; font-weight: 800; font-size: 16px; color: var(--gold-l); background: rgb(20 27 45 / .55); border: 1px solid var(--line); }
.pill-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); }
.hero__title { margin-top: 18px; font-weight: 900; font-size: clamp(42px, 7.4vw, 92px); color: var(--cream); text-shadow: 0 4px 30px rgb(0 0 0 / .45); }
.hero__title em { text-shadow: none; filter: drop-shadow(0 0 24px rgb(226 201 143 / .35)); }
.hero__title small { font-size: .42em; color: var(--gold); }
.hero__sub { margin-top: 18px; max-width: 600px; font-size: clamp(18px, 2vw, 21px); color: var(--cream); opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0 0; padding: 0; list-style: none; font-weight: 700; color: var(--gold-l); }
.hero__ticks li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: var(--gold); vertical-align: middle; }

/* פנסים מתנדנדים: האיור של התחום */
.lanterns { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 1; pointer-events: none; }
.lantern { position: absolute; top: -40px; width: 74px; height: 234px; transform-origin: 50% 0; animation: swing 4.2s ease-in-out infinite; filter: drop-shadow(0 0 22px rgb(255 200 103 / .55)); }
.lantern--1 { left: 6%; animation-delay: -1s; }
.lantern--2 { left: 20%; top: -110px; width: 56px; height: 178px; opacity: .8; animation-duration: 5s; }
.lantern--3 { right: 7%; top: -70px; animation-duration: 4.6s; animation-delay: -2.3s; }
@keyframes swing { 0%, 100% { transform: rotate(3.5deg); } 50% { transform: rotate(-3.5deg); } }

/* ---------- גלים ---------- */
.wave { position: absolute; left: 0; width: 100%; height: 90px; display: block; }
.wave--hero { bottom: -1px; }
.wave--hero path { fill: var(--night); }

/* ---------- פרטי ההילולה ---------- */
.trust { position: relative; z-index: 5; display: grid; gap: 14px; margin: -70px 0 0; padding: 22px; list-style: none; border-radius: 28px; background: linear-gradient(160deg, var(--night-2), var(--night)); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.trust li, .trust__nav { display: flex; align-items: center; gap: 14px; }
.trust b { display: block; font-family: var(--font-head); font-size: 20px; color: var(--gold-l); }
.trust b + span { font-size: 17px; color: var(--cream); }
.trust__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; color: var(--gold-l); background: color-mix(in srgb, var(--gold) 16%, transparent); box-shadow: 0 0 0 2px var(--line); }
.trust__icon svg { width: 24px; height: 24px; }
.trust__icon--solid { color: var(--night); background: linear-gradient(135deg, var(--gold-l), var(--gold)); box-shadow: var(--shadow-pop); }
.trust__nav:hover b { text-decoration: underline; }

/* ---------- מקטעים ---------- */
.section { position: relative; padding: 110px 0; overflow-x: clip; }
.section::before { content: ""; position: absolute; width: 520px; height: 520px; top: 10%; left: -220px; border-radius: 50%; background: var(--gold); opacity: .08; filter: blur(90px); pointer-events: none; }

/* דברי הרב */
.video { display: grid; gap: 44px; align-items: center; }
.video__frame { position: relative; width: min(100%, 360px); margin-inline: auto; }
.video__frame video { position: relative; z-index: 1; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 28px; background: #000; box-shadow: var(--shadow-card); }
.video__ring { position: absolute; inset: -14px; border-radius: 38px; border: 2px dashed var(--line); }
.video__switch { position: relative; z-index: 2; display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.video__switch button { min-height: 44px; padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 16px; color: var(--cream); background: rgb(255 255 255 / .08); border: 2px solid var(--line); cursor: pointer; }
.video__switch button.is-on { color: var(--night); background: linear-gradient(135deg, var(--gold-l), var(--gold)); border-color: transparent; }
.quote { margin: 22px 0 0; padding: 4px 22px 4px 0; border-inline-start: 4px solid var(--gold); }
.quote p { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35; color: var(--gold-l); }
.video__about { margin-top: 26px; font-size: 18px; color: var(--muted); }

/* איך שומרים מקום */
.process { position: relative; padding: 150px 0 160px; background: var(--night-3); }
.wave--top { top: -1px; }
.wave--top path, .wave--bottom path { fill: var(--night); }
.wave--bottom { bottom: -1px; }
.steps { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; gap: 22px; align-items: flex-start; padding: 28px 26px; border-radius: 26px; background: linear-gradient(160deg, var(--night-2), var(--night)); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.step__num { font-family: var(--font-head); font-weight: 900; font-size: clamp(60px, 8vw, 96px); line-height: .85; background: linear-gradient(180deg, var(--gold-l), var(--gold-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 24px; color: var(--cream); margin-bottom: 6px; }
.step p { color: var(--muted); }

/* רגעים מההילולה שעברה */
.moments { display: flex; justify-content: center; align-items: center; gap: 0; perspective: 1200px; }
.moment { flex: none; margin: 0 -26px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card); border: 2px solid var(--line); background: #000; position: relative; }
.moment img { width: 100%; height: 100%; object-fit: cover; }
.moment--main { z-index: 3; width: 300px; height: 440px; }
.moment--near { z-index: 2; width: 220px; height: 330px; filter: blur(1.5px) brightness(.75); }
.moment--far { z-index: 1; width: 180px; height: 260px; filter: blur(3.5px) brightness(.55); }
.moment figcaption { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; font-weight: 800; font-size: 17px; color: var(--cream); background: linear-gradient(180deg, transparent, rgb(20 27 45 / .9)); }


/* תרומה */
.section--tight { padding: 80px 0; }
.donate { display: grid; gap: 34px; align-items: center; padding: 30px 24px; border-radius: 30px; background: linear-gradient(160deg, var(--night-2), var(--night)); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.donate__img { width: min(100%, 300px); margin-inline: auto; border-radius: 22px; box-shadow: 0 0 0 2px var(--line), var(--shadow-pop); }
.donate__sub { margin: 20px 0 26px; color: var(--muted); }

/* שאלות נפוצות */
.faq { max-width: 820px; }
.faq details { margin-bottom: 14px; border-radius: 22px; background: var(--night-2); border: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 30px; line-height: 1; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* שמירת מקום */
.cta { position: relative; padding: 110px 0 170px; overflow: hidden; background: radial-gradient(900px 500px at 80% 0%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%), var(--night-2); }
.cta__outline { position: absolute; top: 40px; left: -20px; font-family: var(--font-head); font-weight: 900; font-size: clamp(120px, 22vw, 300px); line-height: 1; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--gold) 22%, transparent); white-space: nowrap; pointer-events: none; }
.cta__grid { position: relative; display: grid; gap: 40px; align-items: center; }
.eyebrow--light { color: var(--gold-l); }
.cta__title { font-weight: 900; font-size: clamp(40px, 6vw, 72px); color: var(--cream); }
.cta__sub { margin-top: 16px; max-width: 520px; font-size: 19px; color: var(--cream); opacity: .9; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta__actions [data-edit-tel] { direction: ltr; }

.lead { display: grid; gap: 14px; padding: 30px 26px; border-radius: 28px; color: var(--night); background: var(--cream); box-shadow: 0 30px 70px rgb(0 0 0 / .45); }
.lead__title { font-size: 28px; color: var(--night); margin-bottom: 4px; }
.lead__field { display: grid; gap: 6px; font-size: 16px; font-weight: 700; color: color-mix(in srgb, var(--night) 75%, var(--cream)); }
.lead__field input, .lead__field select, .lead__field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 16px; border: 2px solid color-mix(in srgb, var(--gold) 45%, #fff); background: #fff; font: inherit; font-weight: 600; font-size: 17px; color: var(--night); }
.lead__field textarea { min-height: 90px; resize: vertical; }
.lead__field input:focus, .lead__field select:focus, .lead__field textarea:focus { outline: none; border-color: var(--gold-d); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); }
.lead__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lead__submit { width: 100%; margin-top: 4px; }
.lead__submit:disabled { opacity: .6; }
.lead__msg { min-height: 1.4em; font-size: 16px; font-weight: 700; color: var(--gold-d); }
.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(--night); }
[hidden] { display: none !important; }

.wave--footer { bottom: -1px; height: 80px; }
.wave--footer path { fill: var(--night-3); }

/* ---------- כותרת תחתונה ---------- */
.footer { padding: 32px 0 110px; color: var(--muted); background: var(--night-3); }
.footer__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.footer__line { margin-top: 12px; font-size: 16px; }
.footer__phone { font-family: var(--font-head); font-weight: 900; font-size: 30px; color: var(--gold-l); direction: ltr; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .1); font-size: 15px; }
.footer__admin { opacity: .6; }
.footer__admin:hover { opacity: 1; }

/* כשאזור הניהול פתוח במחשב, האתר זז ימינה כדי שיהיה גלוי */
@media (min-width: 1100px) {
  .adm-open .nav-wrap { left: 600px; }
  .adm-open .nav__links, .adm-open .wa-float { display: none; }
}

/* ---------- וואטסאפ צף ---------- */
.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) {
  .trust { grid-template-columns: repeat(2, 1fr); padding: 26px 30px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
}
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .video { grid-template-columns: 380px 1fr; gap: 80px; }
  .donate { grid-template-columns: 320px 1fr; gap: 60px; padding: 44px 50px; }
  .cta__grid { grid-template-columns: 1.1fr .9fr; gap: 70px; }
  .lead { padding: 36px 34px; }
}

/* ---------- טלפון ---------- */
@media (max-width: 719px) {
  .hero { padding-bottom: 130px; }
  .hero__actions .btn { width: 100%; }
  .lantern--2 { display: none; }
  .lantern--1 { left: 3%; width: 56px; height: 178px; }
  .lantern--3 { right: 3%; width: 56px; height: 178px; }
  .moment--far { display: none; }
  .moment--main { width: 230px; height: 340px; }
  .moment--near { width: 150px; height: 230px; }
  .section { padding: 90px 0; }
  .lead { padding: 24px 20px; }
  .cta__actions .btn { width: 100%; }
}
@media (max-width: 559px) {
  .nav .btn--sm { display: none; }
  .logo__text { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lantern, .wa-float::before { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}
