/*
 * תפריט וילות — מגה־מניו
 * עיצוב הבסיס. מצב הנייד נדפס בעמוד עצמו (class-vmm-css.php),
 * כי נקודת השבירה נקבעת בהגדרות הווידג׳ט.
 */

/* ------------------------------------------------------------------ */
/*  מעטפת                                                             */
/* ------------------------------------------------------------------ */

.vmm {
	position: relative;
	display: block;
	--vmm-divider: #e6e6e6;
	--vmm-group-line: #e6e6e6;
	--vmm-m-line: #ededed;
	--vmm-m-indent: 16px;
}

.vmm *,
.vmm *::before,
.vmm *::after {
	box-sizing: border-box;
}

.vmm-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.vmm-empty {
	padding: 14px 18px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	color: #666;
	font-size: 14px;
}

/* ------------------------------------------------------------------ */
/*  הסרגל והפריטים הראשיים                                             */
/* ------------------------------------------------------------------ */

.vmm-root {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vmm-root > .vmm-item {
	position: static;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin: 0;
}

/* פאנל צר נפתח ביחס לפריט עצמו, ולכן הפריט הוא נקודת הייחוס */
.vmm-root > .vmm-item.vmm-w-auto {
	position: relative;
}

.vmm-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	margin: 0;
	background: none;
	border: 0;
	font: inherit;
	line-height: 1.3;
	color: inherit;
	text-align: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}

.vmm-link:focus-visible,
.vmm-arrow-btn:focus-visible,
.vmm-sub-link:focus-visible,
.vmm-toggle:focus-visible,
.vmm-close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.vmm-plain {
	cursor: default;
}

.vmm-text {
	white-space: nowrap;
}

.vmm-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	flex: 0 0 auto;
}

.vmm-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ------------------------------------------------------------------ */
/*  החץ                                                               */
/* ------------------------------------------------------------------ */

/*
 * החץ מצויר משתי מסגרות של ריבוע זעיר שמסובב ב-45 מעלות.
 * כאן דווקא ימין ותחתית מפורשות, ולא inline-end / block-end —
 * כי בעברית הדפדפן מעביר את ה-end לצד שמאל, והחץ היה מצביע
 * הצידה במקום למטה. חץ הוא צורה גאומטרית ולא טקסט, ולכן הוא
 * צריך להישאר זהה בכל כיוון כתיבה.
 */
.vmm-arrow {
	display: inline-block;
	width: .42em;
	height: .42em;
	margin-top: -.22em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
	flex: 0 0 auto;
	opacity: .75;
}

.vmm-arrow-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 4px;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
}

.vmm-item.vmm-open .vmm-arrow {
	transform: rotate(225deg);
	margin-top: .12em;
}

.vmm-no-arrow .vmm-arrow {
	display: none;
}

/* ------------------------------------------------------------------ */
/*  התגית הקטנה                                                        */
/* ------------------------------------------------------------------ */

.vmm-badge {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 999px;
	background-color: #d33b3b;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	flex: 0 0 auto;
}

/* ------------------------------------------------------------------ */
/*  הפאנל הנפתח                                                        */
/* ------------------------------------------------------------------ */

.vmm-panel {
	position: absolute;
	top: 100%;
	inset-inline: 0;
	z-index: 900;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	background-color: #fff;
	border-radius: 0 0 10px 10px;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .13);
	text-align: start;
}

.vmm-panel--auto {
	inset-inline: auto;
	inset-inline-start: 0;
	width: max-content;
	min-width: 230px;
	max-width: min(92vw, 460px);
}

.vmm-panel-inner {
	padding: 24px 28px;
}

.vmm-panel-grid {
	display: grid;
	grid-template-columns: repeat(var(--vmm-cols, 3), minmax(0, 1fr));
	column-gap: 28px;
	row-gap: 22px;
	align-items: start;
}

.vmm-panel--auto .vmm-panel-grid {
	grid-template-columns: 1fr;
}

.vmm-item.vmm-open > .vmm-panel {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* פתיחה במעבר עכבר — עובדת גם בלי JavaScript */
@media (hover: hover) {
	.vmm[data-trigger="hover"] .vmm-root > .vmm-item:hover > .vmm-panel,
	.vmm[data-trigger="hover"] .vmm-root > .vmm-item:focus-within > .vmm-panel {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

/* ------------------------------------------------------------------ */
/*  קבוצות וקישורים בתוך הפאנל                                         */
/* ------------------------------------------------------------------ */

.vmm-group {
	min-width: 0;
}

.vmm-dividers .vmm-group:not(:last-child) {
	border-inline-end: 1px solid var(--vmm-divider);
	padding-inline-end: 20px;
}

.vmm-group-title {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 10px;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.4;
}

.vmm-group-lines .vmm-group-title {
	padding-bottom: 8px;
	border-bottom: 1px solid var(--vmm-group-line);
}

.vmm-sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vmm-sub-item {
	margin: 0;
}

.vmm-sub-link {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 7px 10px;
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

a.vmm-sub-link:hover,
a.vmm-sub-link:focus-visible {
	background-color: #f3f4f6;
}

span.vmm-sub-link {
	cursor: default;
}

.vmm-sub-link .vmm-icon {
	margin-top: .15em;
}

.vmm-sub-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 0 1 auto;
}

.vmm-sub-text {
	line-height: 1.45;
}

.vmm-sub-desc {
	font-size: 12px;
	line-height: 1.4;
	color: #777;
	opacity: .95;
}

.vmm-sub-item.vmm-highlight .vmm-sub-text {
	font-weight: 700;
}

.vmm-root > .vmm-item.vmm-highlight > .vmm-link {
	font-weight: 700;
}

/* ------------------------------------------------------------------ */
/*  כפתור התפריט בנייד                                                 */
/* ------------------------------------------------------------------ */

.vmm-toggle {
	display: none;
	align-items: center;
	gap: 9px;
	padding: 9px 12px;
	background: none;
	border: 0;
	border-radius: 6px;
	font: inherit;
	color: inherit;
	cursor: pointer;
	--vmm-burger: 22px;
}

.vmm-burger {
	display: inline-flex;
	flex-direction: column;
	justify-content: space-between;
	width: var(--vmm-burger);
	height: calc(var(--vmm-burger) * .72);
	flex: 0 0 auto;
}

.vmm-burger i {
	display: block;
	height: 2px;
	width: 100%;
	background-color: currentColor;
	border-radius: 2px;
	transition: transform .25s ease, opacity .2s ease;
	transform-origin: center;
}

.vmm.vmm-open-drawer .vmm-burger i:nth-child(1) {
	transform: translateY(calc(var(--vmm-burger) * .34)) rotate(45deg);
}

.vmm.vmm-open-drawer .vmm-burger i:nth-child(2) {
	opacity: 0;
}

.vmm.vmm-open-drawer .vmm-burger i:nth-child(3) {
	transform: translateY(calc(var(--vmm-burger) * -.34)) rotate(-45deg);
}

/* ------------------------------------------------------------------ */
/*  ראש הפאנל בנייד                                                    */
/* ------------------------------------------------------------------ */

.vmm-drawer-head {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--vmm-m-line);
	position: sticky;
	top: 0;
	background-color: inherit;
	z-index: 2;
}

.vmm-drawer-title {
	font-weight: 700;
	font-size: 16px;
}

.vmm-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 6px;
	font-size: 28px;
	line-height: 1;
	color: inherit;
	cursor: pointer;
}

.vmm-overlay {
	display: none;
	background-color: rgba(0, 0, 0, .45);
}

/* ------------------------------------------------------------------ */
/*  נעילת גלילה כשהפאנל פתוח                                           */
/* ------------------------------------------------------------------ */

body.vmm-locked {
	overflow: hidden;
}

/* ------------------------------------------------------------------ */
/*  העדפת תנועה מופחתת                                                 */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.vmm *,
	.vmm *::before,
	.vmm *::after {
		transition-duration: .01ms !important;
	}
}

/* ------------------------------------------------------------------ */
/*  ביטול עיצוב הכפתורים שמגיע מערכת העיצוב                            */
/* ------------------------------------------------------------------ */

/*
 * ערכת hello-elementor מעצבת כל <button> באתר, ובקובץ
 * assets/css/reset.css שלה יש:
 *     button:focus, button:hover { background-color:#cc3366; color:#fff }
 * דרגת הסגוליות שלה (אלמנט + מחלקה מדומה) גוברת על מחלקה בודדת,
 * ולכן כפתור הסגירה, כפתור התפריט וכפתורי החץ קיבלו רקע ורוד
 * בריחוף ובמיקוד. הכפתורים כאן הם כפתורים לוגיים בלבד ולא "כפתור"
 * במובן העיצובי, ולכן הם מאופסים.
 *
 * הסלקטורים מתחילים ב־.vmm כדי לגבור על הערכה בלי לגעת
 * בשום כפתור אחר באתר, וכדי שהגדרות הווידג׳ט באלמנטור
 * (שדרגת הסגוליות שלהן גבוהה יותר) ימשיכו לגבור על האיפוס הזה.
 */
.vmm button,
.vmm button:hover,
.vmm button:focus,
.vmm button:focus-visible,
.vmm button:active {
	background-color: transparent;
	border: 0;
	box-shadow: none;
	text-shadow: none;
	text-decoration: none;
	font-family: inherit;
	color: inherit;
}

/* משוב עדין בריחוף על כפתור הסגירה, במקום הרקע הוורוד שבוטל */
.vmm .vmm-close:hover,
.vmm .vmm-close:focus-visible {
	background-color: rgba(0, 0, 0, .06);
}
