/* ============================================================================
   Ben Shelly — App CSS
   CSS מותאם שאינו מנוהל ע"י theme.json:
   Lenis · Preloader · Scrollbar · Story-scroll progress · Utilities
   נכתב עם CSS Logical Properties מראש (RTL-first) — אין left/right פיזיים.
   ============================================================================ */

/* -------------------- Lenis (smooth scroll) -------------------- */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* -------------------- מניעת גלילה אופקית -------------------- */
/* clip על html בלבד. על body זה הופך ל-scroll-container ושובר position:sticky. */
html { overflow-x: clip; }

/* -------------------- טוקנים טיפוגרפיים לקריאה --------------------
   נגזרים מהאתר החי (vw) אבל עם רצפה ותקרה: בלפטופ בזום 120–150%
   (viewport ‏1280–1600px) הטקסט נשאר נוח, ובמסך רחב לא מתנפח. */
:root {
	--bs-fs-read: clamp(1.15rem, 0.7rem + 0.7vw, 1.5rem);     /* גוף סיפור: 1280→20px · 1536→22px · 1920→24px */
	--bs-fs-text: clamp(1.125rem, 0.85rem + 0.4vw, 1.3rem);   /* טקסט בפאנלים צפופים: ~19–21px */
	--bs-fs-lead: clamp(1.25rem, 0.5rem + 1.1vw, 1.8rem);     /* פתיח ההירו: 1280→22px · 1536→25px · 1920→29px */
	--bs-fs-hero: clamp(2.25rem, 1rem + 2.4vw, 3.4rem);       /* כותרת ההירו: 1280→47px · 1536→53px · cap 54px */
	--bs-fs-section: clamp(2.5rem, 1.25rem + 2.6vw, 4rem);    /* כותרות סקשן ("הסיפור של בן") */
	--bs-header-h: 92px;
}
@media (max-width: 1024px) { :root { --bs-header-h: 68px; } }
/* מסך נמוך (לפטופ בזום גבוה): מורידים מדרגה כדי שהפתיח לא יגלוש מעל הקיפול */
@media (min-width: 1025px) and (max-height: 760px) {
	:root {
		--bs-fs-hero: clamp(2.2rem, 0.9rem + 2.4vw, 3rem);    /* 1280×620 → 45px · 1536×730 → 48px */
		--bs-fs-lead: clamp(1.25rem, 0.55rem + 1.1vw, 1.6rem); /* 1280 → 23px (שורה אחת) · 1536 → 25.6px */
		--bs-fs-section: clamp(2.2rem, 1rem + 2vw, 3.2rem);
	}
}

/* -------------------- Preloader -------------------- */
#custom-preloader {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	background-color: var(--wp--preset--color--cream, #FFFCEE);
	z-index: 99999;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader-spinner {
	width: 60px;
	height: 60px;
	border: 4px solid color-mix(in srgb, var(--wp--preset--color--contrast, #0B161B) 12%, transparent);
	border-radius: 50%;
	border-block-start-color: var(--wp--preset--color--primary, #3C6273);
	animation: ben-spin 1s ease-in-out infinite;
}
@keyframes ben-spin { to { transform: rotate(360deg); } }
.preloader-hidden { opacity: 0; visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
	.preloader-spinner { animation: none; }
}

/* -------------------- Utilities (טיפוגרפיה) -------------------- */
.txt-blnc { text-wrap: balance; }
.txt-prtty { text-wrap: pretty; }
.excerpt-wrp { max-inline-size: 73ch; text-wrap: pretty; }
.bigger-txt { font-size: 1.8em; }
.smaller-txt { font-size: 0.5em; }

/* -------------------- Custom Scrollbar -------------------- */
body::-webkit-scrollbar { width: 10px; height: 10px; }
body::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--primary, #3C6273);
	border-radius: 5px;
}
body::-webkit-scrollbar-track {
	background-color: var(--wp--preset--color--primary, #3C6273);
	border: 10px solid var(--wp--preset--color--primary, #3C6273);
}
body::-webkit-scrollbar-track-piece:vertical:start { background-color: var(--wp--preset--color--contrast, #000); }
body::-webkit-scrollbar-track-piece:vertical:end { background-color: var(--wp--preset--color--contrast, #000); }
/* Firefox */
@supports (scrollbar-color: auto) {
	body { scrollbar-color: var(--wp--preset--color--primary, #3C6273) var(--wp--preset--color--contrast, #0B161B); scrollbar-width: thin; }
}

/* -------------------- Story-scroll: קו התקדמות ורטיקלי -------------------- */
/* כמו באתר החי: הקו בצד תחילת השורה (ימין ב-RTL), מסילה #e0e0e0, קו מתקדם #333 */
.story-scroll {
	position: relative;
	padding-inline-start: 20px;
}
.story-scroll::before,
.story-scroll::after {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	inline-size: 3px;
	block-size: 100%;
	border-radius: 3px;
}
.story-scroll::before { background-color: #e0e0e0; }
.story-scroll::after {
	background-color: #333;
	transform-origin: top;
	transform: scaleY(var(--story-line-height, 0)); /* נשלט ע"י GSAP */
	will-change: transform;
	z-index: 2;
}

/* -------------------- רקע האתר: נויז + גוון חול (כמו באתר החי) -------------------- */
body {
	background-color: rgba(228, 226, 213, 0.68);
	background-image: url("/wp-content/uploads/2026/03/noise.png");
	background-repeat: repeat;
}

/* -------------------- responsive fixes (placeholder) -------------------- */
/* הערה: ה-fixes הספציפיים לאלמנטור (.elementor-element-XXXX) הוסרו —
   הם לא רלוונטיים בתבנית הבלוקים. נטפל ב-wrap/height ברמת ה-block group. */

/* ============================================================================
   HEADER — glass + sticky + 50/50 layout + video button + lightbox
   ============================================================================ */

/* -------------------- Glass + sticky -------------------- */
/* ה-sticky על ה-wrapper של ה-template part (child ישיר של .wp-site-blocks),
   כי ה-containing block שלו הוא כל העמוד. ה-glass נשאר על ה-.site-header הפנימי. */
.wp-site-blocks > header.wp-block-template-part:first-child {
	position: fixed;
	inset-block-start: var(--wp-admin--admin-bar--height, 0px);
	inset-inline: 0;
	z-index: 999;
}
/* עמודים שאינם עמוד הבית — מרווח עליון בגובה ההדר */
body:not(.home) .wp-site-blocks > main,
body:not(.home) .wp-site-blocks > .wp-block-group:first-of-type { padding-block-start: var(--bs-header-h, 92px); }
/* הזכוכית יושבת על ::before ולא על ההדר עצמו: backdrop-filter על אלמנט יוצר containing block
   ל-position:fixed של צאצאים — וזה היה כולא את תפריט המובייל (overlay) בתוך גובה ההדר. */
.site-header { position: relative; isolation: isolate; }
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(82, 82, 82, 0.18);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(7.3px);
	-webkit-backdrop-filter: blur(7.3px);
	transition: background 0.5s ease-in-out, backdrop-filter 0.5s ease-in-out;
}
.site-header.is-stuck::before {
	background: rgba(255, 255, 255, 0.64);
	backdrop-filter: blur(12px); /* ה-blur מתעצם בסטיקי */
	-webkit-backdrop-filter: blur(12px);
}

/* -------------------- Layout 50/50 (כמו באתר החי: גובה 92px, ריפוד 2%) -------------------- */
.site-header__inner {
	inline-size: 100%;
	max-inline-size: none;
	min-block-size: 92px;
	padding-block: 0;
	padding-inline: 2%;
}
.site-header__start,
.site-header__end { flex: 1 1 50%; min-inline-size: 0; }
.site-header__start { padding-inline-start: 27px; }
.site-header__end { padding-inline-start: 14px; gap: 1rem; }

/* -------------------- Navigation -------------------- */
.site-nav { font-size: 1rem; font-weight: 460; gap: 0; flex-shrink: 0; }
.site-nav .wp-block-navigation__container { gap: 0; }
.site-nav .wp-block-navigation-item__content {
	position: relative;
	padding: 13px 10px;
	color: var(--wp--preset--color--contrast, #0B161B);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}
.site-nav .wp-block-navigation-item__content:hover,
.site-nav .wp-block-navigation-item__content:focus-visible,
.site-nav .wp-block-navigation-item__content[aria-current="page"] { color: var(--wp--preset--color--primary, #3C6273); }
/* קו פעיל — 3px בצבע המותג (pointer underline כמו באלמנטור) */
.site-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	block-size: 3px;
	background-color: var(--wp--preset--color--primary, #3C6273);
	transform: scaleX(0);
	transition: transform 0.25s ease;
}
.site-nav .wp-block-navigation-item__content:hover::after,
.site-nav .wp-block-navigation-item__content[aria-current="page"]::after { transform: scaleX(1); }

/* קישור בית — אייקון בית (outline) במקום טקסט.
   ב-home-link הטקסט יושב ישירות ב-<a> (בלי span), לכן font-size:0 — הטקסט נשאר נגיש לקוראי מסך */
/* גובה זהה לשאר הפריטים (line-height 1.7 × 16px + ריפוד 13px×2) — אחרת קו ה-hover יושב גבוה יותר */
.nav-home .wp-block-navigation-item__content { display: inline-flex; align-items: center; padding-inline: 10px; font-size: 0; min-block-size: calc(1rem * 1.7 + 26px); box-sizing: border-box; }
.nav-home .wp-block-navigation-item__content::before {
	content: "";
	display: inline-block;
	inline-size: 1rem;
	block-size: 1rem;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* -------------------- כלים: מחליף שפות + נר -------------------- */
.site-header__tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.site-header__tools > * { margin: 0; }
.bs-lang__list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.bs-lang__item { display: flex; align-items: center; }
.bs-lang__item + .bs-lang__item::before {
	content: "";
	inline-size: 1px;
	block-size: 14px;
	background: currentColor;
	opacity: 0.35;
}
.bs-lang__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 40px;
	min-block-size: 40px;
	padding-inline: 6px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	color: var(--wp--preset--color--contrast, #0B161B);
	text-decoration: none;
	border-radius: 3px;
	transition: color 0.2s ease;
}
.bs-lang__link::after {
	content: "";
	position: absolute;
	inset-inline: 10px;
	inset-block-end: 6px;
	block-size: 2px;
	background: var(--wp--preset--color--primary, #3C6273);
	transform: scaleX(0);
	transition: transform 0.25s ease;
}
.bs-lang__link:hover { color: var(--wp--preset--color--primary, #3C6273); }
.bs-lang__link:hover::after,
.bs-lang__link.is-current::after { transform: scaleX(1); }
.bs-lang__link.is-current { color: var(--wp--preset--color--primary, #3C6273); }
.bs-lang__link:focus-visible { outline: 2px solid var(--wp--preset--color--primary, #3C6273); outline-offset: 1px; }
@media (max-width: 1024px) {
	.site-header__tools { gap: 6px; }
	.bs-lang__link { min-inline-size: 36px; min-block-size: 44px; padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.bs-lang__link::after { transition: none; }
}

/* -------------------- Video button (כמו באתר החי) -------------------- */
.bs-video-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: var(--wp--preset--color--primary, #3C6273);
	color: #fff;
	border: none;
	border-radius: 3px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 370;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.25s ease, transform 0.15s ease;
}
.bs-video-btn:hover { background: var(--wp--preset--color--contrast, #0B161B); }
.bs-video-btn:active { transform: scale(0.97); }
.bs-video-btn:focus-visible { outline: 2px solid var(--wp--preset--color--contrast, #0B161B); outline-offset: 3px; }
.bs-video-btn__icon { flex-shrink: 0; inline-size: 1em; block-size: 1em; }

/* -------------------- Video Lightbox -------------------- */
.bs-no-scroll { overflow: hidden; }
.bs-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 5vw, 4rem);
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.bs-lightbox[hidden] { display: none; }
.bs-lightbox__frame {
	position: relative;
	inline-size: min(100%, 1100px);
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.bs-lightbox__iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.bs-lightbox__close {
	position: absolute;
	inset-block-start: clamp(0.5rem, 3vw, 1.5rem);
	inset-inline-end: clamp(0.5rem, 3vw, 1.5rem);
	inline-size: 44px;
	block-size: 44px;
	font-size: 28px;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease;
}
.bs-lightbox__close:hover { background: rgba(255, 255, 255, 0.25); }
.bs-lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* -------------------- Header: טאבלט + מובייל -------------------- */
.screen-reader-text,
.sr-only {
	position: absolute !important;
	inline-size: 1px; block-size: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

/* עד 1024px: התפריט מתקפל להמבורגר (ברירת המחדל של וורדפרס היא רק מתחת ל-600px) */
@media (min-width: 600px) and (max-width: 1024px) {
	.site-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.site-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 1024px) {
	.site-header__inner { min-block-size: 68px; padding-inline: clamp(0.75rem, 3vw, 1.5rem); }
	.site-header__start { padding-inline-start: 0; }
	.site-header__end { justify-content: flex-end; gap: 0.75rem; padding-inline-start: 0; }
	.site-nav { order: 2; }
	.site-nav .wp-block-navigation__responsive-container-open {
		inline-size: 44px; block-size: 44px;
		align-items: center; justify-content: center;
		color: var(--wp--preset--color--contrast, #0B161B);
		border-radius: 8px;
	}
	.site-nav .wp-block-navigation__responsive-container-open svg { inline-size: 28px; block-size: 28px; }
	.site-nav .wp-block-navigation__responsive-container-open:focus-visible { outline: 2px solid var(--wp--preset--color--primary, #3C6273); outline-offset: 2px; }
}
/* overlay התפריט הפתוח */
.site-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--cream, #FFFCEE) !important;
	color: var(--wp--preset--color--contrast, #0B161B) !important;
	padding: clamp(1.5rem, 6vw, 3rem);
}
.site-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-block-start: 4rem; }
.site-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.site-nav .is-menu-open .wp-block-navigation__container { gap: 0.25rem; align-items: flex-start !important; } /* RTL: flex-start = ימין */
.site-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.6rem; font-weight: 500; padding: 0.6rem 0; }
.site-nav .is-menu-open .nav-home .wp-block-navigation-item__content { font-size: 1.6rem; gap: 0.6rem; }
.site-nav .is-menu-open .nav-home .wp-block-navigation-item__content::before { inline-size: 1.4rem; block-size: 1.4rem; }
.site-nav .is-menu-open .wp-block-navigation__responsive-container-close { inline-size: 44px; block-size: 44px; inset-block-start: 1rem; inset-inline-end: 1rem; }
.site-nav .is-menu-open .wp-block-navigation__responsive-container-close svg { inline-size: 32px; block-size: 32px; }

/* מובייל: כפתור הסרט — אייקון בלבד (הטקסט נשאר לקוראי מסך), נר קומפקטי */
@media (max-width: 767px) {
	.bs-video-btn { padding: 12px; font-size: 18px; }
	.bs-video-btn__label {
		position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
		clip: rect(0, 0, 0, 0); white-space: nowrap;
	}
}

/* ============================================================================
   HERO — משוחזר 1:1 מהאתר החי (מדידה ב-1440px)
   מדיה sticky מימין · עמודת סיפור (חול #EDEBE3) משמאל
   ============================================================================ */
.hero { position: relative; }

.hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr; /* RTL: עמודה 1 = ימין (מדיה), עמודה 2 = שמאל (תוכן) */
	align-items: start;             /* חובה ל-sticky */
}

/* איפוס מרווחי ה-flow של וורדפרס בתוך ה-Hero — הריווח נשלט ב-gap */
.hero :where(.hero__grid, .hero__content, .hero-intro, .hero-intro__inner, .hero-title, .hero-intro__row, .hero-story, .quote-card, .story-scroll, .story-chapter, .story-chapter__body, .story-chapter__end) > * { margin-block: 0; }

/* -------------------- מדיה — sticky -------------------- */
.hero__media {
	position: sticky;
	inset-block-start: 0;
	block-size: 100vh;
	block-size: 100svh;
}

/* -------------------- סליידר: crossfade + Ken Burns (CSS בלבד) --------------------
   תזמון כמו ב-Swiper המקורי: 2.8ש' השהיה + 0.888ש' מעבר = 3.688ש' לשקופית.
   7 שקופיות → מחזור 25.816ש'. השקופית הראשונה גלויה מיד בטעינה (delay שלילי). */
.hero-slider {
	position: relative;
	inline-size: 100%;
	block-size: 100%;
	overflow: hidden;
	background-color: var(--wp--preset--color--contrast, #0B161B);
}
.hero-slider__img {
	position: absolute;
	inset: 0;
	margin: 0;
	inline-size: 100%;
	block-size: 100%;
	opacity: 0;
	will-change: opacity;
	animation: heroFade 25.816s linear infinite;
}
.hero-slider__img img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: center;
	transform-origin: center;
	will-change: transform;
	animation: heroKenBurns 25.816s linear infinite;
}
.hero-slider__img:nth-child(1), .hero-slider__img:nth-child(1) img { animation-delay: -0.888s; }
.hero-slider__img:nth-child(2), .hero-slider__img:nth-child(2) img { animation-delay: 2.8s; }
.hero-slider__img:nth-child(3), .hero-slider__img:nth-child(3) img { animation-delay: 6.488s; }
.hero-slider__img:nth-child(4), .hero-slider__img:nth-child(4) img { animation-delay: 10.176s; }
.hero-slider__img:nth-child(5), .hero-slider__img:nth-child(5) img { animation-delay: 13.864s; }
.hero-slider__img:nth-child(6), .hero-slider__img:nth-child(6) img { animation-delay: 17.552s; }
.hero-slider__img:nth-child(7), .hero-slider__img:nth-child(7) img { animation-delay: 21.24s; }

@keyframes heroFade {
	0%     { opacity: 0; }
	3.44%  { opacity: 1; }  /* כניסה 0.888ש' */
	14.29% { opacity: 1; }  /* החזקה */
	17.73% { opacity: 0; }  /* יציאה — הבאה נכנסת במקביל */
	100%   { opacity: 0; }
}
/* Ken Burns "in" כמו באלמנטור (scale ליניארי לאורך זמן התצוגה) */
@keyframes heroKenBurns {
	0%     { transform: scale(1); }
	17.73% { transform: scale(1.12); }
	17.74%, 100% { transform: scale(1); }
}

/* בעורך: תמונות כ-thumbnails ניתנות לבחירה (לא מוערמות) */
.editor-styles-wrapper .hero__media { position: static; block-size: auto; }
.editor-styles-wrapper .hero-slider { position: static; block-size: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.editor-styles-wrapper .hero-slider__img { position: static; opacity: 1; animation: none; inline-size: 120px; block-size: auto; }
.editor-styles-wrapper .hero-slider__img img { block-size: auto; animation: none; }

/* -------------------- עמודת התוכן -------------------- */
.hero__content {
	display: flex;
	flex-direction: column;
	gap: 1%;
	background-color: var(--wp--preset--color--sand, #EDEBE3);
	padding-block: 0 8%;
	padding-inline: 2%;
	color: var(--wp--preset--color--contrast, #0B161B);
}

/* --- פתיח: הכותרת יושבת בתחתית המסך הראשון --- */
.hero-intro {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-block-size: 100vh;
	min-block-size: 100svh;
	padding-block: calc(var(--bs-header-h) + 1.5rem) clamp(1.5rem, 7svh, 4.5rem);
}
.hero-intro__inner { display: flex; flex-direction: column; gap: clamp(14px, 2svh, 24px); }
.hero-title { display: flex; flex-direction: column; gap: 8px; }

.hero-title h1 {
	font-size: var(--bs-fs-hero);
	font-weight: 640;
	line-height: 1.3;
	letter-spacing: -0.8px;
	margin: 0;
}
.hero-subtitle {
	font-size: var(--bs-fs-lead);
	font-weight: 433;
	line-height: 1.3;
	letter-spacing: -0.5px;
	color: #8E9294;
	margin: 0;
}
.hero-lead p {
	font-size: var(--bs-fs-lead);
	font-weight: 320;
	line-height: 1.3;
	letter-spacing: -0.2px;
	margin-block: 0 0.9rem;
}
.hero-lead--strong p { font-weight: 460; }
.hero-lead p:last-child { margin-block-end: 0; }

.hero-intro__row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}
.hero-intro__row > * { flex: 1 1 50%; min-inline-size: 0; }
.hero-intro__row .hero-last-text {
	font-size: var(--bs-fs-lead);
	font-weight: 320;
	line-height: 1.3;
	letter-spacing: -0.2px;
}

/* --- חץ גלילה (משחזר את ה-Lottie: ציור 1.5ש' · החזקה · מחיקה, לולאה 6ש') --- */
#scroll-down-cntnr {
	display: flex;
	justify-content: flex-end;
	opacity: 0; /* הפקטורי חושף אחרי הטקסט האחרון */
	color: #131313;
}
.scroll-down-arrow { display: block; block-size: 63px; inline-size: auto; }
.scroll-down-arrow path {
	fill: none;
	stroke: currentColor;
	stroke-width: 50;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1 1;
	animation: arrowDraw 6s infinite;
}
@keyframes arrowDraw {
	0%   { stroke-dashoffset: 1;  animation-timing-function: cubic-bezier(0.17, 0.17, 0.5, 1); }
	25%  { stroke-dashoffset: 0; }
	75%  { stroke-dashoffset: 0;  animation-timing-function: cubic-bezier(0.5, 0, 0.83, 0.83); }
	100% { stroke-dashoffset: -1; }
}

/* --- גוף הסיפור --- */
.hero-story { display: flex; flex-direction: column; gap: 44px; }

.hero-story p {
	font-size: var(--bs-fs-read);
	font-weight: 370;
	line-height: 1.7;
	letter-spacing: 0.1px;
	margin-block: 0 0.9rem;
}
.hero-story p:last-child { margin-block-end: 0; }
.hero-story .is-bold { font-weight: 700; }

/* כרטיס ציטוט */
.quote-card {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	padding: 28px;
	background-color: rgba(255, 252, 238, 0.51);
	border-radius: 5px;
	box-shadow: 0 0 18px rgba(0, 0, 0, 0.18);
}
.quote-card blockquote {
	margin: 1.17rem 40px;
	padding: 0;
	border: 0;
}
.quote-card blockquote p { font-weight: 460; }
.quote-card .q-mark { font-size: 2em; font-weight: 700; line-height: 0; vertical-align: -0.3em; }
.quote-card__source { font-weight: 550 !important; }

/* פרקים עם תגית תאריך */
.story-scroll { display: flex; flex-direction: column; gap: 48px; }
.story-chapter,
.story-chapter__body { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.story-chapter__end { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.story-chapter__body > *,
.story-chapter__end > * { align-self: stretch; }
.story-chapter__body > .date-badge,
.story-chapter__end > .date-badge { align-self: flex-start; }

.date-badge {
	display: inline-block;
	margin: 0;
	padding-inline: 16px;
	font-size: 0.7rem !important;
	font-weight: 555;
	line-height: 22px;
	letter-spacing: 0;
	color: var(--wp--preset--color--cream, #FFFCEE);
	background-color: var(--wp--preset--color--primary, #3C6273);
	border-radius: 999px;
}

/* -------------------- טאבלט ומובייל: עמודה אחת -------------------- */
@media (max-width: 1024px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__media {
		position: relative;
		block-size: min(75svh, 125vw);
	}
	.hero__content { padding-inline: clamp(1.25rem, 5vw, 2.5rem); padding-block-end: 4rem; gap: 2.5rem; }
	.hero-intro { min-block-size: 0; padding-block: 2.5rem 0; }
	.hero-intro__row { flex-direction: column; }
	#scroll-down-cntnr { display: none; }
	.quote-card { padding: 1.25rem; }
	.quote-card blockquote { margin: 0.75rem 0.5rem; }
	.story-scroll { padding-inline-start: 0; }
	.story-scroll::before, .story-scroll::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hero-slider__img, .hero-slider__img img { animation: none; }
	.hero-slider__img:nth-child(1) { opacity: 1; }
	.scroll-down-arrow path { animation: none; stroke-dashoffset: 0; }
}

/* lightbox — מצב תמונה */
.bs-lightbox.is-image .bs-lightbox__frame { aspect-ratio: auto; inline-size: auto; max-inline-size: min(92vw, 1400px); background: transparent; box-shadow: none; }
.bs-lightbox__img { display: block; max-inline-size: 100%; max-block-size: 88vh; inline-size: auto; block-size: auto; margin-inline: auto; border-radius: 5px; }

/* ============================================================================
   סקשן גשר: ציטוט ירמיהו + "הסיפור של בן"
   ============================================================================ */
.story-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	padding-block: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 4vw, 3.5rem);
	padding-inline: 1.25rem;
	text-align: center;
}
.story-intro > * { margin: 0; }
.story-intro__quote {
	font-size: clamp(1.5rem, 1rem + 1.4vw, 2.07rem);
	font-weight: 488;
	line-height: 1.3;
	will-change: transform, opacity;
}
.story-intro__quote .q-mark { font-weight: 700; }
.story-intro__title {
	font-size: var(--bs-fs-section) !important;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	margin: 0;
	will-change: opacity, filter;
}

/* ============================================================================
   גלילה אופקית — "הסיפור של בן" (דסקטופ: pin + גלילה צידית · מובייל: ערימה)
   ============================================================================ */
.scroll-track :where(.sticky-viewport, .horizontal-content, .hs-panel, .hs-col, .hs-text, .hs-final) > * { margin-block: 0; }

.hs-panel {
	display: flex;
	gap: 40px;
	padding-inline: 40px;
}
.hs-col {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-inline-size: 0;
	gap: 10px;
	padding: 10px;
}
.hs-col--b { justify-content: flex-start; align-items: center; }
.hs-col--c { justify-content: center; align-items: center; }
.hs-col--centered { align-items: center; }
.hs-col--start { align-items: stretch; }
.hs-col > .hs-text { align-self: stretch; padding: 10px; }

.hs-title {
	font-size: 2.2rem;
	font-weight: 400;
	line-height: 1;
	color: var(--wp--preset--color--primary, #3C6273);
	padding-inline: 10px;
	margin: 0;
}
.hs-text p {
	font-size: var(--bs-fs-text);
	font-weight: 370;
	line-height: 1.7;
	margin-block: 0 0.9rem;
}
.hs-text p:last-child { margin-block-end: 0; }

/* תמונות: צל רך, פינות 5px, הטיית עכבר (JS) */
.hs-img { margin: 0; perspective: 800px; }
.hs-col--a > .hs-img { align-self: flex-start; margin-inline-start: 10px; }
.hs-col--centered > .hs-img,
.hs-col--b > .hs-img,
.hs-col--c > .hs-img { align-self: center; }
.hs-col--start > .hs-img { align-self: flex-start; }
.hs-img a { display: block; border-radius: 5px; }
.hs-img a:focus-visible { outline: 3px solid var(--wp--preset--color--primary, #3C6273); outline-offset: 4px; }
.hs-img img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	border-radius: 5px;
	box-shadow: 0 0 13px rgba(0, 0, 0, 0.28);
	transform-style: preserve-3d;
	will-change: transform;
	cursor: zoom-in;
}
.hs-w-55 { inline-size: 55%; } .hs-w-64 { inline-size: 64%; } .hs-w-70 { inline-size: 70%; }
.hs-w-78 { inline-size: 78%; } .hs-w-82 { inline-size: 82%; } .hs-w-84 { inline-size: 84%; }

/* פאנל מסכם: ההספד + וידאו */
.hs-panel--final { justify-content: center; }
.hs-final {
	display: flex;
	flex-direction: column;
	gap: 5px;
	inline-size: min(52rem, 100%);
	padding: 10px;
}
/* ההספד: גדול ובאיטליק כמו במקור (1.3vw ב-1920 ≈ 25px) */
.hs-final__quote { font-size: clamp(1.25rem, 0.75rem + 0.85vw, 1.6rem); font-style: italic; font-weight: 370; line-height: 1.65; text-wrap: pretty; }
.hs-final__quote em { font-style: italic; }
.hs-final__source { font-size: clamp(1rem, 0.8rem + 0.35vw, 1.2rem); font-weight: 550; color: var(--wp--preset--color--primary, #3C6273); margin-block-start: 0.5rem !important; }
.hs-video {
	position: relative;
	display: block;
	inline-size: min(447px, 100%);
	margin: 40px auto 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	border-radius: 5px;
	overflow: hidden;
}
.hs-video img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 820 / 458; object-fit: cover; }
.hs-video__icon {
	position: absolute;
	inset: 50% auto auto 50%;
	inline-size: 72px;
	block-size: 72px;
	transform: translate(-50%, -50%);
	transition: transform 0.3s ease;
}
.hs-video:hover .hs-video__icon,
.hs-video:focus-visible .hs-video__icon { transform: translate(-50%, -50%) scale(1.1); }
.hs-video:focus-visible { outline: 3px solid var(--wp--preset--color--primary, #3C6273); outline-offset: 4px; }

/* --- דסקטופ: מסגרת נעוצה = כותרת + פאנלים, הכל בתוך 100svh מתחת להדר ---
   תנאי גובה: מתחת ל-560px גובה (לפטופ בזום קיצוני) עוברים לערימה אנכית — חייב להתאים ל-section-fx.js */
@media (min-width: 1025px) and (min-height: 560px) {
	.scroll-track { position: relative; }
	.sticky-viewport {
		position: sticky;
		inset-block-start: 0;
		display: flex;
		flex-direction: column;
		block-size: 100vh;
		block-size: 100svh;
		overflow: hidden;
		padding-block-start: calc(var(--wp-admin--admin-bar--height, 0px) + var(--bs-header-h));
	}
	.sticky-viewport > .story-intro__title {
		flex: none;
		padding-block: clamp(0.5rem, 2.2svh, 1.75rem) clamp(0.25rem, 1svh, 0.75rem);
		padding-inline: 1.25rem;
	}
	.horizontal-content {
		display: flex;
		flex-wrap: nowrap;
		flex: 1 1 auto;
		min-block-size: 0;
		inline-size: max-content;
		padding-block: clamp(0.5rem, 2svh, 1.5rem) clamp(1rem, 4svh, 3rem);
		padding-inline: 2% 0;
		will-change: transform;
	}
	.hs-panel { flex: 0 0 100vw; inline-size: 100vw; block-size: 100%; align-items: stretch; }
	.hs-panel--wide { gap: 0; padding: 10px; }
	/* פאנל מסכם: ברוחב התוכן בלבד — בלי חור של חצי מסך לפניו */
	.hs-panel--final { flex: 0 0 auto; inline-size: auto; align-items: center; padding-inline: 0 clamp(3rem, 7vw, 8rem); margin-inline-start: calc(-1 * clamp(2rem, 3vw, 3.5rem)); } /* מרווח כמו בין שאר הפאנלים (~90px) */

	/* עמודה = גובה הפאנל; התמונה היא החלק הגמיש שמתכווץ כדי שהכל ייכנס */
	.hs-col { block-size: 100%; min-block-size: 0; overflow: hidden; }
	.hs-col > .hs-title,
	.hs-col > .hs-text { flex: none; }
	.hs-col > .hs-img {
		flex: 0 1 auto;
		min-block-size: 0;
		display: flex;
		justify-content: center;
	}
	.hs-col > .hs-img a { display: flex; max-block-size: 100%; min-block-size: 0; }
	.hs-col > .hs-img img { inline-size: auto; max-inline-size: 100%; max-block-size: 100%; object-fit: contain; }
	.hs-video { margin-block-start: clamp(1rem, 3svh, 2.5rem); inline-size: min(447px, 100%, 52svh); }
}
/* מסך דסקטופ נמוך: טקסט הפאנלים קומפקטי יותר */
@media (min-width: 1025px) and (min-height: 560px) and (max-height: 760px) {
	.hs-text p { font-size: 1.05rem; line-height: 1.55; }
	.hs-title { font-size: 1.8rem; }
	.hs-final__quote { font-size: clamp(1.1rem, 0.6rem + 0.8vw, 1.35rem); }
}

/* --- טאבלט/מובייל (או דסקטופ נמוך מ-560px): ערימה אנכית נקייה --- */
@media (max-width: 1024px), (max-height: 559.98px) {
	.scroll-track { padding-block: 2rem 3rem; }
	.sticky-viewport > .story-intro__title { padding-block: 0 1.5rem; padding-inline: 1.25rem; }
	.hs-final__quote { font-size: 1.2rem; }
	.hs-panel { flex-direction: column; gap: 1.5rem; padding-inline: clamp(1.25rem, 5vw, 2.5rem); padding-block: 1rem; }
	.hs-col { padding: 0; gap: 1rem; align-items: stretch !important; }
	.hs-col > .hs-img { align-self: center !important; margin-inline-start: 0; inline-size: min(100%, 420px); order: 1; } /* תמיד אחרי הטקסט: טקסט-תמונה לסירוגין (בעמודות b התמונה קודמת ב-DOM) */
	.hs-title { font-size: 1.85rem; padding-inline: 0; }
	.hs-col > .hs-text { padding: 0; }
	.hs-img img { cursor: zoom-in; }
}

/* ============================================================================
   סקשן עמותה — "Legends never die"
   ============================================================================ */
.closing {
	background-color: #D9D6CE;
	padding-block: clamp(4rem, 8vw, 8rem);
	padding-inline: clamp(1.25rem, 5vw, 2.5rem);
	overflow: clip;
}
.closing :where(.closing__inner, .closing__row, .closing__text, .closing__body, .closing__media) > * { margin-block: 0; }
.closing__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 37px;
	inline-size: min(73%, 1400px);
	margin-inline: auto;
}
.closing__legend {
	font-family: Helvetica, Arial, sans-serif;
	font-size: clamp(2.5rem, 1.5rem + 2.8vw, 4rem) !important;
	font-style: italic;
	font-weight: 900;
	line-height: 1.1;
	color: #495F69;
	text-align: center;
	direction: ltr;
	will-change: transform, opacity;
}
.closing__row { display: flex; gap: 37px; inline-size: 100%; }
.closing__text { flex: 0 0 46%; display: flex; flex-direction: column; gap: 30px; padding-block-start: 31px; }
.closing__title { font-size: clamp(2rem, 0.75rem + 3vw, 3.6rem) !important; font-weight: 580; line-height: 1.3; text-wrap: balance; }
.closing__body p { font-size: var(--bs-fs-text); font-weight: 370; line-height: 1.7; margin-block: 0 0.9rem; }
.closing__media { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; }
.closing__img { margin: 0 0 clamp(1rem, 2vw, 1.5rem); inline-size: 100%; }
.closing__media > .closing__btn { align-self: flex-start; } /* כמו במקור: הכפתור בצד ההתחלה (ימין ב-RTL), ה-QR בקצה */
.closing__img img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 527 / 530; object-fit: cover; border-radius: 5px; }
.closing__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	font-size: 1rem;
	font-weight: 715;
	line-height: 1;
	color: var(--wp--preset--color--primary, #3C6273);
	text-decoration: none;
	border-radius: 3px;
	transition: color 0.2s ease, gap 0.3s ease;
}
.closing__btn:hover { color: var(--wp--preset--color--contrast, #0B161B); gap: 14px; }
.closing__btn:focus-visible { outline: 2px solid var(--wp--preset--color--primary, #3C6273); outline-offset: 3px; }
.closing__btn-icon { inline-size: 1.1em; block-size: 1.1em; order: 2; }
.closing__qr { position: absolute; inset-block-end: 0; inset-inline-end: 0; inline-size: clamp(110px, 9.6vw, 185px); margin: 0; }
.closing__qr img { display: block; inline-size: 100%; block-size: auto; }

/* דסקטופ: ה-73% נמדדים מרוחב המסך המלא כמו במקור (בלי הריפוד הצידי) */
@media (min-width: 1025px) { .closing { padding-inline: 0; } }
@media (max-width: 1024px) {
	.closing__inner { inline-size: 100%; }
	.closing__row { flex-direction: column; }
	.closing__text { flex-basis: auto; padding-block-start: 0; }
	.closing__img { margin-block-end: 1rem; }
	.closing__qr { position: static; align-self: center; margin-block-start: 1rem; }
}

/* ============================================================================
   כותרת עמוד פנימי (הסיפור של בן / עמותת ההנצחה)
   ============================================================================ */
.page-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	padding: 4rem 1.25rem 0;
	text-align: center;
}
.page-hero > * { margin: 0; }
.page-hero__title {
	font-size: clamp(2.5rem, 5vw, 4rem) !important;
	font-weight: 500;
	line-height: 1.1;
	color: var(--wp--preset--color--contrast, #0B161B);
	margin-block-end: 1rem !important;
}
.page-hero__sub {
	font-size: clamp(1.15rem, 1.8vw, 2.4rem);
	font-weight: 280;
	line-height: 1.3;
	color: #8E9294;
	will-change: transform, opacity;
}
.page-hero--story .page-hero__sub { color: #6B6D64; }
.memorial-page > .wp-block-post-content > .page-hero { max-inline-size: none; padding-inline: 1.25rem; }

/* ציטוט ירמיהו מעל ציר הזמן */
.memorial-page > .wp-block-post-content > .page-quote {
	inline-size: fit-content;
	max-inline-size: min(90%, 800px);
	margin: 0.6rem auto 0;
	padding: 0;
	font-size: clamp(1.15rem, 1.8vw, 2.4rem);
	font-weight: 488;
	line-height: 1.3;
	color: #6B6D64;
	text-align: start;
}
.page-quote strong { font-weight: 700; }

/* ============================================================================
   עמותת ההנצחה — עמוד ייעודי
   ============================================================================ */
.memorial-page > .wp-block-post-content > .assoc { max-inline-size: none; }
.assoc { padding-block: 1% 5%; padding-inline: 1.25rem; overflow: clip; }
.assoc :where(.assoc__inner, .assoc__text, .assoc__body, .assoc__cta, .assoc__media) > * { margin-block: 0; }
.assoc__inner {
	display: grid;
	grid-template-columns: 479fr 527fr;
	gap: 37px;
	inline-size: min(73%, 1400px);
	margin-inline: auto;
	position: relative;
	z-index: 1;
}
.assoc__text { display: flex; flex-direction: column; gap: 15px; padding-block-start: 31px; }
.assoc__body p {
	font-size: 1.2rem;
	font-weight: 370;
	line-height: 1.7;
	color: var(--wp--preset--color--contrast, #0B161B);
	margin-block: 0 0.9rem;
	text-wrap: pretty;
}
.assoc__cta { display: flex; align-items: center; gap: 20px; }
.assoc__cta-qr { inline-size: 125px; flex: 0 0 auto; margin: 0; }
.assoc__cta-qr img, .assoc__qr img { display: block; inline-size: 100%; block-size: auto; }
.assoc__media { position: relative; display: flex; flex-direction: column; align-items: center; }
.assoc__legend {
	position: relative;
	z-index: 2;
	margin-block-end: -110px !important;
	font-family: Helvetica, Arial, sans-serif;
	font-size: clamp(2.5rem, 1.5rem + 2.8vw, 4rem);
	font-style: italic;
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
	text-align: center;
	color: rgba(33, 55, 65, 0.75);
	direction: ltr;
	will-change: transform, opacity;
}
.assoc__img { margin: 0; inline-size: 100%; }
.assoc__img img { display: block; inline-size: 100%; block-size: auto; border-radius: 5px; }
.assoc__qr { position: absolute; inset-block-end: -13px; inset-inline-end: 0; z-index: 3; inline-size: 137px; margin: 0; }

@media (max-width: 1024px) {
	.assoc__inner { grid-template-columns: 1fr; inline-size: min(100%, 640px); gap: 3rem; }
	.assoc__text { padding-block-start: 1.5rem; }
	.assoc__legend { margin-block-end: -0.45em !important; }
	.assoc__qr { display: none; } /* כפול — ה-QR שליד הכפתור נשאר */
}
@media (max-width: 600px) {
	.assoc__cta { flex-direction: column; align-items: flex-start; }
	.assoc__body p { font-size: 1.1rem; }
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer { margin-block-start: 0; }
.site-footer__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	background-color: var(--wp--preset--color--contrast, #0B161B);
	color: var(--wp--preset--color--cream, #FFFCEE);
}
.site-footer__bar > * { margin: 0; }
.site-footer__copy { flex: 0 0 270px; font-size: 0.8rem; font-weight: 370; padding-inline-start: 37px; }
.site-footer__nav { flex: 1 1 auto; justify-content: center; }
.site-footer__nav .wp-block-navigation-item__content {
	padding: 10px;
	font-size: 1rem;
	font-weight: 300;
	color: var(--wp--preset--color--cream, #FFFCEE);
	text-decoration: none;
}
.site-footer__nav .wp-block-navigation-item__content:hover,
.site-footer__nav .wp-block-navigation-item__content:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__spacer { flex: 0 0 275px; }
@media (max-width: 767px) {
	.site-footer__bar { flex-direction: column; gap: 0; }
	.site-footer__copy { flex: none; padding: 0.5rem 0 0; order: 2; }
	.site-footer__spacer { display: none; }
}

/* ============================================================================
   עמוד אלבום
   ============================================================================ */
.album-page > .wp-block-post-content > * { margin-block: 0; max-inline-size: none; }

/* עמוד הבית — התוכן יושב בעמוד (לתרגום ב-WPML), התבנית רק עוטפת */
.front-main > .wp-block-post-content > * { margin-block: 0; max-inline-size: none; }

/* עמודי הנצחה מלאי רוחב (כותבים לזכרו / הסיפור של בן) */
.memorial-page > .wp-block-post-content > * { margin-block: 0; }
.memorial-page > .wp-block-post-content > :is(p, h2, h3, ul, ol, blockquote) { max-inline-size: 800px; margin-inline: auto; padding-inline: 20px; }
.memorial-page > .wp-block-post-content > .alignfull,
.memorial-page > .wp-block-post-content > .nzw-letters,
.memorial-page > .wp-block-post-content > .nzw-timeline { max-inline-size: none; }


/* ============================================================================
   נר זיכרון (מוזג מ-candle.css — בקשת רשת אחת פחות)
   ============================================================================ */
/* ============================================================================
   Candle Counter v5 — נר זיכרון
   נר מימין לטקסט | hover רק טקסט+בורדר | טולטיפ מתחת
   נכתב ב-CSS Logical Properties. ה-glass תואם להדר (blur 7.3px).
   ============================================================================ */

.nz3__btn * { box-sizing: border-box; }

.nz3__btn {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding-block: 9px;
	padding-inline: 24px;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 16px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(7.3px);
	-webkit-backdrop-filter: blur(7.3px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	font-size: 1.05rem;
	letter-spacing: 0.08em;
	font-family: inherit; /* Noto Sans Hebrew מה-theme */
	cursor: pointer;
	outline: none;
	position: relative;
	max-inline-size: 92vw;
	color: #CC3366; /* צבע הטקסט כמו באתר החי */
	transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

/* hover לפני הדלקה: בורדר+טקסט משחירים, רקע שקוף, נר ללא שינוי */
.nz3__btn:hover:not(.nz3--lit) {
	border-color: rgba(255, 255, 255, 0.3);
	color: #181717;
	background: transparent;
}

/* פוקוס מקלדת — נגישות */
.nz3__btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, #3C6273);
	outline-offset: 3px;
}

/* אחרי הדלקה */
.nz3__btn.nz3--lit { border-color: rgba(255, 255, 255, 0.3); cursor: default; }
.nz3__btn.nz3--lit:hover { border-color: rgba(184, 150, 78, 0.45); color: #181717; background: transparent; }

/* ---- SVG נר ---- */
.nz3__svg { display: block; flex-shrink: 0; overflow: visible; width: 36px; height: 45px; }
.nz3__flame-group { transform-origin: 50% 100%; }
.nz3__btn.nz3--lit .nz3__flame-group { animation: nz3-flameDance 2s ease-in-out infinite; }
.nz3__glow-ellipse { opacity: 0; transition: opacity 0.8s ease; }
.nz3__btn.nz3--lit .nz3__glow-ellipse { opacity: 1; animation: nz3-glowPulse 2s ease-in-out infinite; }

@keyframes nz3-flameDance {
	0%, 100% { transform: scaleX(1)    scaleY(1)    rotate(0deg);    filter: brightness(1); }
	25%      { transform: scaleX(0.88) scaleY(1.08) rotate(-1.5deg); filter: brightness(1.1); }
	75%      { transform: scaleX(1.08) scaleY(0.95) rotate(1.5deg);  filter: brightness(0.95); }
}
@keyframes nz3-glowPulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.5; } }

/* ---- טקסט ---- */
.nz3__label { display: block; white-space: nowrap; }

/* ---- טולטיפ מתחת ---- */
.nz3__tooltip {
	position: absolute;
	inset-block-start: calc(100% + 10px);
	inset-inline-start: 50%;
	transform: translateX(-50%);
	background: rgba(26, 23, 20, 0.92);
	color: #D4AF6A;
	font-size: 12px;
	font-family: "Frank Ruhl Libre", serif;
	letter-spacing: 0.06em;
	white-space: nowrap;
	padding-block: 7px;
	padding-inline: 14px;
	border-radius: 2px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.25s ease;
	z-index: 10;
}
.nz3__tooltip::before {
	content: '';
	position: absolute;
	inset-block-end: 100%;
	inset-inline-start: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-block-end-color: rgba(26, 23, 20, 0.92);
}
.nz3__btn.nz3--lit:hover .nz3__tooltip,
.nz3__btn.nz3--lit:focus-visible .nz3__tooltip { opacity: 1; }

@media (max-width: 600px) {
	.nz3__btn { gap: 9px; padding-block: 7px; padding-inline: 18px; font-size: 0.92rem; letter-spacing: 0.05em; border-radius: 13px; }
	.nz3__svg { width: 30px; height: 37px; }
	.nz3__tooltip { font-size: 11px; padding-block: 6px; padding-inline: 11px; }
}

/* מובייל: נר בלבד בהדר (הטקסט נשאר נגיש דרך aria-label), טולטיפ מיושר לקצה */
@media (max-width: 767px) {
	.nz3__btn { padding: 4px 10px; gap: 0; }
	.nz3__svg { width: 26px; height: 33px; }
	.nz3__label {
		position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
		clip: rect(0, 0, 0, 0); white-space: nowrap;
	}
	.nz3__tooltip { inset-inline-start: auto; inset-inline-end: 0; transform: none; }
	.nz3__tooltip::before { inset-inline-start: auto; inset-inline-end: 14px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.nz3__btn.nz3--lit .nz3__flame-group,
	.nz3__btn.nz3--lit .nz3__glow-ellipse { animation: none; }
}


/* ============================================================================
   LTR (אנגלית) — כל מה שלא מתהפך לבד דרך logical properties
   ============================================================================ */
html[dir="ltr"] .closing__btn-icon { transform: scaleX(-1); }
html[dir="ltr"] .site-nav .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; }
/* אנגלית: התוויות ארוכות יותר — חצי ההתחלה מתכווץ לגודל הכפתור והתפריט מקבל את השאר */
@media (min-width: 1025px) {
	html[dir="ltr"] .site-header__start { flex: 0 0 auto; }
	html[dir="ltr"] .site-header__end { flex: 1 1 auto; justify-content: flex-end; gap: 1.5rem; }
}
