/* =====================================================
   SERVICES PAGE
   ===================================================== */

/* ---------- Opening (same feel as About / Projects) ---------- */
.s-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 70 * var(--s)) 0 calc(60 * var(--s)); background: linear-gradient(180deg, var(--bg) 0%, #dfe6f3 100%); }
.s-hero-inner { position: relative; z-index: 1; }
.s-title { margin-top: calc(24 * var(--s)); font-weight: 400; font-size: max(calc(104 * var(--s)), 42px); line-height: .8; letter-spacing: -.035em; }
.s-title .line { display: block; overflow: hidden; padding-block: .1em .06em; margin-block: -.1em -.06em; }
.s-title .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; }
.s-title .line:nth-child(2) > span { animation-delay: .12s; }
.s-lead { margin-top: calc(30 * var(--s)); font-size: max(calc(22 * var(--s)), 16px); line-height: 1.3; color: #3b4150; max-width: calc(900 * var(--s)); }
.s-lines { position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(31,46,184,.06) 0 1px, transparent 1px calc(80 * var(--s))),
    repeating-linear-gradient(0deg, rgba(31,46,184,.06) 0 1px, transparent 1px calc(80 * var(--s)));
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 60%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 30% 60%, #000 20%, transparent 75%); }

/* jump links – same language as the home-page services strip */
.s-jump { margin-top: calc(48 * var(--s)); display: flex; flex-wrap: wrap; align-items: center; gap: 14px calc(40 * var(--s)); }
.s-jump a { position: relative; font-size: max(calc(26 * var(--s)), 18px); line-height: 1; padding-block: 6px; }
.s-jump a::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.s-jump a:hover::after { transform: scaleX(1); }
.s-jump .dash { width: calc(25 * var(--s)); min-width: 18px; height: 3px; background: var(--blue); }

/* ---------- Service rows: shorter, so the next one peeks in ---------- */
.svc-list { padding-top: calc(30 * var(--s)); }
.svc { padding-block: calc(110 * var(--s)); scroll-margin-top: 90px; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: calc(90 * var(--s)); align-items: center; }
.svc-copy { order: -1; }
.svc-alt .svc-copy { order: 1; }

.svc-num { font-size: max(calc(18 * var(--s)), 13px); letter-spacing: .1em; color: var(--blue); display: flex; align-items: center; gap: 14px; }
.svc-num::after { content: ""; width: calc(25 * var(--s)); min-width: 18px; height: 3px; background: var(--blue); }
.svc h2 { margin-top: calc(20 * var(--s)); font-weight: 400; font-size: max(calc(64 * var(--s)), 32px); line-height: .82; letter-spacing: -.03em; }
.svc-copy > p { margin-top: calc(22 * var(--s)); font-size: max(calc(20 * var(--s)), 16px); line-height: 1.4; color: #3b4150; max-width: calc(600 * var(--s)); }
.svc-points { margin-top: calc(24 * var(--s)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 22px; max-width: calc(600 * var(--s)); }
.svc-points li { position: relative; padding-inline-start: 22px; font-size: max(calc(17 * var(--s)), 15px); line-height: 1.3; }
.svc-points li::before { content: ""; position: absolute; right: 0; top: .45em; width: 10px; height: 3px; background: var(--blue); }
.svc-link { display: inline-flex; align-items: center; gap: 10px; margin-top: calc(28 * var(--s)); font-size: 16px; color: var(--blue); }
.svc-link svg { width: 7px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--ease); }
.svc-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.svc-link:hover svg { transform: translateX(-4px); }

/* big image with floating info, like the home-page hero */
.svc-media { position: relative; }
.svc-main { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 16 / 9.4; background: #d8dfec; }
.svc-main img { width: 100%; height: 115%; object-fit: cover; display: block; transform: translateY(var(--py, 0px)); will-change: transform; }
.svc-main::after { content: ""; position: absolute; inset: 0; background: rgba(31,46,184,.12); mix-blend-mode: multiply; }
.svc-chip {
  position: absolute; top: calc(26 * var(--s)); left: calc(-26 * var(--s)); z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: calc(14 * var(--s)) calc(20 * var(--s)) calc(14 * var(--s)) calc(16 * var(--s));
  background: #fff; border-radius: 10px; font-size: max(calc(16 * var(--s)), 13px); line-height: 1; white-space: nowrap; letter-spacing: -.01em;
  box-shadow: 0 18px 40px -24px rgba(31,46,184,.45);
  animation: float 6s ease-in-out infinite;
}
.svc-alt .svc-chip { left: auto; right: calc(-26 * var(--s)); }
.svc-chip .tico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.svc-chip .tico svg { width: 13px; height: 13px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-chip .tico[data-cat="private"] { background: var(--lime); } .svc-chip .tico[data-cat="private"] svg { stroke: var(--ink); }
.svc-chip .tico[data-cat="inst"] { background: var(--violet); } .svc-chip .tico[data-cat="inst"] svg { stroke: #fff; }
.svc-chip .tico[data-cat="public"] { background: var(--blue); } .svc-chip .tico[data-cat="public"] svg { stroke: #fff; }
.svc-card {
  position: absolute; bottom: calc(-24 * var(--s)); right: calc(30 * var(--s)); z-index: 2;
  display: grid; gap: calc(12 * var(--s)); padding: calc(24 * var(--s)) calc(26 * var(--s)) calc(22 * var(--s));
  background: var(--violet); color: #fff; border-radius: 10px; min-width: calc(170 * var(--s));
  box-shadow: 0 24px 50px -26px rgba(31,46,184,.7);
  animation: float 7s ease-in-out infinite reverse;
}
.svc-alt .svc-card { right: auto; left: calc(30 * var(--s)); }
.svc-card strong { font-weight: 400; font-size: max(calc(30 * var(--s)), 20px); line-height: .8; letter-spacing: -.02em; }
.svc-card span { font-size: max(calc(14 * var(--s)), 12px); line-height: 1.05; opacity: .92; }
.svc-media[data-reveal] .svc-chip, .svc-media[data-reveal] .svc-card { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .7s var(--ease) .35s, transform .8s var(--ease) .35s; }
.svc-media.in .svc-chip, .svc-media.in .svc-card { opacity: 1; transform: none; }

/* ---------- Two arenas: open, unframed, lots of air ---------- */
.arenas { padding-top: calc(90 * var(--s)); }
.arenas-title { margin-top: calc(28 * var(--s)); font-weight: 400; font-size: max(calc(80 * var(--s)), 36px); line-height: .82; letter-spacing: -.035em; }
.arena-grid { margin-top: calc(70 * var(--s)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(110 * var(--s)); }
.arena { display: flex; flex-direction: column; align-items: flex-start; gap: calc(22 * var(--s)); }
.arena .tbadge { width: max(calc(64 * var(--s)), 48px); height: max(calc(64 * var(--s)), 48px); border-radius: 50%; display: grid; place-items: center; transition: transform .5s var(--ease); }
.arena:hover .tbadge { transform: translateY(-4px) rotate(-6deg); }
.arena .tbadge svg { width: 55%; height: 55%; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.arena .tbadge[data-cat="private"] { background: var(--lime); }
.arena .tbadge[data-cat="private"] svg { stroke: var(--ink); }
.arena .tbadge[data-cat="public"] { background: var(--blue); }
.arena .tbadge[data-cat="public"] svg { stroke: #fff; }
.arena h3 { margin-top: calc(10 * var(--s)); font-weight: 400; font-size: max(calc(56 * var(--s)), 30px); line-height: .85; letter-spacing: -.02em; }
.arena p { font-size: max(calc(21 * var(--s)), 16px); line-height: 1.45; max-width: calc(560 * var(--s)); color: #3b4150; }
.arena-btn { margin-top: calc(8 * var(--s)); }
.arena-public .btn-white { background: var(--blue); color: #fff; }
.arena-public .btn-white::before { background: #121d8a; }
.arena-public .btn-white:hover { color: #fff; }
.page-services .talk { padding-top: calc(300 * var(--s)); }

@media (max-width: 1100px) {
  .s-hero { padding: calc(68px + 40px) 0 44px; }
  .svc { padding-block: 44px; }
  .svc-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-copy, .svc-alt .svc-copy { order: 1; }
  .svc-chip, .svc-alt .svc-chip { left: 10px; right: auto; top: 10px; }
  .svc-card, .svc-alt .svc-card { right: 10px; left: auto; bottom: -18px; }
  .svc-points { grid-template-columns: 1fr; }
  .arena-grid { grid-template-columns: 1fr; gap: 48px; }
  .page-services .talk { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) { .svc-chip, .svc-card { animation: none; } }

/* ---------- Side process nav (left edge, visible from the top of the page) ---------- */
:root { --rail-x: calc((100vw - 1786 * var(--s)) / 2); --rail-gap: 70px; }
/* make room on the left: page content shifts toward the right */
/* only the 01·02·03 rows are trimmed on the left, so the rail has its own lane */
.svc .wrap { width: calc(100vw - (100vw - var(--wrap)) / 2 - var(--rail-x) - 36px - var(--rail-gap)); margin-right: calc((100vw - var(--wrap)) / 2); margin-left: auto; }
.svc-rail {
  /* lined up with the left edge of the header "יצירת קשר" button */
  position: fixed; z-index: 30; left: calc((100% - 1786 * var(--s)) / 2); top: 50%;
  translate: 0 -50%; display: grid; gap: 30px; padding: 6px 0;
  animation: railIn .8s var(--ease) .6s both;
  transition: opacity .45s var(--ease), translate .45s var(--ease);
}
/* disappears once you scroll past service 03 */
.svc-rail.gone { opacity: 0; translate: -12px -50%; pointer-events: none; }
@keyframes railIn { from { opacity: 0; transform: translateX(-14px); } }
.rail-line { position: absolute; left: 17px; top: 24px; bottom: 24px; width: 2px; background: #d0d7e6; border-radius: 2px; overflow: hidden; }
.rail-line i { position: absolute; inset: 0 0 auto; height: 0%; background: var(--blue); transition: height .25s linear; }
.svc-rail a { position: relative; display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 12px; }
.rail-ico { position: relative; z-index: 1; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1.5px solid #c9d1e1; display: grid; place-items: center; transition: background .3s, border-color .3s, transform .35s var(--ease); }
.rail-ico svg { width: 18px; height: 18px; fill: none; stroke: #8a92a6; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.rail-txt { position: absolute; left: 48px; top: 50%; translate: 0 -50%; font-size: 14px; line-height: 1.1; color: var(--ink); white-space: nowrap; background: #fff; padding: 7px 12px; border-radius: 999px; box-shadow: 0 10px 24px -16px rgba(31,46,184,.5);
  opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .35s var(--ease); pointer-events: none; }
.rail-txt b { font-weight: 400; color: var(--blue); margin-inline-end: 6px; letter-spacing: .06em; }
.svc-rail a:hover .rail-txt, .svc-rail a:focus-visible .rail-txt { opacity: 1; transform: none; }
.svc-rail a.done .rail-ico { border-color: var(--blue); }
.svc-rail a.done .rail-ico svg { stroke: var(--blue); }
.svc-rail a.on .rail-ico { background: var(--blue); border-color: var(--blue); transform: scale(1.12); }
.svc-rail a.on .rail-ico svg { stroke: #fff; }
.arena-btn { align-self: flex-start; }
@media (max-width: 1100px) { .svc .wrap { width: var(--wrap); margin-inline: auto; } .svc-rail { display: none; } .svc { padding-block: 60px; } .page-services .talk { padding-top: 100px; } }