/**
 * Pure Haven IT — Typography system (final authority).
 * Montserrat headings, Inter body. Brand colours only — no new palette.
 */

/* ==========================================================================
   Global sharpness + anti-default black
   ========================================================================== */
body.ph-body {
	font-family: 'Inter', var(--ph-font-body), sans-serif !important;
	font-size: 17px;
	line-height: 1.65;
	color: #1E293B !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "kern" 1, "liga" 1;
}

body.ph-body .ph-site-main,
body.ph-body .ph-page-shell {
	color: #1E293B !important;
}

/* Block accidental pure-black text in theme content */
body.ph-body .ph-site-main p,
body.ph-body .ph-site-main li,
body.ph-body .ph-site-main .ph-prose p,
body.ph-body .ph-site-main .ph-sharp-card p,
body.ph-body .ph-site-main .ph-card p,
body.ph-body .ph-site-main .ph-tile p,
body.ph-body .ph-site-main .ph-surface-card p,
body.ph-body .entry-content p,
body.ph-body .entry-content li {
	color: #1E293B !important;
	font-family: 'Inter', var(--ph-font-body), sans-serif !important;
	font-size: 1rem;
	line-height: 1.65;
}

/* ==========================================================================
   Headings — navy, premium weight, striking hierarchy
   ========================================================================== */
body.ph-body .ph-site-main h1,
body.ph-body .ph-site-main h2,
body.ph-body .ph-site-main h3,
body.ph-body .ph-site-main h4,
body.ph-body .ph-site-main .ph-h2,
body.ph-body .ph-site-main .ph-h3,
body.ph-body .ph-page-shell h1,
body.ph-body .ph-page-shell h2,
body.ph-body .ph-page-shell h3 {
	font-family: 'Montserrat', var(--ph-font-heading), sans-serif !important;
	color: #0D1B3E !important;
	font-weight: 700 !important;
	letter-spacing: -0.025em !important;
	line-height: 1.15 !important;
}

body.ph-body .ph-site-main .ph-page-hero__title,
body.ph-body .ph-page-shell .ph-page-hero__title {
	font-size: clamp(2rem, 4.5vw, 2.75rem) !important;
	font-weight: 800 !important;
	letter-spacing: -0.03em !important;
	color: #0D1B3E !important;
}

body.ph-body .ph-site-main .ph-hero__title {
	font-family: 'Montserrat', var(--ph-font-heading), sans-serif !important;
	font-weight: 800 !important;
	letter-spacing: -0.03em !important;
	color: #FFFFFF !important;
	line-height: 1.1 !important;
}

body.ph-body .ph-site-main .ph-h2,
body.ph-body .ph-site-main h2.ph-h2 {
	font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
	font-weight: 700 !important;
}

/* Section titles override generic h2 sizing */
body.ph-body .ph-section-title {
	font-size: clamp(2rem, 3.8vw, 2.75rem) !important;
	font-weight: 800 !important;
}

body.ph-body .ph-site-main .ph-h3,
body.ph-body .ph-site-main h3.ph-h3 {
	font-size: clamp(1.15rem, 2vw, 1.35rem) !important;
	font-weight: 700 !important;
	margin-bottom: var(--ph-space-sm) !important;
}

/* ==========================================================================
   Eyebrows — electric blue (#0066FF)
   ========================================================================== */
body.ph-body .ph-eyebrow,
body.ph-body .ph-eyebrow-anim,
body.ph-body .ph-section-header__eyebrow {
	display: inline-block;
	font-family: 'Inter', var(--ph-font-body), sans-serif !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	color: #0066FF !important;
	margin-bottom: var(--ph-space-md) !important;
}

body.ph-body .ph-hero .ph-eyebrow,
body.ph-body .ph-hero .ph-eyebrow-anim {
	color: #66a3ff !important;
}

/* ==========================================================================
   Body, lead, captions
   ========================================================================== */
body.ph-body .ph-body-text,
body.ph-body .ph-lead {
	font-family: 'Inter', var(--ph-font-body), sans-serif !important;
	color: #1E293B !important;
	line-height: 1.65 !important;
}

body.ph-body .ph-lead {
	font-size: 1.125rem !important;
	font-weight: 400 !important;
}

body.ph-body .ph-caption,
body.ph-body .ph-note,
body.ph-body .ph-quote-meta,
body.ph-body .ph-section-header__text:not(.ph-section-intro),
body.ph-body .ph-trust-strip__label,
body.ph-body .ph-counter__label {
	font-family: 'Inter', var(--ph-font-body), sans-serif !important;
	font-size: 0.9375rem !important;
	color: #000000 !important;
	line-height: 1.55 !important;
}

body.ph-body .ph-hero .ph-hero__subtitle,
body.ph-body .ph-hero .ph-hero__micro {
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: 1.0625rem !important;
	line-height: 1.65 !important;
}

body.ph-body .ph-page-hero__subtitle {
	color: #000000 !important;
	font-size: 1.125rem !important;
	line-height: 1.65 !important;
	max-width: 720px;
}

/* ==========================================================================
   Links and CTAs
   ========================================================================== */
body.ph-body .ph-site-main a:not(.ph-btn):not(.ph-card a):not(.ph-tile a) {
	color: #0066FF !important;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

body.ph-body .ph-site-main a:not(.ph-btn):hover {
	color: #0052CC !important;
}

body.ph-body .ph-hero__link a {
	color: #66a3ff !important;
}

body.ph-body .ph-btn {
	font-family: 'Inter', var(--ph-font-body), sans-serif !important;
	font-weight: 600 !important;
	font-size: 0.9375rem !important;
	letter-spacing: 0.01em !important;
}

/* ==========================================================================
   Card typography
   ========================================================================== */
body.ph-body .ph-sharp-card .ph-h3 {
	margin-bottom: var(--ph-space-sm) !important;
}

body.ph-body .ph-sharp-card p {
	margin: 0 !important;
}

body.ph-body .ph-check-list li {
	color: #1E293B !important;
	font-size: 1rem !important;
	line-height: 1.6 !important;
}

/* Highlights — brand blue or teal only */
body.ph-body .ph-text-highlight {
	color: #00B4A6 !important;
	font-weight: 600 !important;
}

body.ph-body .ph-text-primary {
	color: #0066FF !important;
	font-weight: 600 !important;
}

/* ==========================================================================
   Page-specific shells (all inner pages)
   ========================================================================== */
body.ph-body .ph-page-shell .ph-page-section {
	padding: var(--ph-section-padding) 0;
}

body.ph-body.page-template-default .ph-site-main,
body.ph-body .ph-jobs-shell {
	color: #1E293B !important;
}

/* Nav */
body.ph-body .main-header-menu a,
body.ph-body .ast-builder-menu a {
	font-family: 'Inter', var(--ph-font-body), sans-serif !important;
	font-weight: 500 !important;
	color: #0D1B3E !important;
}

body.ph-body .main-header-menu a:hover,
body.ph-body .ast-builder-menu a:hover {
	color: #0066FF !important;
}

/* ==========================================================================
   Heading motion (subtle underline reveal — selected headings)
   ========================================================================== */
body.ph-body .ph-heading-anim {
	display: inline-block;
}

body.ph-body .ph-heading-anim::after {
	content: "";
	display: block;
	width: 72px;
	height: 4px;
	margin-top: 14px;
	border-radius: 2px;
	background: linear-gradient(90deg, #0066FF 0%, #0066FF 60%, #00B4A6 100%);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

body.ph-body .ph-section-header--center .ph-heading-anim::after {
	margin-inline: auto;
	transform-origin: center center;
}

body.ph-body .ph-heading-anim.is-visible::after,
body.ph-body .ph-reveal.is-visible .ph-heading-anim::after,
body.ph-body .ph-page-hero .ph-heading-anim::after {
	transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
	body.ph-body .ph-heading-anim::after {
		transition: none;
		transform: scaleX(1);
	}
}
