/* ═══════════════════════════════════════════════════════════════════
   tel.css — כפתורי החיוג והמספר העסקי.
   ───────────────────────────────────────────────────────────────────
   VISUAL CONTRACT: הקובץ הזה מוסיף רכיבים בלבד. אין בו שום כלל שמזיז,
   מקטין או צובע רכיב קיים — חוץ משינוי אחד מוצהר: שורת ה-CTA בהדר
   (.site-header__cta-wrap) הופכת ל-flex כדי שגלולת החיוג תשב לצד
   "פגישת הכרות" באותו גובה, ובמובייל ההמבורגר מקבל order:4 כדי
   שכפתור החיוג ייכנס לפניו. ה-CTA עצמו שומר על אותן קואורדינטות.
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   1. גלולת חיוג — אייקון + המספר במלואו.
   אותה גיאומטריה של .site-header__cta: גובה 46, מתאר 1px, רדיוס גלולה,
   ועיגול אייקון 46×46 שמחפיף את המתאר בקצה.
   ───────────────────────────────────────────────────────────────── */
.mey-tel {
    display: inline-flex;
    /* RTL: `row` שם את הילד הראשון בימין. האייקון הוא הראשון ב-DOM ואנחנו
       רוצים אותו בקצה ההתחלתי (ימין) — ולכן row ולא row-reverse. */
    flex-direction: row;
    align-items: center;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 900px;
    padding: 0;
    color: var(--c-text);
    text-decoration: none;
    font-family: var(--f-body);
    font-weight: 300;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.mey-tel:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.7);
}

.mey-tel__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 900px;
    margin: -1px 0 -1px -1px;   /* מחפיף את מתאר הגלולה בקצה הימני (RTL) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s ease;
}

.mey-tel:hover .mey-tel__icon {
    border-color: rgba(255, 255, 255, 0.7);
}

.mey-tel__icon img {
    width: 19px;
    height: 19px;
}

.mey-tel__num {
    padding: 0 18px 0 20px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* ── הדר (דסקטופ) ─────────────────────────────────────────────────
   .site-header__cta-wrap הוא absolute ב-left:43px/top:28px. הפיכתו ל-flex
   עם row-reverse משאירה את ה-CTA בדיוק באותו מקום (ילד ראשון → קצה שמאל)
   ומוסיפה את הגלולה מימינו.
   🔴 חייב להיות עטוף ב-min-width: header.css מסתיר את ה-wrap הזה בתוך
   @media (max-width:1024px); כלל בלי מדיה כאן הוא אותה ספציפיות בקובץ
   מאוחר יותר, ולכן היה דורס את ה-display:none ומציג את ה-CTA ואת הגלולה
   של הדסקטופ בשורת ההדר של המובייל. */
@media (min-width: 1025px) {
    .site-header__cta-wrap {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 14px;
    }
}

/* ── פוטר ─────────────────────────────────────────────────────────
   עמודת המותג: לוגו → סושיאל → גלולת חיוג. העטיפה מחזיקה את המרווח
   הפנימי (24px) כך שהמרווח של .footer__brand (50px) נשאר כפי שהיה. */
.footer__brand-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mey-tel--footer {
    height: 50px;
    border-color: rgba(255, 255, 255, 0.8);
    font-size: 19px;
}

.mey-tel--footer .mey-tel__icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-color: rgba(255, 255, 255, 0.8);
}

.mey-tel--footer .mey-tel__icon img {
    width: 21px;
    height: 21px;
}

/* ─────────────────────────────────────────────────────────────────
   2. כפתור חיוג עגול — עיגול הזהב המלא (phone-circle.svg).
   ───────────────────────────────────────────────────────────────── */
.mey-tel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 900px;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.mey-tel-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

.mey-tel-btn:hover {
    transform: translateY(-3px);
}

/* ── הכפתור הצף — ממש מעל כפתור הוואטסאפ הצף.
   הוואטסאפ (base.css) הוא fixed right:28px/bottom:28px בגודל 60×60 ולא זז;
   החיוג מקבל קואורדינטות fixed משלו 12px מעליו. */
.mey-tel-btn--float {
    position: fixed;
    right: 28px;
    bottom: 100px;      /* 28 (bottom של הוואטסאפ) + 60 (גובהו) + 12 */
    z-index: 80;
    width: 60px;
    height: 60px;
}

/* ── הכפתור בשורת ההדר במובייל (ליד ההמבורגר, לא בתוך התפריט) */
.site-header__mobile-call {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────
   3. שורת "מעדיפים לדבר?" בטפסים.
   ───────────────────────────────────────────────────────────────── */
.mey-formtel {
    margin: 14px 0 0;
    font-family: var(--f-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.mey-formtel a {
    text-decoration: underline;
    text-underline-offset: 3px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* משטח כהה (ברירת מחדל באתר) */
.mey-formtel--dark {
    color: rgba(255, 255, 255, 0.85);
}

.mey-formtel--dark a {
    color: var(--c-gold-1);
}

/* משטח בהיר (הפופאפ של המסלולים) */
.mey-formtel--light {
    color: #3a3a3a;
}

.mey-formtel--light a {
    color: #7a5c2e;
}

/* משטח לא ידוע — טפסי Elementor. הצבע יורש מהמשטח שהטופס יושב עליו,
   ולכן הניגודיות שלו היא בדיוק זו של הטקסט שסביבו (שכבר עובר). הקישור
   נבדל בקו תחתון ולא בצבע. חובה: /contact-us/ הוא עמוד Elementor על רקע
   לבן, ושם וריאנט "כהה" (לבן 85%) נפל ב-color-contrast. */
.mey-formtel--auto {
    color: inherit;
}

.mey-formtel--auto a {
    color: inherit;
}

/* ── טופס דף הבית: סקציית "צרו קשר" היא קנבס 1920 שכל ילדיו ממוקמים
   אבסולוטית בתוך גובה קבוע של 380px, ולכן שורה בזרימה רגילה נוחתת בראש
   הסקציה מעל הכותרת. היא מוצמדת לשורת כפתור "תחזרו אליי", מימין לו.
   במובייל (ראה המדיה למטה) הסקציה חוזרת לזרימה רגילה והשורה פשוט באה
   אחרי הכפתור. */
.contact .mey-formtel {
    position: absolute;
    left: 448px;          /* 253 (ה-CTA) + 175 (רוחבו) + 20 */
    top: 334px;           /* אותה שורה בדיוק של כפתור "תחזרו אליי" */
    height: 46px;
    line-height: 46px;    /* 🔴 ולא display:flex — flex הופך את הטקסט ואת
                             הקישור לשני פריטים נפרדים, האלגוריתם הדו-כיווני
                             מטפל בכל אחד בנפרד, וסימן השאלה של "מעדיפים
                             לדבר?" קופץ לצד השני של המספר. */
    margin: 0;
    text-align: start;
}

/* ─────────────────────────────────────────────────────────────────
   4. מובייל / טאבלט
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* שורת ההדר היא flex ב-space-between (direction:ltr): סושיאל · לוגו ·
       המבורגר. ילד רביעי בזרימה היה משנה את המרווחים ומזיז את הלוגו, ולכן
       כפתור החיוג ממוקם אבסולוטית ליד ההמבורגר — אף רכיב קיים לא זז.
       ה-bar הוא position:relative (header.css), ו-direction:ltr שלו הופך
       את `right` לימין הפיזי. */
    .site-header__mobile-call {
        display: inline-flex;
        position: absolute;
        right: 48px;      /* 11 (padding) + 25 (המבורגר) + 12 (מרווח) */
        top: 50%;
        transform: translateY(-50%);
    }

    .site-header__mobile-call .mey-tel-btn {
        width: 40px;
        height: 40px;
    }

    .mey-tel-btn--float {
        right: 16px;
        bottom: 90px;    /* 22 + 56 + 12 */
        width: 56px;
        height: 56px;
    }

    .contact .mey-formtel {
        position: static;
        margin-top: 16px;
    }

    .mey-tel--footer {
        height: 54px;
        font-size: 20px;
    }

    .mey-tel--footer .mey-tel__icon {
        flex: 0 0 54px;
        width: 54px;
        height: 54px;
    }

    .mey-tel--footer .mey-tel__icon img {
        width: 22px;
        height: 22px;
    }
}

/* ─────────────────────────────────────────────────────────────────
   5. 320px — הצרות ביותר שנבדק (ת"י 5568 / WCAG 1.4.10).
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 360px) {
    /* ב-320px אין מקום בין הלוגו להמבורגר למיקום אבסולוטי — הכפתור חוזר
       לזרימה (order 3, לפני ההמבורגר). הלוגו זז בכמה פיקסלים שמאלה, וזו
       האפשרות היחידה שבה שום רכיב לא נחתך ולא מחפיף. */
    .site-header__mobile-call {
        position: static;
        transform: none;
        right: auto;
        order: 3;
    }

    .site-header__hamburger {
        order: 4;
        margin-left: 8px;
    }

    .site-header__mobile-call .mey-tel-btn {
        width: 36px;
        height: 36px;
    }

    .mey-formtel {
        font-size: 15px;
    }
}
