/* HE_RTL_ADAPTATION_LAYER_2026-05-30 */

/* Hebrew page: dedicated RTL layer only.
   Shared Model A CSS remains untouched. */

html[lang="he"][dir="rtl"],
html[lang="he"][dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

/* Preserve intentional centered elements */
html[lang="he"][dir="rtl"] .topbar,
html[lang="he"][dir="rtl"] .topbar-inner,
html[lang="he"][dir="rtl"] .actions,
html[lang="he"][dir="rtl"] .hero-language-links,
html[lang="he"][dir="rtl"] .compact-language-links {
  text-align: center;
}

/* Header and navigation follow Hebrew reading direction */
html[lang="he"][dir="rtl"] .nav,
html[lang="he"][dir="rtl"] .nav-links,
html[lang="he"][dir="rtl"] .nav-inner,
html[lang="he"][dir="rtl"] .header-inner,
html[lang="he"][dir="rtl"] .site-header-inner {
  direction: rtl;
}

/* Brand remains visually correct because the office name is in English */
html[lang="he"][dir="rtl"] .brand,
html[lang="he"][dir="rtl"] .brand-name {
  direction: ltr;
  text-align: left;
}

/* Keep language codes in their familiar order */
html[lang="he"][dir="rtl"] .lang-switch,
html[lang="he"][dir="rtl"] .nav-lang-switch,
html[lang="he"][dir="rtl"] .hero-language-links,
html[lang="he"][dir="rtl"] .compact-language-links {
  direction: ltr;
}

/* Right-align Hebrew content blocks */
html[lang="he"][dir="rtl"] .hero-copy,
html[lang="he"][dir="rtl"] .hero-card,
html[lang="he"][dir="rtl"] .section-title,
html[lang="he"][dir="rtl"] .text-block,
html[lang="he"][dir="rtl"] .service,
html[lang="he"][dir="rtl"] .panel,
html[lang="he"][dir="rtl"] .contact-card,
html[lang="he"][dir="rtl"] .contact-inner,
html[lang="he"][dir="rtl"] .foot {
  text-align: right;
}

/* Mirror gold list markers inside dark panels */
html[lang="he"][dir="rtl"] .panel li,
html[lang="he"][dir="rtl"] .contact-card li,
html[lang="he"][dir="rtl"] .contact-inner li {
  border-left: 0;
  border-right: 2px solid var(--gold);
  padding-left: 0;
  padding-right: 14px;
}

/* Email addresses and Latin fragments must remain readable */
html[lang="he"][dir="rtl"] a[href^="mailto:"],
html[lang="he"][dir="rtl"] .brand-person,
html[lang="he"][dir="rtl"] .brand-office {
  direction: ltr;
  unicode-bidi: embed;
}

/* Mirror floating desktop CTA for the RTL version */
html[lang="he"][dir="rtl"] .floating-cta {
  right: auto;
  left: 24px;
}

/* Mobile header: keep the menu button vertically centered */
@media (max-width: 860px) {
  html[lang="he"][dir="rtl"] .menu-toggle {
    align-self: center;
    margin-top: 0;
    margin-bottom: 0;
  }

  html[lang="he"][dir="rtl"] .floating-cta {
    left: 16px;
    right: auto;
  }
}


/* HE_TYPOGRAPHY_POLISH_2026-05-30 */

/* Hebrew page: modern, readable legal-office typography */
html[lang="he"][dir="rtl"] body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Arial Hebrew",
    Arial,
    "Helvetica Neue",
    sans-serif;
  line-height: 1.7;
}

/* Clean Hebrew headings: dignified but not ornamental */
html[lang="he"][dir="rtl"] h1,
html[lang="he"][dir="rtl"] h2,
html[lang="he"][dir="rtl"] h3,
html[lang="he"][dir="rtl"] .section-title h2,
html[lang="he"][dir="rtl"] .hero-copy h1,
html[lang="he"][dir="rtl"] .panel h2,
html[lang="he"][dir="rtl"] .text-block h2,
html[lang="he"][dir="rtl"] .service h3 {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Arial Hebrew",
    Arial,
    "Helvetica Neue",
    sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.22;
}

/* Improve paragraph rhythm */
html[lang="he"][dir="rtl"] p,
html[lang="he"][dir="rtl"] li,
html[lang="he"][dir="rtl"] .item,
html[lang="he"][dir="rtl"] .lead,
html[lang="he"][dir="rtl"] .service p,
html[lang="he"][dir="rtl"] .text-block p,
html[lang="he"][dir="rtl"] .panel p {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Arial Hebrew",
    Arial,
    "Helvetica Neue",
    sans-serif;
  line-height: 1.72;
}

/* Hero headline: retain authority without excessive weight */
html[lang="he"][dir="rtl"] .hero-copy h1 {
  font-size: clamp(2.6rem, 4.5vw, 4.7rem);
  font-weight: 700;
  line-height: 1.08;
}

/* Card headings and text: easier scanning */
html[lang="he"][dir="rtl"] .service h3,
html[lang="he"][dir="rtl"] .panel h2,
html[lang="he"][dir="rtl"] .text-block h2 {
  line-height: 1.18;
}

html[lang="he"][dir="rtl"] .service p,
html[lang="he"][dir="rtl"] .panel p,
html[lang="he"][dir="rtl"] .text-block p {
  line-height: 1.7;
}

/* Preserve English brand typography */
html[lang="he"][dir="rtl"] .brand-person,
html[lang="he"][dir="rtl"] .brand-office {
  font-family: Arial, sans-serif;
}

/* Mobile: slightly calmer headline scale */
@media (max-width: 860px) {
  html[lang="he"][dir="rtl"] .hero-copy h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.08;
  }

  html[lang="he"][dir="rtl"] p,
  html[lang="he"][dir="rtl"] li,
  html[lang="he"][dir="rtl"] .item {
    line-height: 1.68;
  }
}


/* HE_TYPOGRAPHY_SOFT_REFINEMENT_2026-05-30 */

/* Soften Hebrew typography: modern, legal, less aggressive */
html[lang="he"][dir="rtl"] body {
  font-family:
    "Helvetica Neue",
    Arial,
    "Arial Hebrew",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-weight: 400;
}

/* Main hero: less massive, more elegant */
html[lang="he"][dir="rtl"] .hero-copy h1 {
  font-size: clamp(2.35rem, 4.05vw, 4.15rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

/* Section headings: reduce heaviness */
html[lang="he"][dir="rtl"] .section-title h2,
html[lang="he"][dir="rtl"] section h2,
html[lang="he"][dir="rtl"] .panel h2,
html[lang="he"][dir="rtl"] .text-block h2 {
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Card headings: professional but calmer */
html[lang="he"][dir="rtl"] .service h3,
html[lang="he"][dir="rtl"] .hero-card h3 {
  font-weight: 650;
  line-height: 1.28;
}

/* Body text: improve reading comfort */
html[lang="he"][dir="rtl"] p,
html[lang="he"][dir="rtl"] li,
html[lang="he"][dir="rtl"] .item,
html[lang="he"][dir="rtl"] .lead {
  font-weight: 400;
  line-height: 1.74;
}

/* Dark cards: keep authority, avoid over-black visual mass */
html[lang="he"][dir="rtl"] .panel h2,
html[lang="he"][dir="rtl"] .panel p,
html[lang="he"][dir="rtl"] .panel .item,
html[lang="he"][dir="rtl"] .contact-card,
html[lang="he"][dir="rtl"] .contact-inner {
  font-weight: 400;
}

html[lang="he"][dir="rtl"] .panel h2,
html[lang="he"][dir="rtl"] .contact-card h3,
html[lang="he"][dir="rtl"] .contact-inner h3 {
  font-weight: 650;
}

/* Mobile: prevent over-large Hebrew headlines */
@media (max-width: 860px) {
  html[lang="he"][dir="rtl"] .hero-copy h1 {
    font-size: clamp(1.85rem, 7.2vw, 2.65rem);
    font-weight: 650;
    line-height: 1.14;
  }

  html[lang="he"][dir="rtl"] .section-title h2,
  html[lang="he"][dir="rtl"] section h2 {
    font-weight: 620;
    line-height: 1.24;
  }
}
