/* שכבת שיפור של קלוד מעל העיצוב של קודקס, 26.11.2026. לא משנה את העיצוב, מוסיפה תנועה. */

html { scroll-behavior: smooth; }

/* חשיפה בגלילה: איטית יותר ועם מדרג בין פריטים */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 760ms cubic-bezier(.22,1,.36,1), transform 760ms cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.layer.reveal:nth-child(1), .case.reveal:nth-child(1), .team-card.reveal:nth-child(1), .testimonial.reveal:nth-child(1), .media-card.reveal:nth-child(1), .office.reveal:nth-child(1) { transition-delay: 0ms; }
.layer.reveal:nth-child(2), .case.reveal:nth-child(2), .team-card.reveal:nth-child(2), .testimonial.reveal:nth-child(2), .media-card.reveal:nth-child(2), .office.reveal:nth-child(2) { transition-delay: 110ms; }
.layer.reveal:nth-child(3), .case.reveal:nth-child(3), .team-card.reveal:nth-child(3), .testimonial.reveal:nth-child(3), .media-card.reveal:nth-child(3), .office.reveal:nth-child(3) { transition-delay: 220ms; }
.layer.reveal:nth-child(4), .case.reveal:nth-child(4), .media-card.reveal:nth-child(4) { transition-delay: 330ms; }
.layer.reveal:nth-child(5), .case.reveal:nth-child(5) { transition-delay: 440ms; }
.layer.reveal:nth-child(6), .case.reveal:nth-child(6) { transition-delay: 550ms; }

/* קו הכותרת של כל פרק נמתח כשהפרק נכנס לתצוגה */
.section-num::before { width: 0; transition: width 900ms cubic-bezier(.22,1,.36,1) 150ms; }
.in .section-num::before, .section-num.in::before { width: 28px; }

/* תמונות: זום איטי מאוד כשנכנסות לתצוגה */
.kb { overflow: hidden; display: block; }
.kb img { transform: scale(1.06); transition: transform 2.4s cubic-bezier(.22,1,.36,1); will-change: transform; }
.kb.in img { transform: scale(1); }

/* כרטיסים: הרמה קלה בריחוף */
.case, .testimonial, .media-card, .article-card, .press-feature, .office { transition: transform 420ms cubic-bezier(.22,1,.36,1), box-shadow 420ms ease, border-color 300ms ease; }
.testimonial:hover, .media-card:hover, .article-card:hover, .press-feature:hover, .office:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 26, 43, 0.10); }

/* כותרת עליונה מצטמצמת בגלילה */
.cinematic-header { transition: min-height 360ms ease, padding 360ms ease, box-shadow 360ms ease; }
.cinematic-header.scrolled { min-height: 72px; padding-top: 6px; padding-bottom: 6px; box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
.cinematic-header.scrolled .cinematic-brand img { width: 92px; height: 62px; transition: width 360ms ease, height 360ms ease; }

/* פתיחה: שכבת הפעלה מעל הסרט, עם הציטוט */
.quote-opening { position: relative; overflow: hidden; }
.film-cover { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; cursor: pointer; background: #0a1828; overflow: hidden; transition: opacity 900ms ease; }
.film-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.03); animation: film-drift 14s ease-in-out infinite alternate; }
@keyframes film-drift { from { transform: scale(1.03) translateX(0); } to { transform: scale(1.08) translateX(-1.2%); } }
.film-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,24,40,0) 40%, rgba(10,24,40,0.78) 100%); }
.film-cover-inner { position: relative; z-index: 1; text-align: center; color: #fff; padding: 0 24px 7vh; align-self: end; max-width: 980px; }
.film-cover-quote { font-family: 'Frank Ruhl Libre', serif; font-weight: 500; font-size: clamp(24px, 3vw, 44px); line-height: 1.35; margin: 0 0 22px; text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.film-cover-quote em { font-style: normal; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.55); }
.film-play { display: inline-flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.7); color: #fff; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0.04em; padding: 12px 26px 12px 18px; cursor: pointer; backdrop-filter: blur(6px); transition: background 300ms ease, transform 300ms ease; }
.film-play:hover { background: rgba(255,255,255,0.26); transform: translateY(-2px); }
.film-play svg { width: 22px; height: 22px; fill: #fff; }
.film-cover.hidden { opacity: 0; pointer-events: none; }
.quote-opening video { transition: opacity 600ms ease; }

/* פס צף: סמלים בלבד, בלי קוביות, באמצע הצד הימני, גלוי תמיד */
/* סרגל קשר צף: וואטסאפ גדול בפינה הימנית התחתונה, מעליו גלולה לבנה עם שאר הערוצים.
   במחשב ובטאבלט הסרגל עומד לאורך, בשוליים שמימין לטקסט (27.11.2026: בפריסה לרוחב, 302px, הוא כיסה את עמודת הטקסט).
   בטלפון הוא נשאר לרוחב בתחתית המסך. */
.side-dock { position: fixed; right: 18px; bottom: 22px; z-index: 60; display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; }
.side-dock a { display: flex; align-items: center; justify-content: center; text-decoration: none; transition: transform 200ms ease; }
.side-dock a:hover { transform: translateY(-2px); }
.side-dock .dock-wa { width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.28); }
.side-dock .dock-wa svg { width: 32px; height: 32px; fill: currentColor; }
.side-dock .dock-pill { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; background: rgba(255,255,255,0.96); border: 1px solid #e4e3de; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,0.18); backdrop-filter: blur(6px); }
.side-dock .dock-pill a { width: 40px; height: 40px; border-radius: 50%; color: #0e1a2b; }
.side-dock .dock-pill a:hover { background: #eef0f3; transform: none; }
.side-dock .dock-pill svg { width: 24px; height: 24px; fill: currentColor; }
.side-dock .dock-fb, .side-dock .dock-msg { color: #1877F2 !important; }
.side-dock .dock-waze svg { width: 27px; height: 27px; }
/* מסך שבו השוליים שמימין לטקסט צרים מ-76px (עמוד הבית מתחת ל-1440): סרגל צר יותר וצמוד לקצה */
@media (min-width: 651px) and (max-width: 1439px) {
  .side-dock { right: 8px; bottom: 18px; gap: 8px; }
  .side-dock .dock-wa { width: 50px; height: 50px; }
  .side-dock .dock-wa svg { width: 28px; height: 28px; }
  .side-dock .dock-pill { padding: 6px 4px; gap: 2px; }
  .side-dock .dock-pill a { width: 36px; height: 36px; }
  .side-dock .dock-pill svg { width: 22px; height: 22px; }
  .side-dock .dock-waze svg { width: 25px; height: 25px; }
}
@media (max-width: 650px) {
  .side-dock { right: 12px; bottom: 14px; gap: 8px; flex-direction: row-reverse; }
  .side-dock .dock-wa { width: 52px; height: 52px; }
  .side-dock .dock-wa svg { width: 28px; height: 28px; }
  .side-dock .dock-pill { flex-direction: row-reverse; padding: 5px 6px; gap: 2px; }
  .side-dock .dock-pill a { width: 36px; height: 36px; }
  .side-dock .dock-pill svg { width: 22px; height: 22px; }
  .side-dock .dock-waze svg { width: 25px; height: 25px; }
  /* רווח בתחתית, כדי שהסרגל לא יכסה את שורת הקשר ואת הקישור להצהרת הנגישות בסוף העמוד */
  footer { padding-bottom: 96px !important; }
}

/* מספרים שנספרים */
[data-count] { font-variant-numeric: tabular-nums; }

@media (max-width: 650px) {
  .film-cover-quote { font-size: 22px; }
  .film-cover-inner { padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .kb img, .section-num::before, .case, .testimonial, .media-card, .article-card, .press-feature, .office, .cinematic-header { transition: none !important; }
  .film-cover img { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .kb img { transform: none; }
}

/* צוות של שני כרטיסים (זמני, עד השבת כרטיס שיר) */
.team-grid.two-col .team-photo{background-position:center 20%}

/* שורת מעמד מתחת לסרט */
.standing { background: #0e1a2b; color: #dfe4ea; padding: 26px 0; }
.standing-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; }
.standing-list li { font-family: Assistant, sans-serif; font-size: 14px; letter-spacing: 0.04em; line-height: 1.5; padding: 0 22px; position: relative; text-align: center; }
.standing-list li + li::before { content: ""; position: absolute; right: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #8aa0bb; }
.standing-list li:first-child { color: #fff; font-weight: 600; }
@media (max-width: 650px) { .standing { padding: 20px 0; } .standing-list { flex-direction: column; gap: 8px; } .standing-list li { padding: 0 16px; font-size: 14px; } .standing-list li + li::before { display: none; } }

/* פס מילואים */
.reserve-band { background: #0e1a2b; color: #dfe4ea; padding: 40px 0; border-top: 1px solid #2c3e5e; border-bottom: 1px solid #2c3e5e; }
.reserve-band .container { max-width: 880px; text-align: center; }
.reserve-eyebrow { font-family: Assistant, sans-serif; font-size: 12px; letter-spacing: 0.22em; color: #8aa0bb; margin: 0 0 14px; }
.reserve-main { font-size: 20px; line-height: 1.7; margin: 0 0 18px; color: #fff; }
.reserve-link { font-family: Assistant, sans-serif; font-size: 14px; letter-spacing: 0.06em; color: #dfe4ea; text-decoration: none; border-bottom: 1px solid #8aa0bb; padding-bottom: 2px; }
.reserve-link:hover { color: #fff; border-bottom-color: #fff; }
@media (max-width: 650px) { .reserve-band { padding: 30px 0; } .reserve-main { font-size: 17px; } }
