/**
 * Pure Haven IT — Premium feature panels + section typography hierarchy.
 * Brand colours and font families unchanged.
 */

/* ==========================================================================
   Section title hierarchy — H2 stands apart from intro
   ========================================================================== */
.ph-section-header {
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

body.ph-body .ph-section-title,
body.ph-body .ph-section-header .ph-h2.ph-section-title {
	font-family: 'Montserrat', var(--ph-font-heading), sans-serif !important;
	font-size: clamp(2rem, 3.8vw, 2.75rem) !important;
	font-weight: 800 !important;
	letter-spacing: -0.035em !important;
	line-height: 1.12 !important;
	color: #0D1B3E !important;
	margin: 0 !important;
}

body.ph-body .ph-section-header--center .ph-section-title {
	margin-inline: auto;
	max-width: 860px;
}

body.ph-body .ph-section-intro,
body.ph-body .ph-section-header__text.ph-section-intro {
	font-family: 'Inter', var(--ph-font-body), sans-serif !important;
	font-size: clamp(1.0625rem, 1.8vw, 1.1875rem) !important;
	font-weight: 400 !important;
	line-height: 1.72 !important;
	color: #000000 !important;
	margin: var(--ph-space-lg) auto 0 !important;
	max-width: 720px;
}

body.ph-body .ph-section-header--center .ph-section-intro {
	text-align: center;
}

/* Page hero subtitle — clearly subordinate to H1 */
body.ph-body .ph-page-hero__subtitle {
	font-size: 1.125rem !important;
	color: #000000 !important;
	font-weight: 400 !important;
	line-height: 1.72 !important;
	max-width: 720px;
}

/* ==========================================================================
   Premium feature panel
   ========================================================================== */
.ph-feature-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: clamp(1.5rem, 2.5vw, 2rem);
	border-radius: var(--ph-radius-xl);
	background: linear-gradient(165deg, #FFFFFF 0%, #F8FAFC 100%);
	box-shadow:
		0 1px 2px rgba(13, 27, 62, 0.05),
		0 12px 40px -14px rgba(13, 27, 62, 0.14);
	transition:
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.4s ease;
	overflow: hidden;
	min-height: 100%;
}

.ph-feature-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: linear-gradient(
		135deg,
		rgba(0, 102, 255, 0.65) 0%,
		rgba(0, 102, 255, 0.28) 35%,
		rgba(0, 180, 166, 0.3) 70%,
		rgba(226, 232, 240, 0.9) 100%
	);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	z-index: 1;
}

.ph-feature-panel::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #0066FF 0%, #00B4A6 100%);
	opacity: 0.85;
}

.ph-feature-panel:hover {
	transform: translateY(-6px);
	box-shadow:
		0 4px 12px rgba(13, 27, 62, 0.08),
		0 24px 56px -16px rgba(0, 102, 255, 0.22);
}

.ph-feature-panel--lead {
	background:
		linear-gradient(155deg, rgba(0, 102, 255, 0.1) 0%, rgba(230, 240, 255, 0.55) 38%, #FFFFFF 72%);
	box-shadow:
		0 8px 32px -10px rgba(0, 102, 255, 0.28),
		0 4px 16px rgba(13, 27, 62, 0.06);
}

.ph-feature-panel--lead::before {
	padding: 3px;
	background: linear-gradient(
		135deg,
		#0066FF 0%,
		rgba(0, 102, 255, 0.55) 40%,
		rgba(0, 180, 166, 0.45) 75%,
		rgba(255, 255, 255, 0.5) 100%
	);
}

.ph-feature-panel--lead::after {
	height: 4px;
	background: linear-gradient(90deg, #0066FF 0%, #0066FF 55%, #00B4A6 100%);
	opacity: 1;
}

/* Head row: badge + tag */
.ph-feature-panel__head {
	display: flex;
	align-items: center;
	gap: var(--ph-space-sm);
	margin-bottom: var(--ph-space-lg);
	flex-wrap: wrap;
}

.ph-feature-panel__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border-radius: var(--ph-radius-md);
	font-family: 'Montserrat', var(--ph-font-heading), sans-serif;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #0066FF;
	background: linear-gradient(145deg, #E6F0FF 0%, #FFFFFF 100%);
	box-shadow: 0 4px 16px rgba(0, 102, 255, 0.2);
	border: 1px solid rgba(0, 102, 255, 0.2);
}

.ph-feature-panel--lead .ph-feature-panel__badge {
	color: #FFFFFF;
	background: linear-gradient(145deg, #0066FF 0%, #0052CC 100%);
	border-color: rgba(255, 255, 255, 0.25);
	box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}

.ph-feature-panel__tag {
	font-family: 'Inter', var(--ph-font-body), sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #0066FF;
	padding: 5px 12px;
	border-radius: var(--ph-radius-pill);
	background: rgba(0, 102, 255, 0.08);
	border: 1px solid rgba(0, 102, 255, 0.2);
}

.ph-feature-panel--lead .ph-feature-panel__tag {
	background: rgba(0, 102, 255, 0.15);
	border-color: rgba(0, 102, 255, 0.35);
}

/* Title */
body.ph-body .ph-feature-panel__title {
	font-family: 'Montserrat', var(--ph-font-heading), sans-serif !important;
	font-size: clamp(1.2rem, 2vw, 1.4rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	line-height: 1.25 !important;
	color: #0D1B3E !important;
	margin: 0 0 var(--ph-space-md) !important;
}

/* Highlight line — blue-tinted intro within card */
body.ph-body .ph-feature-panel__highlight {
	font-family: 'Inter', var(--ph-font-body), sans-serif !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	line-height: 1.55 !important;
	color: #0066FF !important;
	margin: 0 0 var(--ph-space-md) !important;
	padding: var(--ph-space-sm) var(--ph-space-md);
	background: linear-gradient(90deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 102, 255, 0.02) 100%);
	border-left: 3px solid #0066FF;
	border-radius: 0 var(--ph-radius-md) var(--ph-radius-md) 0;
}

.ph-feature-panel--lead .ph-feature-panel__highlight {
	background: linear-gradient(90deg, rgba(0, 102, 255, 0.14) 0%, rgba(0, 102, 255, 0.04) 100%);
}

/* Body copy area */
.ph-feature-panel__body {
	margin-bottom: var(--ph-space-lg);
	flex-grow: 1;
}

body.ph-body .ph-feature-panel__body p {
	font-family: 'Inter', var(--ph-font-body), sans-serif !important;
	font-size: 0.9375rem !important;
	line-height: 1.68 !important;
	color: #000000 !important;
	margin: 0 !important;
}

/* CTA link */
.ph-feature-panel__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Inter', var(--ph-font-body), sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #0066FF;
	text-decoration: none;
	padding-top: var(--ph-space-sm);
	border-top: 1px solid rgba(0, 102, 255, 0.12);
	transition: color 0.2s ease, gap 0.2s ease;
}

.ph-feature-panel__cta::after {
	content: "→";
	transition: transform 0.2s ease;
}

.ph-feature-panel__cta:hover {
	color: #0052CC;
}

.ph-feature-panel__cta:hover::after {
	transform: translateX(4px);
}

/* Grid spacing */
.ph-feature-panel-grid {
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
	align-items: stretch;
}

.ph-card-grid--services.ph-feature-panel-grid {
	margin-bottom: 0;
}

/* ==========================================================================
   For Employers — uniform blue badges + larger category tags
   ========================================================================== */
body.ph-body .ph-employers-section span.ph-feature-panel__badge {
	min-width: 48px !important;
	height: 48px !important;
	font-size: 14px !important;
	color: #FFFFFF !important;
	-webkit-text-fill-color: #FFFFFF !important;
	background: linear-gradient(145deg, #0066FF 0%, #0052CC 100%) !important;
	border-color: rgba(255, 255, 255, 0.25) !important;
	box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35) !important;
}

body.ph-body .ph-employers-section span.ph-feature-panel__tag {
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	padding: 6px 14px !important;
	background: rgba(0, 102, 255, 0.15) !important;
	border-color: rgba(0, 102, 255, 0.35) !important;
}

/* ==========================================================================
   About Us foundation — uniform blue badges (Vision / Mission / Values)
   ========================================================================== */
body.ph-body .ph-about-foundation span.ph-feature-panel__badge {
	min-width: 48px !important;
	height: 48px !important;
	font-size: 14px !important;
	color: #FFFFFF !important;
	-webkit-text-fill-color: #FFFFFF !important;
	background: linear-gradient(145deg, #0066FF 0%, #0052CC 100%) !important;
	border-color: rgba(255, 255, 255, 0.25) !important;
	box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35) !important;
}

body.ph-body .ph-about-foundation span.ph-feature-panel__tag {
	min-width: auto !important;
	height: auto !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	padding: 6px 14px !important;
	background: rgba(0, 102, 255, 0.15) !important;
	border-color: rgba(0, 102, 255, 0.35) !important;
}

/* ==========================================================================
   Referrals — uniform blue badges + larger tags (RC / RO)
   ========================================================================== */
body.ph-body .ph-referrals-section span.ph-feature-panel__badge {
	min-width: 48px !important;
	height: 48px !important;
	font-size: 14px !important;
	color: #FFFFFF !important;
	-webkit-text-fill-color: #FFFFFF !important;
	background: linear-gradient(145deg, #0066FF 0%, #0052CC 100%) !important;
	border-color: rgba(255, 255, 255, 0.25) !important;
	box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35) !important;
}

body.ph-body .ph-referrals-section span.ph-feature-panel__tag {
	min-width: auto !important;
	height: auto !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	padding: 6px 14px !important;
	background: rgba(0, 102, 255, 0.15) !important;
	border-color: rgba(0, 102, 255, 0.35) !important;
}

/* ==========================================================================
   Insights hub — uniform blue badges + larger tags (HR / CP / WF)
   ========================================================================== */
body.ph-body .ph-insights-hub span.ph-feature-panel__badge {
	min-width: 48px !important;
	height: 48px !important;
	font-size: 14px !important;
	color: #FFFFFF !important;
	-webkit-text-fill-color: #FFFFFF !important;
	background: linear-gradient(145deg, #0066FF 0%, #0052CC 100%) !important;
	border-color: rgba(255, 255, 255, 0.25) !important;
	box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35) !important;
}

body.ph-body .ph-insights-hub span.ph-feature-panel__tag {
	min-width: auto !important;
	height: auto !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	padding: 6px 14px !important;
	background: rgba(0, 102, 255, 0.15) !important;
	border-color: rgba(0, 102, 255, 0.35) !important;
}

/* ==========================================================================
   Why Pure Haven IT — clean benefit cards (theme-aligned)
   ========================================================================== */
.ph-why-us .ph-section-header {
	margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

body.ph-body .ph-why-us .ph-section-intro,
body.ph-body .ph-why-us .ph-section-header__text.ph-section-intro {
	display: block;
	max-width: 640px;
	margin-top: var(--ph-space-lg) !important;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
	color: #000000 !important;
	font-size: clamp(1.0625rem, 1.8vw, 1.1875rem) !important;
	line-height: 1.72 !important;
}

.ph-why-us .ph-feature-panel-grid {
	gap: clamp(1.25rem, 2.2vw, 1.65rem) !important;
}

.ph-why-us .ph-why-us-panel {
	background: #FFFFFF !important;
	border: 1px solid #E2E8F0;
	border-radius: var(--ph-radius-xl);
	box-shadow: 0 4px 20px -6px rgba(13, 27, 62, 0.07) !important;
	padding: clamp(1.4rem, 2.2vw, 1.75rem) !important;
	transition:
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.35s ease,
		border-color 0.35s ease;
}

.ph-why-us .ph-why-us-panel::before {
	display: none;
}

.ph-why-us .ph-why-us-panel::after {
	height: 3px;
	background: linear-gradient(90deg, #0066FF 0%, #00B4A6 100%);
	opacity: 0.85;
}

.ph-why-us .ph-feature-panel__head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: var(--ph-space-md);
	padding-bottom: 0;
	border-bottom: none;
}

body.ph-body .ph-why-us span.ph-feature-panel__badge,
body.ph-body .ph-why-us span.ph-feature-panel__tag,
body.ph-body .ph-services-section span.ph-feature-panel__badge,
body.ph-body .ph-services-section span.ph-feature-panel__tag {
	min-width: 36px;
	height: 36px;
	padding: 0;
	font-size: 12px;
	font-weight: 800;
	color: #FFFFFF !important;
	-webkit-text-fill-color: #FFFFFF !important;
	background: #FF6B00 !important;
	border: 1px solid rgba(255, 107, 0, 0.35) !important;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

body.ph-body .ph-why-us span.ph-feature-panel__tag,
body.ph-body .ph-services-section span.ph-feature-panel__tag {
	min-width: auto;
	height: auto;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 4px 10px;
	box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

/* Services cards — larger icon badges and category tags */
body.ph-body .ph-services-section span.ph-feature-panel__badge {
	min-width: 48px !important;
	height: 48px !important;
	font-size: 14px !important;
	border-radius: var(--ph-radius-md);
}

body.ph-body .ph-services-section span.ph-feature-panel__tag {
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	padding: 6px 14px !important;
}

body.ph-body .ph-services-section .ph-feature-panel--lead span.ph-feature-panel__badge,
body.ph-body .ph-services-section .ph-feature-panel--lead span.ph-feature-panel__tag {
	color: #FFFFFF !important;
	-webkit-text-fill-color: #FFFFFF !important;
	background: #FF6B00 !important;
	border-color: rgba(255, 107, 0, 0.35) !important;
}

body.ph-body .ph-why-us .ph-feature-panel__title {
	font-family: 'Montserrat', var(--ph-font-heading), sans-serif !important;
	font-size: clamp(1.1rem, 1.75vw, 1.25rem) !important;
	font-weight: 700 !important;
	color: #0D1B3E !important;
	margin-bottom: 0.65rem !important;
	letter-spacing: -0.02em !important;
}

body.ph-body .ph-why-us .ph-feature-panel__highlight {
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.55 !important;
	color: #2A5494 !important;
	margin: 0 0 0.75rem !important;
	padding: 0 0 0.75rem;
	background: none;
	border: none;
	border-bottom: 1px solid #EEF2F7;
	border-radius: 0;
}

body.ph-body .ph-why-us .ph-feature-panel__body p {
	font-size: 0.875rem !important;
	line-height: 1.68 !important;
	color: #000000 !important;
	margin: 0;
}

.ph-why-us .ph-feature-panel__body {
	margin-bottom: 0;
}

.ph-why-us .ph-why-us-panel:hover {
	transform: translateY(-4px);
	border-color: rgba(0, 102, 255, 0.2);
	box-shadow: 0 14px 36px -10px rgba(0, 102, 255, 0.14) !important;
}

@media (max-width: 768px) {
	.ph-why-us .ph-feature-panel__badge {
		min-width: 32px;
		height: 32px;
		font-size: 11px;
	}
}

/* Legacy why-us feature-card hooks (unused markup) */
.ph-why-us .ph-feature-card {
	padding: clamp(1.35rem, 2vw, 1.75rem);
	background: linear-gradient(165deg, #FFFFFF 0%, rgba(255, 255, 255, 0.92) 100%);
}

.ph-why-us .ph-feature-card .ph-h3 {
	font-weight: 700 !important;
	color: #0D1B3E !important;
	margin-bottom: var(--ph-space-sm) !important;
}

.ph-why-us .ph-feature-card .ph-body-text {
	font-size: 0.9375rem !important;
	color: #1E293B !important;
	line-height: 1.65 !important;
}

.ph-feature-card--blue .ph-feature-card__icon {
	background: linear-gradient(145deg, #0066FF, #0052CC);
	box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

/* ==========================================================================
   Showcase / preview tiles — crisper titles
   ========================================================================== */
body.ph-body .ph-showcase-card .ph-tile__title,
body.ph-body .ph-preview-tile .ph-tile__title {
	font-family: 'Montserrat', var(--ph-font-heading), sans-serif !important;
	font-weight: 700 !important;
	color: #0D1B3E !important;
	letter-spacing: -0.02em !important;
}

body.ph-body .ph-showcase-card p,
body.ph-body .ph-preview-tile p {
	color: #1E293B !important;
	font-size: 0.9375rem !important;
}

/* ==========================================================================
   Motion — headings and cards
   ========================================================================== */
.ph-feature-panel.ph-reveal {
	transition:
		opacity 0.6s ease,
		transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.4s ease;
}

.ph-feature-panel.ph-reveal:not(.is-visible) {
	opacity: 0;
	transform: translateY(20px);
}

.ph-feature-panel.ph-reveal.is-visible:hover {
	transform: translateY(-6px);
}

.ph-section-title.ph-heading-anim::after {
	width: 80px;
	height: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.ph-feature-panel.ph-reveal:not(.is-visible) {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 768px) {
	.ph-feature-panel__highlight {
		font-size: 0.9375rem !important;
	}
}
