/*
 * Accessibility widget (original component, UX inspired by Ally).
 * Part 1: the floating button + panel, styled in fixed px and own colors so no display mode can break it.
 * Part 2: the display modes. Each mode is one class on <html> (set by assets/js/a11y-widget.js and the
 * early inline script in <head>); colors change through the site's CSS variables, never by inverting the page.
 */

/* ============ Part 1: widget ============ */
.ax-root {
  --ax-brand: #33706a;
  --ax-brand-dark: #245650;
  --ax-ink: #1f1f1f;
  --ax-muted: #555555;
  --ax-line: #e2e0da;
  --ax-soft: #f5f4f0;
  --ax-active: #e6f1ef;
  --ax-gap: 24px;
  font-family: "Noto Sans Hebrew", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: normal;
  word-spacing: normal;
  text-align: right;
  direction: rtl;
}
.ax-root *, .ax-root *::before, .ax-root *::after { box-sizing: border-box; }

.ax-fab {
  position: fixed;
  z-index: 2147482000;
  left: var(--ax-gap);
  bottom: calc(var(--ax-gap) + var(--cc-offset, 0px));
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ax-brand);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18), 0 10px 24px -8px rgba(36, 86, 80, .55);
  cursor: pointer;
  transition: bottom .3s ease, transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  animation: ax-in .35s ease-out both;
}
.ax-fab:hover { background: var(--ax-brand-dark); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, .2), 0 14px 28px -8px rgba(36, 86, 80, .6); }
.ax-fab:focus-visible { outline: 3px solid #111; outline-offset: 3px; box-shadow: 0 0 0 7px #fff, 0 10px 24px -8px rgba(36, 86, 80, .55); }
.ax-fab svg { width: 30px; height: 30px; }

.ax-panel {
  position: fixed;
  z-index: 2147482001;
  left: var(--ax-gap);
  bottom: calc(var(--ax-gap) + 52px + 12px + var(--cc-offset, 0px));
  width: min(380px, calc(100vw - 2 * var(--ax-gap)));
  max-height: min(calc(100vh - 120px), calc(100vh - 100px - var(--cc-offset, 0px)));
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ax-ink);
  border: 1px solid var(--ax-line);
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06), 0 28px 60px -12px rgba(0, 0, 0, .28);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  visibility: hidden;
}
.ax-panel.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .18s ease, transform .18s ease; }

.ax-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--ax-line); }
.ax-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--ax-ink); }
.ax-title:focus { outline: none; }
.ax-title:focus-visible { outline: 3px solid var(--ax-brand); outline-offset: 3px; border-radius: 4px; }
.ax-sub { margin: 4px 0 0; font-size: 14px; color: var(--ax-muted); }
.ax-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -8px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--ax-ink); cursor: pointer; }
.ax-close:hover { background: var(--ax-soft); }
.ax-close:focus-visible { outline: 3px solid var(--ax-brand); outline-offset: 1px; }
.ax-close svg { width: 22px; height: 22px; }

.ax-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 20px 16px; }
.ax-group { margin-top: 14px; }
.ax-group-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ax-muted); letter-spacing: .02em; }
.ax-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }

.ax-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 92px;
  padding: 12px 12px 10px;
  border: 1.5px solid var(--ax-line);
  border-radius: 14px;
  background: var(--ax-soft);
  color: var(--ax-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.ax-tile:hover { border-color: #bdb9af; background: #efeee9; }
.ax-tile:focus-visible { outline: 3px solid var(--ax-brand); outline-offset: 2px; }
.ax-tile[aria-pressed="true"] { border-color: var(--ax-brand); background: var(--ax-active); }
.ax-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--ax-ink); }
.ax-tile[aria-pressed="true"] .ax-ico { background: var(--ax-brand); color: #fff; }
.ax-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ax-label { line-height: 1.25; }
.ax-state { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--ax-muted); }
.ax-tile[aria-pressed="true"] .ax-state { color: #1f4f49; }
/* Checkmark: active state is not shown by color alone */
.ax-check { position: absolute; top: 10px; left: 10px; display: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ax-brand); color: #fff; }
.ax-check svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ax-tile[aria-pressed="true"] .ax-check { display: grid; }
/* Step dots for multi-level options */
.ax-steps { display: flex; gap: 4px; margin-top: auto; }
.ax-steps i { width: 16px; height: 4px; border-radius: 2px; background: #cfccc4; }
.ax-steps i.on { background: var(--ax-brand); }

.ax-foot { flex: none; display: grid; gap: 8px; padding: 14px 20px 16px; border-top: 1px solid var(--ax-line); background: #fff; }
.ax-reset { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: 100%; border: 0; border-radius: 999px; background: var(--ax-ink); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.ax-reset:hover { background: #000; }
.ax-reset:focus-visible { outline: 3px solid var(--ax-brand); outline-offset: 3px; }
.ax-reset svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ax-statement { display: inline-block; justify-self: center; padding: 6px 4px; color: var(--ax-brand-dark); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ax-statement:focus-visible { outline: 3px solid var(--ax-brand); outline-offset: 2px; border-radius: 4px; }
.ax-note { margin: 0; font-size: 12px; color: var(--ax-muted); text-align: center; }
.ax-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes ax-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .ax-root { --ax-gap: 16px; }
  /* Bottom sheet */
  .ax-panel {
    left: 8px;
    right: 8px;
    bottom: calc(8px + var(--cc-offset, 0px));
    width: auto;
    max-height: min(85vh, calc(100vh - 24px - var(--cc-offset, 0px)));
    border-radius: 20px;
  }
}
/* Large cursor makes no sense on touch screens */
@media (hover: none), (pointer: coarse) { .ax-tile[data-key="largeCursor"] { display: none; } }
@media (prefers-reduced-motion: reduce) { .ax-fab, .ax-panel { animation: none; transition: none; } }

/* ============ Part 2: display modes ============ */

/* Text size: rem-based layout scales with the root size; three fixed levels only */
html.a11y-text-125 { font-size: 125%; }
html.a11y-text-150 { font-size: 150%; }
/* Keep the header usable when text is large: switch to the mobile menu earlier */
@media (min-width: 961px) and (max-width: 1500px) {
  html.a11y-text-150 .nav-toggle { display: block; }
  html.a11y-text-150 .header-inner { display: flex; }
  html.a11y-text-150 .main-nav { position: fixed; inset: 70px 0 auto 0; display: flex; flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1.5rem var(--gutter) 2.5rem; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; }
  html.a11y-text-150 .main-nav.is-open { opacity: 1; visibility: visible; }
  html.a11y-text-150 .main-nav ul { flex-direction: column; gap: 1rem; }
}

/* Line height / letter spacing: text elements only, never the widget */
html.a11y-lh-md :is(p, li, a, span, label, td, th, blockquote, summary, dd, dt, h1, h2, h3, h4, h5, h6, figcaption, cite, strong, em):not(.ax-root *) { line-height: 1.9; }
html.a11y-lh-lg :is(p, li, a, span, label, td, th, blockquote, summary, dd, dt, h1, h2, h3, h4, h5, h6, figcaption, cite, strong, em):not(.ax-root *) { line-height: 2.3; }
html.a11y-ls-md body :not(.ax-root, .ax-root *, svg, svg *) { letter-spacing: .06em; word-spacing: .12em; }
html.a11y-ls-lg body :not(.ax-root, .ax-root *, svg, svg *) { letter-spacing: .12em; word-spacing: .24em; }

/* Text alignment: running text only (not navigation, tables, buttons or icons) */
html.a11y-align-right :is(main, .site-footer) :is(p, h1, h2, h3, h4, li, blockquote, dt, dd, figcaption, .section-lead):not(nav *, table *, .btn, .ico) { text-align: right; }
html.a11y-align-center :is(main, .site-footer) :is(p, h1, h2, h3, h4, li, blockquote, dt, dd, figcaption, .section-lead):not(nav *, table *, .btn, .ico) { text-align: center; }
html.a11y-align-left :is(main, .site-footer) :is(p, h1, h2, h3, h4, li, blockquote, dt, dd, figcaption, .section-lead):not(nav *, table *, .btn, .ico) { text-align: left; }

/* Readable font: the whole site reads --font; icons are SVG so they are unaffected */
html.a11y-font { --font: Arial, "Helvetica Neue", Helvetica, sans-serif; }

/* High contrast (light): black text, white surfaces, strong borders */
html.a11y-contrast {
  --ink: #000; --ink-soft: #000; --muted: #1a1a1a; --bg: #fff; --surface: #fff; --grey: #fff;
  --line: #000; --green: #00574e; --green-ink: #00463f; --green-tint: #e3f0ed; --focus: #000;
}
html.a11y-contrast :is(.card, .tile, .logos-grid li, .contact-form, .faq details, .steps li, .hero-art, .band > .container, .media-img, .table-wrap) { box-shadow: inset 0 0 0 2px #000; }
html.a11y-contrast .section-alt { border-block: 2px solid #000; }
html.a11y-contrast :is(.field input, .field select, .field textarea) { border: 2px solid #000; }
html.a11y-contrast .tile-cta, html.a11y-contrast .tile-cta :is(strong, span) { color: #fff; }
html.a11y-contrast .tile-text span { color: #1a1a1a; }
html.a11y-contrast .site-header { background: #fff; border-bottom: 2px solid #000; }
html.a11y-contrast main a:not(.btn, .tile) { text-decoration: underline; }

/* Inverted contrast: an accessible dark theme through the tokens. Images, logos and photos are untouched. */
html.a11y-dark {
  color-scheme: dark;
  --ink: #f5f5f5; --ink-soft: #e8e8e8; --muted: #cfcfcf; --bg: #121212; --surface: #1d1d1d; --grey: #181818;
  --line: #4d4d4d; --green: #5aa79c; --green-ink: #8fd6cb; --green-tint: #173430; --focus: #ffd400;
}
html.a11y-dark .site-header { background: rgba(18, 18, 18, .94); }
html.a11y-dark :is(.btn-primary, .skip-link) { --btn-fg: #111; color: #111; }
html.a11y-dark .btn:hover { color: #111; }
html.a11y-dark .band-dark > .container { background: #050505; color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
html.a11y-dark :is(.logo, .footer-logo) img { background: #fff; border-radius: 10px; padding: 4px 8px; box-sizing: content-box; }
html.a11y-dark .logos-grid li { background: #fff; }
html.a11y-dark .tile-text span { color: var(--muted); }
html.a11y-dark .tile-chip { color: #111; }
html.a11y-dark .hl-green { color: #0a0a0a; }
html.a11y-dark .note { color: #2d2600; }
html.a11y-dark .faq summary::after { background-color: #e8e8e8; }
html.a11y-dark :is(.card:hover .arrow-dot, .card:hover .icon) { color: #111; }
html.a11y-dark .text-link { color: var(--green-ink); }
html.a11y-dark :is(.card, .steps li, .contact-form, .faq details) { box-shadow: inset 0 0 0 1px var(--line); }

/* Grayscale: site content only, so the widget and the cookie dialogs stay in color and usable */
html.a11y-gray :is(.site-header, main, .site-footer) { filter: grayscale(1); }

/* Light background: white surfaces, dark text, visible borders between areas */
html.a11y-light { --bg: #fff; --surface: #fff; --grey: #fff; --green-tint: #fff; }
html.a11y-light :is(.card, .tile, .logos-grid li, .contact-form, .faq details, .steps li, .hero-art, .band > .container, .media-img) { box-shadow: inset 0 0 0 1px #8f8f8f; }
html.a11y-light .section-alt { border-block: 1px solid #cfcfcf; }
html.a11y-light .band-dark > .container { background: #fff; color: var(--ink); }
html.a11y-light .band-dark .section-lead { color: var(--muted); }
html.a11y-light .hl { box-shadow: inset 0 0 0 1px #8f8f8f; }
html.a11y-light .site-header { background: #fff; }

/* Highlight links: text links only (not buttons, cards or image links) */
html.a11y-links :is(.site-header, main, .site-footer) a:not(.btn, .tile, .logo, .footer-logo, .skip-link):not(:has(img)) {
  color: #111;
  background: #fff1a8;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  border-radius: 3px;
  box-shadow: 0 0 0 2px #fff1a8;
}

/* Large cursor (local SVG files) */
@media (hover: hover) and (pointer: fine) {
  html.a11y-cursor, html.a11y-cursor body { cursor: url("../img/a11y/cursor.svg") 6 3, auto; }
  html.a11y-cursor :is(a, button, summary, label, select, [role="button"], input[type="checkbox"], input[type="radio"]) { cursor: url("../img/a11y/pointer.svg") 16 5, pointer; }
}

/* Focus highlight: a strong ring on keyboard focus, on top of the existing one */
html.a11y-focus :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px #ffd400;
}

/* Stop animations. The one place with !important: it has to beat inline styles and every animated rule. */
html.a11y-motion { scroll-behavior: auto; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation-duration: .001ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}
html.a11y-motion .reveal { opacity: 1; transform: none; }
html.a11y-motion .photo-band img { --py: 0px; --ps: 1; }
html.a11y-motion .tile-rings::before, html.a11y-motion .tile-leaf img { animation: none; }
html.a11y-dark .logos-grid .logo-text { color: #3a3a3a; }

/* Two-leaf mark: light version on dark themes */
html.a11y-dark :is(.round-photo, .hero-art, .steps li, .band > .container, .review)::after,
html.a11y-dark .review::before { background-image: url(../img/leaves-light.svg); }
html.a11y-dark .tile-leaf img { content: url(../img/leaves-light.svg); }
html.a11y-motion .travel-plane { animation: none; }
html.a11y-dark .travel-panel { background: #050505; box-shadow: inset 0 0 0 1px var(--line); }
html.a11y-light .travel-panel { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #8f8f8f; }
html.a11y-light .travel-intro :is(.section-title, .section-lead, .check-list li) { color: var(--ink); }
html.a11y-light .travel-intro .check-list a { color: var(--green-ink); }
html.a11y-light .footer-travel { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #8f8f8f; }
html.a11y-light .footer-travel-title { color: var(--ink); }
html.a11y-dark .footer-travel { background: #050505; box-shadow: inset 0 0 0 1px var(--line); }
html.a11y-dark .footer-travel-title .ico { color: #050505; }
html.a11y-motion .wa-fab::before { animation: none; }
html.a11y-contrast .wa-fab { background: #000; box-shadow: 0 0 0 2px #fff; }
html:is(.a11y-dark, .a11y-light, .a11y-contrast) .wa-fab { color: #fff !important; }
html.a11y-dark .wa-fab, html.a11y-light .wa-fab { background: #0b6b60 !important; }
html.a11y-light .site-footer .footer-travel-title a { color: var(--ink); }
html.a11y-dark .article-callout { background: #050505; box-shadow: inset 0 0 0 1px var(--line); }
html.a11y-light .article-callout { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #8f8f8f; }
html:is(.a11y-dark, .a11y-light, .a11y-contrast) .share-wa { color: #fff !important; background: #0b6b60 !important; }
