/* ============================================================
   I18N — language toggle button, Hebrew font, RTL overrides.
   Loaded last so its [dir="rtl"] / [lang="he"] rules win.
   ============================================================ */

/* ─── Language toggle button ─── */
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 14px; min-width: 56px;
  background: transparent; color: var(--white);
  border: 1px solid rgba(245,200,0,0.4); cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

/* ─── Hebrew typography (Barlow has no Hebrew glyphs → use Heebo) ─── */
html[lang="he"] body,
html[lang="he"] .hero-sub,
html[lang="he"] .program-desc,
html[lang="he"] .feature-text,
html[lang="he"] .footer-brand p,
html[lang="he"] .schedule-table td {
  font-family: 'Heebo', sans-serif;
}
html[lang="he"] .hero-title,
html[lang="he"] .section-title,
html[lang="he"] .program-title,
html[lang="he"] .nav-logo span,
html[lang="he"] .cta-band h2,
html[lang="he"] .footer-name,
html[lang="he"] .about-badge-num,
html[lang="he"] .stat-num,
html[lang="he"] .cta-band::before {
  font-family: 'Heebo', sans-serif;
  font-weight: 900;
}
html[lang="he"] .section-label,
html[lang="he"] .hero-tag,
html[lang="he"] .nav-links a,
html[lang="he"] .nav-cta,
html[lang="he"] .btn-primary,
html[lang="he"] .btn-secondary,
html[lang="he"] .btn-dark,
html[lang="he"] .lang-toggle,
html[lang="he"] .schedule-table th,
html[lang="he"] .footer-col h4,
html[lang="he"] .program-tag,
html[lang="he"] .level-badge,
html[lang="he"] .stat-label,
html[lang="he"] .feature-title {
  font-family: 'Heebo', sans-serif;
  letter-spacing: normal; /* Hebrew shouldn't be letter-spaced */
}

/* ─── RTL layout fixes ─── */
[dir="rtl"] .feature-item { border-left: none; border-right: 2px solid var(--yellow); }
[dir="rtl"] .schedule-table th,
[dir="rtl"] .schedule-table td { text-align: right; }
[dir="rtl"] .program-num { right: auto; left: 24px; }

/* About panel corner brackets mirror horizontally */
[dir="rtl"] .about-visual::after {
  right: auto; left: -2px;
  border-right: none; border-left: 3px solid var(--yellow);
}
[dir="rtl"] .about-visual::before {
  left: auto; right: -2px;
  border-left: none; border-right: 3px solid var(--yellow);
}
[dir="rtl"] .about-badge { right: auto; left: -20px; }

/* Keep the marquee strip flowing left-to-right regardless of language */
[dir="rtl"] .strip-inner { direction: ltr; }

/* Phone/email stay LTR so digits read correctly inside an RTL list */
[dir="rtl"] .footer-col li { direction: rtl; }

/* tel inputs default to LTR — keep the phone placeholder right-aligned in Hebrew */
[dir="rtl"] .contact-form input[type="tel"] { direction: rtl; text-align: right; }
