/* Arabic (right-to-left) overrides — loaded only on /ar/ pages, after style.css */
[dir="rtl"] body,
[dir="rtl"] .btn-lang,
[dir="rtl"] .quote-form button.btn,
[dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea { font-family: 'Tajawal', var(--font); }

/* Arabic letters must not be spaced apart; give headings a little more line height */
[dir="rtl"] .eyebrow, [dir="rtl"] .events-kicker, [dir="rtl"] .card-tag, [dir="rtl"] .addr-label,
[dir="rtl"] .contact-label, [dir="rtl"] .lbl, [dir="rtl"] .svc-num,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] .page-title, [dir="rtl"] .section-title { letter-spacing: 0; }
[dir="rtl"] .hero h1 { line-height: 1.15; }
[dir="rtl"] .page-title, [dir="rtl"] .section-title { line-height: 1.25; }
[dir="rtl"] .contact-label, [dir="rtl"] .lbl { font-size: 14px; }

/* Arrows point the reading direction */
[dir="rtl"] .btn svg, [dir="rtl"] .text-link svg, [dir="rtl"] .crumbs svg, [dir="rtl"] .project-arrow svg { transform: scaleX(-1); }

/* Language link looks like the old button */
.btn-lang { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-lang:hover { border-color: var(--orange); color: var(--orange); }

/* Events ticker keeps scrolling the same way; each item reads right-to-left */
[dir="rtl"] .events-track { direction: ltr; }
[dir="rtl"] .event { direction: rtl; border-right: 0; border-left: 1px solid #2a2a2a; }

/* Mirrored positions */
[dir="rtl"] .addr-card { left: auto; right: -48px; }
[dir="rtl"] .project-tag { left: auto; right: 20px; }
[dir="rtl"] .project-count { right: auto; left: 20px; }
[dir="rtl"] .contact-value { text-align: left; }

/* Phone numbers, emails and handles stay left-to-right */
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .contact-value { unicode-bidi: isolate; } /* each value gets dir="auto" in the HTML */
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { text-align: right; }

/* Photo viewer: keep left/right buttons and swipe as they are */
[dir="rtl"] .viewer { direction: ltr; }
[dir="rtl"] .viewer-title { direction: rtl; }

@media (max-width: 900px) {
  [dir="rtl"] .addr-card { right: auto; }
  [dir="rtl"] .contact-value { text-align: right; }
}

/* Hidden spam-trap field: push it off the right edge (left would widen an RTL page) */
[dir="rtl"] .hp { left: auto !important; right: -9999px !important; }
