/* ===== ערכת נושא בהירה =====
   מופעלת כש-<html data-theme="light">. הרעיון: אבן ירושלמית בהירה וזהב עמוק,
   כשהאזורים שיושבים על וידאו או על רקע כהה (פתיחה, סטריפ, "המקום", פוטר) נשארים כהים בכוונה. */

/* כפתור ההחלפה: שמש במצב כהה, ירח במצב בהיר */
.nav__theme .moon { display: none; }
html[data-theme="light"] .nav__theme .sun { display: none; }
html[data-theme="light"] .nav__theme .moon { display: block; }
.nav__theme svg { transition: transform 0.5s var(--ease); }
.nav__theme:hover svg { transform: rotate(35deg); }

/* בטלפונים צרים, שלושה כפתורים ושם המכינה צריכים קצת יותר מקום */
@media (max-width: 420px) {
  .nav { gap: 8px; }
  .nav__name { font-size: 26px; }
  .nav__icons { gap: 6px; }
  .nav .iconbtn { width: 40px; height: 40px; }
}

/* מעבר רך בין הערכות, רק ברגע ההחלפה */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease !important;
}

/* בסיס: התפריט העליון תמיד מתחיל בטקסט לבן, כי בראש העמוד הוא יושב על הווידאו */
.nav { color: #fff; }

html[data-theme="light"] {
  --bg: #f6f1e6;
  --bg-alt: #ece4d3;
  --text: #15212f;
  --muted: #5a6573;
  --gold: #a47b1c;
  --gold-hi: #c59a36;
  --line: rgba(21, 33, 47, 0.13);
  --card: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.72));
  color-scheme: light;
}

/* אזורים שנשארים כהים גם בערכה הבהירה */
html[data-theme="light"] .hero,
html[data-theme="light"] .strip,
html[data-theme="light"] .place,
html[data-theme="light"] .footer {
  --bg: #0a1626;
  --text: #f3eee4;
  --muted: #9fb0c3;
  --gold: #c9a24b;
  --gold-hi: #e6c987;
  --line: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
html[data-theme="light"] .place { background: #0a1626; }

/* טקסט רץ שהוגדר בצבע בהיר קבוע */
html[data-theme="light"] .body,
html[data-theme="light"] .card p,
html[data-theme="light"] .head__text p,
html[data-theme="light"] .qa__a p { color: rgba(21, 33, 47, 0.86); }
html[data-theme="light"] .place .body { color: rgba(243, 238, 228, 0.86); }

/* כרטיסים ומשטחים: לבן נקי עם צל רך במקום זכוכית כהה */
html[data-theme="light"] .card,
html[data-theme="light"] .features li,
html[data-theme="light"] .member,
html[data-theme="light"] .step,
html[data-theme="light"] .qa,
html[data-theme="light"] .contact { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 30px -14px rgba(60, 45, 10, 0.28); }
html[data-theme="light"] .card:hover,
html[data-theme="light"] .member:hover,
html[data-theme="light"] .contact:hover,
html[data-theme="light"] .qa.is-open,
html[data-theme="light"] .step.is-on { border-color: rgba(164, 123, 28, 0.55); }
html[data-theme="light"] .card::before { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(197, 154, 54, 0.16), transparent 60%); }
html[data-theme="light"] .tile,
html[data-theme="light"] .badge { color: var(--gold); background: rgba(164, 123, 28, 0.1); border-color: rgba(164, 123, 28, 0.4); }
html[data-theme="light"] .features .tile { color: var(--ink); background: linear-gradient(160deg, #e3c06a, #c59a36); border-color: rgba(255, 255, 255, 0.6); }
html[data-theme="light"] .card--fold.is-open .plus { color: var(--gold); background: rgba(164, 123, 28, 0.1); box-shadow: inset 0 0 0 1.5px rgba(164, 123, 28, 0.6); }
html[data-theme="light"] .avatar { color: var(--gold); border-color: rgba(164, 123, 28, 0.45); }

/* כפתורים זהובים: גוון חם ובהיר יותר, כדי שיבלטו על רקע האבן */
html[data-theme="light"] .btn--primary,
html[data-theme="light"] .plus,
html[data-theme="light"] .step__num,
html[data-theme="light"] .yt:hover .yt__play,
html[data-theme="light"] .nav__logo,
html[data-theme="light"] .contact__avatar,
html[data-theme="light"] .thanks svg { background: linear-gradient(180deg, #e9c877, #c9a24b); }
html[data-theme="light"] .btn--primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 22px -8px rgba(164, 123, 28, 0.7); }
html[data-theme="light"] .btn--ghost { border-color: rgba(164, 123, 28, 0.6); color: var(--gold); }

/* התפריט העליון: מעל הווידאו נשאר כמו שהוא. אחרי גלילה הופך לזכוכית בהירה עם טקסט כהה */
html[data-theme="light"] .nav.is-scrolled {
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68));
  border-color: rgba(21, 33, 47, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 34px -10px rgba(60, 45, 10, 0.35);
}
html[data-theme="light"] .nav.is-scrolled .nav__name { text-shadow: none; }
html[data-theme="light"] .nav.is-scrolled .nav__links a { color: rgba(21, 33, 47, 0.7); }
html[data-theme="light"] .nav.is-scrolled .nav__links a:hover { color: var(--text); }
html[data-theme="light"] .nav.is-scrolled .nav__links a.is-active { color: var(--gold); text-shadow: none; }
html[data-theme="light"] .nav.is-scrolled .iconbtn { color: var(--gold); background: rgba(21, 33, 47, 0.05); border-color: rgba(21, 33, 47, 0.14); box-shadow: none; }
html[data-theme="light"] .nav.is-scrolled .nav__wa { color: #12a150; }
html[data-theme="light"] .nav.is-scrolled .nav__wa svg { filter: none; }

/* תפריט הנייד הנפתח */
html[data-theme="light"] .menu__panel { background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(246, 241, 230, 0.86)); border-left-color: rgba(21, 33, 47, 0.12); box-shadow: -18px 0 50px rgba(30, 22, 5, 0.3); }
html[data-theme="light"] .menu .menu__panel nav a { color: var(--text); }
html[data-theme="light"] .menu .menu__panel nav a:active { background: rgba(21, 33, 47, 0.06); }
html[data-theme="light"] .menu .menu__panel nav a svg { color: var(--gold); background: rgba(164, 123, 28, 0.1); border-color: rgba(164, 123, 28, 0.4); }
html[data-theme="light"] .menu .menu__panel nav a:last-child { color: var(--gold); border-top-color: rgba(21, 33, 47, 0.12); }
html[data-theme="light"] .menu .menu__panel nav a:last-child svg { color: var(--ink); background: linear-gradient(180deg, #e9c877, #c9a24b); border-color: transparent; }
/* כשהתפריט פתוח בראש העמוד, כפתורי התפריט העליון יושבים מעל לוח בהיר */
html[data-theme="light"] .nav:has(#menuToggle[aria-expanded="true"]) { color: var(--text); }
html[data-theme="light"] .nav:has(#menuToggle[aria-expanded="true"]) .iconbtn { color: var(--gold); background: rgba(21, 33, 47, 0.06); border-color: rgba(21, 33, 47, 0.16); }

/* תפריט תחתון בנייד */
html[data-theme="light"] .dock { background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 241, 230, 0.88)); border-color: rgba(21, 33, 47, 0.12); box-shadow: inset 0 1px 0 #fff, 0 14px 40px -8px rgba(40, 30, 8, 0.4); }
html[data-theme="light"] .dock__item--main { --c: #a47b1c; }
html[data-theme="light"] .dock__item--wa { --c: #12a150; }
html[data-theme="light"] .dock__item--tel { --c: #1670c9; }
html[data-theme="light"] .dock__item svg { filter: none; }
html[data-theme="light"] .dock__item--main::before { background: #c59a36; box-shadow: 0 0 12px 1px rgba(197, 154, 54, 0.7); }
html[data-theme="light"] .dock__item--main::after { background: radial-gradient(60% 100% at 50% 0, rgba(197, 154, 54, 0.22), transparent 70%); }

/* סרגל הנקודות האנכי */
html[data-theme="light"] .rail::before { background: rgba(21, 33, 47, 0.16); }
html[data-theme="light"] .rail__dot { background: var(--bg); border-color: rgba(21, 33, 47, 0.4); }
html[data-theme="light"] .rail__dot.is-past { background: var(--gold-hi); border-color: var(--gold-hi); }
html[data-theme="light"] .rail__dot.is-active { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(164, 123, 28, 0.2), 0 0 12px rgba(197, 154, 54, 0.8); }
html[data-theme="light"] .rail__dot span { color: var(--gold); background: rgba(255, 255, 255, 0.9); border-color: rgba(21, 33, 47, 0.12); }

/* שאלות נפוצות */
html[data-theme="light"] .qa__plus { color: var(--gold); border-color: rgba(164, 123, 28, 0.5); }
html[data-theme="light"] .faq__toggle { color: var(--gold); background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7)); border-color: rgba(164, 123, 28, 0.4); box-shadow: inset 0 1px 0 #fff, 0 10px 28px -14px rgba(60, 45, 10, 0.35); }

/* טופס ההרשמה */
html[data-theme="light"] .form,
html[data-theme="light"] .thanks { background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.82)); border-color: rgba(21, 33, 47, 0.12); box-shadow: 0 24px 60px -28px rgba(60, 45, 10, 0.45); }
html[data-theme="light"] .field input,
html[data-theme="light"] .field select { background: #fbf8f1; border-color: rgba(21, 33, 47, 0.2); }
html[data-theme="light"] .field label { color: rgba(21, 33, 47, 0.5); }
html[data-theme="light"] .field input:focus + label,
html[data-theme="light"] .field input:not(:placeholder-shown) + label,
html[data-theme="light"] .field select + label { color: var(--gold); }
html[data-theme="light"] .field__err { color: #b3261e; }
html[data-theme="light"] .field.is-bad input { border-color: #b3261e; }
html[data-theme="light"] .glow { background: rgba(197, 154, 54, 0.28); }
html[data-theme="light"] .contact > svg { color: #12a150; }

/* גלריה, סרטונים ושונות */
html[data-theme="light"] .dots button { background: rgba(21, 33, 47, 0.2); }
html[data-theme="light"] .dots button.is-active { background: var(--gold); }
html[data-theme="light"] .yt { border-color: rgba(21, 33, 47, 0.12); }
html[data-theme="light"] .yt--main { box-shadow: 0 30px 70px -30px rgba(60, 45, 10, 0.6); }
html[data-theme="light"] .marquee__track { -webkit-text-stroke-color: rgba(164, 123, 28, 0.55); }
html[data-theme="light"] .type__caret { background: var(--gold); box-shadow: none; }
html[data-theme="light"] .duo__bar { color: rgba(164, 123, 28, 0.5); }
html[data-theme="light"] .progress span { background: linear-gradient(90deg, #c59a36, #a47b1c); }
html[data-theme="light"] .rule__rank { animation-name: flickerLight; }
@keyframes flickerLight {
  0%, 100% { stroke: #a47b1c; opacity: 0.85; }
  40% { stroke: #c59a36; opacity: 1; filter: drop-shadow(0 0 5px rgba(197, 154, 54, 0.8)); }
  46% { opacity: 0.45; filter: none; }
  49% { stroke: #c59a36; opacity: 1; filter: drop-shadow(0 0 7px rgba(197, 154, 54, 0.9)); }
  53% { opacity: 0.6; }
  57% { stroke: #c59a36; opacity: 1; filter: drop-shadow(0 0 5px rgba(197, 154, 54, 0.8)); }
  80% { stroke: #a47b1c; opacity: 0.9; filter: none; }
}
