/**
 * Pure Haven IT — Global text colour system (text only).
 * Light sections: deep navy body, charcoal secondary.
 * Dark sections: overridden in functions.php wp_head (priority 10000).
 */

:root {
	--ph-text-primary: #000000;
	--ph-text-secondary: #000000;
	--ph-text-heading: #0F172A;
	--ph-text-inverse: #FFFFFF;
	--ph-text-inverse-soft: #F0F4FF;
	--ph-text-inverse-muted: #CBD5E1;
	--ph-text-royal-subheading: #2A5494;
	--ph-text-royal-subheading-mobile: #26508C;
}

/* --------------------------------------------------------------------------
   Light context — base
   -------------------------------------------------------------------------- */
body.ph-body,
body.ph-body .site-content,
body.ph-body #primary,
body.ph-body .ast-container,
body.ph-body .entry-content,
body.ph-body .elementor-widget-container,
body.ph-body .ph-site-main {
	color: var(--ph-text-primary) !important;
}

/* --------------------------------------------------------------------------
   Light context — body copy
   -------------------------------------------------------------------------- */
body.ph-body .ph-site-main p,
body.ph-body .ph-prose p,
body.ph-body .ph-body-text,
body.ph-body .ph-lead,
body.ph-body .ph-check-list li,
body.ph-body .ph-icon-grid__item,
body.ph-body .ph-tile__text,
body.ph-body .ph-card p,
body.ph-body .ph-surface-card p,
body.ph-body .ph-sharp-card:not(.ph-sharp-card--navy) p,
body.ph-body .ph-quote-panel .ph-quote {
	color: var(--ph-text-primary) !important;
}

/* Secondary / supporting text on light backgrounds */
body.ph-body .ph-note,
body.ph-body .ph-caption,
body.ph-body .ph-quote-meta,
body.ph-body .ph-section-intro,
body.ph-body .ph-section-header__text,
body.ph-body .ph-trust-strip__label,
body.ph-body .ph-counter__label,
body.ph-body .ph-page-hero--light .ph-page-hero__subtitle,
body.ph-body .ph-page-hero--surface .ph-page-hero__subtitle,
body.ph-body .ph-feature-panel__body p,
body.ph-body .ph-visual-split__text,
body.ph-body .ph-referral-panel p:not(.ph-btn),
body.ph-body .ph-glass-panel--surface .ph-glass-panel__list li,
body.ph-body .ph-band--surface .ph-glass-panel__list li {
	color: var(--ph-text-secondary) !important;
}

/* --------------------------------------------------------------------------
   Light context — headings (high contrast navy)
   -------------------------------------------------------------------------- */
body.ph-body .ph-site-main h1:not(.ph-hero__title):not(.ph-page-hero__title),
body.ph-body .ph-site-main h2:not(.ph-subheading--royal):not(.ph-text-inverse),
body.ph-body .ph-site-main h3:not(.ph-subheading--royal):not(.ph-text-inverse),
body.ph-body .ph-site-main h4:not(.ph-text-inverse),
body.ph-body .ph-section-title:not(.ph-subheading--royal),
body.ph-body .ph-feature-panel__title,
body.ph-body .ph-visual-split__title:not(.ph-subheading--royal),
body.ph-body .ph-page-hero--light .ph-page-hero__title,
body.ph-body .ph-page-hero--surface .ph-page-hero__title,
body.ph-body .ph-h2:not(.ph-subheading--royal):not(.ph-text-inverse),
body.ph-body .ph-h3:not(.ph-subheading--royal):not(.ph-text-inverse),
body.ph-body .elementor-heading-title {
	color: var(--ph-text-heading) !important;
}

/* --------------------------------------------------------------------------
   Inverse utilities (dark sections reinforced in wp_head)
   -------------------------------------------------------------------------- */
body.ph-body .ph-text-inverse {
	color: var(--ph-text-inverse) !important;
}

body.ph-body .ph-text-inverse-muted {
	color: var(--ph-text-inverse-muted) !important;
}

/* --------------------------------------------------------------------------
   Footer — light background, readable navy tones
   -------------------------------------------------------------------------- */
body.ph-body .site-footer,
body.ph-body .site-footer p,
body.ph-body .site-footer .ast-footer-copyright,
body.ph-body .site-footer .ast-footer-copyright p {
	color: var(--ph-text-secondary) !important;
}

body.ph-body .site-footer a {
	color: var(--ph-text-primary) !important;
}

body.ph-body .site-footer a:hover,
body.ph-body .site-footer a:focus {
	color: #0066FF !important;
}

/* --------------------------------------------------------------------------
   Navigation — header links
   -------------------------------------------------------------------------- */
body.ph-body .main-header-menu .menu-item a,
body.ph-body .ast-builder-menu .menu-item a,
body.ph-body .site-header .main-header-menu a {
	color: var(--ph-text-heading) !important;
}

body.ph-body .main-header-menu .menu-item a:hover,
body.ph-body .ast-builder-menu .menu-item a:hover,
body.ph-body .main-header-menu .current-menu-item > a,
body.ph-body .ast-builder-menu .current-menu-item > a {
	color: #0066FF !important;
}

/* --------------------------------------------------------------------------
   Overrides — no pure black body text
   -------------------------------------------------------------------------- */
body.ph-body .ph-site-main [style*="color: #000"],
body.ph-body .ph-site-main [style*="color:#000"],
body.ph-body .ph-feature-panel__highlight,
body.ph-body .ph-metric-card__number {
	color: #0066FF !important;
}

body.ph-body .ph-metric-card__label {
	color: #000000 !important;
}

/* --------------------------------------------------------------------------
   Jet black — section intros, card body, captions (beats late grey overrides)
   -------------------------------------------------------------------------- */
body.ph-body .ph-site-main .ph-section-intro,
body.ph-body .ph-site-main .ph-section-header__text,
body.ph-body .ph-section-intro,
body.ph-body .ph-section-header__text.ph-section-intro,
body.ph-body .ph-feature-panel__body p,
body.ph-body .ph-visual-split__text,
body.ph-body .ph-quote-meta,
body.ph-body .ph-caption,
body.ph-body .ph-why-us .ph-section-intro,
body.ph-body .ph-why-us .ph-feature-panel__body p,
body.ph-body .ph-services-section .ph-section-intro,
body.ph-body .ph-services-section .ph-feature-panel__body p {
	color: #000000 !important;
	-webkit-text-fill-color: #000000 !important;
}
