/**
 * RESPONSIVE ADAPTATIONS & RTL / LTR DIRECTION MIRRORING
 * Tablet, Mobile, Touch Devices & Reduced Motion
 */

/* Directional Adjustments */
html[dir="rtl"] {
  text-align: right;
}

html[dir="ltr"] {
  text-align: left;
}

/* RTL Arrow Transforms */
html[dir="rtl"] .hero-btn-primary .hero-btn-arrow,
html[dir="rtl"] .btn-primary span:last-child {
  transform: rotate(180deg);
}

html[dir="ltr"] .hero-btn-primary .hero-btn-arrow,
html[dir="ltr"] .btn-primary span:last-child {
  transform: none;
}

/* Touch & Small Screens */
@media (max-width: 991px) {
  :root {
    --header-height: 70px;
  }

  .hero-bottom-stage {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-disciplines-bar {
    width: 100%;
  }

  .about-floating-experience-pill {
    bottom: 16px;
    right: 16px;
    padding: 8px 16px;
  }

  html[dir="rtl"] .about-floating-experience-pill {
    left: 16px;
    right: auto;
  }
}

@media (max-width: 767px) {
  .hero-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .about-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .about-actions-row .btn-primary,
  .about-actions-row .btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .contact-social-row {
    grid-template-columns: 1fr;
  }

  .slideshow-nav-btn {
    width: 38px;
    height: 38px;
  }

  .slideshow-nav-prev {
    left: 8px;
  }

  .slideshow-nav-next {
    right: 8px;
  }
}

/* Accessible Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-track {
    animation: none;
  }

  .hero-environment-media {
    transform: none !important;
  }
}
