/* ============================================================
   עינבר — נגישות, כפתור וואטסאפ צף ובאנר עוגיות
   ============================================================ */

.a11y { position: fixed; inset-block-end: calc(20px + env(safe-area-inset-bottom)); inset-inline-end: 20px; z-index: 940; }
.a11y-btn {
  width: 54px; height: 54px; border-radius: 50%; border: 0; padding: 0;
  background: var(--navy); color: var(--off-white); cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(13,36,56,.6), 0 4px 12px rgba(0,0,0,.2);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.a11y-btn:hover { transform: scale(1.07); background: var(--gold); color: var(--navy-deep); }
.a11y-btn:active { transform: scale(.95); }
.a11y-btn svg { width: 28px; height: 28px; }

/* [hidden] must beat display:flex */
.am[hidden] { display: none; }
.am {
  position: fixed; inset-block: 0; inset-inline-end: 0;   /* RTL: the left edge, beside the button */
  width: min(92vw, 392px); z-index: 985;   /* above the cookie bar so reset stays clickable */
  background: #F2F4F7; color: var(--navy);
  display: flex; flex-direction: column;
  box-shadow: 12px 0 46px -12px rgba(13,36,56,.5);
  animation: amIn .28s cubic-bezier(.2,.7,.2,1);
}
@keyframes amIn { from { transform: translateX(-100%) } to { transform: translateX(0) } }
.am-head {
  position: relative; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--off-white);
  padding: 16px 18px; font-weight: 700; font-size: 1rem;
}
.am-close {
  position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; background: transparent; color: inherit;
  display: grid; place-items: center; border-radius: 8px; cursor: pointer;
}
.am-close:hover { background: rgba(255,255,255,.16); }
.am-close svg { width: 20px; height: 20px; }
.am-body { flex: 1; overflow-y: auto; padding: 14px 14px 20px; }
.am-sec { font-weight: 700; font-size: .95rem; margin: 14px 2px 10px; }
.am-sec:first-child { margin-top: 2px; }
.am-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 88px; padding: 12px 8px; text-align: center;
  background: #fff; border: 2px solid transparent; border-radius: 12px; cursor: pointer;
  font-family: var(--font); font-size: .84rem; font-weight: 600; color: var(--navy);
  box-shadow: 0 2px 8px rgba(13,36,56,.06);
  transition: border-color .15s, background .15s;
}
.am-tile:hover { border-color: rgba(201,162,94,.5); }
.am-tile.is-on { border-color: var(--gold); background: rgba(201,162,94,.12); }
.am-ic { display: grid; place-items: center; }
.am-ic svg { width: 26px; height: 26px; }
.am-lv { display: flex; gap: 4px; }
.am-lv i { width: 14px; height: 4px; border-radius: 2px; background: rgba(20,48,74,.16); }
.am-lv i.on { background: var(--gold); }
.am-decl {
  display: block; text-align: center; margin: 18px 0 4px;
  font-size: .86rem; color: var(--navy); text-decoration: underline; text-underline-offset: 3px;
}
.am-reset {
  flex-shrink: 0; margin: 0 14px calc(14px + env(safe-area-inset-bottom));
  padding: 14px; border: 0; border-radius: 10px;
  background: var(--gold); color: var(--navy-deep);
  font-family: var(--font); font-weight: 700; font-size: .95rem; cursor: pointer;
}
.am-reset:hover { filter: brightness(1.06); }

/* ---- feature classes, set on <html> ---- */
html.a11y-contrast { filter: invert(1) hue-rotate(180deg); background: #fff; }
html.a11y-contrast img, html.a11y-contrast video { filter: invert(1) hue-rotate(180deg); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-readable body, html.a11y-readable body * { font-family: Arial, "Heebo", sans-serif !important; }
html.a11y-ls1 body p, html.a11y-ls1 body li, html.a11y-ls1 body a, html.a11y-ls1 body span,
html.a11y-ls1 body h1, html.a11y-ls1 body h2, html.a11y-ls1 body h3 { letter-spacing: .08em !important; }
html.a11y-ls2 body p, html.a11y-ls2 body li, html.a11y-ls2 body a, html.a11y-ls2 body span,
html.a11y-ls2 body h1, html.a11y-ls2 body h2, html.a11y-ls2 body h3 { letter-spacing: .16em !important; }
html.a11y-lh1 body p, html.a11y-lh1 body li { line-height: 2 !important; }
html.a11y-lh2 body p, html.a11y-lh2 body li { line-height: 2.5 !important; }
html.a11y-al1 body p, html.a11y-al1 body li,
html.a11y-al1 body h1, html.a11y-al1 body h2, html.a11y-al1 body h3 { text-align: right !important; }
html.a11y-al2 body p, html.a11y-al2 body li,
html.a11y-al2 body h1, html.a11y-al2 body h2, html.a11y-al2 body h3 { text-align: center !important; }
html.a11y-al3 body p, html.a11y-al3 body li { text-align: justify !important; }
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'><path fill='black' stroke='white' stroke-width='1.4' d='M5.5 3.2v16.2l4.3-4.1 2.6 5.8 2.7-1.2-2.6-5.7 6-.6z'/></svg>") 6 4, auto !important;
}
html.a11y-focus :focus { outline: 4px solid #FF8C00 !important; outline-offset: 3px !important; border-radius: 4px; }
html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after { animation: none !important; transition: none !important; }
html.a11y-tts body p, html.a11y-tts body h1, html.a11y-tts body h2, html.a11y-tts body h3, html.a11y-tts body li { cursor: pointer; }

/* ---- live overlays ---- */
.a11y-tip {
  position: fixed; z-index: 980; display: none; max-width: min(80vw, 460px);
  background: var(--navy-deep); color: #fff;
  font-size: 1.25rem; font-weight: 600; line-height: 1.5;
  padding: 12px 16px; border-radius: 12px;
  box-shadow: 0 18px 44px -12px rgba(0,0,0,.55);
  pointer-events: none; white-space: pre-wrap;
}
.a11y-mask { position: fixed; inset-inline: 0; z-index: 930; background: rgba(13,36,56,.62); pointer-events: none; }
.a11y-mask--top { top: 0; height: 0; }
.a11y-mask--bot { bottom: 0; top: 100%; }
.a11y-hl { outline: 3px solid var(--gold) !important; outline-offset: 3px; background: rgba(201,162,94,.16) !important; border-radius: 4px; }

/* ---- floating WhatsApp ---- */
.wa-fab {
  position: fixed; inset-block-end: calc(20px + env(safe-area-inset-bottom)); inset-inline-start: 20px;
  z-index: 940; width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.65), 0 4px 12px rgba(0,0,0,.2);
  transition: transform .2s ease;
}
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab__tip {
  position: absolute; inset-inline-start: calc(100% + 12px); white-space: nowrap;
  background: var(--navy); color: var(--off-white); font-size: .82rem; font-weight: 500;
  padding: 8px 14px; border-radius: 99px; opacity: 0; pointer-events: none;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.wa-fab:hover .wa-fab__tip { opacity: 1; transform: none; }

/* ---- cookie banner ---- */
.cookie-bar {
  position: fixed; inset-inline: 16px; inset-block-end: calc(16px + env(safe-area-inset-bottom));
  z-index: 970; max-width: 780px; margin-inline: auto;
  background: var(--navy); color: var(--off-white);
  border: 1px solid rgba(201,162,94,.4); border-radius: 14px;
  padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.6);
  animation: ckIn .4s cubic-bezier(.16,1,.3,1);
}
@keyframes ckIn { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
.cookie-bar p { flex: 1 1 320px; font-size: .9rem; line-height: 1.6; margin: 0; }
.cookie-bar a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar .btn { padding: 11px 22px; font-size: .92rem; }
.ck-decline {
  padding: 11px 22px; border-radius: 99px; font-size: .92rem; font-weight: 700;
  border: 1px solid rgba(248,246,241,.45); color: var(--off-white); background: transparent; cursor: pointer;
  font-family: var(--font);
  transition: background .25s, border-color .25s;
}
.ck-decline:hover { background: rgba(248,246,241,.12); border-color: var(--off-white); }

@media (max-width: 767px) {
  .a11y, .wa-fab { inset-block-end: calc(16px + env(safe-area-inset-bottom)); }
  .a11y-btn, .wa-fab { width: 50px; height: 50px; }
  .wa-fab__tip { display: none; }
  .cookie-bar { padding: 16px; gap: 12px; }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__actions > * { flex: 1; text-align: center; justify-content: center; }
}

/* legal pages share the site shell */
.legal { max-width: 820px; margin-inline: auto; padding: 120px 20px 80px; }
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; color: var(--navy); margin-block-end: 8px; }
.legal .legal__meta { color: var(--text-soft); font-size: .9rem; margin-block-end: 28px; }
.legal h2 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-block: 30px 10px; }
.legal h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-block: 18px 6px; }
.legal p, .legal li { color: var(--text-soft); line-height: 1.85; }
.legal ul, .legal ol { padding-inline-start: 22px; margin-block: 8px 14px; }
.legal li { margin-block-end: 6px; }
.legal a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold); }
.legal__back { display: inline-block; margin-block-end: 26px; font-weight: 700; color: var(--navy); text-decoration: none; }
.legal__back:hover { color: var(--gold); }
.legal__box {
  background: #fff; border: 1px solid rgba(201,162,94,.45); border-radius: 14px;
  padding: 20px 22px; margin-block: 20px;
}
.legal__box p:last-child { margin-block-end: 0; }
