/**
 * Pure Haven IT — Blue rhythm visual system (v1.7.0)
 * Hero-blue anchor, white/grey alternation, sharp hierarchy, gradient card rings.
 * Brand palette and font families unchanged.
 */

/* ==========================================================================
   Rhythm bands — blue / white / soft grey
   ========================================================================== */
.ph-band--rhythm-white {
	background: var(--ph-color-white);
}

.ph-band--rhythm-grey {
	background:
		radial-gradient(circle at 100% 0%, rgba(0, 102, 255, 0.05) 0%, transparent 38%),
		linear-gradient(180deg, var(--ph-color-surface) 0%, #eef2f8 100%);
}

.ph-band--rhythm-blue {
	background:
		radial-gradient(circle at 0% 100%, rgba(0, 102, 255, 0.1) 0%, transparent 45%),
		radial-gradient(circle at 100% 0%, rgba(0, 180, 166, 0.06) 0%, transparent 40%),
		linear-gradient(180deg, var(--ph-color-electric-blue-light) 0%, #f8fbff 55%, var(--ph-color-white) 100%);
	border-top: 1px solid rgba(0, 102, 255, 0.12);
	border-bottom: 1px solid rgba(0, 102, 255, 0.08);
}

.ph-band--rhythm-navy {
	background: linear-gradient(135deg, var(--ph-color-navy-dark) 0%, var(--ph-color-navy) 50%, var(--ph-color-navy-light) 100%);
	color: var(--ph-color-text-inverse);
}

/* Section edge glow */
.ph-band--rhythm-white + .ph-band--rhythm-grey,
.ph-band--rhythm-grey + .ph-band--rhythm-white,
.ph-band--rhythm-blue + .ph-band--rhythm-white {
	box-shadow: inset 0 1px 0 rgba(0, 102, 255, 0.08);
}

/* ==========================================================================
   Text hierarchy — blue emphasis vs muted body (not dull black)
   ========================================================================== */
body.ph-body .ph-lead {
	color: var(--ph-color-charcoal) !important;
	font-size: 1.125rem;
	line-height: 1.65;
}

body.ph-body .ph-body-text {
	color: var(--ph-color-charcoal) !important;
	font-family: var(--ph-font-body) !important;
}

body.ph-body .ph-text-muted,
body.ph-body .ph-section-header__text,
body.ph-body .ph-note,
body.ph-body .ph-trust-strip__label,
body.ph-body .ph-feature-card p,
body.ph-body .ph-card--service p,
body.ph-body .ph-preview-tile p,
body.ph-body .ph-showcase-card__meta {
	color: var(--ph-color-text-muted) !important;
	font-weight: 400;
}

/* Hero blue family for highlights — primary emphasis */
body.ph-body .ph-text-highlight,
body.ph-body .ph-highlight-blue,
body.ph-body strong.ph-text-highlight {
	color: var(--ph-color-primary) !important;
	font-weight: 600;
}

body.ph-body .ph-text-primary,
body.ph-body .ph-link,
body.ph-body a.ph-link {
	color: var(--ph-color-primary) !important;
	font-weight: 600;
}

body.ph-body .ph-section-header__eyebrow,
body.ph-body .ph-eyebrow {
	color: var(--ph-color-primary) !important;
	font-weight: 700;
	letter-spacing: 0.1em;
}

body.ph-body .ph-eyebrow--teal {
	color: var(--ph-color-accent) !important;
}

/* ==========================================================================
   Blue highlight panels — hero blue glass
   ========================================================================== */
.ph-highlight-panel {
	border-radius: var(--ph-radius-xl);
	padding: var(--ph-space-xl);
	position: relative;
	overflow: hidden;
}

.ph-highlight-panel--blue {
	background:
		linear-gradient(145deg, rgba(0, 102, 255, 0.14) 0%, rgba(0, 102, 255, 0.05) 45%, rgba(255, 255, 255, 0.9) 100%);
	border: 1px solid rgba(0, 102, 255, 0.28);
	box-shadow:
		0 4px 24px -8px rgba(0, 102, 255, 0.25),
		inset 0 1px 0 rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.ph-highlight-panel--blue::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -20%;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 102, 255, 0.2) 0%, transparent 70%);
	pointer-events: none;
}

.ph-highlight-panel--blue .ph-glass-panel__label,
.ph-highlight-panel--blue .ph-section-header__eyebrow {
	color: var(--ph-color-primary) !important;
}

.ph-highlight-panel--blue .ph-glass-panel__list li {
	color: var(--ph-color-navy) !important;
	border-bottom-color: rgba(0, 102, 255, 0.15);
	font-weight: 500;
}

/* Navy glass for hero-side panels */
.ph-glass-panel--blue-glass {
	background: rgba(0, 102, 255, 0.12);
	border: 1px solid rgba(0, 102, 255, 0.35);
	backdrop-filter: blur(16px);
}

.ph-glass-panel--blue-glass .ph-glass-panel__list li {
	color: rgba(255, 255, 255, 0.92) !important;
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

.ph-glass-panel--blue-glass .ph-glass-panel__label {
	color: rgba(255, 255, 255, 0.95) !important;
}

/* ==========================================================================
   Sharp cards — blue-forward gradient rings
   ========================================================================== */
.ph-sharp-card::before,
.ph-surface-card::before,
.ph-trust-card::before,
.ph-feature-card::before,
.ph-preview-tile::before,
.ph-showcase-card::before {
	background: linear-gradient(
		135deg,
		rgba(0, 102, 255, 0.55) 0%,
		rgba(0, 102, 255, 0.22) 35%,
		rgba(0, 180, 166, 0.25) 65%,
		rgba(226, 232, 240, 0.85) 100%
	) !important;
}

.ph-sharp-card--blue-lead {
	background: linear-gradient(160deg, rgba(0, 102, 255, 0.08) 0%, var(--ph-color-white) 55%);
	box-shadow:
		0 8px 32px -12px rgba(0, 102, 255, 0.22),
		0 2px 8px rgba(13, 27, 62, 0.06);
}

.ph-sharp-card--blue-lead::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--ph-color-primary), var(--ph-color-accent));
	border-radius: var(--ph-radius-xl) var(--ph-radius-xl) 0 0;
}

.ph-trust-card--blue {
	background: linear-gradient(180deg, rgba(0, 102, 255, 0.06) 0%, var(--ph-color-white) 100%);
}

.ph-trust-card--blue .ph-trust-card__icon {
	background: var(--ph-color-electric-blue-light);
	box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

.ph-trust-card--blue .ph-trust-card__icon::after {
	background: var(--ph-color-primary);
}

/* Icon badge — blue anchor */
.ph-icon-badge {
	color: var(--ph-color-primary) !important;
	background: linear-gradient(145deg, var(--ph-color-electric-blue-light), #fff) !important;
	box-shadow: 0 4px 16px rgba(0, 102, 255, 0.18) !important;
}

.ph-service-icon {
	color: var(--ph-color-primary) !important;
	background: linear-gradient(145deg, var(--ph-color-electric-blue-light), #fff) !important;
	box-shadow: 0 4px 14px rgba(0, 102, 255, 0.16);
	font-family: var(--ph-font-heading) !important;
}

/* Heading underline — blue primary */
.ph-heading-anim::after {
	background: linear-gradient(90deg, var(--ph-color-primary) 0%, var(--ph-color-primary) 55%, var(--ph-color-accent) 100%) !important;
	height: 4px !important;
}

/* Metrics — electric blue, larger */
body.ph-body .ph-trust-strip__number,
body.ph-body .ph-counter__value {
	color: var(--ph-color-primary) !important;
	font-size: 2.25rem !important;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 12px rgba(0, 102, 255, 0.15);
}

/* Homepage services visual strip */
.ph-services-visual {
	margin-top: var(--ph-space-2xl);
	border-radius: var(--ph-radius-xl);
	overflow: hidden;
	min-height: 200px;
	background:
		linear-gradient(rgba(0, 102, 255, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 102, 255, 0.08) 1px, transparent 1px),
		linear-gradient(135deg, var(--ph-color-navy) 0%, var(--ph-color-navy-light) 100%);
	background-size: 28px 28px, 28px 28px, auto;
	position: relative;
	box-shadow: 0 16px 48px -16px rgba(0, 102, 255, 0.35);
}

.ph-services-visual__label {
	position: absolute;
	bottom: var(--ph-space-md);
	left: var(--ph-space-md);
	padding: 6px 12px;
	border-radius: var(--ph-radius-pill);
	background: rgba(0, 102, 255, 0.85);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-family: var(--ph-font-body);
}

/* About split blue accent */
.ph-about-accent {
	padding: var(--ph-space-lg);
	border-left: 4px solid var(--ph-color-primary);
	background: linear-gradient(90deg, rgba(0, 102, 255, 0.08), transparent);
	border-radius: 0 var(--ph-radius-md) var(--ph-radius-md) 0;
	margin: var(--ph-space-lg) 0;
}

/* Kill any residual near-black */
body.ph-body,
body.ph-body p,
body.ph-body li,
body.ph-body .entry-content {
	color: var(--ph-color-charcoal) !important;
}

body.ph-body h1,
body.ph-body h2,
body.ph-body h3,
body.ph-body .ph-h2,
body.ph-body .ph-h3 {
	color: var(--ph-color-navy) !important;
}

/* Page shell rhythm */
.ph-page-shell > .ph-band--rhythm-grey:nth-child(even),
.ph-page-shell > section:nth-child(even).ph-band--sharp-white {
	/* inherited from templates */
}

/* Jobs page — not home */
body:not(.home) .ph-jobs-shell .job_listing {
	border: none;
	box-shadow: 0 4px 20px -8px rgba(0, 102, 255, 0.12);
}

body:not(.home) .ph-jobs-shell .job_listing::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, rgba(0, 102, 255, 0.4), rgba(0, 180, 166, 0.2));
	-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;
}

/* Homepage scroll rhythm — deliberate band height */
.ph-home .ph-band--rhythm-white,
.ph-home .ph-band--rhythm-grey,
.ph-home .ph-band--rhythm-blue {
	padding: clamp(4rem, 7vw, 6.5rem) 0 !important;
}

.ph-home .ph-band--rhythm-blue {
	box-shadow:
		inset 0 2px 0 rgba(0, 102, 255, 0.12),
		inset 0 -2px 0 rgba(0, 102, 255, 0.08) !important;
}

.ph-home .ph-band--rhythm-grey {
	box-shadow: inset 0 1px 0 rgba(0, 102, 255, 0.06) !important;
}
