/* Hebrew-only presentation. Loaded by generated /he/ documents only. */
@font-face {
  font-family: 'DeepY Hebrew';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/deepy-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

html[lang="he"] {
  direction: rtl;
  --font-he: 'DeepY Hebrew', 'Manrope', Arial, sans-serif;
  --font-display-he: 'DeepY Hebrew', 'Sora', sans-serif;
  --font: var(--font-he);
  --font-display: var(--font-display-he);
  font-synthesis: none;
  text-align: start;
}

html[lang="he"] body {
  direction: rtl;
  text-align: start;
  font-family: var(--font-he);
  line-height: 1.75;
}

html[lang="he"] :is(input, textarea, select, button) { font-family: inherit; }
html[lang="he"] :is(input[type="email"], input[type="url"], input[type="tel"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="number"], [dir="ltr"], code, pre) {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
html[lang="he"] :is(bdi, [dir="ltr"]) { unicode-bidi: isolate; }

/* Keep centered brand moments centered while reading blocks begin at inline-start. */
html[lang="he"] :is(.page-hero, .hero, .section-heading, .section-sub, .page-hero__inner, .page-hero__actions, .page-hero__metrics, .page-hero__metrics--tiered, .page-hero__supporting, .testimonial-header, .cases__header) {
  text-align: center;
}
html[lang="he"] :is(.article-body, .blog-body, .case-body, .case-content, .article-toc, .faq__a, .form-group label, .form-field-error, .form-hint, .footer__column) {
  text-align: start;
}

/* Header and galleries: RTL flex order follows the rendered Hebrew reading direction. */
html[lang="he"] .nav {
  inset-inline: 0;
  padding-inline: clamp(16px, 4vw, 60px);
}
html[lang="he"] .nav__mega { inset-inline: 0; }
html[lang="he"] .nav__links { direction: rtl; }
html[lang="he"] .nav__cta { direction: rtl; }
html[lang="he"] .nav__mobile { inset-inline: 0; text-align: start; }
html[lang="he"] .nav__mobile ul { align-items: stretch; }
html[lang="he"] .nav__mobile-cta { text-align: center; }
html[lang="he"] .nav__mega__nav-arrow--prev { left: auto; right: 8px; inset-inline-start: 8px; inset-inline-end: auto; }
html[lang="he"] .nav__mega__nav-arrow--next { left: 8px; right: auto; inset-inline-end: 8px; inset-inline-start: auto; }
html[lang="he"] .nav__mega__nav-arrow--prev svg { transform: rotate(180deg); }
html[lang="he"] .nav__mega__nav-arrow--next svg { transform: none; }
html[lang="he"] .testi-arrow--prev { left: auto; right: 64px; inset-inline-start: 64px; inset-inline-end: auto; }
html[lang="he"] .testi-arrow--next { left: 12px; right: auto; inset-inline-end: 12px; inset-inline-start: auto; }
html[lang="he"] .testi-arrow--prev svg,
html[lang="he"] .testi-arrow--next svg { transform: scaleX(-1); }

/* Reading lists and forms use logical gutters; email and machine values stay LTR. */
html[lang="he"] .article-toc ol { padding-inline-start: 20px; padding-left: 0; }
html[lang="he"] .form-group select {
  background-position: left 12px center;
  padding-inline-start: 16px;
  padding-inline-end: 36px;
  text-align: start;
}
html[lang="he"] .form-group :is(input, textarea, select) { direction: rtl; text-align: start; }
html[lang="he"] .form-group :is(input[type="email"], input[type="url"], input[type="tel"], input[type="date"], input[type="time"], input[type="datetime-local"]) {
  direction: ltr;
  text-align: left;
}
/* Keep anti-spam fields clipped inside the RTL scrollport; their inline
   physical left:-9999px otherwise expands the page's scrollable width. */
html[lang="he"] :is(#ib-honeypot, #booking-website, #ct-website) {
  left: auto !important;
  inset-inline-start: 0 !important;
  clip-path: inset(50%);
}
/* Long proof labels may wrap in Hebrew on narrow screens. */
html[lang="he"] .svc-proof-stat { min-inline-size: 0; white-space: normal; }
/* The base flex gap supplies the marker-to-copy separation in every locale. */
html[lang="he"] .case-stat { border-right: 0; border-inline-start: 1px solid var(--border); }
html[lang="he"] .case-stat:first-child { padding-inline-start: 0; padding-left: 0; }
html[lang="he"] .case-stat:last-child { border-inline-start: 0; padding-inline-end: 0; padding-right: 0; }

/* SVGs keep their source coordinate system and chart axes. Only the source-bound
   narrative sequence variants are regenerated with RTL geometry in the catalog. */
html[lang="he"] svg.diagram-desktop,
html[lang="he"] svg.diagram-mobile { direction: rtl; }

@media (max-width: 932px) and (max-height: 500px), (max-width: 932px) {
  html[lang="he"] .nav { padding-inline: 16px; }
  html[lang="he"] .nav__mobile-enhanced { text-align: start; }
}

/* Prevent the home comparison's automatic grid minimum from widening the
   195px RTL page; keep one footer track below its two-column fit. */
@media (max-width: 220px) {
  html[lang="he"] .revolution__grid { grid-template-columns: minmax(0, 1fr); }
  html[lang="he"] body .footer__inner { grid-template-columns: minmax(0, 1fr); }
}
