/* ==========================================================================
   הדר האתר
   ========================================================================== */
.wa-header-wrap, .wa-drawer, .wa-drawer-backdrop {
	--h-ink: #0e1016;
	--h-bg: #171b24;
	--h-bg2: #1f2430;
	--h-gold: #e2ad5a;
	--h-gold1: #e0be72;
	--h-gold2: #bf8f37;
	--h-text: rgba(255, 255, 255, .78);
	--h-line: rgba(226, 173, 90, .2);
	position: relative; /* בלי z-index - כדי שהמגירה תעלה מעל כל רכיבי העמוד */
	direction: rtl;
	font-family: Arimo, Arial, sans-serif;
}
.wa-header-wrap a, .wa-drawer a { text-decoration: none !important; }
.wa-drawer { direction: rtl; font-family: Arimo, Arial, sans-serif; }
.wa-drawer svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.wa-drawer button { font: inherit; cursor: pointer; }
.wa-drawer :focus-visible { outline: 2px solid #e2ad5a !important; outline-offset: 3px !important; }
.wa-header-wrap svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.wa-header-wrap button { font: inherit; cursor: pointer; }
.wa-header-wrap :focus-visible { outline: 2px solid var(--h-gold) !important; outline-offset: 3px !important; }

/* ---------- פס עליון ---------- */
.wa-topbar { position: relative; z-index: 1001; background: var(--h-ink); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.wa-topbar-in { max-width: 1280px; margin: 0 auto; padding: 0 28px; height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wa-topbar-info, .wa-topbar-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wa-tb-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--h-text); white-space: nowrap; }
.wa-tb-item svg { width: 15px; height: 15px; color: var(--h-gold); }
.wa-tb-muted { color: rgba(255, 255, 255, .55); }
.wa-tb-sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .15); }
.wa-tb-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #fff !important; padding: 0 4px; letter-spacing: .3px; }
.wa-tb-phone svg { width: 15px; height: 15px; color: var(--h-gold); }
.wa-tb-phone:hover { color: var(--h-gold) !important; }
.wa-tb-icon {
	width: 30px; height: 30px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8) !important;
	transition: background .2s, color .2s, border-color .2s; padding: 0;
}
.wa-tb-icon svg { width: 15px; height: 15px; }
.wa-tb-icon:hover, .wa-tb-icon[aria-expanded="true"] { background: var(--h-gold); border-color: var(--h-gold); color: #14110b !important; }
.wa-tb-wa:hover { background: #25D366; border-color: #25D366; color: #fff !important; }

/* חיפוש */
.wa-search { max-width: 1280px; margin: 0 auto; padding: 12px 28px 16px; display: flex; gap: 10px; }
.wa-search[hidden] { display: none; }
.wa-search input {
	flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 10px;
	background: rgba(255, 255, 255, .06); border: 1px solid var(--h-line); color: #fff; font-size: 16px; font-family: inherit;
}
.wa-search input::placeholder { color: rgba(255, 255, 255, .5); }
.wa-search input:focus { outline: none; border-color: var(--h-gold); }
.wa-search button { height: 46px; padding: 0 22px; border: 0; border-radius: 10px; background: linear-gradient(180deg, var(--h-gold1), var(--h-gold2)); color: #14110b; font-weight: 800; }

/* ---------- פס ראשי ---------- */
.wa-header {
	position: relative; z-index: 1000;
	background: linear-gradient(180deg, var(--h-bg2), var(--h-bg));
	box-shadow: 0 1px 0 var(--h-line), 0 10px 30px rgba(0, 0, 0, .18);
}
.wa-header::after { /* קו זהב דק בתחתית */
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--h-gold2) 25%, var(--h-gold1) 50%, var(--h-gold2) 75%, transparent);
	opacity: .55;
}
.wa-header-in { max-width: 1280px; margin: 0 auto; padding: 0 28px; height: 84px; display: flex; align-items: center; gap: 28px; transition: height .25s ease; }

/* לוגו */
.wa-logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.wa-logo img { width: 48px; height: 48px; display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); transition: width .25s, height .25s; }
.wa-logo-tx { display: flex; flex-direction: column; line-height: 1.1; }
.wa-logo-tx strong { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.2px; white-space: nowrap; }
.wa-logo-tx strong em { font-style: normal; font-weight: 400; font-size: 15px; color: var(--h-gold); margin-right: 4px; }
.wa-logo-tx small { font-size: 11.5px; letter-spacing: 3px; color: rgba(255, 255, 255, .55); margin-top: 4px; direction: ltr; text-align: right; white-space: nowrap; }

/* תפריט */
.wa-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.wa-nav-list { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; align-items: center; gap: 2px; }
.wa-nav-list > li { position: relative; margin: 0; padding: 0; list-style: none; }
.wa-nav-list > li::before { display: none !important; }
.wa-nav-list > li > a {
	position: relative; display: flex; align-items: center; height: 84px; padding: 0 14px;
	font-size: 15.5px; font-weight: 600; color: rgba(255, 255, 255, .88) !important; white-space: nowrap;
	transition: color .2s, height .25s;
}
.wa-nav-list > li > a::after {
	content: ""; position: absolute; right: 14px; left: 14px; bottom: 22px; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, var(--h-gold1), var(--h-gold2));
	transform: scaleX(0); transform-origin: right; transition: transform .25s ease, bottom .25s;
}
.wa-nav-list > li > a:hover { color: #fff !important; }
.wa-nav-list > li > a:hover::after,
.wa-nav-list > li.current-menu-item > a::after,
.wa-nav-list > li.current-menu-ancestor > a::after,
.wa-nav-list > li.current-category-ancestor > a::after { transform: scaleX(1); }
.wa-nav-list > li.current-menu-item > a,
.wa-nav-list > li.current-menu-ancestor > a { color: var(--h-gold) !important; }
/* תפריט משנה (אם יתווסף בעתיד) */
.wa-nav-list .sub-menu {
	position: absolute; top: 100%; right: 0; min-width: 230px; list-style: none; margin: 0; padding: 10px;
	background: #fff; border-radius: 12px; border-top: 3px solid var(--h-gold); box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.wa-nav-list li:hover > .sub-menu, .wa-nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.wa-nav-list .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: #2e3444 !important; font-size: 14.5px; }
.wa-nav-list .sub-menu a:hover { background: #faf6ec; color: #8a6224 !important; }

/* צור קשר + תפריט צד */
.wa-header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.wa-cta-btn {
	display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px;
	background: linear-gradient(180deg, var(--h-gold1), var(--h-gold2)); color: #14110b !important;
	font-size: 15.5px; font-weight: 800; white-space: nowrap;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 20px rgba(191, 143, 55, .3);
	transition: transform .2s, box-shadow .2s;
}
.wa-cta-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.wa-cta-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 26px rgba(191, 143, 55, .4); }
.wa-cta-btn:hover svg { transform: translateX(-3px); }
.wa-side-btn {
	width: 46px; height: 46px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--h-line); color: var(--h-gold) !important; background: rgba(255, 255, 255, .03);
	transition: background .2s, border-color .2s;
}
.wa-side-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(226, 173, 90, .5); }
button.wa-side-btn { padding: 0; cursor: pointer; font: inherit; }
button.wa-side-btn svg { width: 20px; height: 20px; fill: currentColor; }
/* במחשב המגירה נפתחת מכפתור הריבוע - רחבה מעט יותר */
@media (min-width: 1181px) { html .wa-drawer { width: 400px; } }

/* ---------- מצב מוצמד בגלילה ---------- */
.wa-header-spacer { height: 0; }
.wa-header.is-fixed {
	position: fixed; top: 0; left: 0; right: 0;
	background: rgba(20, 23, 31, .92);
	-webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
	animation: wa-slide-down .3s ease;
}
body.admin-bar .wa-header.is-fixed { top: 32px; }
@media (max-width: 782px) { body.admin-bar .wa-header.is-fixed { top: 46px; } }
.wa-header.is-fixed .wa-header-in { height: 66px; }
.wa-header.is-fixed .wa-nav-list > li > a { height: 66px; }
.wa-header.is-fixed .wa-nav-list > li > a::after { bottom: 14px; }
.wa-header.is-fixed .wa-logo img { width: 40px; height: 40px; }
.wa-header.is-fixed .wa-logo-tx small { display: none; }
@keyframes wa-slide-down { from { transform: translateY(-100%); } to { transform: none; } }

/* ---------- נייד וטאבלט ---------- */
.wa-mobile-actions { display: none; align-items: center; gap: 8px; margin-right: auto; }
.wa-m-call, .wa-burger {
	width: 44px; height: 44px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center; padding: 0;
	border: 1px solid var(--h-line); background: rgba(255, 255, 255, .04); color: #fff !important;
}
.wa-m-call { background: linear-gradient(180deg, var(--h-gold1), var(--h-gold2)); border: 0; color: #14110b !important; }
.wa-burger svg { width: 22px; height: 22px; }

.wa-drawer-backdrop { position: fixed; inset: 0; background: rgba(8, 10, 14, .55); z-index: 100000; opacity: 0; transition: opacity .25s; }
.wa-drawer-backdrop.is-open { opacity: 1; }
.wa-drawer {
	position: fixed; top: 0; bottom: 0; right: 0; z-index: 100001;
	width: min(360px, 88vw); overflow-y: auto; overscroll-behavior: contain;
	background: linear-gradient(180deg, var(--h-bg2), var(--h-ink));
	box-shadow: -20px 0 60px rgba(0, 0, 0, .4);
	transform: translateX(100%); transition: transform .25s ease;
	display: flex; flex-direction: column;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.wa-drawer.is-open { transform: none; }
.wa-drawer[hidden], .wa-drawer-backdrop[hidden] { display: none !important; }
html.wa-drawer-open, html.wa-drawer-open body { overflow: hidden; }
.wa-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 16px; border-bottom: 1px solid var(--h-line); }
.wa-drawer-head .wa-logo-tx strong { font-size: 21px; }
.wa-drawer-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--h-line); background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.wa-drawer-nav { padding: 10px 10px 0; }
.wa-drawer-list { list-style: none; margin: 0 !important; padding: 0 !important; }
.wa-drawer-list li { margin: 0; padding: 0; list-style: none; }
.wa-drawer-list li::before { display: none !important; }
.wa-drawer-list a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 12px; border-radius: 10px; font-size: 17px; font-weight: 600; color: #fff !important;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.wa-drawer-list a::after { content: "›"; color: var(--h-gold); font-size: 20px; transform: scaleX(-1); }
.wa-drawer-list a:hover, .wa-drawer-list .current-menu-item > a { background: rgba(255, 255, 255, .05); color: var(--h-gold) !important; }
.wa-drawer-list .sub-menu { list-style: none; margin: 0; padding: 0 14px 0 0; }
.wa-drawer-extra a { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .75) !important; }
.wa-drawer-contact { margin-top: auto; padding: 20px 18px 24px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--h-line); }
.wa-drawer-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 12px; font-size: 16px; font-weight: 800; }
.wa-drawer-gold { background: linear-gradient(180deg, var(--h-gold1), var(--h-gold2)); color: #14110b !important; }
.wa-drawer-wa { background: rgba(255, 255, 255, .05); border: 1px solid rgba(37, 211, 102, .5); color: #fff !important; }
.wa-drawer-wa svg { color: #25D366; width: 20px; height: 20px; }
.wa-drawer-contact p { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 14px; color: var(--h-text); }
.wa-drawer-contact p svg { color: var(--h-gold); width: 15px; height: 15px; }
.wa-drawer-social { display: flex; justify-content: center; gap: 10px; }
.wa-drawer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--h-line); display: inline-flex; align-items: center; justify-content: center; color: var(--h-gold) !important; }

@media (max-width: 1180px) {
	.wa-nav, .wa-header-cta { display: none; }
	.wa-mobile-actions { display: flex; }
	.wa-header-in { height: 72px; padding: 0 20px; }
	.wa-header.is-fixed .wa-header-in { height: 62px; }
}
@media (max-width: 760px) {
	.wa-topbar-info .wa-tb-sep, .wa-topbar-info .wa-tb-muted { display: none; }
	.wa-topbar-in { padding: 0 14px; height: 38px; }
	.wa-tb-item { font-size: 12.5px; }
	.wa-topbar-actions .wa-tb-icon:not(.wa-search-toggle) { display: none; }
	.wa-search { padding: 10px 14px 14px; }
	.wa-header-in { height: 64px; padding: 0 14px; gap: 12px; }
	.wa-logo img { width: 40px; height: 40px; }
	.wa-logo-tx strong { font-size: 20px; }
	.wa-logo-tx strong em { font-size: 13px; }
	.wa-logo-tx small { font-size: 10px; letter-spacing: 2px; }
}
@media (max-width: 400px) {
	.wa-tb-item { display: none; }
	.wa-topbar-in { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
	.wa-header-in, .wa-nav-list > li > a, .wa-nav-list > li > a::after, .wa-drawer, .wa-drawer-backdrop, .wa-cta-btn { transition: none !important; }
	.wa-header.is-fixed { animation: none; }
}

/* ההדר והתפריט הנייד הישנים של התבנית לא מוצגים יותר */
.mkd-page-header, .mkd-mobile-header, .mkd-sticky-header { display: none !important; }
