/* Valunxt UK: About, Contact and Insights.
   These pages are built from the sub-service layout (rm-dubai.css, body.page-service)
   and the division pages' blue card section. This sheet adds only:

     1. Photo hero (.rm-hero--photo): the same height, spacing and text width as the
        sub-service hero, with the photograph on the right fading into navy behind the copy
     2. Blue card section (.bf-guide) set as on the division pages (bf.css, .page-rea)
     3. Contact enquiry: the side as a card the same height as the form card
     4. Small fixes for sections used without their usual neighbours

   Loaded after type.css and rm-dubai.css. Under prefers-reduced-motion nothing moves. */

/* ---------- 1. Photo hero ---------- */
.rm-hero.rm-hero--photo { min-height: 0; background: #040a33; }
.rm-hero--photo .rm-hero__in { padding-top: clamp(124px, 10.6vw, 152px); padding-bottom: clamp(56px, 6.2vw, 90px); }
.rm-hero--photo .rm-crumbs { margin-bottom: 20px; }
.rm-hero--photo .rm-hero__eyebrow { margin-bottom: 16px; }
.rm-hero.rm-hero--photo .rm-hero__title { max-width: min(100%, 920px); }
.rm-hero--photo .rm-hero__sub { max-width: min(100%, 880px); margin-top: 16px; }
.rm-hero--photo .rm-hero__lead { max-width: min(100%, 720px); margin-top: 22px; }
.rm-hero--photo .rm-hero__actions { margin-top: 40px; }
/* the photograph fills the right two thirds; the copy sits on navy */
.rm-hero--photo .rm-hero__media img { left: auto; right: 0; width: 66%; object-fit: cover; }
.rm-hero--photo .rm-hero__media::after { background:
    linear-gradient(90deg, #040a33 0%, #040a33 33%, rgba(4, 10, 51, .86) 42%, rgba(4, 10, 51, .42) 56%, rgba(4, 10, 51, .08) 74%, rgba(4, 10, 51, 0) 86%),
    linear-gradient(180deg, rgba(4, 10, 51, .55) 0%, rgba(4, 10, 51, 0) 28%, rgba(4, 10, 51, 0) 80%, rgba(4, 10, 51, .35) 100%); }
@media (prefers-reduced-motion: no-preference) {
    .rm-hero--photo .rm-hero__media img { animation: rm-photo-in 2.6s cubic-bezier(.16, 1, .3, 1) both; transform-origin: 70% 50%; }
}
@keyframes rm-photo-in { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: none; } }
@media (max-width: 1099px) {
    .rm-hero--photo .rm-hero__media img { width: 78%; }
}
@media (max-width: 767px) {
    .rm-hero--photo .rm-hero__in { padding-top: 116px; padding-bottom: 54px; }
    .rm-hero--photo .rm-crumbs { margin-bottom: 18px; }
    .rm-hero--photo .rm-hero__actions { margin-top: 32px; }
    .rm-hero--photo .rm-hero__media img { width: 100%; }
    .rm-hero--photo .rm-hero__media::after { background: linear-gradient(180deg, rgba(4, 10, 51, .72) 0%, rgba(4, 10, 51, .62) 50%, rgba(4, 10, 51, .8) 100%); }
}

/* ---------- 2. Blue card section, as on the division pages ---------- */
.page-service .bf-guide__head { margin-bottom: 30px; }
.page-service .bf-guide__cards--3 { gap: clamp(18px, 2.2vw, 36px); }
.page-service .bf-guide__cards--3 a { aspect-ratio: 16 / 11; }
.page-service .bf-guide__label { left: 14px; right: 14px; bottom: 14px; padding: 14px 44px 16px 16px; transition: padding .5s cubic-bezier(.22, 1, .36, 1), background-color .3s ease; }
.page-service .bf-guide__label b { font-size: 19px; font-weight: 500; }
.page-service .bf-guide__label em { font-size: 14px; line-height: 1.5; }
.page-service .bf-guide__cards a:hover .bf-guide__label, .page-service .bf-guide__cards a:focus-visible .bf-guide__label { padding-top: 34px; padding-bottom: 34px; }
.page-service .bf-guide__cards a:hover .rm-arrow, .page-service .bf-guide__cards a:focus-visible .rm-arrow { transform: translateX(4px); }
@media (max-width: 1099px) {
    .page-service .bf-guide__cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-service .bf-guide__cards--3 li:last-child { grid-column: 1 / -1; }
    .page-service .bf-guide__cards--3 li:last-child a { aspect-ratio: 32 / 11; }
}
@media (max-width: 559px) {
    .page-service .bf-guide__cards--3 { grid-template-columns: 1fr; }
    .page-service .bf-guide__cards--3 a, .page-service .bf-guide__cards--3 li:last-child a { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .page-service .bf-guide__label { transition: none; } }

/* ---------- 3. Contact enquiry: two cards of equal height ---------- */
.page-contact #enquiry .rm-contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 48px); align-items: stretch; }
.page-contact #enquiry .rm-contact__side { display: flex; flex-direction: column; padding: clamp(24px, 3.2vw, 48px); border: 1px solid var(--line, #e2e6ef); border-top: 2px solid var(--brand, #0b2dbe); background: #fff; }
.page-contact #enquiry .rm-contact__side .rm-label { margin-bottom: 14px; }
.page-contact #enquiry .rm-contact__side .rm-h2 { margin-bottom: 16px; font-size: clamp(28px, 2.5vw, 38px); }
.page-contact #enquiry .rm-contact__side > p { font-size: 16px; line-height: 1.6; color: #3b4259; }
.page-contact #enquiry .rm-contact__side dl { margin-top: 24px; }
.page-contact #enquiry .rm-contact__side dl div { padding: 14px 0; }
.page-contact #enquiry .enq-media { position: relative; flex: 1 1 auto; min-height: 180px; margin: 24px 0 0; overflow: hidden; background: var(--mist, #eef2fb); }
.page-contact #enquiry .enq-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; }
@media (max-width: 1099px) {
    .page-contact #enquiry .rm-contact { grid-template-columns: minmax(0, 1fr); }
    .page-contact #enquiry .enq-media { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------- 4. Sections used without their usual neighbours ---------- */
/* the rules panel standing on its own (About: company information) */
.rm-co .rm-rules { margin-top: 0; }
.rm-co .rm-recv__head { margin-bottom: clamp(24px, 2.6vw, 36px); }
.rm-co .rm-rules__text a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
/* the audience rows with a short paragraph under the heading */
.rm-aud .rm-two__side > p:not(.rm-label) { max-width: 40ch; margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--body); }
/* two overview paragraphs one after the other */
.rm-ov__lead + .rm-ov__lead { margin-top: 14px; }
