/* ==========================================================================
   PLEXUS AVIATION - Responsive Stylesheet
   Full responsive breakpoints for all screen sizes
   Version: 1.0.0
   ========================================================================== */

/* ==========================================================================
   BREAKPOINT REFERENCE:
   - Desktop:    1440px+ (base styles in main.css)
   - Laptop:     1024px - 1439px
   - Tablet:     768px  - 1023px
   - Mobile:     320px  - 767px
   ========================================================================== */


/* ==========================================================================
   1. LAPTOP (1024px - 1439px)
   ========================================================================== */

@media (max-width: 1439px) {

  /* Layout */
  :root {
    --container-padding: clamp(1.5rem, 3vw, 2rem);
  }

  /* Typography scale-down */
  h1, .h1 {
    font-size: clamp(2.25rem, 3.5vw + 0.5rem, 3.5rem);
  }

  h2, .h2 {
    font-size: clamp(1.625rem, 2vw + 0.5rem, 2.25rem);
  }

  /* Header */
  .site-header {
    height: 72px;
  }

  .header__logo-img {
    height: 36px;
  }

  /* Grid adjustments */
  .grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: var(--space-lg);
  }

  /* Cards */
  .card--horizontal {
    grid-template-columns: 240px 1fr;
  }

  /* Quote form */
  .quote-form {
    padding: var(--space-xl);
  }

  /* Gallery */
  .gallery-grid {
    grid-auto-rows: 220px;
  }

  /* Stat counter */
  .stat-counter__number {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
  }

  /* Org chart */
  .org-chart__level {
    gap: var(--space-lg);
  }

  /* Timeline */
  .timeline__content {
    width: 44%;
  }
}


/* ==========================================================================
   2. TABLET (768px - 1023px)
   ========================================================================== */

@media (max-width: 1023px) {

  /* Base adjustments */
  :root {
    --header-height: 64px;
    --section-padding: clamp(2.5rem, 6vw, 4rem);
  }

  body {
    font-size: 0.9375rem;
  }

  /* Typography */
  h1, .h1 {
    font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
    margin-bottom: var(--space-sm);
  }

  h2, .h2 {
    font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
    margin-bottom: var(--space-sm);
  }

  h3, .h3 {
    font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
  }

  .lead {
    font-size: 1rem;
  }

  /* Header */
  .site-header {
    height: var(--header-height);
    padding: 0 var(--space-md);
  }

  .header__logo-img {
    height: 32px;
  }

  .header__back-btn {
    padding: 0.4rem 1rem;
    font-size: 0.6875rem;
  }

  /* Navigation panel (fullscreen) */
  .nav-panel__link {
    font-size: clamp(1.5rem, 4vh, 2.25rem);
  }

  .nav-panel__menu {
    gap: clamp(0.75rem, 2vh, 1.75rem);
  }

  /* Grid collapses */
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--2 {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero {
    min-height: 60vh;
    padding: calc(var(--header-height) + var(--space-xl)) var(--container-padding) var(--space-xl);
  }

  .hero--full {
    min-height: 80vh;
  }

  .hero__content p {
    font-size: 1rem;
  }

  /* Section header */
  .section__header {
    max-width: 600px;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
  }

  .btn--cta {
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
  }

  .btn--lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    width: 100%;
  }

  /* Cards */
  .card--horizontal {
    grid-template-columns: 1fr;
  }

  .card--horizontal .card__image {
    aspect-ratio: 16 / 9;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-lg);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  .quote-form {
    padding: var(--space-lg);
  }

  .quote-form__grid {
    grid-template-columns: 1fr;
  }

  .quote-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-form__footer .btn {
    min-width: auto;
  }

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

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-grid__item--featured {
    grid-column: 1 / -1;
    grid-row: span 1;
  }

  .gallery-grid__item--wide {
    grid-column: span 1;
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .team-member__photo {
    width: 100px;
    height: 100px;
  }

  /* Partner grid */
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .partner-grid__item {
    padding: var(--space-sm);
    min-height: 80px;
  }

  .partner-grid__item img {
    max-width: 100px;
    max-height: 40px;
  }

  /* Portal grid */
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Org chart */
  .org-chart__level {
    gap: var(--space-md);
    flex-wrap: wrap;
  }

  .org-chart__avatar {
    width: 60px;
    height: 60px;
  }

  .org-chart__node--head .org-chart__avatar {
    width: 80px;
    height: 80px;
  }

  /* Stat row */
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-row .stat-counter:not(:last-child)::after {
    display: none;
  }

  /* Timeline */
  .timeline::before {
    left: 30px;
  }

  .timeline__item,
  .timeline__item:nth-child(odd) {
    flex-direction: row;
    text-align: left;
    padding-left: 60px;
  }

  .timeline__content {
    width: 100%;
  }

  .timeline__dot {
    left: 30px;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.6875rem;
  }

  /* News cards */
  .news-card__body {
    padding: var(--space-md);
  }

  /* WhatsApp FAB */
  .whatsapp-fab {
    width: 50px;
    height: 50px;
    right: var(--space-md);
    bottom: var(--space-md);
  }

  .whatsapp-fab svg {
    width: 24px;
    height: 24px;
  }

  .whatsapp-fab__tooltip {
    display: none;
  }

  /* Back to top */
  .back-to-top {
    width: 42px;
    height: 42px;
    bottom: var(--space-md);
    right: var(--space-md);
  }

  /* Cert grid */
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Accordion */
  .accordion__trigger {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9375rem;
  }

  .accordion__body {
    padding: 0 var(--space-md) var(--space-md);
  }

  /* Lightbox */
  .lightbox__content {
    max-width: 95vw;
  }

  /* Plexus cards */
  .plexus-card__body {
    padding: var(--space-md);
  }
}


/* ==========================================================================
   3. MOBILE (320px - 767px)
   ========================================================================== */

@media (max-width: 767px) {

  /* Base */
  :root {
    --header-height: 60px;
    --section-padding: clamp(2rem, 5vw, 3rem);
    --container-padding: 1rem;
  }

  body {
    font-size: 0.9375rem;
  }

  /* Typography */
  h1, .h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    margin-bottom: var(--space-xs);
  }

  h2, .h2 {
    font-size: clamp(1.375rem, 4vw, 1.75rem);
    margin-bottom: var(--space-xs);
  }

  h3, .h3 {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
  }

  h4, .h4 {
    font-size: clamp(1rem, 2vw, 1.125rem);
  }

  .lead {
    font-size: 0.9375rem;
  }

  p {
    max-width: none;
  }

  .section-label {
    font-size: 0.6875rem;
  }

  .section-label::before {
    width: 20px;
  }

  /* Header */
  .site-header {
    height: var(--header-height);
    padding: 0 var(--space-sm);
  }

  .header__logo-img {
    height: 28px;
  }

  .header__logo-text {
    font-size: 1rem;
    display: none;
  }

  .header__controls {
    gap: var(--space-xs);
  }

  .header__back-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.625rem;
  }

  .header__back-btn span:not(.icon) {
    display: none;
  }

  .header__menu-toggle {
    width: 40px;
    height: 40px;
  }

  .header__menu-toggle .hamburger-line {
    width: 20px;
  }


  /* Navigation panel (fullscreen) */
  .nav-panel {
    justify-content: flex-start;
    padding: 60px 20px 20px;
  }

  .nav-panel__close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .nav-panel__link {
    font-size: clamp(1.1rem, 3.5vh, 1.5rem);
  }

  .nav-panel__menu {
    gap: clamp(0.75rem, 2.5vh, 1.5rem);
  }

  .nav-panel__bottom {
    padding: var(--space-sm) var(--space-md);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    text-align: center;
    font-size: 12px;
  }

  /* Grid system */
  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .grid--auto-fill,
  .grid--auto-fit {
    grid-template-columns: 1fr;
  }

  /* Flex adjustments */
  .flex--between {
    flex-direction: column;
    gap: var(--space-sm);
  }

  /* Hero */
  .hero {
    min-height: 50vh;
    padding: calc(var(--header-height) + var(--space-lg)) var(--container-padding) var(--space-lg);
  }

  .hero--full {
    min-height: 70vh;
  }

  .hero__content p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
  }

  .hero__content .btn-group {
    flex-direction: column;
  }

  /* Section header */
  .section__header {
    max-width: 100%;
    margin-bottom: var(--space-lg);
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    width: 100%;
    justify-content: center;
  }

  .btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    width: auto;
  }

  .btn--cta {
    padding: 0.875rem 1.75rem;
  }

  .btn-group {
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  /* Cards */
  .card {
    border-radius: var(--radius-md);
  }

  .card__body {
    padding: var(--space-md);
  }

  .card--horizontal {
    grid-template-columns: 1fr;
  }

  /* Plexus cards */
  .plexus-card {
    border-radius: var(--radius-md);
  }

  .plexus-card__body {
    padding: var(--space-md);
  }

  .plexus-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-sm);
  }

  .plexus-card__title {
    font-size: 1.0625rem;
  }

  /* Footer — clean mobile layout */
  .site-footer {
    padding-top: 20px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .footer__brand {
    max-width: 100%;
    text-align: center;
  }

  .footer__logo-group {
    margin-bottom: 0;
  }

  .footer__logo {
    display: block;
    text-align: center;
  }

  .footer__logo img {
    max-width: none;
    margin: 0 auto;
  }

  .footer__brand p,
  .footer__tagline {
    max-width: 100%;
    font-size: 13px;
    margin-top: 8px;
  }

  .footer__social {
    justify-content: center;
    gap: 4px;
    margin-top: 8px !important;
  }

  .footer__social-link {
    width: 18px;
    height: 18px;
  }

  .footer__grid {
    padding-bottom: 12px;
  }

  .footer__nav {
    text-align: center;
  }

  .footer__nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
  }

  .footer__nav li {
    margin-bottom: 0;
  }

  .footer__nav a {
    font-size: 14px;
  }

  .footer__nav a:hover {
    padding-left: 0;
  }

  .footer__contact {
    text-align: center;
  }

  .footer__heading {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }

  .footer__contact-item {
    justify-content: center;
    align-items: center;
    font-size: 14px;
    margin-bottom: 0 !important;
    line-height: 1;
    padding-bottom: 0;
  }

  .footer__contact-item svg {
    margin-top: 0;
  }

  .footer__contact-item a {
    min-height: auto;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 12px 0;
    margin-top: 16px;
  }

  .footer__bottom-links {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .footer__copyright {
    font-size: 12px;
  }

  .footer__newsletter-form {
    flex-direction: column;
  }

  /* Forms */
  .form-group {
    margin-bottom: var(--space-sm);
  }

  .form-input,
  .form-textarea,
  .form-select {
    padding: 0.75rem 1rem;
    font-size: 1rem; /* 16px to prevent iOS zoom */
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  /* Quote form */
  .quote-form {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
  }

  .quote-form__grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .quote-form__header {
    margin-bottom: var(--space-lg);
  }

  .quote-form__footer {
    flex-direction: column;
    gap: var(--space-md);
    align-items: stretch;
  }

  .quote-form__footer .btn {
    min-width: auto;
    width: 100%;
  }

  .quote-form__privacy {
    max-width: 100%;
    text-align: center;
  }

  /* Contact form */
  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .contact-form__submit {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-info__item {
    gap: var(--space-sm);
  }

  .contact-info__icon {
    width: 42px;
    height: 42px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-grid__item--wide,
  .gallery-grid__item--tall,
  .gallery-grid__item--featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .team-member {
    padding: var(--space-md);
  }

  .team-member__photo {
    width: 88px;
    height: 88px;
  }

  /* Partner grid */
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
  }

  .partner-grid__item {
    padding: var(--space-sm);
    min-height: 70px;
  }

  /* Portal grid */
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-card {
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .portal-card__icon {
    width: 48px;
    height: 48px;
  }

  /* Stat counter */
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stat-counter {
    padding: var(--space-md) var(--space-xs);
  }

  .stat-counter__number {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .stat-counter__label {
    font-size: 0.6875rem;
  }

  /* Cert grid */
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .cert-badge {
    padding: var(--space-md);
  }

  .cert-badge__logo {
    width: 60px;
    height: 60px;
  }

  /* Org chart */
  .org-chart__level {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .org-chart__level::before {
    display: none;
  }

  .org-chart__node::before {
    display: none;
  }

  .org-chart__avatar {
    width: 56px;
    height: 56px;
  }

  .org-chart__node--head .org-chart__avatar {
    width: 72px;
    height: 72px;
  }

  .org-chart__name {
    font-size: 0.875rem;
  }

  .org-chart__role {
    font-size: 0.6875rem;
  }

  /* Timeline */
  .timeline::before {
    left: 16px;
  }

  .timeline__item,
  .timeline__item:nth-child(odd) {
    padding-left: 44px;
  }

  .timeline__dot {
    left: 16px;
    width: 12px;
    height: 12px;
    border-width: 3px;
  }

  .timeline__content {
    padding: var(--space-md);
  }

  .timeline__year {
    font-size: 1.125rem;
  }

  .timeline__title {
    font-size: 1rem;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.625rem;
    gap: 0.25rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-2xs);
  }

  .breadcrumb__item {
    flex-shrink: 0;
  }

  /* WhatsApp FAB */
  .whatsapp-fab {
    width: 48px;
    height: 48px;
    bottom: var(--space-sm);
    right: calc(var(--space-sm) + 50px);
  }

  .whatsapp-fab svg {
    width: 22px;
    height: 22px;
  }

  .whatsapp-fab__tooltip {
    display: none;
  }

  /* Back to top */
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: var(--space-sm);
    right: var(--space-sm);
  }

  .back-to-top svg {
    width: 16px;
    height: 16px;
  }

  /* Accordion */
  .accordion__trigger {
    padding: var(--space-sm);
    font-size: 0.875rem;
  }

  .accordion__body {
    padding: 0 var(--space-sm) var(--space-sm);
    font-size: 0.875rem;
  }

  /* Lightbox */
  .lightbox__content {
    max-width: 98vw;
    padding: var(--space-2xs);
  }

  .lightbox__close {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
  }

  /* News cards */
  .news-card__body {
    padding: var(--space-sm);
  }

  .news-card__title {
    font-size: 1rem;
  }

  /* Section dividers */
  .section-divider--diamond .divider-icon {
    width: 18px;
    height: 18px;
    margin: 0 var(--space-sm);
  }

  /* Reveal animations - reduced distances for mobile */
  .reveal {
    transform: translateY(20px);
  }

  .reveal--left {
    transform: translateX(-20px);
  }

  .reveal--right {
    transform: translateX(20px);
  }

  /* Utility overrides */
  .hidden-mobile {
    display: none !important;
  }

  /* Touch-friendly tap targets */
  a, button, [role="button"], input, select, textarea,
  .form-check label {
    min-height: 44px;
    min-width: 44px;
  }

  .side-dot {
    min-height: auto !important;
    min-width: auto !important;
  }

  /* Ensure form inputs don't zoom on iOS */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px;
  }
}


/* ==========================================================================
   4. SMALL MOBILE (320px - 374px)
   ========================================================================== */

@media (max-width: 374px) {

  :root {
    --container-padding: 0.75rem;
  }

  .nav-panel {
    padding: 50px 16px 16px;
  }

  .nav-panel__link {
    font-size: 1rem;
  }

  .nav-panel__menu {
    gap: 0.6rem;
  }

  h1, .h1 {
    font-size: 1.5rem;
  }

  h2, .h2 {
    font-size: 1.25rem;
  }

  h3, .h3 {
    font-size: 1.0625rem;
  }

  .header__logo-img {
    height: 24px;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }

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

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 180px;
  }

  .quote-form {
    padding: var(--space-sm);
  }
}


/* ==========================================================================
   5. LARGE DESKTOP (1920px+)
   ========================================================================== */

@media (min-width: 1920px) {

  :root {
    --container-padding: 3rem;
  }

  .container {
    max-width: 1600px;
  }

  h1, .h1 {
    font-size: 4.5rem;
  }

  .hero {
    min-height: 75vh;
  }

  .gallery-grid {
    grid-auto-rows: 320px;
  }

  .footer__grid {
    gap: var(--space-2xl);
  }
}


/* ==========================================================================
   6. LANDSCAPE ORIENTATION FIXES
   ========================================================================== */

@media (max-height: 500px) and (orientation: landscape) {

  .hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: var(--space-md);
  }

  .hero--full {
    min-height: 100vh;
  }

  h1, .h1 {
    font-size: 1.5rem;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .nav-panel {
    padding: 12px 16px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
  }

  .nav-panel__menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
  }

  .nav-panel__link {
    font-size: 0.9rem;
  }

  .nav-panel__bottom {
    flex-direction: row;
    gap: 12px;
  }
}


/* ==========================================================================
   7. HIGH DPI / RETINA ADJUSTMENTS
   ========================================================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Thinner borders on retina */
  .card,
  .form-input,
  .form-textarea,
  .form-select,
  .cert-badge,
  .portal-card,
  .accordion__item {
    border-width: 0.5px;
  }
}


/* ==========================================================================
   8. PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .site-header,
  .nav-panel,
  .nav-overlay,
  .whatsapp-fab,
  .back-to-top,
  .intro-wrapper,
  .side-dots,
  .header__menu-toggle,
  .btn,
  footer {
    display: none !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  h1 { font-size: 24pt; }
  h2 { font-size: 20pt; }
  h3 { font-size: 16pt; }
  h4 { font-size: 14pt; }

  a {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   9. RTL SUPPORT OVERRIDES
   ========================================================================== */

/* Header stays LTR layout in RTL mode */
[dir="rtl"] .header__inner {
  flex-direction: row;
}

[dir="rtl"] .header__controls {
  flex-direction: row;
}

[dir="rtl"] .header__back-btn:hover {
  transform: translateX(2px);
}

[dir="rtl"] .header__back-btn:hover svg {
  transform: translateX(3px);
}

[dir="rtl"] .nav-panel__close {
  right: auto;
  left: var(--space-lg);
}

[dir="rtl"] .section-label::before {
  margin-right: 0;
  margin-left: var(--space-2xs);
}

[dir="rtl"] .content-list li {
  padding-left: 0;
  padding-right: var(--space-md);
}

[dir="rtl"] .content-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .footer__nav a:hover {
  padding-left: 0;
  padding-right: 4px;
}

[dir="rtl"] .form-select {
  background-position: left 1rem center;
  padding-right: 1.125rem;
  padding-left: 2.5rem;
}

[dir="rtl"] .breadcrumb {
  direction: rtl;
}

[dir="rtl"] .plexus-card__link svg,
[dir="rtl"] .news-card__read-more svg {
  transform: scaleX(-1);
}

[dir="rtl"] .plexus-card__link:hover svg,
[dir="rtl"] .news-card__read-more:hover svg {
  transform: scaleX(-1) translateX(3px);
}

[dir="rtl"] .portal-card__arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .portal-card:hover .portal-card__arrow {
  transform: scaleX(-1) translateX(4px);
}

[dir="rtl"] .timeline::before {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

[dir="rtl"] .timeline__dot {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

[dir="rtl"] .timeline__item:nth-child(odd) {
  flex-direction: row;
  text-align: left;
}

[dir="rtl"] .timeline__item:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

@media (max-width: 1023px) {
  [dir="rtl"] .timeline::before {
    left: auto;
    right: 30px;
  }

  [dir="rtl"] .timeline__item,
  [dir="rtl"] .timeline__item:nth-child(odd) {
    padding-left: 0;
    padding-right: 60px;
    flex-direction: row;
    text-align: right;
  }

  [dir="rtl"] .timeline__dot {
    left: auto;
    right: 30px;
  }
}

@media (max-width: 767px) {
  [dir="rtl"] .timeline::before {
    right: 16px;
  }

  [dir="rtl"] .timeline__item,
  [dir="rtl"] .timeline__item:nth-child(odd) {
    padding-right: 44px;
    padding-left: 0;
  }

  [dir="rtl"] .timeline__dot {
    right: 16px;
  }

  [dir="rtl"] .whatsapp-fab {
    right: auto;
    left: calc(var(--space-sm) + 50px);
  }

  [dir="rtl"] .back-to-top {
    right: auto;
    left: var(--space-sm);
  }
}


/* ==========================================================================
   10. VISIBILITY HELPERS
   ========================================================================== */

.hidden-desktop {
  display: none !important;
}

@media (max-width: 1023px) {
  .hidden-tablet {
    display: none !important;
  }
  .hidden-desktop {
    display: block !important;
  }
  .visible-tablet {
    display: block !important;
  }
}

@media (max-width: 767px) {
  .hidden-mobile {
    display: none !important;
  }
  .visible-mobile {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .visible-mobile {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .visible-tablet {
    display: none !important;
  }
}
