/* ==========================================================================
   Section headings — one shared style for every homepage section below the
   hero. Loaded last so it wins over the per-section rules without needing
   inflated selectors.
   ========================================================================== */

:root {
	--eit-h2-size: 46px;
	--eit-h2-weight: 600;
	--eit-h2-line: 56.12px;
	--eit-h2-gradient: linear-gradient(95deg, #3b4fe8 0%, #6f7ef2 38%, #8f8fe8 68%, #b9a2d8 100%);
}

.eit-stack__title,
.eit-promise__title,
.eit-tech__title,
.eit-faq__title,
.eit-about__title,
.eit-intro__title,
.eit-tsvc__title,
.eit-tben__title,
.eit-twhy__title,
.eit-trel__title,
.eit-tproc__title,
.eit-tstat__title,
.eit-ttool__title,
.eit-life__title,
.eit-perks__title,
.eit-jobs__title,
.eit-apply__title,
.eit-fxs__title,
.eit-fxseg__title,
.eit-fxf__title,
.eit-fxa__title,
.eit-fxt__title,
.eit-fxp__title,
.eit-fxc__title,
.eit-fxv__title,
.eit-fxr__title,
.eit-fxm__title,
.eit-cta__title,
.eit-pr__title,
.eit-cap__title,
.eit-show__title,
.eit-svc__title,
.eit-gp__title,
.eit-sv-title {
	font-size: var(--eit-h2-size);
	font-weight: var(--eit-h2-weight);
	line-height: var(--eit-h2-line);
	letter-spacing: -.02em;
}

/* ---------- Gradient ----------
   Only the tail of a heading carries the gradient; the opening words stay
   solid ink, as in the reference. Each section supplies its own split point,
   so the break lands on a phrase rather than wherever the line happens to
   wrap. The CTA heading sits on black and keeps its own light treatment. */

.eit-stack__title,
.eit-promise__title,
.eit-tech__title,
.eit-faq__title,
.eit-about__title,
.eit-intro__title,
.eit-tben__title,
.eit-twhy__title,
.eit-tproc__title,
.eit-ttool__title,
.eit-life__title,
.eit-jobs__title,
.eit-fxs__title,
.eit-fxf__title,
.eit-fxa__title,
.eit-fxt__title,
.eit-fxc__title,
.eit-fxv__title,
.eit-fxm__title,
.eit-sv-title,
.eit-svc__title,
.eit-gp__title { color: var(--eit-ink, #15181f); }

.eit-h2__accent,
.eit-about__accent,
.eit-promise__line:last-child {
	/* The ramp is painted across the element's own box, so a full-width block
	   shows only its opening colours behind a shorter run of text — which is
	   why a heading line set to `display: block` came out flat blue. Shrinking
	   the box to the words puts the whole gradient where it can be seen. It
	   still starts on its own line: the sibling before it is a block. */
	display: inline-block;
	background: var(--eit-h2-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Without background-clip the text would render fully transparent, so give
   those browsers a solid colour back. */
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
	.eit-h2__accent,
	.eit-about__accent,
	.eit-promise__line:last-child { color: var(--eit-accent, #3b4fe8); }
}

/* The full stop is inside the gradient run now, so a separate accent colour
   on it would read as a stray dot. */
.eit-promise__dot { color: inherit; }

/* ---------- Smaller screens ----------
   46px/56px is a desktop measure; held at that size a heading like "Software
   Development Company Serving Start-ups to Fortune 500" runs many lines deep
   on a phone. Scale proportionally instead, keeping the same ratio. */

@media (max-width: 900px) {
	:root {
		--eit-h2-size: clamp(28px, 5.4vw, 46px);
		--eit-h2-line: 1.22;
	}
}

/* ---------- Hub pages (/services/, /industries/) ----------
   Hero and every section heading share one 45px size on these two pages
   (body class from eit_child_body_class()), scaling down the same way on
   smaller screens. */

.eit-hub-page {
	--eit-h2-size: 45px;
	--eit-h2-line: 1.22;
}
.eit-hub-page .eit-svh__title,
.eit-hub-page .eit-svr__title {
	font-size: var(--eit-h2-size);
	line-height: 1.15;
	letter-spacing: -.02em;
}
.eit-hub-page .eit-svr__title { font-weight: var(--eit-h2-weight); line-height: var(--eit-h2-line); }

@media (max-width: 900px) {
	.eit-hub-page { --eit-h2-size: clamp(28px, 5.4vw, 45px); }
}
@media (max-width: 767px) {
	.eit-hub-page .eit-svh__title { font-size: clamp(32px, 8.5vw, 45px); }
}

/* ---------- Inline links in body copy (eit_child_rich_text) ---------- */

.eit-inline-link {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--eit-accent, #3b4fe8) 55%, transparent);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: color .2s ease, text-decoration-color .2s ease;
}
.eit-inline-link:hover,
.eit-inline-link:focus-visible {
	color: var(--eit-accent, #3b4fe8);
	text-decoration-color: currentColor;
}

/* On dark sections the link stays light, with a mint underline. */
.eit-fxp .eit-inline-link,
.eit-fxv--dark .eit-inline-link,
.eit-fxseg .eit-inline-link,
.eit-fxr .eit-inline-link,
.eit-ihero .eit-inline-link { color: #ffffff; text-decoration-color: #6ee7b7; }
.eit-fxp .eit-inline-link:hover,
.eit-fxseg .eit-inline-link:hover,
.eit-fxr .eit-inline-link:hover,
.eit-ihero .eit-inline-link:hover { color: #6ee7b7; }
