/* RTL and Hebrew Typography Support */

/* Base RTL styles */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] body {
  font-family: 'Heebo', 'Assistant', 'Arial', sans-serif;
  direction: rtl;
  text-align: right;
}

/* RTL Layout adjustments */
html[dir="rtl"] .w-container {
  direction: rtl;
}

html[dir="rtl"] .w-row {
  direction: rtl;
}

html[dir="rtl"] .w-col {
  float: right;
}

/* Navigation RTL */
html[dir="rtl"] .navigation {
  direction: rtl;
}

html[dir="rtl"] .navigation-content {
  text-align: right;
}

html[dir="rtl"] .navigation-text {
  text-align: right;
}

/* Menu RTL */
html[dir="rtl"] .menu {
  direction: rtl;
}

html[dir="rtl"] .menu-text-wrapper {
  text-align: right;
}

/* Hero section RTL */
html[dir="rtl"] .title-1,
html[dir="rtl"] .title-2,
html[dir="rtl"] .title-3 {
  text-align: right;
  direction: rtl;
}

/* Grid layouts RTL */
html[dir="rtl"] .grid-2-columns,
html[dir="rtl"] .grid-3-columns {
  direction: rtl;
}

html[dir="rtl"] .grid-2-columns > *,
html[dir="rtl"] .grid-3-columns > * {
  text-align: right;
}

/* Services and content blocks RTL */
html[dir="rtl"] .services-block,
html[dir="rtl"] .work-item-wrapper,
html[dir="rtl"] .blog-wrapper {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .project-title,
html[dir="rtl"] .work-item-title,
html[dir="rtl"] .blog-title {
  text-align: right;
}

/* Form elements RTL */
html[dir="rtl"] .form-block,
html[dir="rtl"] .contact-flex-page {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .field-label {
  text-align: right;
}

html[dir="rtl"] .text-field-form {
  text-align: right;
  direction: rtl;
}

/* Button RTL */
html[dir="rtl"] .button {
  text-align: center;
}

/* Footer RTL */
html[dir="rtl"] .footer {
  direction: rtl;
}

html[dir="rtl"] .footer-title,
html[dir="rtl"] .paragraph-white,
html[dir="rtl"] .paragraph-link-1 {
  text-align: right;
}

html[dir="rtl"] .contact-grid {
  text-align: right;
}

/* Cart RTL */
html[dir="rtl"] .cart-container {
  direction: rtl;
}

html[dir="rtl"] .your-cart {
  text-align: right;
}

/* Metrics and numbers RTL */
html[dir="rtl"] .metrics {
  text-align: right;
}

html[dir="rtl"] .metrics-text {
  text-align: right;
}

/* Testimonials RTL */
html[dir="rtl"] .testimonials-content {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .testimonials-content blockquote {
  text-align: right;
}

/* Blog content RTL */
html[dir="rtl"] .blog-post-grid {
  direction: rtl;
}

html[dir="rtl"] .bottom-part {
  text-align: right;
}

html[dir="rtl"] .category-text {
  text-align: right;
}

/* CTA section RTL */
html[dir="rtl"] .title-1.cta {
  text-align: center;
}

/* Logo grid RTL */
html[dir="rtl"] .logo-grid {
  direction: rtl;
}

/* Contact information RTL */
html[dir="rtl"] .contact-flex-1,
html[dir="rtl"] .contact-flex-2 {
  text-align: right;
}

html[dir="rtl"] .contact-title {
  text-align: right;
}

/* Address and contact details RTL */
html[dir="rtl"] .menu-paragrapg {
  text-align: right;
}

html[dir="rtl"] .uppercase-text {
  text-align: right;
}

/* Social links RTL */
html[dir="rtl"] .social-grid {
  direction: rtl;
}

/* Copyright RTL */
html[dir="rtl"] .copyright {
  text-align: right;
}

html[dir="rtl"] .copyright-flex {
  direction: rtl;
}

/* Hebrew typography improvements */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  font-family: 'Heebo', 'Assistant', 'Arial', sans-serif;
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] p {
  font-family: 'Assistant', 'Heebo', 'Arial', sans-serif;
  text-align: right;
  direction: rtl;
  line-height: 1.6;
}

/* Ensure proper text alignment for mixed content */
html[dir="rtl"] .with-scribble {
  display: inline-block;
  direction: rtl;
}

/* Mobile responsive RTL adjustments */
@media screen and (max-width: 767px) {
  html[dir="rtl"] .navigation-content {
    text-align: right;
  }
  
  html[dir="rtl"] .menu-move {
    text-align: right;
  }
  
  html[dir="rtl"] .contact-flex-1,
  html[dir="rtl"] .contact-flex-2 {
    text-align: right;
  }
}

/* Ensure proper spacing for Hebrew text */
html[dir="rtl"] .margin-30px,
html[dir="rtl"] .margin-60px,
html[dir="rtl"] .margin-100px,
html[dir="rtl"] .margin-150px {
  direction: rtl;
}

/* Fix any left/right positioning for RTL */
html[dir="rtl"] .triange-left.left {
  right: 0;
  left: auto;
}

/* Ensure proper alignment for all text elements */
html[dir="rtl"] * {
  text-align: inherit;
}

html[dir="rtl"] .text-wrapper,
html[dir="rtl"] .text-wrapper_2 {
  text-align: right;
  direction: rtl;
}
