/* ============================================================
   footer.css — הפוטר המשותף לכל האתר.
   הופק מ-hero.html כדי שיהיה מקור אמת אחד: הפוטר מופיע
   בעמוד הבית, בעמודי המחשבונים, במאמרים ובאודות.
   המרקאפ יושב ב-brand/footer.js.
   ============================================================ */
/* קו ההפרדה ב-14% ולא ב-8%: בעמודים שהרקע שלהם Ink (אודות)
   הפוטר באותו צבע בדיוק, והקו הוא הדבר היחיד שמפריד ביניהם. */
.ft{background:var(--ink);padding:var(--space-2xl) var(--space-outer) var(--space-md);
    border-top:1px solid rgba(255,251,243,.14)}
.ft__grid{
  display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:var(--space-lg) var(--space-md);align-items:start;
}
/* ---- עמודת המותג (ימין) ---- */
.ft__brand{display:flex;align-items:center;gap:.6vw;margin-bottom:1.6vw}
.ft__brand svg{width:1.9vw;height:1.9vw;flex:none}
.ft__brand b{color:#fff;font-family:var(--font-latin);font-weight:700;
  font-size:1.35vw;letter-spacing:.16em;line-height:1}
/* תיאור עברי — לכן בלי letter-spacing רחב ובגודל קריא, לא כמו הכיתוב הלטיני */
.ft__brand small{display:block;font-family:var(--font-body);font-size:clamp(12px,.66vw,14px);
  letter-spacing:.01em;color:var(--text-muted-dark);margin-top:.45vw;font-weight:400}

.ft__contact{display:flex;flex-direction:column;gap:.75vw;
  font-size:var(--small-size);color:var(--text-muted-dark);line-height:1.7}
.ft__contact a{color:var(--text-muted-dark);text-decoration:none;transition:color .2s ease}
.ft__contact a:hover{color:#fff}
.ft__contact dt{color:rgba(255,251,243,.45);font-size:max(12.5px,.9em);margin-bottom:.15vw}
.ft__contact .tel{color:#fff;font-weight:700;font-size:1.15em;letter-spacing:.02em;
  font-variant-numeric:tabular-nums;direction:ltr;display:inline-block}

.ft__social{display:flex;gap:.7vw;margin-top:1.4vw}
.ft__social a{
  width:2.3vw;height:2.3vw;border-radius:50%;
  border:1px solid rgba(255,251,243,.16);
  display:flex;align-items:center;justify-content:center;
  transition:background .25s ease,border-color .25s ease,transform .25s var(--ease-out-soft);
}
.ft__social svg{width:1.1vw;height:1.1vw;fill:rgba(255,251,243,.72);transition:fill .25s ease}
.ft__social a:hover{background:var(--purple);border-color:var(--purple);transform:translateY(-2px)}
.ft__social a:hover svg{fill:#fff}

/* ---- עמודות הניווט ---- */
.ft__col h3{
  font-size:var(--small-size);font-weight:700;color:#fff;
  letter-spacing:.02em;margin-bottom:1.1vw;
}
.ft__col ul{list-style:none;display:flex;flex-direction:column;gap:.62vw}
.ft__col a{
  font-size:var(--small-size);color:var(--text-muted-dark);text-decoration:none;
  line-height:1.55;transition:color .2s ease;
}
.ft__col a:hover{color:var(--purple-light)}

/* ---- שורת הזכויות ---- */
.ft__legal{
  margin-top:var(--space-lg);padding-top:var(--space-sm);
  border-top:1px solid rgba(255,251,243,.08);
  font-size:clamp(12.5px,.68vw,13px);line-height:1.8;color:rgba(255,251,243,.42);   /* 11px היה מתחת לרצפה של 12 */
}
.ft__disclosure{max-width:92ch;margin-bottom:1vw}
.ft__bar{display:flex;align-items:center;justify-content:space-between;gap:var(--space-sm);flex-wrap:wrap}
.ft__bar a{color:rgba(255,251,243,.55);text-decoration:none}
.ft__bar a:hover{color:#fff}
.ft__links{display:flex;gap:1.1vw;flex-wrap:wrap}

@media (max-width:900px){.ft__grid{grid-template-columns:1fr 1fr}}
@media (max-width:768px){
  .ft{padding:16vw 6.4vw 8vw}
  /* RULES §11: במובייל שתי עמודות, אף פעם לא טור אחד ארוך.
     minmax(0,1fr) ולא 1fr — מסלול גריד הוא minmax(auto,1fr)
     כברירת מחדל, וקישור ארוך מנפח עמודה אחת על חשבון השנייה. */
  .ft__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9vw 5vw}
  /* עמודת המותג פורשת על שתיהן */
  .ft__grid > div:first-child{grid-column:1 / -1}
  .ft__brand{gap:2.5vw;margin-bottom:6vw}
  .ft__brand svg{width:8vw;height:8vw}
  .ft__brand b{font-size:clamp(20px,6vw,30px)}
  /* 2.2vw היה 8.6px ב-390 — מתחת לסף הקריאוּת */
  .ft__brand small{font-size:clamp(12px,3.2vw,14px);margin-top:1.2vw}
  /* 11.10.2026 — דניאל: "פוטר 2 עמודות במובייל". גם פרטי הקשר נכנסים
     לשני טורים (שעות | טלפון · כתובת | מייל) — לפני זה הם היו טור של
     384px לפני שהתחיל אפילו קישור אחד */
  .ft__contact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5vw 5vw}
  .ft__social{gap:3vw;margin-top:6vw}
  .ft__social a{width:clamp(44px,11vw,52px);height:clamp(44px,11vw,52px)}
  .ft__social svg{width:5vw;height:5vw}
  .ft__col h3{margin-bottom:4vw}
  /* שלוש עמודות קישורים בשני טורים השאירו את "מחשבונים" לבד בשורה.
     עכשיו היא פורשת על שני הטורים, ובתוכה מחשבונים | מאמרים זה לצד זה */
  .ft__grid > .ft__col:last-child{
    grid-column:1 / -1;display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-rows:auto auto;grid-auto-flow:column;column-gap:5vw;
  }
  .ft__col ul + h3{margin-top:0}
  .ft__col ul{gap:3vw}
  /* יעדי מגע בפוטר: 24 קישורים היו 13-27px גובה. עם שני טורים
     (הכלל הקבוע) הפוטר לא נעשה ארוך מדי גם ב-44px לכל אחד. */
  .ft__col a,.ft__contact a,.ft__legal a,.ft__bar a{
    display:inline-flex;align-items:center;min-height:44px;min-width:24px}   /* "בית" יצא 22px רוחב */
  .ft__legal{margin-top:10vw;padding-top:6vw}
  .ft__bar{gap:4vw}
  .ft__links{gap:4vw}
}

/* ---- הלוגו בפוטר (01.11.2026) ----
   הלוגו של מעיין, ומתחתיו השורה "תכנון פיננסי · גל ברוך" — בסוף הקובץ
   כי .ft__brand למעלה הוא שורה (flex) והלוגו צריך עמודה. */
.ft__brand{flex-direction:column;align-items:flex-start;gap:.6vw}
.ft__logo{display:block;height:clamp(48px,3.333vw,64px);width:auto}
@media (max-width:768px){
  .ft__brand{gap:2.5vw}
  .ft__logo{height:clamp(46px,12.5vw,56px)}
}
