/* =========================================================
   SK Studio — עיצוב בסיס
   שפה: חום כהה + כתום, זכוכית שקופה, טיפוגרפיה קלה ומרווחת
   ========================================================= */

:root {
  --bg: #130b07;
  --bg-2: #1c110a;
  --ink: #f7f0e9;
  --muted: #bfae9f;
  --dim: #8c7a6c;
  --orange: #ff5a1f;
  --orange-2: #ff7a3d;
  --amber: #ffb27a;
  --brown: #7a3d1c;
  --line: rgba(255, 128, 64, 0.30);
  --line-soft: rgba(255, 255, 255, 0.10);
  --glass: linear-gradient(150deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --pad-x: clamp(18px, 4.2vw, 72px);
  --top-h: clamp(78px, 9vh, 104px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  scrollbar-width: none;
  -webkit-text-size-adjust: 100%;
}
html::-webkit-scrollbar { display: none; }
html { scroll-snap-type: y proximity; }
html.dive, html.animating { scroll-snap-type: none; }

body {
  font-family: 'Heebo', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- רקע חי ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 50% at 12% 8%, rgba(150, 70, 25, 0.55), transparent 70%),
    radial-gradient(55% 55% at 92% 30%, rgba(255, 90, 31, 0.20), transparent 70%),
    radial-gradient(60% 60% at 80% 100%, rgba(190, 80, 20, 0.35), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(120, 55, 20, 0.35), transparent 70%),
    var(--bg);
}
.bg-fx .orb { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.orb-a { width: 42vw; height: 42vw; left: -10vw; top: -12vw; background: rgba(160, 75, 28, 0.45); }
.orb-b { width: 34vw; height: 34vw; right: -8vw; top: 18vh; background: rgba(255, 90, 31, 0.16); }
.orb-c { width: 40vw; height: 40vw; right: 10vw; bottom: -22vw; background: rgba(200, 85, 22, 0.30); }
.bg-grain {
  position: absolute; inset: 0; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.spot {
  position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%; pointer-events: none; z-index: 1; will-change: transform; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 110, 40, 0.15), transparent);
  mix-blend-mode: screen; transition: opacity 0.6s;
}
body.has-pointer .spot { opacity: 1; }

/* ---------- מסך טעינה ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: #0d0705; overflow: hidden; clip-path: inset(0 0 0 0);
  transition: clip-path 0.95s var(--ease-io);
}
.boot::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(40% 40% at 50% 50%, rgba(255, 90, 31, 0.16), transparent 70%);
}
.boot-inner { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; }
.boot-mark { position: relative; display: block; width: min(250px, 58vw); }
.boot-logo { width: 100%; height: auto; display: block; }
.boot-piece { position: absolute; left: 0; top: 0; will-change: transform, opacity; pointer-events: none; }
.boot-ring { position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; margin: -60% 0 0 -60%; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; pointer-events: none; }
.boot-bar { width: min(260px, 60vw); height: 2px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--orange); transition: width 0.18s linear; }
.boot-count { font-size: 0.78rem; letter-spacing: 0.4em; color: var(--muted); direction: ltr; font-variant-numeric: tabular-nums; }
body.is-ready .boot { clip-path: inset(0 0 100% 0); pointer-events: none; }

/* ---------- סמן מותאם ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
body.has-pointer .cursor { opacity: 1; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--orange); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(255, 122, 61, 0.7);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 90, 31, 0.12); border-color: var(--orange); }
.cursor.is-down .cursor-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: rgba(255, 90, 31, 0.35); }

/* ---------- מעבר בין מסכים ---------- */
.wipe { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.wipe i { position: absolute; inset: -5% -30%; transform: translateX(120%) skewX(-14deg); }
.wipe i:nth-child(1) { background: var(--orange); }
.wipe i:nth-child(2) { background: #1a0e08; }
.wipe.run i:nth-child(1) { animation: wipeA 0.95s var(--ease-io) forwards; }
.wipe.run i:nth-child(2) { animation: wipeA 0.95s 0.09s var(--ease-io) forwards; }
@keyframes wipeA {
  0%   { transform: translateX(120%) skewX(-14deg); }
  50%  { transform: translateX(0) skewX(-14deg); }
  100% { transform: translateX(-120%) skewX(-14deg); }
}

/* ---------- כפתורים ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.9rem; isolation: isolate;
  padding: 1rem 1.9rem; border-radius: 999px; font-weight: 600; letter-spacing: 0.01em; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.3s, color 0.3s;
  will-change: transform;
}
.btn .arr { width: 22px; height: 22px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(6px); }
.btn-solid { background: linear-gradient(120deg, var(--orange), var(--orange-2)); color: #fff; box-shadow: 0 12px 34px rgba(255, 90, 31, 0.35); }
.btn-solid:hover { box-shadow: 0 18px 50px rgba(255, 90, 31, 0.6); }
.btn-outline { border: 1px solid var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #1a0d07; }
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(120%); transition: transform 0.7s var(--ease), opacity 0.3s;
}
.btn:hover::after { opacity: 1; transform: translateX(-120%); }

/* ---------- כותרת עליונה ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--top-h);
  display: flex; align-items: center; gap: clamp(14px, 2vw, 32px);
  padding: 0 var(--pad-x);
  transition: background 0.4s, backdrop-filter 0.4s, height 0.4s var(--ease);
}
.top.is-solid { background: rgba(19, 11, 7, 0.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.menu-btn { display: none; align-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 9px; flex: none; }
.menu-btn i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.4s var(--ease), opacity 0.3s, width 0.3s; }
.menu-btn i:nth-child(2) { width: 70%; margin-inline-start: auto; }
.menu-btn:hover i:nth-child(2) { width: 100%; }
.menu-open .menu-btn i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.top-cta { padding: 0.8rem 1.5rem; font-size: 0.95rem; flex: none; }

.nav { flex: 1; display: flex; justify-content: center; gap: clamp(0.8rem, 1.7vw, 2.6rem); min-width: 0; }
.nav a { position: relative; padding: 0.5rem 0.2rem 0.9rem; font-size: clamp(0.84rem, 0.95vw, 0.98rem); white-space: nowrap; color: rgba(247, 240, 233, 0.78); transition: color 0.3s; }
.nav a:hover { color: #fff; }
.nav a::before { /* קו תחתון */
  content: ''; position: absolute; inset-inline: 0; bottom: 0.15rem; height: 1px; background: #fff;
  transform: scaleX(0); transition: transform 0.45s var(--ease);
}
.nav a::after { /* נקודה כתומה */
  content: ''; position: absolute; left: 50%; bottom: -0.15rem; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange);
  transform: scale(0); transition: transform 0.4s var(--ease);
}
.nav a.is-active { color: #fff; }
.nav a.is-active::before, .nav a:hover::before { transform: scaleX(1); }
.nav a.is-active::after { transform: scale(1); }

.logo { flex: none; display: block; }
.logo img { height: clamp(52px, 6.6vh, 68px); width: auto; transition: transform 0.4s var(--ease), filter 0.4s; }
.logo:hover img { transform: scale(1.06); filter: drop-shadow(0 0 14px rgba(255, 90, 31, 0.55)); }

/* ---------- תפריט: תיבה קטנה ונוחה עם בחירת כפתורי ניווט (נפתחת מתחת להמבורגר) ---------- */
.menu-scrim { position: fixed; inset: 0; z-index: 78; background: rgba(8, 4, 2, 0.42); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; -webkit-tap-highlight-color: transparent; }
.menu-open .menu-scrim { opacity: 1; visibility: visible; transition: opacity 0.3s; }
.menu {
  position: fixed; z-index: 80; top: calc(var(--top-h) - 4px); left: max(12px, env(safe-area-inset-left)); width: min(330px, calc(100vw - 24px));
  max-height: calc(100svh - var(--top-h) - 16px); overflow-y: auto; overscroll-behavior: contain; padding: 8px;
  background: rgba(26, 14, 8, 0.97); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 90, 31, 0.1);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transform-origin: top left; opacity: 0; transform: translateY(-10px) scale(0.96); visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.36s var(--ease), visibility 0s 0.36s;
}
.menu-open .menu { opacity: 1; transform: none; visibility: visible; transition: opacity 0.28s var(--ease), transform 0.36s var(--ease), visibility 0s; }
.menu ol { display: grid; gap: 2px; width: 100%; }
.menu li a {
  display: flex; align-items: center; gap: 0.9rem; min-height: 48px; padding: 0.55rem 0.9rem; border-radius: 14px;
  font-size: 1.05rem; font-weight: 500; transition: background 0.25s, color 0.25s;
}
.menu li a b { min-width: 1.8rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; color: var(--orange); direction: ltr; text-align: start; }
.menu li a:hover, .menu li a:focus-visible { background: rgba(255, 90, 31, 0.12); }
.menu li a.is-active { background: rgba(255, 90, 31, 0.2); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.menu-cta-wrap { margin: 8px 4px 4px; }
.menu-cta { width: 100%; justify-content: center; padding: 0.85rem 1.2rem; font-size: 1rem; }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1.4rem; padding: 8px 6px 6px; color: var(--muted); font-size: 0.86rem; }
.menu-foot a { direction: ltr; padding: 0.35rem 0.2rem; transition: color 0.3s; }
.menu-foot a:hover { color: var(--orange); }

/* ---------- HUD תחתון ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; background: transparent; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(270deg, var(--orange), var(--amber)); transform-origin: right; transform: scaleX(0); box-shadow: 0 0 12px var(--orange); }

.hud {
  position: fixed; left: 50%; bottom: clamp(14px, 2.4vh, 26px); z-index: 40; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 8px 16px; border-radius: 999px;
  background: rgba(19, 11, 7, 0.5); border: 1px solid var(--line-soft); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  direction: rtl;
}
.hud-count { font-size: 0.74rem; letter-spacing: 0.25em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4.6em; direction: ltr; unicode-bidi: isolate; text-align: right; }
.hud-count b { color: var(--ink); font-weight: 600; }
.hud-seg { display: flex; gap: 6px; }
.hud-seg button { position: relative; width: 22px; height: 14px; display: grid; align-items: center; }
.hud-seg button i { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s; }
.hud-seg button:hover i { background: var(--amber); transform: scaleY(1.8); }
.hud-seg button.is-active i { background: var(--orange); box-shadow: 0 0 10px var(--orange); transform: scaleY(1.6); }
.hud-seg button span {
  position: absolute; bottom: 140%; left: 50%; transform: translate(-50%, 6px); white-space: nowrap; direction: rtl;
  font-size: 0.74rem; padding: 3px 10px; border-radius: 6px; background: #1d110a; border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.3s var(--ease);
}
.hud-seg button:hover span { opacity: 1; transform: translate(-50%, 0); }

/* ---------- וואטסאפ צף ---------- */
.wa {
  position: fixed; left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2.4vh, 26px); z-index: 45; width: 54px; height: 54px;
  display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35); transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.wa:hover { transform: scale(1.1) rotate(-6deg); box-shadow: 0 14px 40px rgba(37, 211, 102, 0.6); }
.wa svg { width: 28px; height: 28px; }

/* ---------- כותרות מקטע (משותף) ---------- */
.eyebrow { font-size: 0.78rem; letter-spacing: 0.55em; color: var(--muted); direction: ltr; text-transform: uppercase; }
.s-head { text-align: center; margin-bottom: clamp(18px, 3.4vh, 44px); }
.s-title { font-weight: 300; font-size: clamp(2rem, min(4.4vw, 7.4vh), 4.3rem); line-height: 1.04; margin-top: 0.7rem; letter-spacing: -0.01em; }
.s-title em { display: block; font-style: normal; font-weight: 400; color: var(--orange); }
.s-sub { color: var(--muted); max-width: 46rem; margin: 0.9rem auto 0; font-size: clamp(0.95rem, 1.15vw, 1.1rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- התאמה לגובה המסך ---------- */
.fit { width: 100%; transform-origin: 50% 0; transition: transform 0.45s var(--ease); will-change: transform; }
@media (max-height: 820px) {
  :root { --top-h: 68px; }
  .scene { padding-bottom: 54px; }
  .s-head { margin-bottom: 14px; }
  .s-sub { font-size: 0.92rem; margin-top: 0.5rem; }
  .s-title { margin-top: 0.4rem; }
}

.menu-open .top { z-index: 85; }
.nav, .top-cta { transition: opacity 0.3s; }

/* =========================================================
   מעבר רך בתחתית הכותרת: בלי רצועה, בלי קו, בלי border.
   הרקע הכהה והטשטוש נמסים בהדרגה, והכתום "מזלג" מתחתיו ונעלם בשקיפות.
   ========================================================= */
.top.is-solid { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top::before, .top::after { content: ''; position: absolute; left: 0; right: 0; top: 0; pointer-events: none; z-index: -1; opacity: 0; transition: opacity 0.6s ease; }
/* שכבת כהות + טשטוש שנמסות כלפי מטה (המסכה מדללת גם את הטשטוש עצמו) */
.top::before {
  height: calc(100% + 70px);
  background: linear-gradient(to bottom,
    rgba(19, 11, 7, 0.86) 0%, rgba(19, 11, 7, 0.74) 28%, rgba(19, 11, 7, 0.52) 52%,
    rgba(19, 11, 7, 0.26) 74%, rgba(19, 11, 7, 0.08) 90%, rgba(19, 11, 7, 0) 100%);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0.18) 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0.18) 84%, transparent 100%);
}
/* זוהר כתום מטושטש שמתפזר מתחת לכותרת אל תוך הרקע */
.top::after {
  top: 55%; height: 130px;
  background:
    radial-gradient(ellipse 55% 100% at 50% 0%, rgba(255, 110, 40, 0.10) 0%, rgba(255, 96, 34, 0.045) 45%, rgba(255, 90, 31, 0) 100%),
    radial-gradient(ellipse 28% 80% at 82% 0%, rgba(255, 120, 50, 0.07) 0%, rgba(255, 90, 31, 0) 100%);
  filter: blur(18px);
}
.top.is-solid::before, .top.is-solid::after { opacity: 1; }


/* הדגשת המשפט הכתום בכותרות: שירותים, תהליך ותיק עבודות */
#services .s-title em, #process .s-title em, #work .s-title em { font-weight: 800; }
