/*
 * UAE section type `section_whychooseus_hero` (batch s3, 2026-11-07). Linked on
 * UAE pages only (JURISDICTION_SETTINGS.ae.stylesheets).
 *
 * Why choose us hero: DS Hero `showcase` (`.hero`) with the picture as the
 * section background. Live (deriv.com/ae/why-choose-us, measured 2026-11-07 at
 * 1440 / 1024 / 768 / 390, EN + AR, tmp/uae-batches/s3/measure/):
 * - a 100vh band (900px in a 900px window) with the picture as a cover image,
 *   bottom corners 48px (24px below 992);
 * - one dark wash from the top: rgb(24,28,37) fading out by 42% (>=992),
 *   rgba(24,28,37,.8) 48% -> clear 68% (768-991), .8 40% -> 68% (<768);
 * - heading and copy in one centred column padded 136px on top (96 + 80 below
 *   992, 64 + 24 below 480), heading 16px lower, copy 16px under it;
 * - heading 80/88 (64/72 at 768-991, 48/56 below 768), -0.56px, on two lines
 *   ("Why" / "choose us"): the live heading is two spans with a break;
 * - copy 16/24, at most 768px wide (403.75px below 992);
 * - below 768 the column is left-aligned (right-aligned in Arabic), and the
 *   phone picture is anchored at 61% 100%; below 480 the copy sits 4px under
 *   the heading.
 * Arabic: same boxes; the font is Noto Sans Arabic (frame.css), as live.
 */
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero {
  height: 100vh;
  min-height: 0;
  border-radius: 0 0 48px 48px;
  background-position: 50% 50%;
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__overlay {
  background-image: linear-gradient(rgb(24, 28, 37), rgba(255, 255, 255, 0) 42%);
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__inner {
  height: 100%;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__content {
  height: auto;
  padding-top: 136px;
  padding-bottom: 0;
  gap: 16px;
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__text {
  max-width: 768px;
  margin-inline: auto;
  gap: 16px;
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__title {
  margin-top: 16px;
  font-size: 80px;
  line-height: 88px;
  letter-spacing: -0.56px;
  white-space: pre-line;
}
[data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__description {
  max-width: 768px;
}

/*
 * Arabic: live's heading is two words on two lines at every width ("لماذا" /
 * "نحن", 169px wide at 1440) and its copy may run 992px wide (the column's own
 * limit; the 768px / 403.75px limits are English-only).
 */
[dir="rtl"] [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__title {
  width: min-content;
  max-width: 100%;
  margin-inline: auto;
  overflow-wrap: normal;
  word-break: normal;
}
[dir="rtl"] [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] :is(.hero__text, .hero__description) {
  max-width: 992px;
}

@media (max-width: 991px) {
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero {
    border-radius: 0 0 24px 24px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__overlay {
    background-image: linear-gradient(rgba(24, 28, 37, 0.8) 48%, rgba(255, 255, 255, 0) 68%);
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__inner {
    padding-top: 96px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__content {
    padding-top: 80px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__text,
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__description {
    max-width: 403.75px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__title {
    font-size: 64px;
    line-height: 72px;
  }
}

@media (max-width: 767px) {
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__overlay {
    background-image: linear-gradient(rgba(24, 28, 37, 0.8) 40%, rgba(255, 255, 255, 0) 68%);
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] :is(.hero__content, .hero__text) {
    align-items: stretch;
    text-align: start;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__text {
    margin-inline: 0;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] :is(.hero__title, .hero__description) {
    text-align: start;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__title {
    font-size: 48px;
    line-height: 56px;
  }
  [dir="rtl"] [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__title {
    margin-inline: 0;
  }
}

@media (max-width: 479px) {
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero {
    background-position: 61% 100%;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__inner {
    padding-top: 64px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__content {
    padding-top: 24px;
  }
  [data-raven-slot^="why-choose-us:"][data-raven-slot$=":hero"] .hero__text {
    max-width: none;
    gap: 4px;
  }
}
