/* Mizrahnik Site CSS — global.css
   העתקה מילולית מה-CSS של הקסטומייזר (16.10.2026), שורות 1-18, 238-245, 246-321, 322-414, 465-470, 527-674, 755-836, 1562-1571, 1572-1587.
   לא לערוך כאן בלי לעדכן את tests/split-map.php — הבדיקה משווה בייט-בבייט למקור. */
/* Logged in & out conditions */

.logged-in-condition .hide-logged-in {
	display: none!important;
}

.logged-out-condition .hide-logged-out {
	display: none!important;
} 

/* החלת הפונט 'Varela Round' על כל האלמנטים באתר */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, button, input, textarea {
    font-family: 'fredoka', sans-serif !important;
}
html, body {
  overflow-x: hidden;
}

/* RTL: למנוע היפוך ספרות במחיר */
html[dir="rtl"] .woocommerce-Price-amount,
html[dir="rtl"] .woocommerce-Price-amount bdi,
html[dir="rtl"] .amount {
  direction: ltr !important;
  unicode-bidi: isolate !important; /* או plaintext אם נתמך */
}

/* =========================================
   Mizrahnik Fix: Prevent Mobile Zoom on Inputs
   ========================================= */
@media screen and (max-width: 768px) {
    /* נטרול זום כללי לכל האתר */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* נטרול זום ספציפי וחזק ל-Ultimate Member (דורס את העיצוב שלהם) */
    .um-field input,
    .um-field input[type="text"],
    .um-field input[type="password"],
    .um-field input[type="tel"],
    .um-field input[type="email"],
    .um-field textarea,
    .um-field select,
    .um .um-form input {
        font-size: 16px !important;
        min-height: 45px; /* שיפור נוחות לחיצה במובייל */
    }
}
/* ==================================================
   Mizrahnik Fix: Prevent Zoom specifically in UM Modals
   ================================================== */
@media screen and (max-width: 768px) {
    
    /* טיפול ספציפי בחלון הקופץ (Overlay) */
    .um-modal .um-modal-body input,
    .um-modal .um-modal-body input[type="text"],
    .um-modal .um-modal-body input[type="password"],
    .um-modal .um-modal-body input[type="email"],
    .um-modal .um-modal-body input[type="tel"],
    .um-modal input, 
    .um-popup input {
        font-size: 16px !important;
        line-height: normal !important; /* מוודא שהטקסט לא נחתך */
        min-height: 48px !important; /* גובה נוח ללחיצה */
    }

    /* וידוא שהחלון עצמו לא משנה קנה מידה */
    .um-modal, .um-popup-overlay {
        touch-action: pan-x pan-y;
    }
}
/* ==========================================================
   Mizrahnik Final Fix: Global Zoom Prevention (Aggressive)
   ========================================================== */
@media screen and (max-width: 768px) {
    /* כלל גורף לכל שדות הקלט באתר - בלי יוצא מן הכלל.
       זה יתפוס גם את הטופס שנפתח אחרי גוגל.
    */
    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
    select,
    textarea {
        font-size: 16px !important;
        max-height: 100% !important; /* מונע בעיות גובה בטפסים דינמיים */
    }

    /* וידוא ספציפי לשדות סיסמה וטלפון בתוך כל סוג של פופ-אפ */
    div[class*="popup"] input,
    div[class*="modal"] input,
    div[class*="overlay"] input,
    .um-modal input,
    #um_upload_single input {
        font-size: 16px !important;
    }
}

/* =========================================================
   Mizrahnik Tokens + Utilities (Single Instance)
   ========================================================= */

:root{
  --mz-bg: #ffffff;
  --mz-surface: #f6f7f9;
  --mz-surface-2: #ffffff;

  --mz-text: #111827;
  --mz-muted: #6b7280;

  --mz-border: rgba(17,24,39,.15);

  --mz-link: #3364ad;
  --mz-link-hover: #274f8a;

  --mz-focus: rgba(51,100,173,.45);
}

html[data-theme="dark"]{
  --mz-bg: #0b1220;
  --mz-surface: #111827;
  --mz-surface-2: #0f172a;

  --mz-text: #e5e7eb;
  --mz-muted: #9ca3af;

  --mz-border: rgba(229,231,235,.18);

  --mz-link: #8ab4ff;
  --mz-link-hover: #b1ccff;

  --mz-focus: rgba(138,180,255,.55);
}

/* Utilities */
.mz-bg{ background: var(--mz-bg); }

.mz-surface{
  background: var(--mz-surface);
  color: var(--mz-text);
  border: 1px solid var(--mz-border);
  border-radius: 14px;
}

.mz-surface-2{
  background: var(--mz-surface-2);
  color: var(--mz-text);
  border: 1px solid var(--mz-border);
  border-radius: 14px;
}

.mz-text{ color: var(--mz-text); }
.mz-muted{ color: var(--mz-muted); }
.mz-border{ border: 1px solid var(--mz-border); }

.mz-rounded{ border-radius: 14px; }
.mz-p-12{ padding: 12px; }
.mz-p-16{ padding: 16px; }
.mz-p-20{ padding: 20px; }

/* Links inside custom blocks */
.mz-content{ color: var(--mz-text); }
.mz-content a{
  color: var(--mz-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mz-content a:hover{ color: var(--mz-link-hover); }

/* Button helper */
.mz-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--mz-border);
  background: var(--mz-link);
  color: var(--mz-bg);
  text-decoration:none !important;
  cursor:pointer;
}
.mz-btn:hover{ background: var(--mz-link-hover); }

.mz-btn:focus-visible,
.mz-content a:focus-visible{
  outline: 3px solid var(--mz-focus);
  outline-offset: 2px;
}

/* Desktop only: move the dark-mode toggle a bit DOWN */
@media (min-width: 1025px){
  #mzGlobalToggle.mz-dark-toggle{
    transform: translateY(45px) !important; /* תשנה ל-16/20/30 לפי הטעם */
  }
}
/* === Mizrahnik Global Button Style (Flexible Size) === */

/* 1. הגדרת משתנים */
.elementor-button {
    --miz-green: #5FA886;
    --miz-green-dark: #488f6e;
    --miz-glow: rgba(95, 168, 134, 0.6);
}

/* 2. העיצוב הראשי לכפתורים */
/* הוספתי כאן גם החרגות חשובות (חיפוש, תפריט) כדי למנוע תקלות נוספות */
.elementor-button:not(.dark-mode-switch):not(.wp-block-button__link):not(.elementor-tab-title):not(.elementor-pricing-table_button):not(.elementor-accordion-title):not(.elementor-accordion-item):not(.elementor-search-form__submit):not(.elementor-nav-menu--toggle) {
    /* --- עיצוב ויזואלי (צבעים ואפקטים) --- */
    background: linear-gradient(135deg, var(--miz-green) 0%, var(--miz-green-dark) 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    
    /* --- צורה (פינות עגולות) --- */
    border-radius: 50px !important;

    /* --- שומרים על הגדרות הגודל והפונט של אלמנטור --- */
    /* מחקתי מכאן את padding ו-font-size כדי שמה שהגדרת באלמנטור יקבע */
    font-family: inherit !important;
    font-weight: 800 !important; /* משאיר בולט, אם תרצה לשלוט גם בזה תשנה ל-inherit */
    text-decoration: none !important;

    /* --- אפקטים --- */
    box-shadow: 0 4px 15px var(--miz-glow), 0 2px 4px rgba(0,0,0,0.2) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    
    /* --- מבנה --- */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    position: relative !important;
    overflow: hidden !important;
    z-index: 1;
}

/* 3. אפקט הברק */
.elementor-button:not(.dark-mode-switch):not(.wp-block-button__link):not(.elementor-tab-title):not(.elementor-pricing-table_button):not(.elementor-accordion-title):not(.elementor-search-form__submit):not(.elementor-nav-menu--toggle)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

/* 4. ריחוף (Hover) */
.elementor-button:not(.dark-mode-switch):not(.elementor-tab-title):not(.elementor-pricing-table_button):not(.elementor-accordion-title):not(.elementor-search-form__submit):not(.elementor-nav-menu--toggle):hover {
    transform: translateY(-3px) scale(1.05) !important;
    background: linear-gradient(135deg, #6ab591 0%, #529c79 100%) !important;
    box-shadow: 0 8px 25px var(--miz-glow), 0 5px 10px rgba(0,0,0,0.3) !important;
    color: #ffffff !important;
}

.elementor-button:not(.dark-mode-switch):not(.elementor-tab-title):not(.elementor-pricing-table_button):not(.elementor-accordion-title):not(.elementor-search-form__submit):not(.elementor-nav-menu--toggle):hover::before {
    left: 100%;
}

/* 5. אייקונים בכפתורים */
.elementor-button:not(.dark-mode-switch):not(.elementor-tab-title):not(.elementor-pricing-table_button):not(.elementor-accordion-title):not(.elementor-search-form__submit):not(.elementor-nav-menu--toggle) i,
.elementor-button:not(.dark-mode-switch):not(.elementor-tab-title):not(.elementor-pricing-table_button):not(.elementor-accordion-title):not(.elementor-search-form__submit):not(.elementor-nav-menu--toggle) svg {
    fill: #ffffff !important;
    color: #ffffff !important;
    position: relative;
    z-index: 2;
}
.elementor-button:not(.dark-mode-switch):not(.elementor-tab-title):not(.elementor-pricing-table_button):not(.elementor-accordion-title):not(.elementor-search-form__submit):not(.elementor-nav-menu--toggle) span {
    position: relative;
    z-index: 2;
}

/* ================================================== */
/* 6. רשת ביטחון ותיקון אקורדיון (The Accordion Fix) */
/* ================================================== */

/* תיקון ממוקד לאקורדיון ול-Toggle */
.elementor-accordion .elementor-tab-title,
.elementor-toggle .elementor-tab-title {
    display: flex !important; 
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 20px !important;
    margin: 0 !important;
    transform: none !important;
}

/* איפוס תפריט המבורגר וחיפוש (למניעת תקלות) */
.elementor-nav-menu--toggle .elementor-button,
.elementor-search-form__submit {
    background: initial !important;
    border: none !important;
    box-shadow: none !important;
    padding: initial !important;
    width: auto !important;
    display: flex !important;
    transform: none !important;
}

/* ביטול אפקטים פנימיים באקורדיון ומוחרגים */
.elementor-accordion .elementor-tab-title::before,
.elementor-toggle .elementor-tab-title::before,
.elementor-nav-menu--toggle .elementor-button::before,
.elementor-search-form__submit::before {
    display: none !important;
}

/* תיקון צבעי טקסט ואייקונים באקורדיון */
.elementor-accordion .elementor-tab-title,
.elementor-accordion .elementor-tab-title a,
.elementor-accordion .elementor-tab-title i,
.elementor-accordion .elementor-tab-title svg,
.elementor-nav-menu--toggle i,
.elementor-search-form__submit i {
    color: inherit !important;
    fill: currentColor !important;
}

/* החרגה לשאר האלמנטים המיוחדים */
.elementor-widget-pricing-table .elementor-button,
.elementor-pricing-table_button,
.elementor-widget-dark-mode-switcher .elementor-button,
#dark-mode-toggle,
.dark-mode-button {
    background: initial !important;
    box-shadow: none !important;
    transform: none !important;
    border-radius: initial !important;
    padding: initial !important;
    border: initial !important;
    width: auto !important;
}

.elementor-widget-pricing-table .elementor-button::before,
.elementor-widget-dark-mode-switcher .elementor-button::before {
    display: none !important;
}

/* =========================================
   Performance Optimized Buttons (Mizrahnik)
   ========================================= */

/* הגדרות בסיס לכל כפתורי היעדים */
[class*="miz-"][class*="-btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #5FA886 0%, #488f6e 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 25px;
    font-family: assistant, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    direction: rtl;
    
    /* צללית סטטית (ללא אנימציה) לשיפור ביצועים */
    box-shadow: 0 4px 15px rgba(95, 168, 134, 0.6);
    
    /* אנימציה חכמה על המעבד הגרפי (GPU) */
    transition: transform 0.2s ease;
    will-change: transform;
}

/* אפקט הברק */
[class*="miz-"][class*="-btn"]::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

/* Hover Effect - שינוי גודל במקום צללית */
[class*="miz-"][class*="-btn"]:hover {
    transform: scale(1.05); 
}

[class*="miz-"][class*="-btn"]:hover::before {
    left: 100%;
}

[class*="miz-"][class*="-btn"]:active {
    transform: scale(0.95);
}


/* פילטר שהופך את האייקונים ללבנים בוהקים */
.white-icon {
    filter: brightness(0) invert(1);
    width: 40px;
    height: 40px;
}

.mmm-panel .mmm-a:hover, 
.mmm-panel .mmm-sl:hover {
    transform: none !important;
}
/* ביטול מוחלט של שינוי צבע באייקונים בריחוף - דורס את הקאש */
.mmm-panel .mmm-sl:hover .mmm-ico, 
.mmm-panel .mmm-a:hover .mmm-ico,
html[data-theme="dark"] .mmm-panel .mmm-sl:hover .mmm-ico,
html[data-theme="dark"] .mmm-panel .mmm-a:hover .mmm-ico {
    background-color: rgba(95, 168, 134, 0.08) !important;
    color: #5FA886 !important;
}

.mmm-panel .mmm-sl:hover .mmm-da-ico, 
.mmm-panel .mmm-a:hover .mmm-da-ico,
html[data-theme="dark"] .mmm-panel .mmm-sl:hover .mmm-da-ico,
html[data-theme="dark"] .mmm-panel .mmm-a:hover .mmm-da-ico {
    filter: none !important;
    opacity: 0.7 !important;
}
/* גובה ההדר הסטיקי שלך. תתאימי לפי הגובה בפועל */
:root {
  --sticky-header-height: 80px;
}

/* כל אלמנט עם ID יקבל מרווח עליון לגלילה */
[id] {
  scroll-margin-top: var(--sticky-header-height);
}

/* Fix: search results trapped under carousel due to dark mode stacking context */
[data-theme="dark"] .e-con:has(.jet-ajax-search),
[data-theme="dark"] .elementor-section:has(.jet-ajax-search),
[data-theme="dark"] .elementor-column:has(.jet-ajax-search) {
    z-index: 99 !important;
}

[data-theme="dark"] .elementor-widget-jet-ajax-search {
    z-index: 999 !important;
}

[data-theme="dark"] .jet-ajax-search__results-area,
[data-theme="dark"] .jet-ajax-search__results-holder {
    z-index: 9999 !important;
}

