/* Brings the older pages (service pages, About, Careers, Contact) in line with the new design
   (home, Insights, policies): Inter 400 body text in ink, Exo 600 headings, brand palette.
   Tokens come from refresh.css. Legacy CSS (app.css/custom.css) forces sizes and colours with
   !important, so rules here use !important too. :where() keeps specificity low, so more specific
   legacy rules (e.g. small text inside cards) still win where they set their own sizes. */

/* ---------- Page background: soft blue-grey instead of flat grey (#eee) ---------- */
body:has(.page.service, .page.about-us, .page.contact-entry, section.digits) { background-color: var(--yx-bg-soft) !important; }
:where(.page.service, .page.about-us) > .landing,
.page.about-us > .offerings { background-color: var(--yx-bg-soft) !important; }

/* ---------- Body text ---------- */
:where(.page.service, .page.about-us, .page.contact-entry, section.digits) { color: var(--yx-ink); }
:where(.page.service, .page.about-us, .page.contact-entry, section.digits) :is(p, li) {
	font-size: 18px !important; line-height: 1.65 !important; font-weight: 400 !important;
}
/* Text that was plain black becomes ink; text on dark cards (navy card, founder bar, CTA box) keeps its own colour */
:where(.page.service, .page.about-us, .page.contact-entry, section.digits) :is(p, li):not(:where(.s___44477417 *, .team-list *, .yx-svc-cta *)) { color: var(--yx-ink) !important; }
:where(.page.service, .page.about-us, .page.contact-entry, section.digits) .landing :where(p, .intro p) { color: var(--yx-muted) !important; }

/* ---------- Headings ---------- */
:where(.page.service, .page.about-us, .page.contact-entry, section.digits) :is(h1, h2, h3) {
	font-family: Exo, Inter, sans-serif !important; font-weight: 600 !important;
	text-transform: none !important; letter-spacing: -0.01em !important;
}
:where(.page.service, .page.about-us, .page.contact-entry, section.digits) :is(h1, h2, h3):not(:where(.s___44477417 *, .team-list *, .yx-svc-cta *)) { color: var(--yx-ink) !important; }
/* Headings inside dark (navy) cards stay white */
:where(.page.service, .page.about-us) .s___44477417 :where(h1, h2, h3, p) { color: #fff !important; }

/* ---------- Intro banners (About, Contact): light hero like Insights instead of slate ---------- */
:where(.page.about-us, .page.contact-entry) > .landing { background: var(--yx-bg-soft) !important; border-bottom: 1px solid var(--yx-line); }
:where(.page.about-us, .page.contact-entry) > .landing :where(h1, h2) { color: var(--yx-ink) !important; }
:where(.page.about-us, .page.contact-entry) > .landing p { color: var(--yx-muted) !important; }

/* ---------- Service pages: yellow "why choose us" block becomes brand soft blue ---------- */
.page.service .our-process.surfaceBrand3 { background-color: var(--yx-blue-soft) !important; }
.page.service .our-process :where(p, span, li) { color: var(--yx-ink) !important; }

/* ---------- About ---------- */
.page.about-us .join-us { background-color: var(--yx-blue-soft) !important; }
.page.about-us .join-us :where(h2, h3, p, a) { color: var(--yx-ink) !important; }
.page.about-us .team-list { background-color: var(--yx-navy) !important; border-radius: 12px; }
.page.about-us .team-list * { color: #fff !important; }

/* ---------- Buttons: brand blue pills instead of black (Contact) and orange (Careers) ---------- */
.page.contact-entry .fui-btn,
section.digits .jdekwld .btn-primary {
	background: var(--yx-blue) !important; border: 0 !important; color: #fff !important;
	border-radius: 999px !important; padding: 12px 26px !important; font-family: Inter, sans-serif !important;
	font-size: 15px !important; font-weight: 600 !important; line-height: 1.2 !important;
	box-shadow: 0 8px 22px rgba(30, 111, 217, .28); transition: background-color .2s, transform .2s;
}
.page.contact-entry .fui-btn:hover,
section.digits .jdekwld .btn-primary:hover { background: var(--yx-blue-dark) !important; transform: translateY(-2px); }
/* Secondary action (Schedule a Call): outlined */
.page.contact-entry .fui-btn + .fui-btn { background: #fff !important; color: var(--yx-navy) !important; box-shadow: inset 0 0 0 2px var(--yx-navy); }
.page.contact-entry .fui-btn + .fui-btn:hover { background: var(--yx-navy) !important; color: #fff !important; }

/* Contact form fields: label/input colours in the palette */
.page.contact-entry form :where(label) { color: var(--yx-ink) !important; font-weight: 500; }
.page.contact-entry form :where(input, textarea) { border: 1px solid var(--yx-line) !important; border-radius: 10px !important; background: #fff !important; color: var(--yx-ink) !important; }
.page.contact-entry form :where(input, textarea):focus { outline: none; border-color: var(--yx-blue) !important; box-shadow: 0 0 0 3px var(--yx-blue-soft); }
/* Same type and padding in every field (legacy CSS made the textarea 20px and the inputs 15px).
   16px also stops iOS Safari zooming in when a field is tapped. */
.page.contact-entry form .fui-label { font-size: 16px !important; font-weight: 600 !important; }
.page.contact-entry form :is(input.fui-input, textarea.fui-input) { font-family: Inter, sans-serif !important; font-size: 16px !important; line-height: 1.5 !important; padding: 12px 14px !important; }
.page.contact-entry form :is(input.fui-input, textarea.fui-input)::placeholder { color: #8a93a6 !important; opacity: 1; }
/* Required asterisk was white (invisible on the light background) */
.page.contact-entry form .fui-required { color: #d93636 !important; font-size: 16px !important; }

/* Careers: job titles in ink */
section.digits .jdekwld li { color: var(--yx-ink) !important; font-weight: 600 !important; }

@media (max-width: 767px) {
	:where(.page.service, .page.about-us, .page.contact-entry, section.digits) :is(p, li) { font-size: 17px !important; }
}

/* ---------- Page titles: override the earlier "keep legacy look" rule in refresh.css (.yx-page-title) ---------- */
div.page:is(.service, .about-us, .contact-entry) div.landing div.container div.content h1.yx-page-title { font-weight: 600 !important; color: var(--yx-ink) !important; letter-spacing: -0.01em !important; }
/* Careers banner heading (yx-career-title in refresh.css kept the old look) */
.aboutheading h1.yx-career-title { font-weight: 600 !important; color: var(--yx-ink) !important; letter-spacing: -0.01em !important; }

/* ---------- Numbered "why choose us" items and other h4 titles ---------- */
:where(.page.service, .page.about-us, section.digits) h4:not(:where(.s___44477417 *, .team-list *, .yx-svc-cta *)) { font-family: Exo, Inter, sans-serif !important; font-weight: 600 !important; color: var(--yx-ink) !important; text-transform: none !important; }

/* ---------- Service pages: "Technological expertise" (image + text) ---------- */
.page.service .offerings { background-color: var(--yx-bg-soft) !important; }
@media (min-width: 992px) {
	/* vertically centre the image against the (longer) text column */
	.page.service .our-tech .row { display: flex; align-items: center; }
	.page.service .our-tech .row > [class*="col-"] { float: none; }
}
.page.service .our-tech img { width: 100%; border-radius: var(--yx-radius); object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- Service pages: "Why choose / Why partner" heading block ---------- */
.page.service .our-process .heading h3 { font-size: clamp(30px, 3.2vw, 42px) !important; line-height: 1.2 !important; }
.page.service .our-process .heading p { text-align: left !important; color: var(--yx-muted) !important; max-width: 520px; margin: 20px 0 0 !important; }

/* ---------- Service pages: numbered "why choose us" steps ---------- */
.page.service .our-process .step { display: flex !important; align-items: flex-start !important; gap: 24px !important; margin-bottom: 44px !important; }
/* Fixed-width number column so every title starts at the same position */
.page.service .our-process .step .step-number { flex: 0 0 56px !important; width: 56px !important; margin: 4px 0 0 !important; font-size: 28px !important; line-height: 1.2 !important; color: var(--yx-blue) !important; }
.page.service .our-process .step .step-content { flex: 1 !important; min-width: 0; margin: 0 !important; padding: 0 !important; }
.page.service .our-process .step .step-title { font-size: 26px !important; line-height: 1.25 !important; margin: 0 0 10px !important; }
/* Step descriptions are <h6> in the markup: style them as body text */
.page.service .our-process .step .step-copy :is(h6, p) { font-family: Inter, sans-serif !important; font-size: 17px !important; line-height: 1.65 !important; font-weight: 400 !important; color: var(--yx-muted) !important; text-transform: none !important; margin: 0 !important; }
@media (max-width: 767px) {
	.page.service .our-process .step { gap: 14px !important; margin-bottom: 32px !important; }
	.page.service .our-process .step .step-number { flex-basis: 40px !important; width: 40px !important; font-size: 22px !important; }
	.page.service .our-process .step .step-title { font-size: 21px !important; }
}
