/* FAQ section */
.section_faq1.color-scheme-5 {
  position: relative;
  margin-top: 0;
  overflow: visible;
  background-color: #0c0c0c;
  background-image: none;
}

/* Language switcher — segmented tab with sliding thumb */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  border-radius: 8px;
  background: rgba(42, 41, 40, 0.08);
  border: 1px solid rgba(42, 41, 40, 0.12);
  isolation: isolate;
}

.lang-switcher__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 5px;
  background: #2a2928;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.lang-switcher.is-ar .lang-switcher__thumb {
  transform: translateX(100%);
}

.lang-switcher__btn {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 2.75rem;
  border: none;
  background: transparent;
  color: #2a2928;
  font-family: "DM Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.5rem 0.875rem;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-switcher__btn.is-active {
  color: #f8f4ed;
}

.lang-switcher__btn:hover:not(.is-active) {
  color: #2a2928;
  opacity: 0.75;
}

/* RTL support — IBM Plex Sans Arabic: https://fonts.google.com/specimen/IBM+Plex+Sans+Arabic */
html[dir="rtl"] body,
html[dir="rtl"] p,
html[dir="rtl"] .text-size-medium,
html[dir="rtl"] .text-block-3 {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

html[dir="rtl"] .heading-style-h1,
html[dir="rtl"] .heading-style-h2,
html[dir="rtl"] .heading-style-h3,
html[dir="rtl"] .heading-style-h6 {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

/* Feature cards: right-aligned titles and descriptions in Arabic */
html[dir="rtl"] .features-grid,
html[dir="rtl"] .features-grid .waves-tile-team-1,
html[dir="rtl"] .features-grid .card-titles {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .features-grid .heading-style-h6,
html[dir="rtl"] .features-grid .text-block-3 {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  text-align: right !important;
  direction: rtl;
}

/* Keep navbar chrome (logo + language switcher) in fixed positions */
html[dir="rtl"] .navbar1_component,
html[dir="rtl"] .navbar1_container,
html[dir="rtl"] .navbar1_menu {
  direction: ltr;
}

html[dir="rtl"] .navbar1_menu-links .nav-link {
  direction: rtl;
}

html[dir="rtl"] .stats-grid,
html[dir="rtl"] .faq1_question {
  text-align: right;
}

html[dir="rtl"] .uui-testimonial16_component {
  animation-name: hero-marquee-rtl;
}

@keyframes hero-marquee-rtl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

html[dir="rtl"] .heading-style-h3.left {
  text-align: right;
}

html[dir="rtl"] .footer13_top-wrapper {
  direction: rtl;
}

.footer13_bottom-wrapper {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer13_credit-text {
  width: 100%;
  text-align: center;
}

.footer13_top-wrapper {
  grid-template-columns: 1fr;
  justify-items: center;
}

.footer13_right-wrapper {
  width: 100%;
  height: auto;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
}

.footer13_menu-wrapper {
  width: 100%;
  justify-items: center;
  align-self: center;
}

.footer13_link-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
}

.footer13_social-list {
  width: 100%;
  align-self: center;
  justify-content: center;
  justify-items: center;
  place-items: center;
  place-content: center;
  margin-left: auto;
  margin-right: auto;
}

.footer13_social-list .icon-embed-xsmall {
  width: 2.25rem;
  height: 2.25rem;
}

@media (max-width: 991px) {
  html[dir="rtl"] .navbar1_menu.is-page-height-tablet {
    text-align: right;
  }
}

/* Hero headline + subtitle — match system section heading color */
.section_header26 .heading-style-h1,
.section_header26 .text-size-medium {
  color: var(--_primitives---colors--brown-derby-dark);
}

/* Arabic hero title — slightly more space between lines */
html[dir="rtl"] .section_header26 .heading-style-h1 {
  line-height: 1.32;
}

/* Hero carousel AI agents card */
.uui-testimonial16_content {
  position: relative;
}

.hero-card-label {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  bottom: auto;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2a2928;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.hero-card-image,
.hero-card-video {
  width: auto;
  max-width: none;
  height: 24rem;
  display: block;
  object-fit: cover;
}

.hero-card-image--visual,
video.hero-card-image--visual {
  border-radius: 1.5rem;
}

.features-2col-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Reprioritizing a Whole Creative System — extra space below hero */
.section_layout238 {
  margin-top: 15vh;
  padding-bottom: min(22vh, 12rem);
}

/* Match section merino — padding-global defaults to #f0f0ec and shows as a beige band */
.section_layout238 .padding-global {
  background-color: transparent;
}

/* Reduced space between system description and feature cards */
.section_layout238 .padding-section-medium {
  padding-bottom: calc(4rem * 0.8);
}

.section_layout238 .layout238_component .margin-xxlarge {
  margin-bottom: calc(5rem * 0.8);
}

/* Arabic: slightly larger system heading */
html[dir="rtl"] .layout238_component .heading-style-h3 {
  font-size: 3.28rem;
  line-height: 1.25;
}

@media (max-width: 991px) {
  html[dir="rtl"] .layout238_component .heading-style-h3 {
    font-size: 2.36rem;
  }
}

/* Features: static 2-column grid (6 cards) */
.features-grid-section {
  padding-top: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 4rem;
  row-gap: 4rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.features-grid .waves-tile-team-1 {
  width: 100%;
}

.features-grid .features-2col-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .features-grid {
    column-gap: 2rem;
    row-gap: 2rem;
  }
}

@media (max-width: 767px) {
  .features-grid {
    grid-template-columns: 1fr;
    column-gap: 1.5rem;
    row-gap: 1.5rem;
  }
}

html[dir="rtl"] .hero-card-label {
  left: auto;
  right: 1.25rem;
  top: 1.25rem;
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

.uui-testimonial16_component {
  width: max-content;
  animation: hero-marquee 45s linear infinite;
}

.uui-testimonial16_component:hover {
  animation-play-state: paused;
}

@keyframes hero-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* FAQ accordion */
.faq1_answer {
  max-height: 0;
  transition: max-height 0.35s ease;
}

.faq1_accordion.is-open .faq1_answer {
  max-height: 500px;
}

.faq1_icon-wrapper {
  transition: transform 0.35s ease;
}

/* Arabic (RTL): right when closed, animate down when open */
html[dir="rtl"] .faq1_icon-wrapper {
  transform: rotate(-90deg);
}

html[dir="rtl"] .faq1_accordion.is-open .faq1_icon-wrapper {
  transform: rotate(0deg);
}

/* English (LTR): left when closed, animate down when open */
html[dir="ltr"] .faq1_icon-wrapper {
  transform: rotate(90deg);
}

html[dir="ltr"] .faq1_accordion.is-open .faq1_icon-wrapper {
  transform: rotate(0deg);
}

/* Ensure animated elements are visible without Webflow IX */
[data-w-id] {
  opacity: 1 !important;
}

/* Logo strip subtle scroll on smaller screens */
@media (max-width: 991px) {
  .uui-logos04_list {
    overflow-x: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .uui-logos04_list::-webkit-scrollbar {
    display: none;
  }
}
