/* ============================================================
   אתר הרב מנשה אמון — עיצוב ראשי
   ============================================================ */

:root {
  --navy-950: #060d1a;
  --navy-900: #0a1730;
  --navy-800: #0f2244;
  --navy-700: #16305e;
  --gold: #e0b04f;
  --gold-strong: #f0c25e;
  --gold-soft: rgba(224, 176, 79, 0.35);
  --cream: #f7f1e3;
  --text: #eef3fb;
  --text-dim: #b9c6dc;
  --font-title: "Frank Ruhl Libre", serif;
  --font-body: "Heebo", sans-serif;
  --header-h: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.9rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  color: #2a1f07;
  box-shadow: 0 6px 22px rgba(224, 176, 79, 0.35);
}
.btn-gold:hover { box-shadow: 0 10px 30px rgba(224, 176, 79, 0.5); }

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  z-index: 100;
  background: linear-gradient(180deg, rgba(6, 13, 26, 0.92), rgba(6, 13, 26, 0.55) 80%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.82rem;
  background: radial-gradient(circle at 30% 30%, rgba(224, 176, 79, 0.18), transparent 70%);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}
.main-nav a {
  font-size: 1.02rem;
  color: var(--text-dim);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-cta { flex-shrink: 0; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.menu-btn span {
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ============================================================
   HERO — סצנת בית המדרש המונפשת
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
}

.scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* תמונת הכותל — רקע עם זום איטי ומחזור בהירות יום/לילה */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/background.jpg") center 35% / cover no-repeat;
  animation:
    slow-zoom 50s ease-in-out infinite alternate,
    sky-brightness 21s ease-in-out infinite;
  will-change: transform, filter;
}
@keyframes slow-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}
/* היום בהיר וצבעוני, הלילה כהה ועמוק */
@keyframes sky-brightness {
  0%, 100% { filter: brightness(1.35) saturate(1.15); } /* יום */
  50%      { filter: brightness(0.42) saturate(0.78); } /* לילה */
}

/* שמי יום — תכלת בהירה שמציפה את השמיים ביום ונעלמת בלילה */
.overlay-day {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(150, 200, 255, 0.65) 0%,
    rgba(125, 180, 240, 0.35) 35%,
    rgba(200, 220, 250, 0.10) 55%,
    transparent 75%);
  mix-blend-mode: screen;
  animation: day-cycle 21s ease-in-out infinite;
}
@keyframes day-cycle {
  0%, 100% { opacity: 1; }   /* צהריים */
  30%      { opacity: 0; }
  70%      { opacity: 0; }
}

/* מחזור לילה — שכבה כחולה כהה שמשתלטת בלילה */
.overlay-night {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(3, 8, 20, 0.98) 0%,
    rgba(5, 12, 28, 0.85) 45%,
    rgba(7, 15, 32, 0.94) 100%);
  animation: nightfall 21s ease-in-out infinite;
}
@keyframes nightfall {
  0%, 100% { opacity: 0.02; } /* יום — כמעט ללא החשכה */
  38%      { opacity: 0.55; }
  50%      { opacity: 0.9;  } /* לילה עמוק */
  62%      { opacity: 0.55; }
}

/* זוהר שקיעה חם — מתלקח במעברים שבין יום ללילה */
.overlay-warm {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 80%, rgba(255, 150, 50, 0.5), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(240, 180, 80, 0.35), transparent 50%),
    linear-gradient(0deg, rgba(255, 140, 60, 0.22) 0%, transparent 45%);
  mix-blend-mode: screen;
  animation: warm-cycle 21s ease-in-out infinite;
}
@keyframes warm-cycle {
  0%, 100% { opacity: 0.15; } /* יום */
  25%      { opacity: 1; }    /* שקיעה */
  50%      { opacity: 0; }    /* לילה */
  75%      { opacity: 1; }    /* זריחה */
}

/* שכבת קריאות קבועה — מסגרור עדין שמתמזג עם המקטע הבא */
.overlay-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 26, 0.55) 0%, transparent 22%),
    linear-gradient(0deg, var(--navy-800) 0%, rgba(15, 34, 68, 0.45) 12%, transparent 32%),
    linear-gradient(270deg, rgba(6, 13, 26, 0.35) 0%, transparent 45%);
}

/* כוכבים נוצצים — נראים רק בלילה */
.stars {
  position: absolute;
  inset: 0;
  animation: stars-cycle 21s ease-in-out infinite;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(1px 1px at 28% 8%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 22%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 61% 12%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(2px 2px at 74% 25%, rgba(255,255,255,0.75), transparent 60%),
    radial-gradient(1px 1px at 86% 9%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 93% 30%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 52% 5%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 8% 35%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 37% 15%, rgba(255,255,255,0.55), transparent 60%);
}
/* הכוכבים מופיעים בלילה ומהבהבים קלות */
@keyframes stars-cycle {
  0%, 100% { opacity: 0; }
  35%      { opacity: 0.55; }
  42%      { opacity: 0.95; }
  50%      { opacity: 0.75; }
  58%      { opacity: 1; }
  65%      { opacity: 0.55; }
}

/* עננים נעים לאט */
.cloud {
  position: absolute;
  width: 60vw;
  height: 30vh;
  border-radius: 50%;
  filter: blur(60px);
  background: radial-gradient(ellipse at center, rgba(120, 150, 200, 0.14), transparent 70%);
  animation: drift 60s linear infinite;
}
.cloud-1 { top: 6%; animation-duration: 75s; }
.cloud-2 { top: 26%; animation-duration: 95s; animation-delay: -40s; opacity: 0.7; }
.cloud-3 { top: 48%; animation-duration: 120s; animation-delay: -70s; opacity: 0.5; }
@keyframes drift {
  from { transform: translateX(-70vw); }
  to   { transform: translateX(120vw); }
}

/* קרני אור זהובות נעות */
.beam {
  position: absolute;
  top: -12%;
  height: 130%;
  width: clamp(90px, 12vw, 190px);
  background: linear-gradient(180deg,
    rgba(240, 194, 94, 0.0) 0%,
    rgba(240, 194, 94, 0.16) 30%,
    rgba(240, 194, 94, 0.05) 75%,
    transparent 100%);
  filter: blur(14px);
  transform-origin: top center;
  mix-blend-mode: screen;
}
.beam-1 { right: 26%; animation: sway 11s ease-in-out infinite alternate; }
.beam-2 { right: 42%; width: clamp(60px, 8vw, 130px); animation: sway 14s ease-in-out infinite alternate-reverse; opacity: 0.8; }
.beam-3 { right: 58%; animation: sway 17s ease-in-out infinite alternate; opacity: 0.6; }
@keyframes sway {
  0%   { transform: rotate(-7deg) translateX(0); opacity: 0.45; }
  50%  { transform: rotate(0deg) translateX(12px); opacity: 0.95; }
  100% { transform: rotate(6deg) translateX(-8px); opacity: 0.55; }
}

/* הילת אור חמה מאחורי הכיתוב */
.glow-core {
  position: absolute;
  top: 30%;
  right: 18%;
  width: 46vw;
  height: 46vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 176, 79, 0.13), transparent 65%);
  animation: breathe 8s ease-in-out infinite;
  filter: blur(10px);
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.12); opacity: 1; }
}

/* חלקיקי אור מרחפים (נוצרים ב-JS) */
.particle {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 200, 110, 0.95), rgba(240, 200, 110, 0) 70%);
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: 0.85; }
  85%  { opacity: 0.35; }
  100% { transform: translateY(-88vh) translateX(var(--sway, 30px)); opacity: 0; }
}

/* ---------- תוכן ה-Hero ---------- */
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) clamp(1rem, 4vw, 3rem) 0;
  display: flex;
  align-items: center;
  min-height: 100svh;
}

.hero-text {
  max-width: min(52%, 640px);
  padding-bottom: clamp(3rem, 10vh, 7rem);
  animation: fade-up 1.2s ease both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: "Suez One", "Frank Ruhl Libre", serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55), 0 0 80px rgba(224, 176, 79, 0.18);
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: var(--gold-strong);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 0, 0, 0.6);
}

.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* תמונת הרב — חתוכה, יושבת על תחתית המסך בצד שמאל */
.hero-figure {
  position: absolute;
  bottom: 0;
  left: clamp(0.5rem, 5vw, 6rem);
  z-index: 3;
  animation: fade-in 1.6s ease both;
  pointer-events: none;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.hero-figure img {
  display: block;
  width: clamp(300px, 34vw, 540px);
  height: auto;
  filter:
    drop-shadow(0 0 50px rgba(224, 176, 79, 0.35))
    drop-shadow(0 12px 34px rgba(0, 0, 0, 0.6));
}

/* חץ גלילה */
.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  right: 50%;
  transform: translateX(50%);
  z-index: 4;
  color: var(--text-dim);
  font-size: 1.6rem;
  animation: bob 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bob {
  0%, 100% { transform: translateX(50%) translateY(0); opacity: 0.6; }
  50%      { transform: translateX(50%) translateY(8px); opacity: 1; }
}

/* ============================================================
   מקטעים כלליים
   ============================================================ */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 0.8rem;
}
.section-title .accent { color: var(--gold); }

.section-lead {
  text-align: center;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.gold-divider {
  width: 70px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 1.6rem;
}

/* כרטיסיות קישור בדף הבית */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 2rem 1.6rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-soft);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-soft);
  background: radial-gradient(circle at 35% 30%, rgba(224, 176, 79, 0.16), transparent 70%);
}
.card h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.card p { color: var(--text-dim); line-height: 1.6; font-size: 0.98rem; }

/* ---------- דפי משנה ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(224, 176, 79, 0.12), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.page-hero h1 {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}
.page-hero p {
  margin-top: 0.9rem;
  color: var(--text-dim);
  max-width: 620px;
  margin-inline: auto;
  line-height: 1.7;
  font-size: 1.08rem;
}

/* ---------- טפסים ---------- */
.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 500;
  font-size: 0.98rem;
}
.field label .req { color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 13, 26, 0.6);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(224, 176, 79, 0.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select option { background: var(--navy-900); }

.field .error-msg {
  display: none;
  color: #ff9d9d;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #e06a6a; }
.field.invalid .error-msg { display: block; }

.form-note {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
}

.form-submit { width: 100%; justify-content: center; font-size: 1.15rem; padding: 1rem; }

/* תיבת סימון בטופס */
.field-check label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 0;
}
.field-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--gold);
  cursor: pointer;
}
.field-check.invalid label span { color: #ff9d9d; }

/* הודעת הנחיה מודגשת */
.notice-card {
  max-width: 640px;
  margin: 0 auto 1.6rem;
  padding: 1.4rem 1.6rem;
  border-radius: 16px;
  border: 1px solid rgba(224, 176, 79, 0.4);
  background: rgba(224, 176, 79, 0.08);
}
.notice-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--gold-strong);
  margin-bottom: 0.7rem;
}
.notice-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.notice-card li {
  position: relative;
  padding-right: 1.3rem;
  line-height: 1.75;
  color: var(--text);
}
.notice-card li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1.4;
}

/* ---------- דף תכנים ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  max-width: 980px;
  margin: 0 auto;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 2rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  text-align: center;
}
.social-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-soft);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.social-card .icon { font-size: 2.4rem; }
.social-card .name { font-family: var(--font-title); font-size: 1.25rem; font-weight: 700; }
.social-card .desc { color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; }

.placeholder-note {
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed rgba(224, 176, 79, 0.4);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  max-width: 640px;
  margin: 2.5rem auto 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- גלריית סרטונים ---------- */
/* ארבעה בשורה במחשב, שלושה בטאבלט, שניים במובייל */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
  .video-play { width: 46px; height: 46px; }
  .video-play::before { border-width: 9px 0 9px 14px; }
}

.video-card {
  position: relative;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy-950);
  cursor: pointer;
  display: block;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--gold-soft);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  outline: none;
}

.video-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

/* שכבת כהות עדינה שמבליטה את כפתור ההפעלה */
.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, transparent 35%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.video-play {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(224, 176, 79, 0.92);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  z-index: 2;
  transition: transform 0.25s ease, background 0.25s ease;
}
/* משולש ההפעלה, מופנה שמאלה כמקובל בנגנים */
.video-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-58%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #2a1f07;
}
.video-card:hover .video-play,
.video-card:focus-visible .video-play {
  transform: translate(50%, -50%) scale(1.1);
  background: var(--gold-strong);
}

/* חלונית הנגן */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(3, 7, 14, 0.93);
  backdrop-filter: blur(6px);
}
.video-modal[hidden] { display: none; }

.video-modal-inner {
  max-width: min(94vw, 460px);
  width: 100%;
}
.video-modal video {
  width: 100%;
  max-height: 86svh;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  display: block;
}

.video-close {
  position: absolute;
  top: clamp(0.8rem, 3vw, 1.6rem);
  left: clamp(0.8rem, 3vw, 1.6rem);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.video-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- תמונות בדפי משנה ---------- */
.photo-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}
.photo-duo img,
.photo-single img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 18px;
  border: 1px solid rgba(224, 176, 79, 0.25);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.photo-single {
  max-width: 400px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}
@media (max-width: 560px) {
  .photo-duo { grid-template-columns: 1fr; max-width: 340px; }
}

/* ---------- דף תרומה ---------- */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  max-width: 900px;
  margin: 0 auto;
}
.donate-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.donate-card-wide { grid-column: 1 / -1; }
.donate-card h3 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  color: var(--gold-strong);
  margin-bottom: 0.6rem;
}
.donate-desc {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
.detail-list { display: flex; flex-direction: column; gap: 0.7rem; }
.detail-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(6, 13, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.7rem 1rem;
}
.detail-label {
  color: var(--text-dim);
  font-size: 0.92rem;
  min-width: 90px;
}
.detail-value {
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* במסכים צרים השורות נערמות כדי שקודים ארוכים לא יגלשו */
@media (max-width: 420px) {
  .detail-row { flex-wrap: wrap; row-gap: 0.4rem; }
  .detail-label { min-width: 100%; }
  .copy-btn { margin-inline-start: auto; }
}
.copy-btn {
  background: rgba(224, 176, 79, 0.14);
  border: 1px solid var(--gold-soft);
  color: var(--gold-strong);
  border-radius: 8px;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.copy-btn:hover { background: rgba(224, 176, 79, 0.28); }
.copy-btn.copied {
  background: rgba(80, 200, 120, 0.2);
  border-color: rgba(80, 200, 120, 0.5);
  color: #7fe0a0;
}
.donate-contact {
  margin-top: 1.4rem;
  text-align: center;
}
.donate-contact p {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* ---------- דף אודות ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.about-photo img {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
/* מאמר האודות */
.about-article { max-width: 780px; }

.about-portrait {
  max-width: 330px;
  margin: 0 auto clamp(2.2rem, 5vw, 3.2rem);
}
.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 20px;
  border: 1px solid rgba(224, 176, 79, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* תמונות המשולבות לאורך המאמר */
.about-figure {
  margin: 2.8rem 0 0.5rem;
}
.about-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 18px;
  border: 1px solid rgba(224, 176, 79, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.about-text {
  font-size: 1.12rem;
  line-height: 2;
  color: var(--text);
}
.about-text p + p { margin-top: 1rem; }

.about-heading {
  font-family: "Suez One", "Frank Ruhl Libre", serif;
  font-weight: 400;
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  color: var(--gold-strong);
  line-height: 1.45;
  margin-top: 2.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(224, 176, 79, 0.28);
}
.about-text > .about-heading:first-child { margin-top: 0; }
/* כותרת שבאה מיד אחרי תמונה מקבלת מרווח קטן יותר */
.about-figure + .about-heading { margin-top: 1.6rem; }

.about-quote {
  margin: 1.4rem 0;
  padding: 1.1rem 1.5rem;
  border-right: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: rgba(224, 176, 79, 0.07);
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.18rem;
  line-height: 1.85;
  color: var(--gold-strong);
}

.about-lines {
  margin-top: 1rem;
  line-height: 2.1;
}

.about-closing {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(224, 176, 79, 0.28);
  text-align: center;
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.25rem;
  line-height: 2;
  color: var(--gold-strong);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--navy-950);
  padding: 2.5rem clamp(1rem, 4vw, 3rem);
  text-align: center;
  color: var(--text-dim);
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}
.footer-nav a:hover { color: var(--gold); }
.site-footer .credit { font-size: 0.85rem; opacity: 0.7; }

/* כפתור וואטסאפ צף */
.wa-float {
  position: fixed;
  bottom: 1.4rem;
  left: 1.4rem;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ============================================================
   רספונסיביות
   ============================================================ */
@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 13, 26, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav.open { max-height: 60vh; }
  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  .menu-btn { display: flex; }
  .header-cta { display: none; }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }
  .hero-text {
    max-width: 100%;
    padding-bottom: 0;
    padding-top: clamp(1rem, 4vh, 2.5rem);
  }
  .hero-cta { justify-content: center; }
  .hero-figure {
    position: static;
    margin-top: 1.5rem;
    align-self: center;
  }
  .hero-figure img { width: min(76vw, 380px); }

  .about-layout { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
