/* Samaneh Nav Menu 0.4.6 — desktop dropdown + mobile off-canvas drawer + header-anchored mobile toggle */
.samaneh-nav-wrap{position:relative;direction:rtl;--samaneh-drawer-width:340px;--samaneh-drawer-bg:#fff;--samaneh-overlay-bg:rgba(2,6,23,.48);--samaneh-mobile-link-color:#1f2937;--samaneh-mobile-hover-color:inherit;--samaneh-mobile-hover-bg:#f5f7fa;--samaneh-mobile-active-color:inherit;--samaneh-mobile-active-bg:#f1f5f9;--samaneh-mobile-separator:rgba(15,23,42,.075);--samaneh-mobile-item-radius:10px;--samaneh-drawer-radius:0;--samaneh-mobile-pad-top:11px;--samaneh-mobile-pad-right:12px;--samaneh-mobile-pad-bottom:11px;--samaneh-mobile-pad-left:12px}
.samaneh-nav-wrap,.samaneh-nav-wrap *{box-sizing:border-box}
.samaneh-nav-list,.samaneh-nav-list ul{list-style:none;margin:0;padding:0}
.samaneh-nav-list{display:flex;align-items:center;gap:18px}
.samaneh-nav-list li{position:relative;margin:0}
.samaneh-nav a{display:flex;align-items:center;gap:7px;min-height:40px;padding:8px 11px;border-radius:9px;text-decoration:none;line-height:1.5;transition:color .2s ease,background-color .2s ease,transform .2s ease}
.samaneh-nav-list>.current-menu-item>a,.samaneh-nav-list>.current-menu-ancestor>a{font-weight:700}
.samaneh-nav-toggle,.samaneh-nav-drawer-head,.samaneh-nav-overlay,.samaneh-submenu-toggle{display:none}

/* Desktop dropdowns */
.samaneh-nav .sub-menu{display:block;position:absolute;top:calc(100% + 8px);right:0;min-width:220px;padding:8px;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:12px;box-shadow:0 14px 38px rgba(15,23,42,.13);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px);transition:opacity .18s ease,visibility .18s ease,transform .18s ease;z-index:1000}
.samaneh-nav .sub-menu li{width:100%}
.samaneh-nav .sub-menu a{width:100%;min-height:40px;padding:9px 11px;border-radius:8px;white-space:normal}
.samaneh-nav li:hover>.sub-menu,.samaneh-nav li:focus-within>.sub-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
.samaneh-nav .sub-menu .sub-menu{top:-8px;right:calc(100% + 8px);transform:translateX(8px)}
.samaneh-nav .sub-menu li:hover>.sub-menu,.samaneh-nav .sub-menu li:focus-within>.sub-menu{transform:translateX(0)}
.samaneh-nav .menu-item-has-children>a:after{content:"⌄";display:inline-block;margin-inline-start:2px;font-size:.9em;line-height:1;opacity:.65;transform:translateY(-1px)}
.samaneh-nav .sub-menu .menu-item-has-children>a:after{content:"‹";margin-inline-start:auto;transform:none}

/* Existing layout presets */
.samaneh-layout-centered .samaneh-nav-list{justify-content:center}
.samaneh-layout-vertical .samaneh-nav-list{flex-direction:column;align-items:stretch}
.samaneh-layout-vertical .samaneh-nav .sub-menu{position:static;opacity:1;visibility:visible;pointer-events:auto;transform:none;box-shadow:none}

@media(max-width:767px){

	/* Normal alignment inside the widget flow. */
	.elementor-widget-samaneh-nav-menu .samaneh-nav-wrap{display:flex;justify-content:var(--samaneh-toggle-align,flex-start);padding-top:var(--samaneh-toggle-top,0);padding-inline:var(--samaneh-toggle-edge,0)}
	.elementor-widget-samaneh-nav-menu .samaneh-nav{display:flex}

	/*
	 * Floating corner modes are positioned by nav-menu.js against the nearest
	 * Elementor header/container that also contains another Samaneh header widget.
	 * Only the toggle is moved; the widget itself stays in Elementor's DOM, so all
	 * Elementor selectors/styles keep working and the drawer remains functional.
	 */
	.elementor-widget-samaneh-nav-menu.samaneh-mobile-toggle-top-right .samaneh-nav-wrap,
	.elementor-widget-samaneh-nav-menu.samaneh-mobile-toggle-top-center .samaneh-nav-wrap,
	.elementor-widget-samaneh-nav-menu.samaneh-mobile-toggle-top-left .samaneh-nav-wrap{display:block!important;height:0!important;min-height:0!important;padding:0!important;overflow:visible!important;position:relative!important;z-index:60}
	.elementor-widget-samaneh-nav-menu.samaneh-mobile-toggle-top-right .samaneh-nav-toggle,
	.elementor-widget-samaneh-nav-menu.samaneh-mobile-toggle-top-center .samaneh-nav-toggle,
	.elementor-widget-samaneh-nav-menu.samaneh-mobile-toggle-top-left .samaneh-nav-toggle{position:absolute!important;right:auto!important;bottom:auto!important;margin:0!important;z-index:61;will-change:top,left}

	/* First-paint guard: floating toggles must never flash at their static Elementor position.
	 * nav-menu.js adds .samaneh-floating-positioned immediately after the final
	 * header-relative coordinates are known. */
	.elementor-widget-samaneh-nav-menu.samaneh-mobile-toggle-top-right .samaneh-nav-toggle,
	.elementor-widget-samaneh-nav-menu.samaneh-mobile-toggle-top-center .samaneh-nav-toggle,
	.elementor-widget-samaneh-nav-menu.samaneh-mobile-toggle-top-left .samaneh-nav-toggle{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
	.elementor-widget-samaneh-nav-menu.samaneh-mobile-toggle-top-right .samaneh-nav-wrap.samaneh-floating-positioned .samaneh-nav-toggle,
	.elementor-widget-samaneh-nav-menu.samaneh-mobile-toggle-top-center .samaneh-nav-wrap.samaneh-floating-positioned .samaneh-nav-toggle,
	.elementor-widget-samaneh-nav-menu.samaneh-mobile-toggle-top-left .samaneh-nav-wrap.samaneh-floating-positioned .samaneh-nav-toggle{opacity:1!important;visibility:visible!important;pointer-events:auto!important}

	body.samaneh-nav-scroll-lock{overflow:hidden!important;overscroll-behavior:none}
	.samaneh-nav-wrap{width:auto}
	.samaneh-nav-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:9px 12px;background:transparent;border:1px solid rgba(15,23,42,.13);border-radius:10px;color:inherit;cursor:pointer;font:inherit;line-height:1;transition:background-color .2s ease,border-color .2s ease,transform .2s ease}
	.samaneh-nav-toggle:hover,.samaneh-nav-toggle:focus-visible{background:rgba(15,23,42,.05);outline:none}
	.samaneh-nav-toggle:active{transform:scale(.98)}
	.samaneh-burger{display:grid;gap:4px;flex:0 0 auto}
	.samaneh-burger i{display:block;width:22px;height:2px;border-radius:99px;background:currentColor;transition:transform .25s ease,opacity .2s ease}
	.samaneh-nav-wrap.is-open .samaneh-burger i:nth-child(1){transform:translateY(6px) rotate(45deg)}
	.samaneh-nav-wrap.is-open .samaneh-burger i:nth-child(2){opacity:0}
	.samaneh-nav-wrap.is-open .samaneh-burger i:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

	.samaneh-nav-overlay{display:block;position:fixed;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;background:var(--samaneh-overlay-bg);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .26s ease,visibility .26s ease;z-index:100000;cursor:pointer}
	.samaneh-nav-wrap.is-open .samaneh-nav-overlay{opacity:1;visibility:visible;pointer-events:auto}

	.samaneh-nav{display:flex;flex-direction:column;position:fixed;top:0;right:0;bottom:0;width:min(var(--samaneh-drawer-width),88vw);max-width:88vw;height:100vh;height:100dvh;margin:0;padding:0;background:var(--samaneh-drawer-bg);border-radius:var(--samaneh-drawer-radius);box-shadow:-18px 0 45px rgba(15,23,42,.18);transform:translateX(105%);visibility:hidden;transition:transform .3s cubic-bezier(.2,.75,.25,1),visibility .3s ease;z-index:100001;overflow:hidden;overscroll-behavior:contain}
	.samaneh-nav-drawer-left .samaneh-nav{right:auto;left:0;transform:translateX(-105%);box-shadow:18px 0 45px rgba(15,23,42,.18)}
	.samaneh-nav.is-open{transform:translateX(0);visibility:visible}

	.samaneh-nav-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:12px 16px;border-bottom:1px solid rgba(15,23,42,.09);flex:0 0 auto}
	.samaneh-nav-drawer-title{font-size:16px;font-weight:800;line-height:1.4;color:#111827}
	.samaneh-nav-close{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:10px;background:rgba(15,23,42,.06);color:#111827;font:inherit;font-size:27px;line-height:1;cursor:pointer;transition:background-color .2s ease,transform .2s ease}
	.samaneh-nav-close:hover,.samaneh-nav-close:focus-visible{background:rgba(15,23,42,.11);outline:none}
	.samaneh-nav-close:active{transform:scale(.96)}

	.samaneh-nav-list{display:block;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:10px 12px 24px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
	.samaneh-nav-list>li{position:relative;border-bottom:1px solid var(--samaneh-mobile-separator)}
	.samaneh-nav-list>li:last-child{border-bottom:0}
	.samaneh-nav a,.samaneh-nav .sub-menu a{display:flex;align-items:center;width:100%;min-height:48px;padding:var(--samaneh-mobile-pad-top) var(--samaneh-mobile-pad-right) var(--samaneh-mobile-pad-bottom) var(--samaneh-mobile-pad-left);border-radius:var(--samaneh-mobile-item-radius);color:var(--samaneh-mobile-link-color);text-decoration:none;white-space:normal;transition:background-color .18s ease,color .18s ease}
	.samaneh-nav a:hover,.samaneh-nav a:focus-visible{background:var(--samaneh-mobile-hover-bg);color:var(--samaneh-mobile-hover-color);outline:none}
	.samaneh-nav .current-menu-item>a,.samaneh-nav .current-menu-ancestor>a{background:var(--samaneh-mobile-active-bg);color:var(--samaneh-mobile-active-color);font-weight:750}
	.samaneh-nav .menu-item-has-children>a{padding-left:52px}
	.samaneh-nav .menu-item-has-children>a:after{display:none}

	.samaneh-submenu-toggle{display:grid;place-items:center;position:absolute;top:6px;left:4px;width:38px;height:38px;padding:0;border:0;border-radius:9px;background:transparent;color:currentColor;cursor:pointer;z-index:2;transition:background-color .18s ease,transform .2s ease}
	.samaneh-submenu-toggle:hover,.samaneh-submenu-toggle:focus-visible{background:rgba(15,23,42,.07);outline:none}
	.samaneh-submenu-toggle:before{content:"⌄";font-size:18px;line-height:1;transform:translateY(-2px);transition:transform .22s ease}
	.samaneh-nav li.is-submenu-open>.samaneh-submenu-toggle:before{transform:translateY(1px) rotate(180deg)}

	.samaneh-nav .sub-menu,.samaneh-nav .sub-menu .sub-menu{display:none;position:static;min-width:0;width:auto;margin:0 10px 6px 0;padding:3px 9px 7px 0;background:transparent;border:0;border-right:2px solid rgba(15,23,42,.08);border-radius:0;box-shadow:none;opacity:1;visibility:visible;pointer-events:auto;transform:none;transition:none}
	.samaneh-nav li.is-submenu-open>.sub-menu{display:block}
	.samaneh-nav .sub-menu li{position:relative;width:100%}
	.samaneh-nav .sub-menu a{min-height:43px;padding-top:8px;padding-bottom:8px;font-size:.94em}

	.samaneh-layout-centered .samaneh-nav-list{justify-content:initial}
	.samaneh-layout-vertical .samaneh-nav-list{display:block}
}

@media(prefers-reduced-motion:reduce){
	.samaneh-nav,.samaneh-nav-overlay,.samaneh-nav-toggle,.samaneh-burger i,.samaneh-submenu-toggle:before{transition:none!important}
}
