/* ==========================================================================
   Yodhin visual refresh (Phase 3) — home page, header menu, footer
   All classes are prefixed "yx-" so they never collide with the legacy
   template CSS (app.css / custom.css). Loaded after custom.css.
   Brand colours from the logo: navy, blue, gold.
   ========================================================================== */
:root {
	--yx-navy: #1f2857;
	--yx-navy-2: #28336c;
	--yx-navy-deep: #0d1330;
	--yx-blue: #1e6fd9;
	--yx-blue-dark: #1759b0;
	--yx-blue-soft: #e8f0fd;
	--yx-gold: #c9a24a;
	--yx-ink: #0f172a;
	--yx-muted: #5b6478;
	--yx-line: #e3e7ef;
	--yx-bg-soft: #f5f7fb;
	--yx-radius: 16px;
	--yx-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
	--yx-max: 1200px;
}

/* ---------- Base for refreshed sections (overrides legacy global h1/h2/h3 !important sizes) ---------- */
.yx { font-family: Inter, system-ui, sans-serif; color: var(--yx-ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.yx h1:not(:where(.homepage *)), .yx h2:not(:where(.homepage *)), .yx h3:not(:where(.homepage *)), .yx h4:not(:where(.homepage *)) { font-family: Exo, Inter, sans-serif !important; line-height: 1.15 !important; margin: 0 !important; letter-spacing: -0.01em; text-transform: none !important; font-weight: 600 !important; }
.yx p:not(:where(.homepage *)) { margin: 0; }
.yx a { text-decoration: none !important; }
.yx img { max-width: 100%; display: block; }
.yx-wrap { max-width: var(--yx-max); margin: 0 auto; padding: 0 24px; }
.yx-section { padding: 96px 0; }
.yx-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yx-blue); margin-bottom: 14px; }
.yx-head { max-width: 680px; margin-bottom: 48px; }
.yx .yx-head h2 { font-size: clamp(30px, 4vw, 44px) !important; margin-bottom: 14px !important; color: var(--yx-ink); }
.yx-head p { color: var(--yx-muted); font-size: 18px; }

/* Legacy CSS shrinks <span> inside headings/strong; restore inherited sizing in refreshed sections */
.yx h1 span, .yx h2 span, .yx strong span { font-size: inherit !important; line-height: inherit !important; font-family: inherit !important; }
.yx { background: #fff; }

/* Placeholder marker: content still needed before going live */
.yx-ph { background: #fff4c2; outline: 2px dashed #e0b400; outline-offset: 2px; border-radius: 4px; padding: 0 4px; color: #6b5300 !important; }

/* ---------- Buttons ---------- */
.yx-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; transition: transform .2s, background-color .2s, box-shadow .2s, color .2s; }
.yx-btn:hover { transform: translateY(-2px); }
.yx-btn-primary { background: var(--yx-blue); color: #fff !important; box-shadow: 0 8px 22px rgba(30, 111, 217, .35); }
.yx-btn-primary:hover { background: var(--yx-blue-dark); }
.yx-btn-ghost { border: 2px solid rgba(255, 255, 255, .8); color: #fff !important; }
.yx-btn-ghost:hover { background: #fff; color: var(--yx-navy) !important; }
.yx-btn-outline { border: 2px solid var(--yx-navy); color: var(--yx-navy) !important; }
.yx-btn-outline:hover { background: var(--yx-navy); color: #fff !important; }
.yx-btn-white { background: #fff; color: var(--yx-navy) !important; }

/* ==========================================================================
   Header: desktop menu added inside the existing #navbar
   (the hamburger + full-screen menu stay for tablets and phones)
   ========================================================================== */
.yx-nav { display: none; }
.yx-nav a, .yx-footer a { text-decoration: none !important; }
@media (min-width: 1100px) {
	.yx-nav { display: flex; align-items: center; gap: 34px; font-family: Inter, sans-serif; }
	.yx-nav > ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
	.yx-nav > ul > li { position: relative; }
	.yx-nav > ul > li > a { color: var(--yx-ink) !important; font-size: 15px; font-weight: 500; text-decoration: none !important; padding: 26px 0; display: inline-block; }
	.yx-nav > ul > li > a:hover { color: var(--yx-blue) !important; }
	.yx-nav .yx-btn { padding: 11px 22px; font-size: 14px; }
	/* Services dropdown */
	.yx-dd > a::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
	.yx-dd-menu { position: absolute; top: 100%; left: -20px; min-width: 300px; background: #fff; border-radius: 14px; box-shadow: var(--yx-shadow-lg); padding: 10px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
	.yx-dd:hover .yx-dd-menu, .yx-dd:focus-within .yx-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
	.yx-dd-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--yx-ink) !important; font-size: 14px; text-decoration: none !important; }
	.yx-dd-menu a:hover { background: var(--yx-blue-soft); color: var(--yx-blue) !important; }
	/* Desktop shows the inline menu, so the hamburger is not needed */
	#hamburger { display: none !important; }
}

/* ==========================================================================
   Home: hero
   ========================================================================== */
.yx-hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; padding: 120px 0 110px; overflow: hidden; background: var(--yx-navy-deep) url("../videos/bannervideo-poster.jpg") center / cover no-repeat; }
.yx-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yx-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, rgba(14, 20, 48, .92) 0%, rgba(14, 20, 48, .75) 45%, rgba(14, 20, 48, .35) 100%); }
.yx-hero .yx-wrap { position: relative; z-index: 2; width: 100%; }
.yx-hero-inner { max-width: 680px; }
.yx-hero .yx-eyebrow { color: #9cc3ff; }
.yx .yx-hero h1 { font-size: clamp(38px, 6vw, 68px) !important; font-weight: 700 !important; margin: 6px 0 22px !important; color: #fff !important; }
.yx-hero h1 span { color: var(--yx-gold); }
.yx-hero p { font-size: 19px; color: rgba(255, 255, 255, .88); max-width: 560px; }
.yx-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.yx-hero-note { margin-top: 26px; font-size: 14px; color: rgba(255, 255, 255, .72); display: flex; gap: 22px; flex-wrap: wrap; }
.yx-hero-note span::before { content: "✓"; color: var(--yx-gold); margin-right: 8px; font-weight: 700; }

/* ---------- Stats strip ---------- */
.yx-stats { margin-top: -56px; position: relative; z-index: 3; }
.yx-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--yx-radius); box-shadow: var(--yx-shadow-lg); overflow: hidden; }
.yx-stat { padding: 30px 26px; border-right: 1px solid var(--yx-line); }
.yx-stat:last-child { border-right: 0; }
.yx-stat strong { display: block; font-family: Exo, sans-serif; font-size: 38px; color: var(--yx-navy); line-height: 1.1; margin-bottom: 4px; }
.yx-stat span { color: var(--yx-muted); font-size: 15px; }

/* ---------- Services grid ---------- */
.yx-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.yx-svc { position: relative; background: #fff; border: 1px solid var(--yx-line); border-radius: var(--yx-radius); padding: 28px 24px; display: flex; flex-direction: column; color: var(--yx-ink) !important; transition: transform .25s, box-shadow .25s, border-color .25s; }
.yx-svc:hover { transform: translateY(-6px); box-shadow: var(--yx-shadow-lg); border-color: transparent; }
.yx-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #e8f0fd, #dfe6fb); color: var(--yx-blue); margin-bottom: 20px; }
.yx-ico svg { width: 26px; height: 26px; }
.yx .yx-svc h3 { font-size: 20px !important; margin-bottom: 10px !important; }
.yx-svc p { color: var(--yx-muted); font-size: 15px; flex: 1; }
.yx-more { margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--yx-blue); }
.yx-more::after { content: " →"; }
.yx-new::before { content: "NEW"; position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; letter-spacing: .08em; background: var(--yx-gold); color: #fff; padding: 3px 8px; border-radius: 999px; }

/* ---------- Why Yodhin ---------- */
.yx-soft { background: var(--yx-bg-soft); }
.yx-why { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.yx-why-img { border-radius: 24px; overflow: hidden; box-shadow: var(--yx-shadow-lg); aspect-ratio: 4 / 3.4; }
.yx-why-img img { width: 100%; height: 100%; object-fit: cover; }
.yx .yx-why h2 { font-size: clamp(30px, 4vw, 42px) !important; }
.yx-why-list { display: grid; gap: 26px; margin-top: 30px; }
.yx-why-item { display: flex; gap: 18px; }
.yx-dot { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--yx-navy); color: var(--yx-gold); display: grid; place-items: center; font-family: Exo, sans-serif; font-weight: 700; }
.yx .yx-why-item h4 { font-size: 19px !important; margin-bottom: 4px !important; }
.yx-why-item p { color: var(--yx-muted); font-size: 15px; }

/* ---------- Highlights ---------- */
.yx-hls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.yx-hl { position: relative; border-radius: var(--yx-radius); overflow: hidden; min-height: 380px; color: #fff !important; display: flex; align-items: flex-end; }
.yx-hl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.yx-hl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 20, 48, 0) 30%, rgba(14, 20, 48, .9) 100%); }
.yx-hl:hover img { transform: scale(1.05); }
.yx-hl > div { position: relative; z-index: 1; padding: 28px; }
.yx .yx-hl h3 { font-size: 24px !important; margin-bottom: 8px !important; color: #fff !important; }
.yx-hl p { color: rgba(255, 255, 255, .85); font-size: 15px; }
/* 4 cards: 2x2 on tablets (phones stack to 1 column in the 860px rule below) */
@media (max-width: 1099px) { .yx-hls { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Process ---------- */
.yx-process { background: var(--yx-navy); color: #fff; }
.yx .yx-process .yx-head h2 { color: #fff; }
.yx-process .yx-head p { color: rgba(255, 255, 255, .75); }
.yx-process .yx-eyebrow { color: var(--yx-gold); }
.yx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.yx-step { padding: 30px 26px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--yx-radius); background: rgba(255, 255, 255, .04); }
.yx-step-num { display: block; font-family: Exo, sans-serif !important; font-size: 40px !important; font-weight: 700; color: var(--yx-gold) !important; margin-bottom: 14px; line-height: 1 !important; }
.yx .yx-step h3 { font-size: 20px !important; margin-bottom: 8px !important; color: #fff !important; }
.yx-step p { color: rgba(255, 255, 255, .75); font-size: 15px; }

/* ---------- Client logos ---------- */
.yx-clients { padding: 64px 0; border-bottom: 1px solid var(--yx-line); }
.yx-clients-title { text-align: center; color: var(--yx-muted) !important; font-size: 14px !important; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 28px !important; opacity: 1 !important; }
.yx-logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.yx-logos > div { height: 64px; display: grid; place-items: center; font-size: 13px; }

/* ---------- Insights ---------- */
.yx-ins-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.yx-ins-head .yx-head { margin-bottom: 0; }
.yx-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.yx-post { border-radius: var(--yx-radius); overflow: hidden; background: #fff; border: 1px solid var(--yx-line); color: var(--yx-ink) !important; transition: box-shadow .25s, transform .25s; }
.yx-post:hover { box-shadow: var(--yx-shadow-lg); transform: translateY(-4px); }
.yx-post img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.yx-post > div { padding: 22px 22px 26px; }
.yx-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--yx-blue); background: var(--yx-blue-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.yx .yx-post h3 { font-size: 19px !important; line-height: 1.35 !important; }

/* ---------- CTA band ---------- */
.yx-cta { padding: 0 0 96px; }
.yx-cta-box { background: linear-gradient(120deg, var(--yx-navy) 0%, var(--yx-blue) 100%); border-radius: 28px; padding: 64px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.yx .yx-cta-box h2 { font-size: clamp(28px, 3.6vw, 40px) !important; max-width: 620px; color: #fff !important; }
.yx-cta-box p { color: rgba(255, 255, 255, .85); margin-top: 10px !important; font-size: 17px; }

/* ==========================================================================
   Footer (shared by all pages)
   ========================================================================== */
.yx-footer { background: var(--yx-bg-soft); border-top: 1px solid var(--yx-line); color: var(--yx-muted); padding: 72px 0 28px; font-size: 15px; font-family: Inter, sans-serif; line-height: 1.6; }
.yx-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.yx-footer h4 { color: var(--yx-ink) !important; font-size: 16px !important; margin: 0 0 16px !important; font-family: Inter, sans-serif !important; font-weight: 600 !important; text-transform: none !important; }
.yx-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.yx-footer p { margin: 0; }
.yx-footer a { color: var(--yx-muted) !important; text-decoration: none !important; }
.yx-footer a:hover { color: var(--yx-blue) !important; }
.yx-foot-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.yx-foot-contact p { margin-bottom: 10px; }
/* Office address blocks (kept from the old footer, incl. schema.org markup) */
.yx-footer .yx-foot-office { font-size: 13px !important; letter-spacing: .1em; text-transform: uppercase !important; color: #8a6d26 !important; margin: 22px 0 8px !important; } /* darker gold: readable on light background */
.yx-footer .media-heading { margin: 0; font-size: 14px; line-height: 1.6; color: var(--yx-muted); }
.yx-footer .media-heading .u-url { display: none; } /* empty organisation-name link */
.yx-footer .media-heading p, .yx-footer .media-heading div, .yx-footer .media-heading span { font-size: 14px !important; color: var(--yx-muted) !important; margin: 0 !important; padding: 0 !important; display: inline; }
.yx-footer .media-heading .street-address { display: block; }
.yx-footer .media-heading br + span, .yx-footer .media-heading .locality { display: inline; }
.yx-foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--yx-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
/* Office map: in the brand column under the tagline, zoomed to Europe-Asia so pins and labels stay readable */
.yx-foot-map-frame { margin-top: 28px; max-width: 380px; overflow: hidden; border-radius: 12px; }
.yx-foot-brand .yx-foot-map { display: block; width: 200% !important; max-width: none; height: auto !important; margin: 0 0 0 -68% !important; } /* more specific than the logo rule (.yx-foot-brand img) */
@media (max-width: 1024px) { .yx-foot-map-frame { max-width: 460px; } }
/* Office addresses: same type as the rest of the footer, even line spacing */
.yx-foot-addr { font-style: normal; margin: 0; }
.yx-footer .yx-foot-addr span { display: inline; font-size: 15px !important; line-height: 1.7 !important; color: var(--yx-muted) !important; }
.yx-footer .yx-foot-addr > span { display: block; }
/* Even footer text sizes (legacy CSS forces p/li to 20px); addresses keep their 14px rule above */
.yx-footer ul li, .yx-footer ul li a, .yx-foot-brand p, .yx-foot-contact > p, .yx-foot-contact > p a { font-size: 16px !important; line-height: 1.6 !important; }
.yx-foot-bottom, .yx-foot-bottom span, .yx-foot-bottom a { font-size: 14px !important; }
/* Legacy CSS makes p/span white; on the light footer use the muted text colour */
.yx-footer p, .yx-footer span, .yx-footer li { color: var(--yx-muted) !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.yx-services { grid-template-columns: repeat(2, 1fr); }
	.yx-steps { grid-template-columns: repeat(2, 1fr); }
	.yx-foot-grid { grid-template-columns: 1fr 1fr; }
	.yx-logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
	.yx-why { grid-template-columns: 1fr; gap: 40px; }
	.yx-hls, .yx-posts { grid-template-columns: 1fr; }
	.yx-stats-grid { grid-template-columns: repeat(2, 1fr); }
	.yx-stat:nth-child(2) { border-right: 0; }
	.yx-stat:nth-child(-n+2) { border-bottom: 1px solid var(--yx-line); }
}
@media (max-width: 600px) {
	.yx-section { padding: 72px 0; }
	.yx-wrap { padding: 0 16px; }
	.yx-hero { min-height: 560px; padding: 90px 0 100px; }
	.yx-hero::before { background: rgba(14, 20, 48, .85); }
	.yx-hero p { font-size: 17px; }
	.yx-services, .yx-steps { grid-template-columns: 1fr; }
	.yx-stat { padding: 22px 18px; }
	.yx-stat strong { font-size: 30px; }
	.yx-cta-box { padding: 40px 26px; }
	.yx-foot-grid { grid-template-columns: 1fr; }
	.yx-logos { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Home: original stacked service cards (restored) ----
   Legacy card styles come from app.css under "div.page.homepage".
   The base .yx heading/paragraph rules above skip .homepage, so the cards keep their original look.
   z-index: 0 makes a stacking context, so the cards' z-index:-1 coloured backgrounds
   are painted above the white .yx page background instead of behind it. */
.yx-legacy-cards { position: relative; z-index: 0; background: transparent; }

/* ---- Home: "Why Yodhin" expandable points (+ / -) ---- */
.yx-acc { gap: 12px; }
.yx-acc-item { background: #fff; border: 1px solid var(--yx-line); border-radius: 14px; transition: box-shadow .25s ease, border-color .25s ease; }
.yx-acc-item:hover, .yx-acc-item[open] { border-color: #c9d6ee; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.yx-acc-item summary { display: flex; align-items: center; gap: 16px; padding: 14px 18px; cursor: pointer; list-style: none; }
.yx-acc-item summary::-webkit-details-marker { display: none; } /* hide Safari's default triangle */
.yx-acc-item summary:focus-visible { outline: 2px solid var(--yx-blue); outline-offset: 2px; border-radius: 14px; }
.yx .yx-acc-item h4 { flex: 1; font-size: 19px !important; }
/* The "+" is two bars; the vertical bar rotates flat when open, turning it into "-" */
.yx-plus { position: relative; flex: none; width: 22px; height: 22px; }
.yx-plus::before, .yx-plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--yx-navy); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s ease; }
.yx-plus::before { width: 18px; height: 2px; }
.yx-plus::after { width: 2px; height: 18px; }
.yx-acc-item[open] .yx-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.yx-acc-item p { color: var(--yx-muted); font-size: 15px; line-height: 1.65; padding: 0 18px 18px 78px; animation: yx-acc-in .3s ease; }
@keyframes yx-acc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .yx-acc-item p { padding-left: 18px; } }
/* Keep the photo still when a row opens (it was re-centring against the growing text column) */
.yx-why-img { align-self: start; }
/* Focus ring only for keyboard users; a mouse click just opens the row */
.yx-acc-item summary:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }

/* ---- Home: client logo row (overrides the old 6-placeholder grid) ----
   Logos sit in equal boxes; max-height/max-width + object-fit keep very different shapes at a similar visual size.
   Grey by default, full colour on hover (or keyboard focus within the row). */
.yx-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; }
.yx-logos > .yx-logo { height: 72px; width: 190px; display: flex; align-items: center; justify-content: center; }
.yx-logo img { max-height: 46px; max-width: 170px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: .65; transition: filter .3s ease, opacity .3s ease; }
.yx-logo:hover img { filter: none; opacity: 1; }
.yx-logo[hidden] { display: none; }
@media (max-width: 600px) {
	.yx-logos { gap: 20px 28px; }
	.yx-logos > .yx-logo { width: 42%; height: 60px; }
	.yx-logo img { max-height: 38px; max-width: 100%; }
}

/* Phones: custom.css (mobile view, 320-767px) shifts the pinned service cards up 100px
   (.services-cards .pin-spacer { top:-100px }). Add the same space back so the first card's
   heading isn't hidden behind the stats strip. 26px = the section's original top padding. */
@media (max-width: 767px) { .yx-legacy-cards .services { padding-top: 126px !important; } }

/* ---------- Page banner titles: now <h1> (SEO) but styled exactly like the <h2> they replaced ---------- */
div.page div.landing div.container div.content h1.yx-page-title {
	font-size: 45px !important;
	line-height: 50px !important;
	font-weight: 400 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	margin: 0.83em 0 !important;
}

/* ---------- Home stacked service cards: smaller titles on desktop/tablet (phones already use ~23px) ---------- */
@media (min-width: 768px) {
	.yx-legacy-cards .service-card .title-row h2 {
		font-size: 34px !important;
		line-height: 42px !important;
	}
	/* Shorter cards: less empty space (was min-height 502px, 95px title gap, 74px bottom padding).
	   Safe for the GSAP stacking: initHomepageAnims() reads each card's real height at load. */
	div.page.homepage.yx-legacy-cards div.services div.container div.services-cards div.service-card {
		min-height: 360px;
		padding-bottom: 48px !important;
	}
	div.page.homepage.yx-legacy-cards div.services div.container div.services-cards div.service-card div.title-row {
		margin-bottom: 40px;
	}
}

/* Type consistency: legacy CSS forces every span to 19px and headings to black (!important).
   Keep small labels small and card headings in the brand ink colour on every page. */
.yx .yx-eyebrow { font-size: 13px !important; line-height: 1.4 !important; }
.yx .yx-tag { font-size: 12px !important; line-height: 1.4 !important; }
.yx .yx-post h3 { color: var(--yx-ink) !important; }

/* Careers banner heading is the page H1 (for SEO); keep the look of the old h2. */
.aboutheading h1.yx-career-title { font-family: Exo, sans-serif !important; font-size: 45px !important; line-height: 50px !important; font-weight: 400 !important; color: #000 !important; text-transform: none !important; letter-spacing: normal !important; margin: 20px 0 10px !important; padding: 0 !important; }

/* Service pages: call to action + related Insights article (ui/service-cta.htm).
   Legacy CSS forces h2/p/span sizes and colours with !important, so these rules do too. */
.yx-svc-cta { padding: 72px 0; background: #fff; }
.yx-svc-cta-box { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; padding: 44px 48px; border-radius: var(--yx-radius); background: linear-gradient(135deg, var(--yx-navy) 0%, var(--yx-navy-2) 60%, var(--yx-blue-dark) 140%); color: #fff; box-shadow: var(--yx-shadow-lg); }
.yx-svc-cta .yx-svc-cta-eyebrow { display: block; font-size: 12px !important; line-height: 1.4 !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--yx-gold) !important; margin-bottom: 12px; }
.yx-svc-cta .yx-svc-cta-main h2 { font-family: Exo, Inter, sans-serif !important; font-size: clamp(26px, 3vw, 34px) !important; line-height: 1.2 !important; font-weight: 600 !important; color: #fff !important; text-transform: none !important; margin: 0 0 12px !important; }
.yx-svc-cta .yx-svc-cta-main p { font-size: 17px !important; line-height: 1.6 !important; color: rgba(255, 255, 255, .85) !important; margin: 0 0 24px !important; max-width: 520px; }
.yx-svc-related { display: block; padding: 24px 26px; border-radius: 14px; background: #fff; color: var(--yx-ink) !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.yx-svc-related:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }
.yx-svc-cta .yx-svc-related-label { display: block; font-size: 12px !important; line-height: 1.4 !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--yx-blue) !important; margin-bottom: 8px; }
.yx-svc-related strong { display: block; font-family: Exo, Inter, sans-serif; font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--yx-ink); margin-bottom: 12px; }
.yx-svc-cta .yx-svc-related-more { display: block; font-size: 15px !important; line-height: 1.4 !important; font-weight: 600; color: var(--yx-blue) !important; }
@media (max-width: 860px) {
	.yx-svc-cta { padding: 48px 0; }
	.yx-svc-cta-box { grid-template-columns: 1fr; padding: 32px 24px; }
}

/* Floating chat buttons, bottom-right. The "Chat with us" launcher reuses the round #work_with_us style from app.css
   (white circle, dark uppercase text); only the hidden state and unread badge are added here. */
.yx-chat-btn.is-hidden { display: none !important; }
/* Small "tawk.to" label under CHAT WITH US (button is flex-centred by app.css; stack the lines vertically) */
a#work_with_us.yx-chat-btn { flex-direction: column; }
.yx-chat-btn .yx-chat-sub { display: block; margin-top: 4px; font-family: Inter, sans-serif; font-size: 11px; line-height: 1; font-weight: 500; letter-spacing: .04em; color: var(--yx-muted); }
@media (max-width: 768px) { .yx-chat-btn .yx-chat-sub { font-size: 10px; margin-top: 2px; } }
/* Keep Tawk.to's own bubble, sticker and preview hidden (no flash on page load) until the visitor opens the chat */
html:not(.yx-chat-open) iframe[title="Chat widget"],
html:not(.yx-chat-open) iframe[title="Visit tawk.to"] { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.yx-chat-badge { position: absolute; top: 4px; right: 4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: #e5484d; color: #fff; font: 700 12px/24px Inter, sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 2px #fff; }
.yx-wa { position: fixed; right: 20px; bottom: 20px; z-index: 2147483000; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); transition: transform .2s, box-shadow .2s; }
.yx-wa:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 28px rgba(15, 23, 42, .3); }
.yx-wa.yx-wa-stacked { right: 114px; bottom: 228px; } /* centred above the round "Chat with us" button */
@media (max-width: 767px) {
	.yx-wa { right: 12px; bottom: 12px; width: 50px; height: 50px; }
	.yx-wa.yx-wa-stacked { right: 62px; bottom: 164px; }
}

/* Client strip: text-only client names styled like the grey logos; [hidden] slots must not take up space */
.yx-logos > [hidden] { display: none !important; }
.yx-logos > .yx-logo-text { font-family: Inter, sans-serif; font-size: 30px !important; font-weight: 700; letter-spacing: -0.01em; line-height: 1; color: #8a8f98; white-space: nowrap; opacity: .8; transition: color .3s ease, opacity .3s ease; }
.yx-logos > .yx-logo-text:hover { color: var(--yx-navy); opacity: 1; } /* like the logos: grey, brand colour on hover */
@media (max-width: 767px) { .yx-logos > .yx-logo-text { font-size: 22px !important; } }

/* Desktop header: align logo and menu with the page content (same width as .yx-wrap) and put the
   menu + Contact Us on the right. The right-wrapper only holds the phone menu button, empty on desktop. */
@media (min-width: 1100px) {
	html body nav#navigation div#navbar { box-sizing: border-box; width: 100% !important; padding: 10px max(24px, calc((100% - var(--yx-max)) / 2)) !important; }
	nav#navigation #navbar .right-wrapper { display: none !important; }
	nav#navigation #navbar .yx-nav { margin-left: auto; }
}

/* Large monitors: widen the content column so the page doesn't look like a narrow strip with empty margins
   (header, hero and sections all follow --yx-max, so they stay aligned). */
@media (min-width: 1600px) { :root { --yx-max: 1400px; } }
@media (min-width: 1600px) {
	/* Home stacked service cards (legacy container) follow the same column width */
	div.page.homepage.yx-legacy-cards div.services div.container { width: auto !important; max-width: var(--yx-max) !important; padding-left: 0 !important; padding-right: 0 !important; }
	/* Older pages (services, About, Careers): the fixed 1170px containers follow the same column so the
	   content edge lines up with the header (Contact keeps its centred layout). Careers' container keeps Bootstrap's 15px side padding (+30px). */
	:is(div.page.service, div.page.about-us) div.container { width: auto !important; max-width: var(--yx-max) !important; }
	/* Intro paragraphs under page titles keep a comfortable line length */
	:is(div.page.service, div.page.about-us) > :is(.landing, .brand-intro) .content p { max-width: 980px; margin-left: auto !important; margin-right: auto !important; }
	div.page.service > .landing > .container > .content { margin-left: auto !important; margin-right: auto !important; } /* centre the intro block in the flex row */
	section.digits div.container { width: auto !important; max-width: calc(var(--yx-max) + 30px) !important; }
}

/* Header: white bar with a thin divider (was a grey-blue strip) and more breathing room between menu items */
html body nav#navigation { background: #fff !important; border-bottom: 1px solid var(--yx-line); }
/* Logo as a block: removes the space under an inline image so it is centred in the bar on every page
   (Careers loads extra Bootstrap CSS that changed the image alignment and moved the logo 3px) */
nav#navigation #logo img { display: block; }
/* Careers also loads Bootstrap 3 (for its job pop-up), whose global rules (box-sizing, .container padding)
   reshape the shared header and phone menu. Restore the browser defaults the other pages use. */
html body nav#navigation, html body nav#navigation *, html body nav#navigation *::before, html body nav#navigation *::after { box-sizing: content-box; }
html body nav#navigation #nav_menu .container { padding-left: 0; padding-right: 0; }
@media (min-width: 1100px) {
	.yx-nav { gap: 44px !important; }
	.yx-nav > ul { gap: 40px !important; }
	.yx-nav > ul > li > a { font-size: 16px !important; }
}

/* Chat circle: fixed, perfectly round sizes (desktop 146px, tablet/phone 114px, small phone 88px) */
a#work_with_us.yx-chat-btn { box-sizing: border-box; width: 146px !important; height: 146px !important; padding: 0 !important; border-radius: 50% !important; justify-content: center; }
a#work_with_us.yx-chat-btn h5 { font-size: 22px !important; line-height: 1.2 !important; margin: 0 !important; }
@media (max-width: 768px) {
	a#work_with_us.yx-chat-btn { width: 114px !important; height: 114px !important; }
	a#work_with_us.yx-chat-btn h5 { font-size: 16px !important; }
}
@media (max-width: 480px) {
	a#work_with_us.yx-chat-btn { width: 88px !important; height: 88px !important; right: 14px !important; bottom: 14px !important; }
	a#work_with_us.yx-chat-btn h5 { font-size: 12.5px !important; }
	.yx-chat-btn .yx-chat-sub { font-size: 8.5px; margin-top: 2px; }
	.yx-chat-badge { min-width: 20px; height: 20px; font-size: 11px; line-height: 20px; top: 0; right: 0; }
	.yx-wa.yx-wa-stacked { right: 33px; bottom: 114px; }
}
