/* התאמות מובייל — לב תכנון פיננסי. משותף לכל עמודי האתר. */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary { touch-action: manipulation; }
#lev-menu-btn { display: none; }

@media (max-width: 760px) {
  /* כפתור תפריט */
  header > div { position: relative; }
  #lev-menu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 44px; min-height: 44px; padding: 0 12px; margin: 0;
    background: transparent; color: #EFEAD9; border: 1px solid rgba(201,167,92,0.6); border-radius: 999px;
    font: 500 14.5px Heebo, Arial, sans-serif; cursor: pointer; -webkit-user-select: none; user-select: none;
  }
  #lev-menu-btn .bars { position: relative; width: 18px; height: 12px; }
  #lev-menu-btn .bars span { position: absolute; inset-inline: 0; height: 2px; border-radius: 1px; background: #C9A75C; transition: transform 200ms cubic-bezier(0.23,1,0.32,1), opacity 150ms; }
  #lev-menu-btn .bars span:nth-child(1) { top: 0; }
  #lev-menu-btn .bars span:nth-child(2) { top: 5px; }
  #lev-menu-btn .bars span:nth-child(3) { top: 10px; }
  html.lev-menu-open #lev-menu-btn .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  html.lev-menu-open #lev-menu-btn .bars span:nth-child(2) { opacity: 0; }
  html.lev-menu-open #lev-menu-btn .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  /* התפריט הנפתח */
  html.lev-menu-open header nav {
    display: flex !important; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; flex-wrap: nowrap !important; gap: 0 !important;
    background: #123B2A; border-bottom: 1px solid rgba(197,162,87,0.35);
    padding: 6px 20px 18px; box-shadow: 0 18px 40px rgba(18,59,42,0.35);
    max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto;
  }
  html.lev-menu-open header nav a {
    display: flex !important; align-items: center; min-height: 50px;
    padding: 0 4px !important; font-size: 17px !important;
    border: 0 !important; border-bottom: 1px solid rgba(239,234,217,0.12) !important; border-radius: 0 !important;
    background: transparent !important; color: #EFEAD9 !important;
  }
  html.lev-menu-open header nav a:last-child {
    justify-content: center; margin-top: 14px; min-height: 50px; border-radius: 999px !important; border-bottom: 0 !important;
    background: #C9A75C !important; color: #123B2A !important; font-weight: 600;
  }
  #lev-menu-scrim { position: fixed; inset: 0; z-index: 9; background: rgba(18,59,42,0.25); }

  /* פוטר: אזורי לחיצה בגודל אצבע */
  footer a, footer button[data-cookie-settings] {
    display: inline-flex !important; align-items: center; min-height: 44px;
    border-bottom-color: transparent !important;
    text-decoration: underline; text-decoration-color: rgba(239,234,217,0.35); text-underline-offset: 5px;
  }
  footer > div:first-child > div { gap: 0 !important; }
  footer > div:first-child > div > div:first-child { margin-bottom: 2px !important; }
  footer > div:first-child > div > span { line-height: 1.9; }
  footer img[src*="lev-logo"] { height: 128px !important; margin-inline-end: 0 !important; }

  /* "מהשטח": ארבעה כרטיסי סכום ברשת 2×2 במקום טור ארוך */
  [data-g4]:not([data-carousel]) { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  [data-g4]:not([data-carousel]) > div { padding: 16px 14px !important; }
  [data-g4]:not([data-carousel]) > div > div:first-child { font-size: 20px !important; margin-bottom: 10px !important; }
  [data-g4]:not([data-carousel]) > div > div:last-child { font-size: 14px !important; }

  /* טקסטים קטנים מדי */
  [data-g4]:not([data-carousel]) + div { font-size: 12.5px !important; line-height: 1.6; }
  figcaption { font-size: 13px !important; }

  section div > a[href^="tel:"] { display: inline-flex !important; align-items: center; min-height: 44px; }

  /* עמוד הידע: יותר רוחב לטקסט */
  article[id^="a"] { padding: 24px 20px !important; }
  a[data-back] { display: inline-flex !important; align-items: center; min-height: 44px; margin-bottom: 14px !important; }
}

@media (max-width: 380px) {
  #lev-menu-btn .lbl { display: none; }
  #lev-menu-btn { padding: 0; width: 44px; }
}

/* טאבלט (iPad לאורך): כותרת בשורה אחת במקום שתיים */
@media (min-width: 761px) and (max-width: 1040px) {
  header > div { flex-wrap: nowrap !important; padding: 8px 20px !important; gap: 8px 14px !important; }
  header nav { flex-wrap: nowrap !important; gap: 6px 14px !important; font-size: 15px !important; }
  header nav a { white-space: nowrap; }
  header nav a:nth-last-child(2) { padding: 6px 12px !important; }
  header nav a:last-child { padding: 8px 14px !important; }
  header a[aria-label] { gap: 8px !important; }
  header a[aria-label] img[src*="lev-trees"] { height: 48px !important; }
  header a[aria-label] img[src*="lev-only"] { height: 17px !important; }
  header a[aria-label] span span { font-size: 8.5px !important; letter-spacing: 0.14em !important; }
}

/* ===== במקום קרוסלות במובייל ===== */
@media (max-width: 760px) {
  html [data-swipe-hint] { display: none !important; }
  #trust + section [data-carousel], #services + section [data-carousel], #process + section [data-carousel], [data-topics] {
    display: flex !important; flex-direction: column; gap: 0 !important;
    overflow: visible !important; margin-inline: 0 !important; padding: 0 !important; scroll-snap-type: none !important;
  }
  #trust + section [data-slide], #services + section [data-slide], #process + section [data-slide], [data-topics] [data-slide] {
    background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  }

  /* הגישה שלי: רשימה נקייה */
  #trust + section [data-slide] { padding: 18px 0 !important; border-bottom: 1px solid rgba(18,59,42,0.14) !important; }
  #trust + section [data-slide]:first-child { border-top: 1px solid rgba(18,59,42,0.14) !important; }
  #trust + section [data-slide] > div:first-child { margin-bottom: 10px !important; }
  #trust + section [data-slide] p { font-size: 15.5px !important; }

  /* תחומי ליווי: רשימה נפתחת */
  #services + section [data-slide] { padding: 0 !important; border-bottom: 1px solid rgba(18,59,42,0.14) !important; }
  #services + section [data-slide]:first-child { border-top: 1px solid rgba(18,59,42,0.14) !important; }
  #services + section [data-slide][data-acc] > div:first-child { display: none !important; }
  #services + section [data-slide] h3 { margin: 0 !important; }
  .lev-acc-btn {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 0;
    background: none; border: 0; margin: 0; cursor: pointer; text-align: start;
    font: inherit; color: inherit; -webkit-user-select: none; user-select: none;
  }
  .lev-acc-btn .n { font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 500; color: #8A6A1F; flex-shrink: 0; }
  .lev-acc-btn .t { flex: 1 1 auto; min-width: 0; }
  .lev-acc-btn .plus { color: #8A6A1F; font-size: 24px; line-height: 1; flex-shrink: 0; transition: transform 200ms cubic-bezier(0.23,1,0.32,1); }
  [data-acc].lev-open .lev-acc-btn .plus { transform: rotate(45deg); }
  [data-acc] > p { padding: 0 0 18px !important; padding-inline-start: 31px !important; }
  [data-acc]:not(.lev-open) > p { display: none !important; }

  /* התהליך: ציר זמן אנכי */
  #process + section [data-slide] {
    display: grid !important; grid-template-columns: 46px minmax(0,1fr); column-gap: 16px; padding: 0 !important;
  }
  #process + section [data-slide] > div:first-child {
    grid-row: 1 / span 2; flex-direction: column !important; gap: 0 !important; margin: 0 !important; align-self: stretch;
  }
  #process + section [data-slide] > div:first-child > span:last-child {
    flex: 1 1 auto !important; width: 2px !important; height: auto !important; min-height: 18px;
    background: linear-gradient(180deg, #C5A257, rgba(197,162,87,0.2)) !important; margin: 6px 0 !important;
  }
  #process + section [data-slide]:last-child > div:first-child > span:last-child { display: none !important; }
  #process + section [data-slide] > div:nth-child(2) { padding-top: 5px; margin-bottom: 2px !important; }
  #process + section [data-slide] > div:nth-child(3) { padding-bottom: 26px; }
  #process + section [data-slide]:last-child > div:nth-child(3) { padding-bottom: 0; }

  /* עמוד הידע: תוכן עניינים במקום קרוסלה */
  [data-topics] [data-slide] {
    min-height: 0 !important; padding: 14px 0 14px 28px !important; gap: 4px !important; position: relative;
    border-bottom: 1px solid rgba(18,59,42,0.12) !important;
  }
  [data-topics] [data-slide]:first-child { border-top: 1px solid rgba(18,59,42,0.12) !important; }
  [data-topics] [data-slide] > span:first-child { order: 2; justify-content: flex-start !important; gap: 10px !important; font-size: 12.5px !important; }
  [data-topics] [data-slide] > span:first-child > span:first-child { background: none !important; border: 0 !important; padding: 0 !important; }
  [data-topics] [data-slide] > span:nth-child(2) { order: 1; font-size: 16px !important; }
  [data-topics] [data-slide] > span:last-child { display: none !important; }
  [data-topics] [data-slide]::after {
    content: "←"; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%);
    color: #8A6A1F; font-size: 17px;
  }
}
