/* ===== Hebrew / RTL layer for the modern design (loaded only on /he pages) ===== */
html[dir="rtl"] body, html[dir="rtl"] .ai-header, html[dir="rtl"] .ai-drawer, html[dir="rtl"] input, html[dir="rtl"] textarea, html[dir="rtl"] select, html[dir="rtl"] button {
    font-family: "Heebo", "Inter", system-ui, "Segoe UI", Arial, sans-serif;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] .ai-h2, html[dir="rtl"] .ai-cta h2, html[dir="rtl"] .ai-footer-cta h2 {
    font-family: "Heebo", "Space Grotesk", sans-serif; letter-spacing: 0 !important;
}
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .ai-eyebrow { letter-spacing: .02em; }
/* arrows point the reading direction */
html[dir="rtl"] .ai-arr, html[dir="rtl"] .ai-btn svg, html[dir="rtl"] .ai-more svg { transform: scaleX(-1); }
html[dir="rtl"] .ai-btn:hover svg, html[dir="rtl"] .ai-more:hover svg { transform: scaleX(-1) translateX(4px); }
/* header + dropdowns */
html[dir="rtl"] .ai-dropdown a:hover, html[dir="rtl"] .ai-mega a:hover { padding-left: 14px; padding-right: 18px; }
html[dir="rtl"] .ai-dropdown { text-align: right; }
html[dir="rtl"] .ai-dropdown-wide { min-width: 280px; }
html[dir="rtl"] .ai-drawer, html[dir="rtl"] .ai-drawer summary { text-align: right; }
/* decorative positions mirrored */
html[dir="rtl"] .ai-blob.b1 { left: auto; right: -120px; }
html[dir="rtl"] .ai-ind-card::after { transform-origin: right; }
html[dir="rtl"] .ai-ind-list li { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .ai-ind-list li::before { left: auto; right: 2px; }
html[dir="rtl"] .ai-plan-badge { left: auto; right: 30px; }
html[dir="rtl"] .ai-crumbs { direction: rtl; }
/* forms */
html[dir="rtl"] .form-control { text-align: right; }
html[dir="rtl"] .form-control[dir="ltr"] { text-align: left; }
html[dir="rtl"] .form-control[dir="ltr"]::placeholder { text-align: right; direction: rtl; }
html[dir="rtl"] select.form-control { background-position: left 16px center; padding-left: 40px; padding-right: 16px; }
/* footer */
html[dir="rtl"] .ai-footer-grid, html[dir="rtl"] .ai-footer-bottom { text-align: right; }
html[dir="rtl"] .ai-contact-line { text-align: right; }
/* floating buttons stay bottom-right (owner request); keep the back-to-top above */

/* Hebrew-only components */
.ai-he-tech { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; color: var(--ai-muted); }
.ai-he-tech b { color: #fff; margin-left: 6px; }
.ai-he-tech span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ai-border); color: var(--ai-text); font-size: 13.5px; }
.ai-he-hire { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ai-he-hire ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ai-he-hire a { color: var(--ai-text) !important; text-decoration: none; display: block; text-align: right; }
.ai-he-hire a:hover { color: var(--ai-cyan) !important; }
.ai-he-contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.ai-he-office { grid-template-columns: 1fr !important; }
@media (max-width: 991px) { .ai-he-contact { grid-template-columns: 1fr; } }
