@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/assistant-hebrew-400-normal.woff2) format('woff2'); unicode-range: U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/assistant-hebrew-700-normal.woff2) format('woff2'); unicode-range: U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/assistant-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Assistant'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/assistant-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* להקשיב לרוח — שמנת, פסים כסופים, כחול ים, נגיעות צהוב; גופן אחד גדול וקריא */
:root {
  --cream: #F4ECDF;
  --silver: #E1E4E6;
  --navy: #163A52;
  --navy-soft: #2C5470;
  --yellow: #FFD94A;
  --yellow-text: #FFE27A;
  --green: #2F6B66;
  --font: "Assistant", "Arial Hebrew", Arial, sans-serif;
  --step-0: 1.1875rem;   /* 19px גוף */
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --measure: 40rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

body {
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.7;
  margin: 0;
}

a { color: var(--green); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.wrap {
  max-width: 64rem;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* כותרת עליונה */
.site-header { background: var(--cream); border-bottom: 1px solid var(--silver); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.9rem; flex-wrap: wrap;
}
.brand { text-decoration: none; color: var(--navy); display: grid; gap: 0.1rem; }
.brand-name { font-size: var(--step-1); font-weight: 700; line-height: 1.2; }
.brand-name::after { content: ""; display: block; width: 2.5rem; height: 4px; background: var(--yellow); margin-top: 0.35rem; }
.brand-sub { font-size: 1rem; }

.menu-toggle {
  display: none; font: inherit; font-size: 1.05rem; color: var(--cream);
  background: var(--navy); border: 0; border-radius: 8px; padding: 0.5rem 1rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.site-nav a { color: var(--navy); text-decoration: none; font-size: 1.05rem; padding-block: 0.25rem; display: inline-block; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--yellow); }
.site-nav a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--yellow); }

@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .site-nav { flex-basis: 100%; background: var(--silver); border-radius: 10px; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.25rem; }
  .site-nav li + li { border-top: 1px solid rgba(22, 58, 82, 0.15); }
  .site-nav a { display: block; font-size: var(--step-0); padding-block: 0.7rem; border-bottom: 0; }
  .site-nav a[aria-current="page"] { border-bottom: 0; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .js .site-nav:not(.open) { display: none; }
}

/* פתיחת דף הבית */
.hero { position: relative; }
.hero-img { display: block; width: 100%; height: clamp(240px, 42vw, 520px); object-fit: cover; object-position: center 30%; max-width: 100%; }
.quote { margin: 0 0 2.25rem; font-size: var(--step-1); line-height: 1.5; max-width: var(--measure); }
.quote cite { display: block; font-style: normal; font-size: 1rem; margin-top: 0.3rem; }
.quote cite::before { content: ""; display: inline-block; width: 1.5rem; height: 3px; background: var(--yellow); vertical-align: middle; margin-left: 0.5rem; }

.opening { padding-block: 2.25rem 1rem; }
.lines { margin: 0; font-size: var(--step-2); font-weight: 700; line-height: 1.5; text-wrap: balance; }
.lines span { display: block; }
.reassure { margin-top: 1.5rem; max-width: var(--measure); }
.reassure strong { display: block; font-size: var(--step-1); }

.intro { padding-block: 1.5rem 2.5rem; }
.intro .wrap { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; }
.intro img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--yellow); flex: none; }
.intro-text { flex: 1 1 22rem; min-width: 0; max-width: var(--measure); }
.intro-text p { margin: 0 0 0.6rem; }
.intro-text .name { font-size: var(--step-1); font-weight: 700; }

/* שערים */
.gates { background: var(--silver); }
.gates .wrap { padding-block: 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.gate {
  background: var(--navy); color: var(--cream); border-top: 5px solid var(--yellow);
  padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0;
}
.gate h2 { margin: 0; font-size: var(--step-1); line-height: 1.3; }
.gate p { margin: 0; flex: 1; }
.gate a { color: var(--yellow-text); font-weight: 700; text-decoration: none; }
.gate a:hover { text-decoration: underline; }

/* יצירת קשר */
.contact { padding-block: 2.5rem; text-align: center; }
.contact p { max-width: var(--measure); margin: 0 auto 1.5rem; font-size: var(--step-1); text-wrap: balance; }
.contact-actions { display: flex; flex-direction: column; gap: 0.9rem; align-items: center; }
.phone {
  display: inline-block; background: var(--navy); color: var(--yellow-text); text-decoration: none;
  font-size: var(--step-2); font-weight: 700; padding: 0.4rem 1.2rem; border-radius: 10px; direction: ltr;
}
.contact-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--step-1); }
.contact-link svg { width: 1.4em; height: 1.4em; fill: currentColor; flex: none; }

/* דפים פנימיים */
.page-hero img { display: block; width: 100%; height: clamp(200px, 32vw, 400px); object-fit: cover; max-width: 100%; }
.page-head { padding-block: 2rem 0.5rem; }
.page-head h1 { margin: 0; font-size: var(--step-3); line-height: 1.2; text-wrap: balance; }
.page-head h1::after { content: ""; display: block; width: 3rem; height: 5px; background: var(--yellow); margin-top: 0.6rem; }

.hero-kinneret img { height: clamp(240px, 42vw, 520px); object-position: center 68%; }

.jump { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.jump a {
  display: inline-block; text-decoration: none; color: var(--navy); background: var(--silver);
  padding: 0.35rem 1rem; border-radius: 999px; font-size: 1.05rem;
}
.jump a:hover { background: var(--navy); color: var(--yellow-text); }

.block { padding-block: 2rem 2.5rem; }
.section-img { padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 2.5rem 0; }
.section-img img { display: block; width: 100%; max-width: 46rem; height: auto; margin: 0 auto; }
.section-img + .block { border-top: 0; }
.block + .block { border-top: 1px solid var(--silver); }
.block h2 { margin: 0 0 1rem; font-size: var(--step-2); line-height: 1.3; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1rem; }

.needs { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.needs li { background: var(--silver); padding: 1rem 1.2rem; border-top: 4px solid var(--yellow); min-width: 0; }
.needs strong { display: block; font-size: var(--step-1); margin-bottom: 0.25rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: 2.5rem; align-items: start; }
.split figure { margin: 0; }
.split figure img { display: block; width: 100%; max-width: 100%; height: auto; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .split figure { max-width: 22rem; } }

.prose.wide { max-width: 50rem; }
.prose.wide::after { content: ""; display: block; clear: both; }
.spirit-line { clear: both; text-align: center; color: var(--green); font-size: var(--step-2); font-weight: 700; line-height: 1.4; margin: 2rem auto !important; text-wrap: balance; }
.spirit-line::before, .spirit-line::after { content: ""; display: block; width: 3rem; height: 4px; background: var(--yellow); margin: 0 auto 0.75rem; }
.spirit-line::after { margin: 0.75rem auto 0; }
.inline-fig { float: left; width: 15rem; max-width: 45%; margin: 0.4rem 1.75rem 1rem 0; }
.inline-fig img { display: block; width: 100%; max-width: 100%; height: auto; }
@media (max-width: 600px) { .inline-fig { float: none; width: 100%; max-width: 20rem; margin: 0.5rem auto 1.5rem; } }

.film-band { background: var(--cream); }
.film-band .wrap { padding-block: 2.5rem 0; }
.film-band .film { margin: 0 auto; }
.film-band .film figcaption { text-align: center; }
.film { margin: 2.5rem 0 0; max-width: 46rem; }
.film video { display: block; width: 100%; max-width: 100%; height: auto; background: var(--navy); }
.film figcaption { font-size: 1rem; margin-top: 0.5rem; }

.lectures { display: grid; gap: 1.25rem; margin-top: 1.5rem; max-width: 46rem; }
.lecture { background: var(--silver); border-top: 5px solid var(--yellow); padding: 1.25rem 1.5rem; }
.lecture h2 { font-size: var(--step-1); margin: 0 0 0.5rem; line-height: 1.35; }
.lecture p { margin: 0; }
.lecture-cta { margin: 2rem 0 0; }
.lecture-cta a { display: inline-block; background: var(--navy); color: var(--yellow-text); text-decoration: none; font-weight: 700; padding: 0.55rem 1.4rem; border-radius: 10px; }

.section-img.closing { padding-block: 0 3rem; }

.mid-fig { clear: both; margin: 2rem 0; }
.mid-fig img { display: block; width: 100%; max-width: 100%; height: auto; }

.faq { max-width: 46rem; display: grid; gap: 1.75rem; }
.qa h2 { font-size: var(--step-1); margin: 0 0 0.4rem; line-height: 1.35; display: flex; gap: 0.6rem; align-items: baseline; }
.qa h2::before { content: ""; flex: none; width: 0.7rem; height: 0.7rem; background: var(--yellow); transform: translateY(-0.1rem); }
.qa p { margin: 0; }

.page-hero img[src*="asphodel"], .page-hero img[src*="beach-sunset"] { height: auto; object-fit: initial; width: calc(100% - 32px); max-width: 46rem; margin: 2rem auto 0; }

.contact .contact-sign { margin: 2rem 0 0; font-size: 1.05rem; }

.prose h2 { font-size: var(--step-2); margin: 2rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1rem; padding-inline-start: 1.4rem; }
.prose li { margin-bottom: 0.3rem; }
.updated { font-size: 1rem; margin-top: 2rem !important; }

/* חזרה לראש העמוד */
.to-top-wrap { text-align: center; padding-block: 0 2rem; }
.to-top {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.2rem;
  color: var(--navy); text-decoration: none; font-size: 1rem;
}
.to-top span[aria-hidden] {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--navy); color: var(--yellow-text); font-size: 1.5rem; line-height: 1;
}
.to-top:hover span[aria-hidden] { background: var(--green); }

/* תחתית */
.site-footer { background: var(--navy); color: var(--cream); }
.site-footer .wrap { padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 1rem; }
.site-footer a { color: var(--yellow-text); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ===== מרכוז כל הטקסט ורווחים אחידים ===== */
main { text-align: center; }
.prose, .prose.wide, .quote, .reassure, .intro-text, .contact p, .faq, .lectures, .film { margin-inline: auto; }
.intro .wrap { justify-content: center; }
.quote cite::before { display: none; }
.quote cite::after { content: ""; display: block; width: 1.5rem; height: 3px; background: var(--yellow); margin: 0.4rem auto 0; }
.page-head h1::after { margin-inline: auto; }
.prose ul { list-style-position: inside; padding: 0; }
.qa h2 { justify-content: center; }
.lecture-cta { text-align: center; }
.contact-actions { align-items: center; }

/* כפתורי קפיצה סימטריים */
.jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 40rem; margin: 1.5rem auto 0; gap: 0.6rem; }
.jump li { display: flex; }
.jump a { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.55rem 0.75rem; }
@media (max-width: 600px) { .jump { grid-template-columns: minmax(0, 1fr); max-width: 20rem; } }

/* רווח אחיד סביב תמונות: 2rem מעל ומתחת */
.block { padding-block: 2rem; }
.section-img { padding-block: 0; }
.section-img.closing { padding-block: 0 2rem; }
.inline-fig, .inline-fig.portrait { float: none; width: 100%; max-width: 20rem; margin: 2rem auto; }
.mid-fig { margin: 2rem auto; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.page-head { padding-block: 2rem 0; }
.page-head + .block { padding-top: 2rem; }

/* המסגרת הצהובה סביב הדיוקן בדף מי אני */
.inline-fig.portrait img { border-top: 5px solid var(--yellow); border-bottom: 5px solid var(--yellow); }

/* רווח אחיד לפני כפתור החזרה לראש העמוד */
main > :last-child { padding-bottom: 2rem !important; }
main > :last-child .wrap { padding-bottom: 0; }
.lecture-cta, .contact .contact-sign { margin-bottom: 0; }

/* דף הבית: רווח אחיד של 2rem בין האזורים */
.opening { padding-block: 2rem 0; }
.quote { margin-bottom: 2rem; }
.intro { padding-block: 2rem; }
.film-band .wrap { padding-block: 2rem 0; }
.film { margin-top: 0; }
.contact { padding-block: 2rem; }

/* תמונות בראש הדפים: ברוחב הטקסט, בלי חיתוך, אותו רוחב בכל הדפים */
.hero-img, .page-hero img, .hero-kinneret img,
.page-hero img[src*="asphodel"], .page-hero img[src*="beach-sunset"] {
  display: block; width: calc(100% - var(--gutter-l) - var(--gutter-r)); max-width: 40rem;
  height: auto; object-fit: initial; margin: 2rem auto 0;
}
.page-head + .page-hero img { margin-top: 2rem; }

/* רוחב אחיד לטקסט, לתמונות ולסרטון */
.prose.wide, .faq, .lectures, .film { max-width: 40rem; }
.section-img img { max-width: 40rem; }

/* כפתור העתקת המייל */
.mail-row { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.copy-mail {
  font: inherit; font-size: 1rem; color: var(--navy); background: var(--silver);
  border: 0; border-radius: 999px; padding: 0.3rem 1rem; cursor: pointer;
}
.copy-mail:hover { background: var(--navy); color: var(--yellow-text); }

/* תחתית ממורכזת */
.site-footer .wrap { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.4rem; }

/* דף נגישות ופרטיות: שורות מיושרות כמו בספר */
.prose.book { text-align: justify; text-justify: inter-word; hyphens: manual; }
.prose.book h2 { text-align: center; }
.prose.book ul { list-style-position: outside; padding-inline-start: 1.4rem; text-align: right; }
.prose.book .updated { text-align: center; }

/* מחשב וטאבלט: פסקאות מיושרות לשני הצדדים כמו בספר, השורה האחרונה ממורכזת. בטלפון נשאר מרכוז */
@media (min-width: 700px) {
  .prose p, .lecture p, .qa p {
    text-align: justify; text-justify: inter-word; text-align-last: right;
  }
  .prose p.spirit-line, .prose p.updated, .prose p.lecture-cta, .prose p.contact-sign { text-align: center; text-align-last: auto; }
  .prose.book p { text-align-last: right; }
}
