/* ============================================================
   מנוף פיננסי — מערכת עיצוב
   "בנקאות פרטית" שחור-זהב · RTL · Motion DNA: המנוף (הרמה)
   ============================================================ */

/* ---------- פונטים (אחסון עצמי) ---------- */
@font-face { font-family: 'Suez One'; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/suez-400-heb.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Suez One'; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/suez-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Assistant'; font-weight: 400 700; font-display: swap;
  src: url('../assets/fonts/assistant-heb.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-weight: 400 700; font-display: swap;
  src: url('../assets/fonts/assistant-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/plex-400-heb.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/plex-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/plex-500-heb.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/plex-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/plex-700-heb.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'IBM Plex Sans Hebrew'; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/plex-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F; }

/* ---------- טוקנים ---------- */
:root {
  --ink: #0B0B0D;            /* רקע עמוד */
  --ink-2: #121215;          /* משטח */
  --ink-3: #1A1A1F;          /* משטח מוגבה */
  --gold: #DDAE70;           /* אקסנט יחיד */
  --gold-deep: #A97F45;
  --gold-light: #F0DAB2;
  --paper: #F4EFE6;          /* טקסט ראשי */
  --muted: #B4ACA0;          /* טקסט משני — AA על ink */
  --line: rgba(221, 174, 112, .16);
  --line-soft: rgba(244, 239, 230, .08);
  --wa: #2FBB37;
  --font-display: 'Suez One', 'Arial Hebrew', serif;
  --font-body: 'Assistant', 'IBM Plex Sans Hebrew', 'Segoe UI', Arial, sans-serif;
  --ease-lift: cubic-bezier(.22, .9, .24, 1);   /* ההרמה */
  --ease-press: cubic-bezier(.32, .72, 0, 1);
  --r-lg: 1.75rem;
  --r-md: 1.1rem;
  --r-sm: .65rem;
  --nav-h: 72px;
  --maxw: 1240px;
}

/* ---------- איפוס ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--font-body); font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.22; margin: 0 0 .6em; letter-spacing: .01em; }
h3, h4 { font-family: var(--font-body); font-weight: 700; line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: fixed; top: -60px; right: 16px; z-index: 300; background: var(--gold); color: var(--ink);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; transition: top .3s var(--ease-lift); }
.skip-link:focus { top: 14px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.section { padding-block: clamp(72px, 11vw, 130px); position: relative; }

/* ---------- גרעין רעש עדין (תחושת נייר) ---------- */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }

/* ---------- הדר: אי צף ---------- */
.nav-shell { position: fixed; inset-inline: 0; top: 0; z-index: 200; display: flex; justify-content: center;
  padding: 14px clamp(12px, 3vw, 28px) 0; pointer-events: none;
  transition: transform .5s var(--ease-press); }
.nav-shell.nav-hidden { transform: translateY(-120%); }
.nav-bar { pointer-events: auto; display: flex; align-items: center; gap: clamp(10px, 2vw, 26px);
  width: 100%; max-width: var(--maxw); min-height: var(--nav-h);
  padding: 8px 12px 8px 8px; border-radius: 999px;
  background: rgba(13, 13, 16, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, .06), 0 18px 50px rgba(0, 0, 0, .45); }
.nav-logo { display: flex; align-items: center; gap: 11px; padding-inline: 10px 4px; flex-shrink: 0; }
.nav-logo img { height: 46px; width: auto; }
.nav-logo .nl-name { font-family: var(--font-display); font-size: 1.12rem; color: var(--gold-light); line-height: 1.1; }
.nav-logo .nl-sub { font-size: .62rem; letter-spacing: .14em; color: var(--muted); display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 18px); margin-inline: auto; list-style: none; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--paper); padding: 10px 8px; border-radius: 999px;
  transition: color .35s var(--ease-press); white-space: nowrap; }
.nav-links a:hover { color: var(--gold); }
.nav-links a[aria-current="page"] { color: var(--gold); }

/* תפריט-על: פתרונות מימון */
.mega { position: absolute; top: calc(100% + 16px); right: -40px; width: min(560px, 86vw);
  background: rgba(16, 16, 20, .96); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1rem;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .4s var(--ease-press), transform .4s var(--ease-press), visibility 0s .4s;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.mega a { display: block; padding: .55rem .7rem; border-radius: var(--r-sm); font-size: .92rem; white-space: normal; }
.mega a:hover { background: rgba(221, 174, 112, .08); }
.mega a b { display: block; color: var(--gold-light); font-weight: 700; }
.mega a span { color: var(--muted); font-size: .8rem; line-height: 1.4; display: block; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--gold-light);
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); direction: ltr;
  transition: border-color .35s var(--ease-press), background .35s var(--ease-press); }
.nav-phone:hover { border-color: var(--gold); background: rgba(221, 174, 112, .07); }

/* המבורגר (מובייל) */
.nav-burger { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line);
  position: relative; flex-shrink: 0; }
.nav-burger span { position: absolute; right: 13px; left: 13px; height: 2px; background: var(--gold-light);
  border-radius: 2px; transition: transform .45s var(--ease-press), opacity .3s; }
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 26px; }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* תפריט מובייל מלא-מסך */
.mobile-menu { position: fixed; inset: 0; z-index: 150; background: rgba(8, 8, 10, .9);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px clamp(24px, 8vw, 60px) 40px;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-press), visibility 0s .5s; overflow-y: auto; }
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu a { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 2.1rem);
  color: var(--paper); padding: .45rem 0; opacity: 0; transform: translateY(26px);
  transition: opacity .6s var(--ease-lift), transform .6s var(--ease-lift), color .3s; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu a.mm-small { font-family: var(--font-body); font-size: 1.05rem; color: var(--muted); padding: .3rem 0; }
body.menu-open .mobile-menu a { opacity: 1; transform: translateY(0); }
.mobile-menu .mm-contact { margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }

/* ---------- כפתורים: קופסה-בתוך-קופסה ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; border-radius: 999px; font-weight: 700;
  padding: 13px 15px 13px 26px; font-size: 1.02rem; position: relative; isolation: isolate; overflow: hidden;
  transition: transform .45s var(--ease-press), box-shadow .45s var(--ease-press), background .45s var(--ease-press), color .45s var(--ease-press); }
.btn:active { transform: scale(.975); }
.btn .bi { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; flex-shrink: 0;
  transition: transform .45s var(--ease-press); }
.btn:hover .bi { transform: translateX(-3px) translateY(-1px); }
.btn-gold { background: linear-gradient(140deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); color: #171208;
  box-shadow: 0 10px 34px rgba(221, 174, 112, .28), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { box-shadow: 0 16px 44px rgba(221, 174, 112, .4), inset 0 1px 0 rgba(255, 255, 255, .5); transform: translateY(-2px); }
.btn-gold .bi { background: rgba(11, 11, 13, .16); }
.btn-ghost { border: 1px solid var(--line); color: var(--gold-light); padding: 12px 24px; }
.btn-ghost:hover { border-color: var(--gold); background: rgba(221, 174, 112, .07); }
.btn-wa { background: var(--wa); color: #06130A; box-shadow: 0 10px 30px rgba(47, 187, 55, .25); }
.btn-wa .bi { background: rgba(6, 19, 10, .14); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(47, 187, 55, .36); }

/* ---------- קופסה כפולה (Double-Bezel) ---------- */
.bezel { background: rgba(244, 239, 230, .035); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 7px; }
.bezel > .bz-core { background: linear-gradient(165deg, var(--ink-3), var(--ink-2) 60%); border-radius: calc(var(--r-lg) - 7px);
  border: 1px solid rgba(221, 174, 112, .12); box-shadow: inset 0 1px 1px rgba(244, 239, 230, .07); overflow: hidden; height: 100%; }

/* ---------- אנימציית חתימה: ההרמה ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lift { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-lift), transform .9s var(--ease-lift); will-change: transform, opacity; }
  .lift.in { opacity: 1; transform: translateY(0); }
  .lift-d1 { transition-delay: .09s; } .lift-d2 { transition-delay: .18s; } .lift-d3 { transition-delay: .27s; }
  .lift-d4 { transition-delay: .36s; } .lift-d5 { transition-delay: .45s; } .lift-d6 { transition-delay: .54s; }
  /* הכבל: קו זהב שנמתח מעל כותרת */
  .cable { position: relative; }
  .cable::before { content: ''; position: absolute; bottom: calc(100% + 14px); right: 3px; width: 2px; height: 52px;
    background: linear-gradient(to top, var(--gold), transparent); transform: scaleY(0); transform-origin: bottom;
    transition: transform 1.1s var(--ease-lift) .15s; }
  .cable.in::before { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lift { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- תגית עין ---------- */
.eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .22em; color: var(--gold);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; margin-bottom: 1.1rem; }

/* ---------- פוטר ---------- */
.footer { border-top: 1px solid var(--line); background: #0A0A0B; padding: clamp(48px, 7vw, 84px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); }
.footer h4 { font-size: 1.02rem; color: var(--gold-light); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer a { color: var(--muted); font-size: .93rem; transition: color .3s; }
.footer a:hover { color: var(--gold); }
.footer .f-brand img { height: 120px; width: auto; margin-bottom: .9rem; }
.footer .f-brand p { color: var(--muted); font-size: .9rem; max-width: 34ch; }
.f-contact li { display: flex; gap: 10px; align-items: start; color: var(--muted); font-size: .93rem; }
.f-contact svg { flex-shrink: 0; margin-top: 4px; }
.footer-legal { margin-top: clamp(30px, 5vw, 54px); border-top: 1px solid var(--line-soft); padding-block: 18px;
  padding-inline-end: 84px; /* מפנה את צד הכפתור הצף (wa-float קבוע בשמאל) כדי שלא יכסה את קישורי המשפט; padding-block בלבד כדי לא לדרוס את ריפוד ה-wrap */
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: .82rem; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--gold); }

/* ---------- וואטסאפ צף ---------- */
.wa-float { position: fixed; bottom: 22px; left: 22px; z-index: 120; width: 58px; height: 58px; border-radius: 999px;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 12px 34px rgba(47, 187, 55, .4);
  transition: transform .4s var(--ease-press); }
.wa-float:hover { transform: translateY(-4px) scale(1.05); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- טפסים ---------- */
.field { display: grid; gap: 7px; margin-bottom: 1.05rem; }
.field label { font-weight: 700; font-size: .92rem; color: var(--gold-light); }
.field input, .field select, .field textarea {
  background: rgba(244, 239, 230, .05); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  color: var(--paper); padding: 13px 16px; font: inherit; font-size: 16px; width: 100%;
  transition: border-color .3s, background .3s; }
.field input::placeholder, .field textarea::placeholder { color: #8d867b; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(244, 239, 230, .08); }
.field select option { background-color: #141416; color: var(--paper); }
/* צ'קבוקס הסכמה (חוק הספאם: לא מסומן מראש, חוסם שליחה) */
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--muted); cursor: pointer; }
.consent input[type="checkbox"] { width: 19px; height: 19px; margin-top: 2px; flex-shrink: 0; accent-color: var(--gold); cursor: pointer; }
.field.invalid .consent { color: #F0A9A0; }
.field .err { color: #F0A9A0; font-size: .84rem; display: none; }
.field.invalid input { border-color: #C96A5D; }
.field.invalid .err { display: block; }
.form-note { color: var(--muted); font-size: .82rem; }

/* ---------- כרטיס תוכן כללי ---------- */
.tile-link { transition: transform .5s var(--ease-press); display: block; height: 100%; }
.tile-link:hover { transform: translateY(-5px); }

/* ---------- רספונסיב ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: block; margin-inline-start: auto; }
  .nav-cta .btn-eligibility { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-phone .np-num { display: none; }
  .nav-phone { padding: 12px; }
  .section { padding-block: 64px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}
