/* ============================================================
   a11y.css — נגישות, באנר קוקיז, וסרטון חסום
   נטען אחרי style.css
   ============================================================ */

/* גודל הטקסט נשלט ממשתנה אחד שתפריט הנגישות משנה */
:root { --a11y-scale: 1; }
body { font-size: calc(17px * var(--a11y-scale)); }

/* ---------- דילוג לתוכן ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  transform: translate(-50%, -160%);
  z-index: 400;
  background: var(--ember);
  color: #fff;
  padding: .7em 1.4em;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-family: var(--font-display);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- פוקוס גלוי בכל האתר ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- הכפתור הצף ---------- */
.a11y-root {
  position: fixed;
  inset-block-end: 1.1rem;
  inset-inline-start: 1.1rem;
  z-index: 320;
}
.a11y-toggle {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1d6fd6, #0d4894);
  color: #fff;
  box-shadow: 0 8px 26px rgba(8,40,90,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.a11y-toggle:hover { transform: scale(1.07); box-shadow: 0 12px 32px rgba(8,40,90,.55); }

/* ---------- הפאנל ---------- */
.a11y-panel {
  position: absolute;
  inset-block-end: calc(100% + .7rem);
  inset-inline-start: 0;
  width: min(310px, calc(100vw - 2.2rem));
  background: var(--cream);
  color: var(--text);
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(7,22,26,.34);
  padding: 1rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: .3rem;
}
.a11y-close {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(16,36,42,.07);
}
.a11y-close:hover { background: rgba(16,36,42,.14); }
.a11y-scale { font-size: .86rem; color: var(--text-soft); margin-bottom: .7rem; }

.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.a11y-grid button {
  display: flex; align-items: center; gap: .5rem;
  padding: .6em .7em;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: .85rem;
  text-align: start;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.a11y-grid button:hover { border-color: var(--ember); }
.a11y-grid button.on {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff;
}
.a11y-grid .ic { width: 24px; flex-shrink: 0; font-weight: 700; text-align: center; }

.a11y-reset {
  width: 100%;
  margin-top: .7rem;
  padding: .6em;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: .9rem;
}
.a11y-link {
  display: block;
  text-align: center;
  margin-top: .6rem;
  font-size: .82rem;
  color: var(--text-soft);
  text-decoration: underline;
}

/* ============ מצבי הנגישות ============ */

/* ניגודיות גבוהה */
html.a11y-contrast body,
html.a11y-contrast .section,
html.a11y-contrast .talks,
html.a11y-contrast .contact,
html.a11y-contrast .trips-section,
html.a11y-contrast .stats,
html.a11y-contrast .quotes,
html.a11y-contrast .map-section,
html.a11y-contrast .site-footer,
html.a11y-contrast .hero {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-contrast .talk-card,
html.a11y-contrast .trip-card,
html.a11y-contrast .form,
html.a11y-contrast .quote,
html.a11y-contrast .drawer-inner,
html.a11y-contrast .a11y-panel,
html.a11y-contrast .contact-links a,
html.a11y-contrast .stat,
html.a11y-contrast .talks-cta {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #ffff00 !important;
}
html.a11y-contrast h1,
html.a11y-contrast h2,
html.a11y-contrast h3,
html.a11y-contrast h4,
html.a11y-contrast .stat b {
  color: #ffff00 !important;
  -webkit-text-fill-color: #ffff00 !important;
}
html.a11y-contrast a { color: #66ffff !important; }
html.a11y-contrast p,
html.a11y-contrast span,
html.a11y-contrast li,
html.a11y-contrast label { color: #fff !important; }
html.a11y-contrast .btn {
  background: #ffff00 !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}
html.a11y-contrast .starfield,
html.a11y-contrast .hero-media,
html.a11y-contrast .hero::after { display: none !important; }
html.a11y-contrast .chip { background: #000 !important; color: #ffff00 !important; border: 1px solid #ffff00; }

/* גווני אפור */
html.a11y-grayscale body { filter: grayscale(1); }

/* הדגשת קישורים */
html.a11y-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* ריווח שורות */
html.a11y-spacing body { line-height: 2.1 !important; letter-spacing: .04em; }
html.a11y-spacing p { margin-bottom: 1.6em; }

/* גופן קריא */
html.a11y-readable body,
html.a11y-readable h1,
html.a11y-readable h2,
html.a11y-readable h3,
html.a11y-readable h4,
html.a11y-readable .btn,
html.a11y-readable .eyebrow,
html.a11y-readable .logo {
  font-family: Arial, "Segoe UI", sans-serif !important;
  letter-spacing: normal;
}

/* עצירת אנימציות */
html.a11y-noMotion *,
html.a11y-noMotion *::before,
html.a11y-noMotion *::after {
  animation: none !important;
  transition: none !important;
}
html.a11y-noMotion { scroll-behavior: auto !important; }

/* סמן גדול */
html.a11y-bigCursor,
html.a11y-bigCursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M8 4 L8 38 L16 30 L22 44 L28 41 L22 28 L34 28 Z' fill='%23ffffff' stroke='%23000000' stroke-width='2.5'/%3E%3C/svg%3E") 4 4, auto !important;
}

/* ============================================================
   באנר קוקיז
   ============================================================ */
.cookie-banner {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 330;
  background: rgba(7,22,26,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-start: 2px solid var(--ember);
  color: var(--text-invert);
  padding: 1.1rem var(--pad);
  animation: cookieUp .45s cubic-bezier(.2,.8,.2,1);
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieUp {
  from { transform: translateY(100%); }
  to   { transform: none; }
}
.cookie-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  justify-content: space-between;
}
.cookie-text { flex: 1 1 380px; }
.cookie-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: .2rem;
}
.cookie-text p { margin: 0; font-size: .9rem; color: var(--text-invert-soft); }
.cookie-text a { color: var(--amber); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-decline {
  border: 1.5px solid rgba(255,255,255,.4);
  color: var(--text-invert);
}
.cookie-decline:hover { background: rgba(255,255,255,.12); }

/* ============================================================
   סרטון חסום עד לאישור
   ============================================================ */
.media-blocked {
  background: rgba(16,36,42,.06);
  border: 2px dashed rgba(16,36,42,.22);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  text-align: center;
}
.blocked-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.4rem 1.1rem;
  max-width: 34ch;
}
.blocked-ic {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,138,79,.18);
  color: var(--ember-dark);
  font-size: 1.1rem;
}
.blocked-inner b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
}
.blocked-inner span { font-size: .84rem; color: var(--text-soft); line-height: 1.5; }

/* ============================================================
   עמודי תוכן (נגישות, פרטיות, תנאים)
   ============================================================ */
.legal { background: var(--cream); padding-top: calc(var(--header-h) + 3rem); }
.legal-wrap { max-width: 760px; margin-inline: auto; padding-inline: var(--pad); }
.legal h1 { margin-bottom: .3rem; }
.legal .updated {
  color: var(--text-soft);
  font-size: .88rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-top: 2.4rem;
  margin-bottom: .6rem;
}
.legal h3 { font-size: 1.1rem; margin-top: 1.6rem; margin-bottom: .4rem; }
.legal p, .legal li { color: var(--text); }
.legal ul, .legal ol { padding-inline-start: 1.4rem; margin-bottom: 1.1em; }
.legal li { margin-bottom: .5em; }
.legal a { color: var(--ember-dark); text-decoration: underline; }
.legal .box {
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--ember);
  border-radius: var(--r-sm);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}
.legal .box p:last-child { margin-bottom: 0; }
.legal .todo {
  background: rgba(255,193,69,.14);
  border-inline-start-color: var(--amber);
}
.legal dl { margin: 0 0 1.2em; }
.legal dt { font-weight: 700; margin-top: .8em; }
.legal dd { margin: 0 0 .4em; padding-inline-start: 1rem; color: var(--text-soft); }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  color: var(--ember-dark);
}

/* קישורי החובה בפוטר */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
}
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--amber); }

/* ============================================================
   מקטע המהלכים
   ============================================================ */
.moves { background: var(--sand); }
.move-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.move-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.2rem 1.8rem 1.9rem;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.move-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.move-badge {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(46,196,182,.18), rgba(255,138,79,.18));
}
.move-card h3 { margin-bottom: .5rem; }
.move-card p { color: var(--text-soft); margin: 0; }

/* ============================================================
   לוגו
   ------------------------------------------------------------
   הסמל מיושם כמסכה (mask) ולא כתמונה, כדי שיקבל את צבע הטקסט
   שסביבו: לבן בכותרת הכהה, כחול על רקע בהיר. בתוך <img> הערך
   currentColor לא חל, והסמל היה יוצא שחור על רקע כהה.
   ============================================================ */
.logo { gap: .65rem; }

.logo-mark {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: block;
  border-radius: 0;
  box-shadow: none;
  background-color: currentColor;
  -webkit-mask: var(--logo-svg) center / contain no-repeat;
  mask: var(--logo-svg) center / contain no-repeat;
}

:root {
  --logo-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='%23000000'%3E%3Cpath d='M60 7a53 53 0 0 1 53 53 53 53 0 0 1-53 53A53 53 0 0 1 7 60 53 53 0 0 1 60 7zm0 4.6A48.4 48.4 0 0 0 11.6 60 48.4 48.4 0 0 0 60 108.4 48.4 48.4 0 0 0 108.4 60 48.4 48.4 0 0 0 60 11.6z'/%3E%3Cpath d='M60 24.5 74.5 47.8l3.6-3.1 6.4 7.9 5.1-4.4L116 79.6l-14.7-4.9-8.1 3.1-9.8-5.3-6.9 4.1-9.5-6.9-7.3 5.4-8.9-7.2-9.6 6.4-8.2-4.6-9.1 4.9L4 79.6l24.7-31.4 5.1 4.4 6.4-7.9 3.6 3.1z'/%3E%3Cpath d='M6 84.4c18-1.9 36-2.9 54-2.9s36 1 54 2.9c-18 1.9-36 2.9-54 2.9s-36-1-54-2.9z'/%3E%3Ccircle cx='60' cy='63.4' r='2.6'/%3E%3Cpath d='M56.9 67h6.2c1.1 0 1.9.8 1.9 1.9v6.4c0 .7-.5 1.2-1.2 1.2h-.5v4.8h-1.9v-4.8h-.9v4.8h-1.9v-4.8h-.9v4.8h-1.9v-4.8h-.5c-.7 0-1.2-.5-1.2-1.2v-6.4c0-1.1.8-1.9 1.9-1.9z'/%3E%3C/g%3E%3C/svg%3E");
}

.logo-type {
  display: flex;
  flex-direction: column;
  line-height: 1;
  direction: ltr;
  text-align: left;
}
.logo-type b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.34rem;
  letter-spacing: .04em;
}
.logo-type small {
  font-family: var(--font-body);
  font-size: .58rem;
  letter-spacing: .34em;
  opacity: .78;
  margin-top: .18rem;
}

/* מספר בולט בתוך כרטיס מהלך */
.move-stat {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.move-stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--lagoon-dk), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.move-stat span {
  display: block;
  margin-top: .35rem;
  font-size: .88rem;
  color: var(--text-soft);
}

/* המספרים בפס הנתונים באורכים שונים ("14" מול "84 מיליון+"),
   לכן הגודל מתכווץ לפי הרוחב והשורה מאוזנת. */
.stat b {
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  text-wrap: balance;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   כרטיסי ההרצאות
   ============================================================ */
.talk-grid { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

/* שש הרצאות - שישה גרדיאנטים. הכלל הקודם כיסה רק שלושה. */
.talk-card:nth-child(1) .talk-thumb { background: linear-gradient(140deg, #ff8a4f, #c1440e); }
.talk-card:nth-child(2) .talk-thumb { background: linear-gradient(140deg, #2ec4b6, #0e6b70); }
.talk-card:nth-child(3) .talk-thumb { background: linear-gradient(140deg, #ffc145, #e0821c); }
.talk-card:nth-child(4) .talk-thumb { background: linear-gradient(140deg, #4a90d9, #17456f); }
.talk-card:nth-child(5) .talk-thumb { background: linear-gradient(140deg, #7f6bd4, #3d2f80); }
.talk-card:nth-child(6) .talk-thumb { background: linear-gradient(140deg, #2f4550, #10242a); }

/* התמונה נמוכה יותר - יש הרבה טקסט מתחתיה */
.talk-thumb { aspect-ratio: 16/6; font-size: 2.8rem; }

.talk-card h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-bottom: .25rem;
  text-wrap: balance;
}
.talk-lead {
  font-family: var(--font-display);
  font-size: .92rem;
  color: var(--ember-dark);
  margin-bottom: .9rem !important;
  flex: none !important;
}
.talk-body p { font-size: .95rem; line-height: 1.7; }
.talk-body p:last-child { margin-bottom: 0; }

.talk-list {
  margin: .2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.talk-list li {
  position: relative;
  padding-inline-start: 1.4rem;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--text-soft);
}
.talk-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lagoon);
}
.talk-list em { font-style: normal; font-weight: 700; color: var(--text); }

.talk-meta .chip { font-size: .76rem; }

/* כפתור הזמנה בתחתית כרטיס הרצאה */
.talk-cta {
  margin-top: 1.4rem;
  align-self: flex-start;
  justify-content: center;
}
.talk-body { display: flex; flex-direction: column; }

/* ============================================================
   הרצאות: תקציר בכרטיס, הכול בחלון
   ============================================================ */
/* התוכן המלא מוסתר רק כש-JS רץ, אחרת הוא פשוט מוצג בכרטיס */
.js .talk-full { display: none; }

.talk-teaser {
  color: var(--text-soft);
  font-size: .96rem;
  line-height: 1.7;
  margin-bottom: 0 !important;
  flex: 1;
}
.talk-card { cursor: pointer; }
.talk-cta { margin-top: 1.3rem; }

/* שורת התגיות בראש חלון ההרצאה */
.talk-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .9rem;
}
.talk-modal-meta .chip {
  background: rgba(255,255,255,.13);
  color: var(--text-invert);
  border: 1px solid rgba(255,255,255,.16);
}
#talkModalBody p:first-child { margin-top: 0; }
#talkModalBody strong { color: var(--text); }
.talk-modal-cta {
  width: 100%;
  justify-content: center;
  margin-top: 1.6rem;
}

/* הערת אורך ההרצאות */
.talks-note {
  max-width: 60ch;
  margin: 2.2rem auto 0;
  text-align: center;
  font-size: .95rem;
  color: var(--text-soft);
  line-height: 1.75;
}

/* ============================================================
   בחברה טובה
   ============================================================ */
.clients { background: var(--sand); }
.clients-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 860px) { .clients-layout { grid-template-columns: 1fr; } }

.clients-sub {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}
.client-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.client-list li {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  padding: .5em 1.1em;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  direction: ltr;
}
.client-list li:last-child {
  direction: rtl;
  background: none;
  border-style: dashed;
  color: var(--text-soft);
}

.supplier-box {
  display: flex;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--lagoon);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
}
.supplier-ic {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1.2;
}
.supplier-box h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.supplier-box p { color: var(--text-soft); font-size: .96rem; }
.supplier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .4rem .9rem;
}
.supplier-list li {
  position: relative;
  padding-inline-start: 1.3rem;
  font-size: .95rem;
}
.supplier-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--lagoon-dk);
  font-weight: 700;
}
.supplier-note {
  margin: 0 !important;
  font-size: .89rem !important;
  font-style: italic;
}

/* ============================================================
   הסיפור האישי
   ============================================================ */
.story-block {
  max-width: 68ch;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-invert-soft);
}
.story-block p { margin-bottom: 1.3em; }
.story-block em { color: var(--amber); font-style: normal; font-weight: 700; }

/* שתי שורות המפנה בסיפור, מודגשות טיפוגרפית */
.story-turn, .story-end {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--amber);
  text-align: center;
  margin: 2rem 0 !important;
  line-height: 1.3;
}
.story-end { color: var(--ember); }

/* ============================================================
   כרטיסי הרצאה קומפקטיים עם תמונת רקע
   ------------------------------------------------------------
   להוספת תמונה לכרטיס, על ה-article:
     style="--talk-img:url('assets/img/talks/NAME.jpg')"
   בלי תמונה מוצג הגוון בלבד.
   ============================================================ */
.talk-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}

.talk-card {
  --talk-img: none;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: block;
  text-align: start;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.talk-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.talk-card:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.talk-media {
  position: absolute;
  inset: 0;
  background-image: var(--talk-tone);
  background-size: cover;
  /* התמונה דהויה ומוכהה, כדי שהטקסט מעליה ייקרא תמיד */
  filter: saturate(.7) brightness(.58);
  transform: scale(1.03);
  transition: transform .55s ease, filter .4s ease;
}
/* התמונה עצמה, ממלאת את הכרטיס מעל גוון הרקע */
.talk-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.talk-card:hover .talk-media { transform: scale(1.1); filter: saturate(.95) brightness(.72); }

/* גוון ברירת מחדל לכל כרטיס */
.talk-card:nth-child(1) { --talk-tone: linear-gradient(140deg, #ff8a4f, #8f3208); }
.talk-card:nth-child(2) { --talk-tone: linear-gradient(140deg, #2ec4b6, #08464b); }
.talk-card:nth-child(3) { --talk-tone: linear-gradient(140deg, #ffc145, #9c560a); }
.talk-card:nth-child(4) { --talk-tone: linear-gradient(140deg, #4a90d9, #123a5f); }
.talk-card:nth-child(5) { --talk-tone: linear-gradient(140deg, #7f6bd4, #2f2266); }
.talk-card:nth-child(6) { --talk-tone: linear-gradient(140deg, #55707e, #0b1a20); }

.talk-icon {
  position: absolute;
  inset-block-start: .8rem;
  inset-inline-end: .8rem;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.15rem;
  background: rgba(8,20,26,.55);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.talk-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem 1.1rem 1.2rem;
  color: #fff;
  background: linear-gradient(to top,
    rgba(4,12,16,.93) 10%,
    rgba(4,12,16,.55) 48%,
    rgba(4,12,16,.12) 100%);
}
.talk-overlay .talk-meta { margin-bottom: .55rem; gap: .35rem; }
.talk-overlay .chip {
  font-size: .7rem;
  padding: .28em .7em;
  background: rgba(255,255,255,.16);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.talk-overlay .chip.warm { background: rgba(255,138,79,.85); color: #fff; }
.talk-overlay h3 {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  margin-bottom: .2rem;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}
.talk-overlay .talk-lead {
  font-family: var(--font-body);
  font-size: .84rem;
  color: rgba(255,255,255,.72);
  margin: 0 !important;
}

/* התקציר והתוכן המלא חיים בכרטיס אבל מוצגים רק בחלון */
.js .talk-card .talk-teaser { display: none; }

/* התקציר בראש חלון ההרצאה */
.modal-teaser {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.5;
  color: var(--ember-dark);
  padding-bottom: 1.1rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}

/* ============================================================
   קהל היעד מתגלה בריחוף
   במסכי מגע אין ריחוף, ולכן שם הוא מוצג תמיד.
   ============================================================ */
.talk-overlay .talk-meta {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-bottom: 0;
  transition: max-height .38s cubic-bezier(.2,.8,.2,1),
              opacity .3s ease,
              margin-bottom .38s ease;
}
.talk-card:hover .talk-overlay .talk-meta,
.talk-card:focus-visible .talk-overlay .talk-meta {
  max-height: 90px;
  opacity: 1;
  margin-bottom: .6rem;
}
@media (hover: none) {
  .talk-overlay .talk-meta {
    max-height: 90px;
    opacity: 1;
    margin-bottom: .6rem;
  }
}

/* ============================================================
   פרטים טכניים על ההרצאות
   ============================================================ */
.talk-facts {
  margin-top: clamp(2rem, 5vw, 3rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow);
}
.talk-facts > h3 {
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
  text-align: center;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem 1.8rem;
}
.fact { display: flex; gap: .8rem; align-items: flex-start; }
.fact-ic {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(46,196,182,.13);
}
.fact p { margin: 0; font-size: .94rem; color: var(--text-soft); line-height: 1.65; }

/* ============================================================
   שאלות נפוצות
   ============================================================ */
.faq { background: var(--cream); }
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: var(--ember); box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.12rem);
  display: flex;
  align-items: center;
  gap: .8rem;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-inline-start: auto;
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,138,79,.14);
  color: var(--ember-dark);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .3s ease, background .2s ease;
}
.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  background: var(--ember);
  color: #fff;
}
.faq-item summary:hover { color: var(--ember-dark); }
.faq-answer { padding: 0 1.3rem 1.3rem; }
.faq-answer p { margin: 0; color: var(--text-soft); line-height: 1.75; }

.follow-me {
  font-family: var(--font-display);
  color: var(--amber);
  font-size: 1.02rem;
  margin-bottom: .5rem !important;
}

/* ============================================================
   תיקונים: גריד 3x3, ריחוף איטי, ספק מאושר, ורקע מטושטש
   ============================================================ */

/* שש הרצאות = שתי שורות של שלוש */
.talk-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .talk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .talk-grid { grid-template-columns: 1fr; } }

/* קהל היעד מתגלה לאט, עם השהיה קטנה */
.talk-overlay .talk-meta {
  transition: max-height .75s cubic-bezier(.22,.75,.28,1) .12s,
              opacity .65s ease .22s,
              margin-bottom .75s cubic-bezier(.22,.75,.28,1) .12s;
}
.talk-overlay .chip {
  transform: translateY(8px);
  transition: transform .7s cubic-bezier(.22,.75,.28,1) .2s;
}
.talk-card:hover .talk-overlay .chip,
.talk-card:focus-visible .talk-overlay .chip { transform: none; }
/* התגית השנייה יוצאת רגע אחרי הראשונה */
.talk-overlay .chip:nth-child(2) { transition-delay: .32s; }
@media (hover: none) {
  .talk-overlay .chip { transform: none; }
}

/* פס הספק המאושר, מעל הפרטים הטכניים */
.supplier-strip {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--lagoon);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.supplier-strip .supplier-ic {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1.3;
}
.supplier-body { flex: 1; min-width: 0; }
.supplier-strip h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.supplier-strip .supplier-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.3rem;
  margin-bottom: .8rem;
}
.supplier-strip .supplier-list li { font-size: .92rem; }
.supplier-strip .supplier-note {
  margin: 0;
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.65;
  font-style: normal;
}

/* רקע אפור ומטושטש מאחורי חלון ההרצאה */
/* רקע חלון ההרצאה: מוחשך, מטושטש ומנוטרל צבע */
.drawer-backdrop.gray {
  background: rgba(22,26,32,.78);
  backdrop-filter: blur(16px) grayscale(.85);
  -webkit-backdrop-filter: blur(16px) grayscale(.85);
}

/* פתיחת חלון ההרצאה איטית יותר מחלון המדינה */
#talkModal .drawer-inner {
  transition:
    transform .85s cubic-bezier(.16,.84,.24,1),
    opacity .6s ease,
    box-shadow .85s ease;
}
#talkModal { transition: visibility 0s linear .7s; }
#talkModal.open { transition: visibility 0s linear 0s; }
.drawer-backdrop { transition: opacity .7s ease, background .5s ease; }

/* ============================================================
   רצועת הפרטים הטכניים
   ------------------------------------------------------------
   ארבע העובדות שבאמת משנות בהחלטה גלויות תמיד;
   שאר הפרטים נפתחים בלחיצה כדי לא לשבור את השטף.
   ============================================================ */
.talk-strip {
  margin-top: clamp(1.4rem, 3.5vw, 2.2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.strip-row {
  list-style: none;
  margin: 0;
  padding: 1rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.8rem;
}
.strip-row li {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .93rem;
  color: var(--text);
  white-space: nowrap;
}
.strip-row li span { font-size: 1.05rem; line-height: 1; }
.strip-row li:first-child {
  font-family: var(--font-display);
  color: var(--lagoon-dk);
}

.strip-more { border-top: 1px solid var(--line); }
.strip-more summary {
  cursor: pointer;
  list-style: none;
  padding: .75rem 1.3rem;
  font-size: .88rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color .2s ease, background .2s ease;
}
.strip-more summary::-webkit-details-marker { display: none; }
.strip-more summary::after {
  content: "▾";
  font-size: .8rem;
  transition: transform .3s ease;
}
.strip-more[open] summary::after { transform: rotate(180deg); }
.strip-more summary:hover { color: var(--ember-dark); background: rgba(255,138,79,.05); }

.strip-detail {
  padding: .3rem 1.3rem 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem 2rem;
}
.strip-detail h4 {
  font-size: .95rem;
  color: var(--ember-dark);
  margin-bottom: .3rem;
}
.strip-detail p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--text-soft);
}

@media (max-width: 620px) {
  .strip-row { gap: .55rem 1.1rem; }
  .strip-row li { font-size: .87rem; }
}

/* ============================================================
   תמונת הפורטרט בסיפור האישי
   ============================================================ */
.story-portrait {
  max-width: 560px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.story-portrait img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,.08);
}
.story-portrait figcaption {
  margin-top: .9rem;
  font-size: .9rem;
  color: var(--text-invert-soft);
  font-style: italic;
}

/* שורת הנחיה קטנה מתחת לכותרת מקטע */
.section-note {
  font-size: .88rem;
  color: var(--text-soft);
  opacity: .85;
  margin-top: .4rem !important;
}
.on-dark .section-note,
.map-section .section-note,
.quotes .section-note { color: var(--text-invert-soft); }

/* ============================================================
   ליטוש מקטע ההרצאות - יותר מזמין, פחות "חצי כוח"
   ============================================================ */
.talks .section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}
.talks .section-head .eyebrow {
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: none;
}
.talks .section-head .eyebrow::before { display: none; }
.talks .section-head h2 { margin-bottom: .7rem; }
.talks .section-head p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* שורת ההנחיה - קטנה, מרומזת, לא צועקת */
.talks .section-note {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: .82rem;
  opacity: .55;
  margin-top: 1.4rem !important;
}
.talks .section-note::before {
  content: "☝";
  font-size: .95em;
}


/* ============================================================
   כרטיסי ההרצאות: תמונה בהירה, ובריחוף - הצללה וכפתור "לכל הפרטים"
   ============================================================ */

/* במצב רגיל התמונה כמעט בלי הצללה. רק תחתית הכרטיס כהה, בשביל הטקסט */
.talk-media {
  filter: saturate(1.05) brightness(.97);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease;
}
.talk-overlay {
  background: linear-gradient(to top,
    rgba(4,12,16,.92) 6%,
    rgba(4,12,16,.5) 36%,
    rgba(4,12,16,0) 66%);
  transition: background .5s ease;
}

/* בריחוף: הכרטיס קופץ, התמונה מתקרבת ומוצללת */
.talk-card:hover,
.talk-card:focus-visible { transform: translateY(-8px) scale(1.015); box-shadow: var(--shadow-lg); }
.talk-card:hover .talk-media,
.talk-card:focus-visible .talk-media {
  transform: scale(1.09);
  filter: saturate(.9) brightness(.5);
}

/* הכפתור שמופיע באמצע התמונה */
.talk-more {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  inset-block-start: 0;
  inset-block-end: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px) scale(.85);
  transition: opacity .35s ease,
              transform .55s cubic-bezier(.34,1.56,.64,1);
}
.talk-more-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45em .5em .45em 1.15em;
  padding-inline-start: 1.15em;
  padding-inline-end: .45em;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  white-space: nowrap;
}
.talk-more-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ember);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
}
.talk-card:hover .talk-more,
.talk-card:focus-visible .talk-more { opacity: 1; transform: none; }

/* החץ "מתדפק" שמאלה ופולט גלים, כדי שיהיה ברור שלוחצים */
/* כפתור העכבר "לוחץ" שוב ושוב: הסמן נלחץ פנימה והניצוצות מהבהבים */
.talk-more-arrow svg { display: block; overflow: visible; width: 30px; height: 30px; }
.talk-more-arrow .ic-tap { display: none; }
.talk-more-arrow .cursor { transform-origin: 11px 9px; transform-box: view-box; }
.talk-more-arrow .click-rays { opacity: 0; transform-origin: 11px 9px; transform-box: view-box; }

.talk-card:hover .talk-more-arrow,
.talk-card:focus-visible .talk-more-arrow {
  animation: talkArrowPulse 1.6s ease-out .4s infinite;
}
.talk-card:hover .talk-more-arrow .cursor,
.talk-card:focus-visible .talk-more-arrow .cursor {
  animation: mousePress 1.6s cubic-bezier(.3,.7,.4,1) .4s infinite;
}
.talk-card:hover .talk-more-arrow .click-rays,
.talk-card:focus-visible .talk-more-arrow .click-rays {
  animation: mouseRays 1.6s ease-out .4s infinite;
}
@keyframes mousePress {
  0%, 30%  { transform: none; }
  40%      { transform: translate(1.5px, 1.5px) scale(.86); }
  55%, 100%{ transform: none; }
}
@keyframes mouseRays {
  0%, 38%  { opacity: 0; transform: scale(.6); }
  48%      { opacity: 1; transform: scale(1); }
  75%, 100%{ opacity: 0; transform: scale(1.25); }
}
@keyframes talkArrowPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,107,53,.6); }
  100% { box-shadow: 0 0 0 16px rgba(255,107,53,0); }
}

/* מסכי מגע: אין ריחוף, אז חץ קטן קבוע בפינה */
@media (hover: none) {
  .talk-more {
    opacity: 1;
    transform: none;
    inset: auto;
    inset-block-start: .8rem;
    inset-inline-start: .8rem;
  }
  .talk-more-pill { padding: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .talk-more-label { display: none; }
  .talk-more-arrow { width: 38px; height: 38px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
  .talk-more-arrow .ic-mouse { display: none; }
  .talk-more-arrow .ic-tap { display: block; }
  .talk-more-arrow .tap-ring { transform-origin: 16px 16px; transform-box: view-box; animation: tapRing 1.8s ease-out infinite; }
@keyframes tapRing {
  0%   { opacity: .9; transform: scale(.45); }
  80%, 100% { opacity: 0; transform: scale(1.15); }
}
}

/* עם עכבר, הכפתור בריחוף מסביר את עצמו - אין צורך בשורת ההנחיה */
@media (hover: hover) {
  .talks .section-note { display: none; }
}

/* ============================================================
   חלון ההרצאה: כל האתר נעלם לצללית, והחלון "גדל" מתוך הכרטיס
   ============================================================ */
.drawer-backdrop.gray {
  background:
    radial-gradient(ellipse at center, rgba(8,12,18,.62) 0%, rgba(2,4,8,.94) 100%);
  backdrop-filter: blur(14px) grayscale(.9) brightness(.7);
  -webkit-backdrop-filter: blur(14px) grayscale(.9) brightness(.7);
}
.drawer-backdrop { transition: opacity .8s ease; }

#talkModal .drawer-inner {
  transition:
    transform 1s cubic-bezier(.16,1,.3,1),
    opacity .55s ease,
    box-shadow 1s ease;
}

/* ראש החלון מקבל את תמונת ההרצאה */
#talkModal .drawer-head {
  background-size: cover;
  background-position: center 38%;
  padding-top: 3.2rem;
}

/* התוכן נכנס בגל, שורה אחרי שורה */
@keyframes talkRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
#talkModal.open .drawer-head > :not(.drawer-close),
#talkModal.open .drawer-body > * {
  animation: talkRise .65s cubic-bezier(.2,.8,.2,1) backwards;
}
#talkModal.open .drawer-head > :nth-child(2) { animation-delay: .38s; }
#talkModal.open .drawer-head > :nth-child(3) { animation-delay: .46s; }
#talkModal.open .drawer-head > :nth-child(4) { animation-delay: .54s; }
#talkModal.open .drawer-body > :nth-child(1) { animation-delay: .6s; }
#talkModal.open .drawer-body > :nth-child(2) { animation-delay: .68s; }
#talkModal.open .drawer-body > :nth-child(3) { animation-delay: .76s; }
#talkModal.open .drawer-body > :nth-child(4) { animation-delay: .84s; }
#talkModal.open .drawer-body > :nth-child(n+5) { animation-delay: .92s; }

@media (prefers-reduced-motion: reduce) {
  .talk-card:hover .talk-more-arrow,
  .talk-card:hover .talk-more-arrow .cursor,
  .talk-card:hover .talk-more-arrow .click-rays,
  .talk-more-arrow .tap-ring { animation: none; }
  .talk-card:hover .talk-more-arrow .click-rays { opacity: 1; }
}
html.a11y-noMotion .talk-more-arrow,
html.a11y-noMotion .talk-more-arrow * { animation: none !important; }
