/* ==========================================================================
   Global H1 / H2 typography — unified editorial scale (ref: Naše usluge)
   Loaded last to override component-level overrides.
   Colors, spacing, and animations are not touched here.
   ========================================================================== */

h1,
.wm-h1,
.wm-display,
.wm-hero__title,
.wm-sp-hero__title,
.wm-ab-hero__title,
.wm-ptnr-hero__title,
.wm-pt-hero__title,
.wm-rad-hero__title,
.wm-case-hero__title,
.wm-cs-ref-hero__title,
.wm-subpage-hero__title,
.wm-subpage-hero--editorial .wm-subpage-hero__title,
.wm-subpage-hero--portfolio .wm-subpage-hero__title,
.about-ed-hero__headline,
.project-hero__title,
.about-hero-content h1,
.contact-hero h1,
.services-hero h1,
.case-transition-title {
	font-weight: var(--h1-font-weight, 600) !important;
}

/* Single source of truth — case study hero + PJAX overlay title (final size from first paint) */
.wm-rad-hero__title,
.case-transition-title {
	font-family: var(--font-display, 'Inter Tight', sans-serif) !important;
	font-size: clamp(48px, 8vw, 112px) !important;
	line-height: 0.98 !important;
	letter-spacing: -0.04em !important;
}

.wm-rad-hero__title {
	transform: none;
}

:is(
	h2:not(.wm-project-card__title):not(.wm-portfolio-item__title):not(.wm-sp-ed__title):not(.wm-ab-why__title):not(.case-transition-title),
	.wm-h2,
	.wm-home-services__title,
	.wm-home-services__intro-title,
	.wm-results__title,
	.wm-testimonials__title,
	.wm-faq__title,
	.wm-faq__title-main,
	.wm-sp-faq__title,
	.wm-sp-faq__title-main,
	.wm-sp-process__title,
	.wm-sp-process__heading,
	.wm-sp-cta__title,
	.wm-portfolio-preview__title,
	.wm-dark-cta__title,
	.wm-ab-stats__title,
	.wm-ab-values__title,
	.wm-prefooter-cta__title,
	.wm-global-prefooter-cta__title,
	.wm-pt-approach__title,
	.wm-services__heading,
	.wm-rad-related__title,
	.wm-rad-intro__title,
	.wm-case-cta__title,
	.wm-case-section-title,
	.wm-cs-ref-testimonial__title,
	.wm-cs-ref-heading,
	.wm-home-cta__title,
	.wm-why__title,
	.section-title,
	.wm-ab-reviews__intro-title,
	.wm-sp-process__heading,
	.wm-ptnr-services__title,
	.wm-ptnr-projects__title,
	.wm-ptnr-final__title,
	.wm-ptnr-problem__title,
	.wm-ptnr-dark__title,
	.wm-ptnr-models__title,
	.wm-footer__headline,
	.portfolio-page-process__title,
	.portfolio-page-cta__title,
	.wm-heading
) {
	font-family: var(--h2-font-family) !important;
	font-weight: var(--h2-font-weight) !important;
	font-size: var(--h2-font-size) !important;
	line-height: var(--h2-line-height) !important;
	letter-spacing: var(--h2-letter-spacing) !important;
	font-style: normal !important;
	max-width: 100%;
}

@media (max-width: 768px) {
	:is(
		h2:not(.wm-project-card__title):not(.wm-portfolio-item__title):not(.wm-sp-ed__title):not(.wm-ab-why__title):not(.case-transition-title),
		.wm-h2,
		.wm-home-services__title,
		.wm-home-services__intro-title,
		.wm-results__title,
		.wm-testimonials__title,
		.wm-faq__title,
		.wm-faq__title-main,
		.wm-sp-faq__title,
		.wm-sp-faq__title-main,
		.wm-sp-process__title,
		.wm-sp-process__heading,
		.wm-sp-cta__title,
		.wm-portfolio-preview__title,
		.wm-dark-cta__title,
		.wm-ab-stats__title,
		.wm-ab-values__title,
		.wm-prefooter-cta__title,
		.wm-global-prefooter-cta__title,
		.wm-pt-approach__title,
		.wm-services__heading,
		.wm-rad-related__title,
		.wm-rad-intro__title,
		.wm-case-cta__title,
		.wm-case-section-title,
		.wm-cs-ref-testimonial__title,
		.wm-cs-ref-heading,
		.wm-home-cta__title,
		.wm-why__title,
		.section-title,
		.wm-ab-reviews__intro-title,
		.wm-sp-process__heading,
		.wm-ptnr-services__title,
		.wm-ptnr-projects__title,
		.wm-ptnr-final__title,
		.wm-ptnr-problem__title,
		.wm-ptnr-dark__title,
		.wm-ptnr-models__title,
		.wm-footer__headline,
		.portfolio-page-process__title,
		.portfolio-page-cta__title,
		.wm-heading
	) {
		font-size: 34px !important;
		line-height: 1.12 !important;
		white-space: normal !important;
		overflow-wrap: break-word;
		word-wrap: break-word;
	}

	.wm-rad-hero__title,
	.case-transition-title {
		font-size: clamp(48px, 12vw, 64px) !important;
	}
}
