/* הסטודיו: הכותרת העליונה והתחתונה (tools/header.py), פס הפנייה בטלפון, הכפתורים הצפים וכרטיס העוגיות. אותו דבר בכל העמודים.
   שפת הסטודיו: דיו ירוק-אורן על גיר קריר, וקו כתום אחד (הנקודה של הסימן, הקו והכפתור הראשי).
   גופנים (SIL OFL 1.1, בתיקייה fonts/b עם קובצי הרישיון): Noto Serif Hebrew צר לכותרות, IBM Plex Sans Hebrew לטקסט.
   עמוד באנגלית שלא עבר לשפה החדשה (בלי class="st" על body) נשאר עם כותרת כהה, בסוף הקובץ. */

/* ---------- גופנים ---------- */
@font-face { font-family: "HG Display"; src: url("../fonts/b/noto-serif-hebrew-c.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "HG Display"; src: url("../fonts/b/noto-serif-hebrew-c-punct.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0020-003F, U+00A0, U+00B7, U+2019, U+201C-201D; }
@font-face { font-family: "HG Text"; src: url("../fonts/b/plex-he-400.woff2") format("woff2"); font-weight: 300 400; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "HG Text"; src: url("../fonts/b/plex-he-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "HG Text"; src: url("../fonts/b/plex-he-600.woff2") format("woff2"); font-weight: 600 800; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "HG Text"; src: url("../fonts/b/plex-latin-400.woff2") format("woff2"); font-weight: 300 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "HG Text"; src: url("../fonts/b/plex-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "HG Text"; src: url("../fonts/b/plex-latin-600.woff2") format("woff2"); font-weight: 600 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }

/* ---------- צבעים ---------- */
:root {
  --chalk: #e8ebe4; --chalk-2: #dfe4dc; --pine: #0f3a2d; --st-ink: #0b231b; --pine-soft: #4c6b5f; --rule: #c3ccc1; --hg-orange: #ff5b1f;
  --st-display: "HG Display", "HG Text", "Times New Roman", serif;
  --st-text: "HG Text", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --at-m: clamp(20px, 4.6vw, 72px);
  /* הכותרת העליונה: עמוד יכול להחליף את הצבעים (בדף הבית: לפי העולם של הלקוח שמתחת) */
  --hd-bg: var(--chalk); --hd-fg: var(--pine); --hd-mute: var(--pine-soft); --hd-line: rgba(15, 58, 45, .16); --hd-btn: var(--pine); --hd-btn-ink: var(--chalk);
}
html { scrollbar-gutter: stable; scrollbar-color: rgba(15, 58, 45, .35) var(--chalk); }
body { background: var(--chalk); }

/* ---------- סימן ---------- */
.top .logo, .ft-mark { display: inline-flex; align-items: center; direction: ltr; font: 600 1.06rem/1 var(--st-text) !important; letter-spacing: .05em; text-decoration: none; white-space: nowrap; }
.top .logo b, .ft-mark b { display: inline-block; width: .34em; height: .34em; margin: 0 .24em; border-radius: 50%; background: var(--hg-orange); color: transparent; font-size: inherit; overflow: hidden; line-height: 0; transform: translateY(.02em); }

/* ---------- כותרת עליונה ---------- */
.top { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.4rem); min-height: 72px; padding: 0 var(--at-m); box-sizing: border-box;
  background: var(--hd-bg); border-bottom: 1px solid transparent; color: var(--hd-fg); font-family: var(--st-text); transition: border-color .4s ease; }
.top.is-scrolled { border-bottom-color: var(--hd-line); }
.top .logo { color: var(--hd-fg); }
.top > .nav, .top > .menu { margin-inline-start: auto; }
.top .nav { display: none; align-items: center; gap: clamp(1.3rem, 2.2vw, 2.4rem); }
.top .nav a { position: relative; padding: .55rem 0; font: 500 .94rem/1 var(--st-text); color: var(--hd-fg); text-decoration: none; opacity: .78; transition: opacity .25s ease; }
.top .nav a:hover, .top .nav a[aria-current] { opacity: 1; }
.top .nav a[aria-current]::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--hg-orange); }
.top .nav .top-lang { font-size: .78rem; letter-spacing: .06em; }
.top .top-wa { display: none; align-items: center; min-height: 42px; padding: 0 1.2rem; border-radius: 2px; border: 0; background: var(--hd-btn); color: var(--hd-btn-ink);
  font: 600 .9rem/1 var(--st-text); text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.top .top-wa:hover { background: var(--hg-orange); color: var(--st-ink); }
.top .menu { position: relative; inset: auto; z-index: auto; display: block; padding: 0; background: none; overflow: visible; color: inherit; }   /* hanoch.css משתמש ב-.menu לתפריט מסך מלא */
.top .menu::before { content: none; }
.top .menu > * { filter: none; transform: none; }
.top .menu summary { list-style: none; width: 44px; height: 44px; box-sizing: border-box; display: grid; place-content: center; gap: 7px; cursor: pointer; margin-inline-end: -10px; }
.top .menu summary::-webkit-details-marker { display: none; }
.top .menu summary span { display: block; width: 24px; height: 2px; background: var(--hd-fg); transition: transform .3s ease; }
.top .menu[open] summary span:first-child { transform: translateY(4.5px) rotate(45deg); }
.top .menu[open] summary span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.top .menu-sheet { position: fixed; inset: 72px 0 auto 0; display: grid; align-content: start; padding: 1.2rem var(--at-m) 2rem; background: var(--chalk); color: var(--pine); border-top: 3px solid var(--hg-orange);
  max-height: calc(100dvh - 72px); overflow-y: auto; box-shadow: 0 30px 60px -40px rgba(11, 35, 27, .5); }
.top .menu-sheet a, .top .menu-sheet button { padding: .7rem 0; min-height: 44px; box-sizing: border-box; border: 0; background: none; color: var(--pine); font: 800 2rem/1.1 var(--st-display); text-align: start; text-decoration: none; cursor: pointer; }
.top .menu-sheet .top-lang, .top .menu-sheet a[href^="tel:"], .top .menu-sheet button { font: 500 1rem/1.4 var(--st-text); color: var(--pine-soft); padding: .6rem 0; }
.top .menu-sheet .top-lang { margin-top: .8rem; }
.top .menu-sheet a[aria-current] { color: var(--pine-soft); }
.top .menu-sheet > .top-lang, .top .menu-sheet > a[href^="tel:"], .top .menu-sheet > button { order: 2; }
.top .menu-sheet .menu-wa { order: 1; justify-self: start; display: inline-flex; align-items: center; margin: 1.2rem 0 .6rem; padding: 0 1.8rem; min-height: 54px; border-radius: 2px;
  background: var(--hg-orange); color: var(--st-ink); font: 600 1.05rem/1 var(--st-text); }
.top :focus-visible, .ft :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.top .menu-sheet :focus-visible { outline-color: var(--pine); }
@media (min-width: 900px) {
  .top .nav { display: flex; }
  .top .top-wa { display: inline-flex; }
  .top .menu { display: none; }
}

/* ---------- כותרת תחתונה: שורה אחת על דיו ---------- */
.ft { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem clamp(1.4rem, 3vw, 3rem); margin: 0; padding: clamp(2.2rem, 5vh, 3.4rem) var(--at-m); border-top: 0;
  background: var(--st-ink); color: rgba(232, 235, 228, .78); font: 400 .9rem/1.4 var(--st-text); max-width: none; width: auto; box-sizing: border-box; }
.ft::before { content: none; }
.ft a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; transition: color .25s ease; }
.ft a:hover { color: var(--chalk); }
.ft-mark { color: var(--chalk) !important; font-size: .98rem !important; }
.ft-reach, .ft-nav { display: flex; flex-wrap: wrap; gap: .2rem clamp(1rem, 2vw, 1.8rem); margin: 0; }
.ft-nav { margin-inline-start: auto; }
@media (max-width: 720px) { .ft { flex-direction: column; align-items: flex-start; } .ft-nav { margin-inline-start: 0; } }

/* ---------- כפתורי הנגישות והצ'אט ---------- */
body .a11y { bottom: 16px; inset-inline-end: 16px; }
body .a11y__btn, body .ht-btn { width: 42px !important; height: 42px !important; border-radius: 50% !important; background: var(--chalk) !important; color: var(--pine) !important;
  border: 1px solid rgba(15, 58, 45, .35) !important; box-shadow: 0 6px 18px -10px rgba(11, 35, 27, .45) !important; transition: border-color .25s ease; }
body .a11y__btn:hover, body .ht-btn:hover { border-color: var(--pine) !important; }
body .a11y__btn svg { width: 19px; height: 19px; }
body .ht-btn { bottom: 16px; inset-inline-start: 16px; }
body .ht-btn svg { width: 17px; height: 17px; }
body .a11y__btn:focus-visible, body .ht-btn:focus-visible { outline: 2px solid var(--pine) !important; outline-offset: 3px; }
@media (max-width: 899px) { body .ht-btn { display: grid !important; } body .a11y { bottom: calc(14px + env(safe-area-inset-bottom)); inset-inline-end: 14px; } }
.menu-open .a11y, .menu-open .ht-btn { visibility: hidden; }

/* ---------- העוגיות (js/consent.js מזריק את המבנה ואת ההיגיון; כאן רק המראה) ----------
   דסקטופ: פס דק לכל הרוחב בתחתית המסך, ולא כרטיס מעל התוכן. טלפון: שורה אחת שצמודה מעל פס הפנייה */
body .consent { background: var(--chalk); color: var(--st-ink); border: 0; border-top: 1px solid rgba(15, 58, 45, .25); box-shadow: 0 -12px 30px -24px rgba(11, 35, 27, .5); font-family: var(--st-text); border-radius: 0; }
body .consent::before { content: ""; position: absolute; inset: -1px 0 auto 0; height: 2px; background: var(--hg-orange); }
body .consent__text { color: #34493f; }
body .consent__text a { color: var(--pine); }
body .consent__btn { border-radius: 2px; border-color: rgba(15, 58, 45, .45); color: var(--pine); font-weight: 500; }
body .consent__btn:hover { border-color: var(--pine); }
body .consent__btn[data-choice="yes"] { background: var(--pine); border-color: var(--pine); color: var(--chalk); }
body .consent__btn:focus-visible, body .consent__text a:focus-visible { outline: 2px solid var(--pine); }
@media (min-width: 900px) {
  body .consent { inset: auto 0 0 0 !important; width: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; padding: .55rem var(--at-m); font-size: .88rem; line-height: 1.4; }
  body .consent__text { flex: 0 1 auto; }
  body .consent__actions { flex: none; }
  body .consent__btn { flex: none; min-height: 38px; padding: 0 1rem; }
  /* הפס לא מכסה את סוף העמוד, והכפתורים הצפים עולים מעליו */
  body:has(.consent:not([hidden])) { padding-bottom: 54px; }
  body:has(.consent:not([hidden])) .a11y, body:has(.consent:not([hidden])) .ht-btn { bottom: 70px !important; }
}

/* ---------- פס פנייה בטלפון (tools/header.py, js/chrome.js) ----------
   וואטסאפ בכתום בצד של האגודל (ימין בעברית), חיוג לידו */
.dock { display: none; }
@media (max-width: 899px) {
  .dock { position: fixed; z-index: 96; inset: auto 0 0 0; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); padding-inline-end: 116px;
    background: var(--chalk); border-top: 1px solid rgba(15, 58, 45, .18); transition: transform .45s cubic-bezier(.22, .61, .2, 1); }
  html[dir="ltr"] .dock { flex-direction: row-reverse; }
  .dock a { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; border-radius: 2px; text-decoration: none; font: 600 1rem/1 var(--st-text); }
  .dock .dock-wa { flex-grow: 1.5; background: var(--hg-orange); color: var(--st-ink); }
  .dock .dock-call { border: 1px solid rgba(15, 58, 45, .45); color: var(--pine); }
  .dock a:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }
  .dock.is-wait:not(.is-on) { transform: translateY(105%); }
  .dock.is-wait:not(.is-on) a { visibility: hidden; transition: visibility 0s .45s; }
  .menu-open .dock { visibility: hidden; }
  /* מה שמקבל מיקוד מקלדת נגלל מעל הפס ולא מתחתיו */
  html:has(.dock) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  /* כפתורי הנגישות והצ'אט יושבים בתוך שורת הפס, בקצה, ולא מעל הטקסט */
  body:has(.dock) .a11y { z-index: 97; bottom: calc(11px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 12px; }
  body:has(.dock) .ht-btn { z-index: 97; bottom: calc(11px + env(safe-area-inset-bottom, 0px)) !important; inset-inline-start: auto !important; inset-inline-end: 64px !important; }
  /* בטלפון בועת ההזמנה של הצ'אט לא קופצת מעל הטקסט; הכפתור עצמו נשאר בפס */
  body:has(.dock) .ht-hint { display: none !important; }
  /* העוגיות: שורה אחת לכל הרוחב, צמודה מעל הפס (או בתחתית, כשהפס עוד מחכה) */
  body:has(.dock) .consent { inset-inline: 0 !important; bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; border-radius: 0; padding: .45rem 12px .45rem 12px; }
  body:has(.dock.is-wait:not(.is-on)) .consent { bottom: 0 !important; }
  /* בדף הבית הפס מתחיל מוסתר, עד שהכפתור בפתיחה יוצא מהמסך (בלי הבהוב) */
  html.js body:has([data-dock-wait]) .dock:not(.is-on) { transform: translateY(105%); }
  html.js body:has([data-dock-wait]) .dock:not(.is-on) a { visibility: hidden; }
  body:has(.dock) .ft { padding-bottom: calc(clamp(2.2rem, 5vh, 3.4rem) + 72px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .dock, .top, .top .menu summary span { transition: none; } }

/* ---------- ניגודיות גבוהה מתפריט הנגישות ---------- */
html.a11y-contrast { --pine-soft: #23392f; --hd-mute: var(--pine); --rule: #6d7d72; }

/* ---------- עמודים באנגלית שעוד לא עברו לשפה החדשה: כותרת ופס כהים, כמו לפני ---------- */
html[lang="en"] body:not(.st) { --hd-bg: #000; --hd-fg: #ede8df; --hd-mute: #8c877f; --hd-line: rgba(237, 232, 223, .14); --hd-btn: #ede8df; --hd-btn-ink: #000; background: #000; }
html[lang="en"] body:not(.st) .top .menu-sheet { background: #000; color: #ede8df; }
html[lang="en"] body:not(.st) .top .menu-sheet a { color: #ede8df; font-family: var(--st-text); font-weight: 400; }

/* =========================================================
   חדר ההקרנה: המסגרת הכהה של כל העמודים בעברית (body.st). העמודים באנגלית, תיק העבודות הישן והארכיון לא משתנים.
   דיו-אורן במקום גיר, אותו קו כתום. בעמודי הטקסט עמודת הקריאה נשארת בהירה (css/page.css): טקסט ארוך בעברית
   נקרא הכי טוב כהה על בהיר, והקולנוע הוא המסגרת.
   ========================================================= */
body.st {
  --st-bg: #0e1613; --st-bg-2: #131d19; --st-fg: #e8ebe4; --st-fg-2: #c3cbc1; --st-mute: #9fb0a6; --st-line: rgba(232, 235, 228, .16);
  --hd-bg: var(--st-bg); --hd-fg: var(--st-fg); --hd-mute: var(--st-mute); --hd-line: var(--st-line); --hd-btn: var(--st-fg); --hd-btn-ink: var(--st-bg);
  background: var(--st-bg);
}
html:has(body.st) { scrollbar-color: rgba(232, 235, 228, .3) #0e1613; background: #0e1613; }
body.st .top .top-wa:hover { background: var(--hg-orange); color: #160904; }
body.st .top .menu-sheet { background: var(--st-bg); color: var(--st-fg); box-shadow: 0 40px 80px -40px #000; }
body.st .top .menu-sheet a, body.st .top .menu-sheet button { color: var(--st-fg); }
body.st .top .menu-sheet .top-lang, body.st .top .menu-sheet a[href^="tel:"], body.st .top .menu-sheet button, body.st .top .menu-sheet a[aria-current] { color: var(--st-mute); }
body.st .top .menu-sheet .menu-wa { color: #160904; }
body.st .top .menu-sheet :focus-visible { outline-color: var(--st-fg); }
body.st .ft { background: #090e0c; color: rgba(232, 235, 228, .74); border-top: 1px solid var(--st-line); }
/* הכפתורים הצפים: עיגול כהה עם סמל בהיר */
body.st .a11y__btn, body.st .ht-btn { background: #16211c !important; color: var(--st-fg) !important; border-color: rgba(232, 235, 228, .3) !important; box-shadow: 0 8px 22px -10px #000 !important; }
body.st .a11y__btn:hover, body.st .ht-btn:hover { border-color: var(--st-fg) !important; }
body.st .a11y__btn:focus-visible, body.st .ht-btn:focus-visible { outline-color: var(--st-fg) !important; }
/* העוגיות: פס כהה, אותו מבנה (js/consent.js לא השתנה) */
body.st .consent { background: #131d19; color: var(--st-fg); border-top-color: var(--st-line); box-shadow: 0 -16px 40px -24px #000; }
body.st .consent__text { color: var(--st-fg-2); }
body.st .consent__text a { color: var(--st-fg); }
body.st .consent__btn { border-color: rgba(232, 235, 228, .45); color: var(--st-fg); background: transparent; }
body.st .consent__btn:hover { border-color: var(--st-fg); }
body.st .consent__btn[data-choice="yes"] { background: var(--st-fg); border-color: var(--st-fg); color: var(--st-bg); }
body.st .consent__btn:focus-visible, body.st .consent__text a:focus-visible { outline-color: var(--st-fg); }
@media (max-width: 899px) {
  body.st .dock { background: rgba(14, 22, 19, .96); border-top-color: var(--st-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  body.st .dock .dock-wa { color: #160904; }
  body.st .dock .dock-call { border-color: rgba(232, 235, 228, .4); color: var(--st-fg); }
  body.st .dock a:focus-visible { outline-color: var(--st-fg); }
}
/* עמודי טקסט: עמודה בהירה בתוך החדר, עם הקו הכתום למעלה */
body.st:not(.b-home) > main#main { position: relative; background: var(--chalk); color: var(--st-ink); border-top: 3px solid var(--hg-orange); }
@media (min-width: 900px) {
  body.st:not(.b-home) > main#main { margin: clamp(10px, 1.6vw, 28px) clamp(10px, 1.6vw, 28px) clamp(28px, 4vw, 56px); box-shadow: 0 0 0 1px rgba(232, 235, 228, .06), 0 60px 140px -70px #000, 0 -30px 120px -60px rgba(255, 91, 31, .25); }
}
html.a11y-contrast body.st { --st-mute: #c9d3cc; --st-fg-2: #e8ebe4; }
