/* ============================================================
   SyncareXR — HEBREW / RTL OVERRIDES
   Loaded AFTER ../style.css. Only contains direction-aware and
   Hebrew-typography adjustments; all colours, spacing, and
   component structure are inherited from the base stylesheet.
   ============================================================ */

/* ------------------------------------------------------------
   TYPOGRAPHY — Hebrew web font
   ------------------------------------------------------------ */
:root {
  --font: 'Assistant', 'Segoe UI', 'Arial Hebrew', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  line-height: 1.75;           /* Hebrew reads better with a touch more leading */
  text-align: right;
}

/* Hebrew has no case and no ligature tracking — negative and wide
   letter-spacing that flatters Latin looks broken in Hebrew. */
.section-title,
.hero-subtitle,
.step-body h3,
.modality-card h3,
.audience-card h3,
.feature-card h3,
.track-content h3,
.demo-form h3,
.footer-tagline {
  letter-spacing: normal;
}

/* Uppercase does nothing in Hebrew; the tracking just adds gaps. */
.section-tag,
.hero-tag,
.track-badge,
.contact-label,
.footer-contact h4,
.footer-nav h4 {
  text-transform: none;
  letter-spacing: 0;
}

/* The wordmark stays Latin — keep its original tight tracking.
   Isolate (rather than direction:ltr) so the Latin run reads correctly
   while the block itself stays right-aligned with the rest of the page. */
.nav-logo,
.footer-logo,
.hero-title {
  unicode-bidi: isolate;
}
.nav-logo   { letter-spacing: -0.02em; }
.footer-logo{ letter-spacing: -0.02em; text-align: right; }
.hero-title { letter-spacing: -0.03em; text-align: right; }

/* Step numerals sit in the right-hand column in RTL */
.step-number {
  unicode-bidi: isolate;
  text-align: right;
}

/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
.nav-links .btn {
  margin-left: 0;
  margin-right: 8px;
}

/* ------------------------------------------------------------
   HERO — mirror the photo to the left edge and flip its fade
   ------------------------------------------------------------ */
.hero-image {
  right: auto;
  left: 0;
}
.hero-image img {
  mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.8) 40%, black 100%);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.8) 40%, black 100%);
}

/* Mirror the ambient light so it still sits behind the photo */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 40% 40%, rgba(29,111,164,.28) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(18,48,92,.6) 0%, transparent 60%),
    linear-gradient(225deg, var(--navy) 0%, var(--navy-mid) 50%, #0b1e40 100%);
}

.hero-scroll-hint {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* ------------------------------------------------------------
   HOW IT WORKS — the connector must hang under the number column,
   which is now on the right.
   ------------------------------------------------------------ */
.step-connector {
  margin-left: 0;
  margin-right: 31px;
}

/* ------------------------------------------------------------
   CLINICAL RATIONALE
   ------------------------------------------------------------ */
.rationale-note {
  border-left: 0;
  border-right: 3px solid var(--blue);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.pillar {
  background: linear-gradient(270deg, var(--blue-pale) 0%, rgba(232,244,251,.4) 100%);
}
.pillar:hover {
  background: linear-gradient(270deg, rgba(29,111,164,.12) 0%, var(--blue-pale) 100%);
}

/* ------------------------------------------------------------
   DEMO — the list bullet arrow must point with the text
   ------------------------------------------------------------ */
.demo-list li::before {
  content: '←';
}

.demo {
  background: linear-gradient(225deg, var(--navy) 0%, var(--navy-light) 100%);
}

/* ------------------------------------------------------------
   FORM
   ------------------------------------------------------------ */
.form-group input,
.form-group textarea {
  text-align: right;
}

/* Email is inherently LTR content: type left-to-right, but keep the
   field visually aligned to the RTL start edge. */
.field-ltr {
  direction: ltr;
  text-align: right;
}
.field-ltr::placeholder {
  text-align: right;
}

.form-success,
.footer-bottom p {
  text-align: center;
}

/* ------------------------------------------------------------
   FOOTER — Latin contact values stay LTR inside RTL blocks
   ------------------------------------------------------------ */
.contact-item a[dir="ltr"],
.contact-item span[dir="ltr"] {
  unicode-bidi: isolate;
  text-align: right;
}

/* ------------------------------------------------------------
   MOBILE NAV — the drawer opens from the right in RTL
   ------------------------------------------------------------ */
@media (max-width: 1000px) {
  .nav-links {
    align-items: flex-start;   /* = right edge in RTL */
  }
  .nav-links .btn {
    margin-right: 0;
  }
}

/* The number column narrows to 48px on phones — the connector follows. */
@media (max-width: 768px) {
  .step-connector {
    margin-left: 0;
    margin-right: 23px;
  }
}
