/* RTL overrides for Arabic */

:root {
  --font: 'Noto Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif;
}

body {
  direction: rtl;
  text-align: right;
  font-family: var(--font);
}

/* Topbar */
.topbar {
  direction: rtl;
  text-align: center;
}

/* Navigation */
#mainNav {
  flex-direction: row-reverse;
}

.nav-links {
  flex-direction: row-reverse;
}

.nav-actions {
  flex-direction: row-reverse;
}

/* Hero */
.hero {
  direction: rtl;
}

.hero-content {
  text-align: right;
}

.hero-eyebrow {
  justify-content: flex-end;
}

.hero-cta {
  flex-direction: row-reverse;
}

.hero-app-badges > div {
  justify-content: flex-start;
}

.hero-trust {
  justify-content: flex-end;
}

.trust-item {
  flex-direction: row-reverse;
  text-align: right;
}

.hero-visual {
  direction: ltr;
}

/* Proof bar */
.proof-bar {
  flex-direction: row-reverse;
}

.proof-stats {
  flex-direction: row-reverse;
}

/* Section titles */
.section-title,
.section-sub {
  text-align: right;
}

.section-label {
  margin-left: auto;
  margin-right: 0;
}

/* Features */
.features-grid {
  direction: rtl;
}

.feature-card {
  text-align: right;
}

/* Platform */
.platform-split {
  direction: rtl;
}

.platform-split.reverse {
  direction: ltr;
}

.platform-split.reverse > * {
  direction: rtl;
}

.platform-list li {
  flex-direction: row-reverse;
  text-align: right;
}

.platform-check {
  margin-right: 0;
  margin-left: 0.9rem;
}

.platform-list-text {
  text-align: right;
}

.phone-screens,
.console-screens {
  direction: ltr;
}

/* Pricing */
.pricing-toggle {
  direction: rtl;
}

.pricing-grid {
  direction: rtl;
}

.pricing-card {
  text-align: right;
}

.plan-features li {
  padding-left: 0;
  padding-right: 1.5rem;
}

.plan-features li svg {
  left: auto;
  right: 0;
}

/* Testimonials */
.testimonials-grid {
  direction: rtl;
}

.testimonial-card {
  text-align: right;
}

.testimonial-author {
  flex-direction: row-reverse;
}

/* News */
.news-grid {
  direction: rtl;
}

.news-card {
  text-align: right;
}

.news-card-tags {
  justify-content: flex-end;
}

/* Contact */
.contact-grid {
  direction: rtl;
}

.form-row {
  flex-direction: row-reverse;
}

.form-group {
  text-align: right;
}

.contact-info {
  text-align: right;
}

.contact-item {
  flex-direction: row-reverse;
}

.contact-item-icon {
  margin-right: 0;
  margin-left: 0.9rem;
}

/* Footer */
footer {
  direction: rtl;
  text-align: right;
}

.footer-grid {
  direction: rtl;
}

.footer-bottom {
  flex-direction: row-reverse;
}

/* News pages */
.news-hero,
.news-section,
.news-detail,
.page-article {
  direction: rtl;
  text-align: right;
}

.news-back-link,
.page-back-link {
  display: inline-block;
}

.news-search {
  flex-direction: row-reverse;
}

.news-detail-meta {
  text-align: right;
}

.news-detail-content,
.page-content {
  text-align: right;
}

.news-detail-footer {
  text-align: right;
}

/* Language switcher */
.language-switcher-menu {
  right: auto;
  left: 0;
}

@media (max-width: 768px) {
  #mainNav {
    flex-wrap: wrap;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.75rem;
  }
}
