/* Payments promo — instant slideshow (left) + typewriter copy (right) */
.home-payments-promo {
  position: relative;
  z-index: 24;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #f3efe8;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.home-payments-promo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  direction: ltr;
}

.home-payments-promo__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-payments-promo__frame {
  position: relative;
  width: min(100%, 300px);
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-payments-promo__slides {
  position: relative;
  width: 100%;
}

.home-payments-promo__slide {
  display: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.home-payments-promo__slide.is-active {
  display: block;
}

.home-payments-promo__slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 520px);
  object-fit: contain;
  object-position: center bottom;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.14));
}

.home-payments-promo__copy {
  direction: rtl;
  text-align: right;
  padding-inline: clamp(0.25rem, 2vw, 1.5rem);
}

html[dir="ltr"] .home-payments-promo__copy {
  direction: ltr;
  text-align: left;
}

.home-payments-promo__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary, #e85d04);
}

.home-payments-promo__title {
  margin: 0 0 1rem;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
  font-weight: 900;
  line-height: 1.35;
  color: #1a1a1a;
  min-height: 2.8em;
}

.home-payments-promo__typewriter {
  display: inline;
}

.home-payments-promo__cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-inline-start: 2px;
  vertical-align: -0.08em;
  background: var(--primary, #e85d04);
  animation: payments-promo-blink 0.9s step-end infinite;
}

.home-payments-promo__cursor.is-hidden {
  visibility: hidden;
}

@keyframes payments-promo-blink {
  50% { opacity: 0; }
}

@media (max-width: 768px) {
  .home-payments-promo {
    padding: 1.25rem 0;
  }

  .home-payments-promo__grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 0.65rem 0.85rem;
    align-items: center;
    direction: ltr;
  }

  .home-payments-promo__visual {
    align-items: center;
    justify-content: center;
  }

  .home-payments-promo__frame {
    width: 100%;
    max-width: none;
  }

  .home-payments-promo__slide img {
    max-height: min(46vh, 280px);
    object-position: center center;
  }

  .home-payments-promo__copy {
    text-align: right;
    padding-inline: 0;
    align-self: center;
  }

  html[dir="ltr"] .home-payments-promo__copy {
    text-align: left;
  }

  .home-payments-promo__eyebrow {
    font-size: 0.68rem;
    margin-bottom: 0.45rem;
    letter-spacing: 0.04em;
  }

  .home-payments-promo__title {
    font-size: clamp(0.95rem, 4.2vw, 1.28rem);
    line-height: 1.45;
    min-height: 4.6em;
    margin-bottom: 0;
  }
}

@media (max-width: 380px) {
  .home-payments-promo__grid {
    gap: 0.5rem 0.65rem;
  }

  .home-payments-promo__slide img {
    max-height: min(42vh, 240px);
  }

  .home-payments-promo__title {
    font-size: clamp(0.88rem, 4vw, 1.1rem);
    min-height: 5em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-payments-promo__cursor {
    animation: none;
  }
}
