/* ============================================================
   KIND VENTURES — RTL Overrides for Hebrew Pages
   Applied via <link rel="stylesheet" href="css/rtl.css"> on he pages
   ============================================================ */

/* --- Base RTL typography --- */
body.rtl {
  font-family: var(--font-hebrew);
}

body.rtl .logo-text,
body.rtl h1, body.rtl h2, body.rtl h3,
body.rtl .hero-heading,
body.rtl .section-heading,
body.rtl .venture-hero__title,
body.rtl .cta-heading,
body.rtl .pull-quote p {
  font-family: var(--font-hebrew);
  letter-spacing: 0;
}

/* --- Header layout RTL --- */
body.rtl .header-inner {
  direction: rtl;
}

body.rtl .header-lang {
  justify-self: start;
  order: -1;
}

body.rtl .logo {
  justify-self: center;
  direction: ltr; /* brand name always reads left-to-right */
}

body.rtl .logo-text {
  direction: ltr;
  unicode-bidi: embed;
  letter-spacing: 0.01em;
}

body.rtl .logo-text em {
  margin-inline-start: 0.15em;
}

body.rtl .main-nav {
  justify-self: end;
}

/* --- Nav link underline RTL --- */
body.rtl .nav-link::after {
  transform-origin: right;
}

/* --- Hero RTL --- */
body.rtl .hero-content {
  text-align: right;
}

body.rtl .hero-actions {
  justify-content: flex-end;
}

body.rtl .hero-scroll-hint {
  left: auto;
  right: var(--space-md);
}

/* --- About grid RTL --- */
body.rtl .pillar {
  border-left: none;
  border-right: 2px solid var(--cream-dark);
  grid-template-columns: 1fr 24px;
}

body.rtl .pillar:hover {
  border-color: var(--gold);
}

body.rtl .pillar-icon {
  grid-column: 2;
  grid-row: 1;
}

body.rtl .pillar-title {
  grid-column: 1;
  grid-row: 1;
}

body.rtl .pillar-text {
  grid-column: 1;
  grid-row: 2;
}

/* --- Venture card RTL --- */
body.rtl .venture-card__tags {
  justify-content: flex-end;
}

body.rtl .btn--venture {
  direction: rtl;
}

/* --- Breadcrumb RTL --- */
body.rtl .breadcrumb {
  direction: rtl;
}

/* --- Download block RTL --- */
body.rtl .download-block {
  text-align: right;
}

body.rtl .download-actions {
  flex-direction: row-reverse;
}

/* --- Explainer RTL --- */
body.rtl .explainer-grid {
  direction: rtl;
}

/* --- Contents RTL --- */
body.rtl .content-item {
  border-top-color: var(--cream-dark);
  text-align: right;
}

/* --- CTA RTL --- */
body.rtl .cta-inner {
  direction: rtl;
}

/* --- Footer RTL --- */
body.rtl .site-footer {
  direction: rtl;
}

body.rtl .footer-inner {
  direction: rtl;
  grid-template-columns: 1.5fr 1fr 1.5fr;
}

body.rtl .footer-nav {
  align-items: flex-end;
}

body.rtl .footer-bottom .container {
  direction: rtl;
}

/* --- Pull quote RTL --- */
body.rtl .pull-quote {
  direction: rtl;
}

/* --- Mobile RTL --- */
@media (max-width: 600px) {
  body.rtl .hero-actions {
    align-items: flex-end;
  }

  body.rtl .download-actions {
    flex-direction: column-reverse;
  }
}

@media (max-width: 900px) {
  body.rtl .mobile-nav {
    text-align: right;
  }
}
