/**
 * Pure Haven IT — Premium metrics / highlights section.
 * Brand navy / electric-blue palette, glass 3D accents, compact cards.
 */

.ph-metrics-band {
	position: relative;
	padding: clamp(2rem, 4vw, 2.75rem) 0;
	background:
		radial-gradient(circle at 8% 0%, rgba(0, 102, 255, 0.1) 0%, transparent 42%),
		radial-gradient(circle at 95% 100%, rgba(0, 180, 166, 0.08) 0%, transparent 38%),
		linear-gradient(180deg, #f0f6ff 0%, #eef3fa 48%, #FFFFFF 100%);
	overflow: hidden;
}

.ph-metrics-band__ambient {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(rgba(0, 102, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 102, 255, 0.05) 1px, transparent 1px);
	background-size: 56px 56px;
	opacity: 0.35;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 90%);
}

.ph-metrics-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.65rem, 1.2vw, 0.875rem);
	position: relative;
	z-index: 1;
	max-width: 1080px;
	margin-inline: auto;
}

/* Premium metric card — soft white / blue glass */
.ph-metric-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: clamp(1.1rem, 2vw, 1.35rem) clamp(0.85rem, 1.5vw, 1.1rem);
	border-radius: var(--ph-radius-lg);
	background:
		linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(230, 240, 255, 0.72) 100%);
	border: 1px solid rgba(0, 102, 255, 0.14);
	box-shadow:
		0 18px 44px -20px rgba(13, 27, 62, 0.14),
		0 6px 18px -6px rgba(0, 102, 255, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
	overflow: hidden;
}

.ph-metric-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #0066FF 0%, #00B4A6 100%);
	opacity: 0.85;
}

.ph-metric-card__shine {
	position: absolute;
	top: -45%;
	left: -18%;
	width: 58%;
	height: 85%;
	background: linear-gradient(120deg, rgba(255, 255, 255, 0.55) 0%, transparent 58%);
	transform: rotate(10deg);
	pointer-events: none;
	opacity: 0.65;
}

.ph-metric-card:hover {
	transform: translateY(-4px);
	border-color: rgba(0, 102, 255, 0.28);
	box-shadow:
		0 24px 52px -18px rgba(0, 102, 255, 0.22),
		0 10px 24px -8px rgba(13, 27, 62, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Glass accent — 3D tile on light surface */
.ph-metric-card__accent {
	width: 52px;
	height: 52px;
	margin-bottom: 0.65rem;
	border-radius: 14px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(0, 102, 255, 0.1) 100%);
	border: 1px solid rgba(0, 102, 255, 0.22);
	box-shadow:
		0 10px 24px -8px rgba(0, 102, 255, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.85),
		inset 0 -6px 14px -8px rgba(0, 102, 255, 0.1);
	backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: perspective(480px) rotateX(8deg) rotateY(-10deg);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ph-metric-card:hover .ph-metric-card__accent {
	transform: perspective(480px) rotateX(3deg) rotateY(-3deg) translateY(-1px);
}

/* Glyph base */
.ph-metric-glyph {
	position: relative;
	width: 28px;
	height: 28px;
	display: block;
}

/* Specialisations — layered tiles */
.ph-metric-glyph--specialisations::before,
.ph-metric-glyph--specialisations::after {
	content: "";
	position: absolute;
	border-radius: 5px;
	background: linear-gradient(135deg, #0066FF 0%, #3d8fff 100%);
	box-shadow: 0 3px 10px rgba(0, 102, 255, 0.35);
}

.ph-metric-glyph--specialisations::before {
	width: 18px;
	height: 18px;
	top: 1px;
	left: 5px;
	transform: rotate(45deg);
}

.ph-metric-glyph--specialisations::after {
	width: 12px;
	height: 12px;
	bottom: 3px;
	right: 3px;
	transform: rotate(45deg);
	background: linear-gradient(135deg, #00B4A6 0%, #4dd4c8 100%);
	box-shadow: 0 3px 8px rgba(0, 180, 166, 0.35);
}

/* Industries — bar stack */
.ph-metric-glyph--industries::before {
	content: "";
	position: absolute;
	width: 6px;
	height: 16px;
	bottom: 3px;
	left: 4px;
	border-radius: 2px 2px 1px 1px;
	background: linear-gradient(180deg, #66a3ff 0%, #0066FF 100%);
	box-shadow:
		10px 0 0 0 #0066FF,
		20px -5px 0 0 #00B4A6;
}

.ph-metric-glyph--industries::after {
	content: none;
}

/* Australian — shield */
.ph-metric-glyph--australian::before {
	content: "";
	position: absolute;
	inset: 3px 6px 4px;
	background: linear-gradient(160deg, #0066FF 0%, #0044aa 100%);
	clip-path: polygon(50% 0%, 100% 18%, 100% 72%, 50% 100%, 0% 72%, 0% 18%);
	box-shadow: 0 4px 12px rgba(0, 102, 255, 0.35);
}

.ph-metric-glyph--australian::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	top: 10px;
	left: 10px;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: 0 0 8px rgba(0, 102, 255, 0.4);
}

/* Pathways — arc node */
.ph-metric-glyph--pathways::before {
	content: "";
	position: absolute;
	width: 22px;
	height: 22px;
	top: 3px;
	left: 3px;
	border: 2px solid transparent;
	border-top-color: #0066FF;
	border-right-color: rgba(0, 180, 166, 0.55);
	border-radius: 50%;
	transform: rotate(-30deg);
}

.ph-metric-glyph--pathways::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	bottom: 4px;
	right: 4px;
	border-radius: 50%;
	background: linear-gradient(135deg, #FF6B00 0%, #ff9a4d 100%);
	box-shadow: 0 3px 8px rgba(255, 107, 0, 0.4);
}

/* Typography — brand electric blue + navy */
.ph-metric-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.ph-metric-card__number,
body.ph-body .ph-metrics-band .ph-metric-card__number,
body.ph-body .ph-metrics-band .ph-counter__value {
	font-family: 'Montserrat', var(--ph-font-heading), sans-serif;
	font-size: clamp(1.75rem, 2.8vw, 2.25rem) !important;
	font-weight: 800 !important;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: #0066FF !important;
	text-shadow: 0 2px 16px rgba(0, 102, 255, 0.18);
}

.ph-metric-card__label,
body.ph-body .ph-metrics-band .ph-metric-card__label {
	font-family: 'Inter', var(--ph-font-body), sans-serif;
	font-size: clamp(0.75rem, 1.1vw, 0.8125rem) !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
	color: #1e3a5f !important;
	max-width: 168px;
	margin: 0;
}

/* Per-card accent bar */
.ph-metric-card--industries::before {
	background: linear-gradient(90deg, #0066FF 0%, #00B4A6 100%);
}

.ph-metric-card--pathways::before {
	background: linear-gradient(90deg, #0066FF 0%, #FF6B00 100%);
}

.ph-metric-card--pathways .ph-metric-card__accent {
	border-color: rgba(255, 107, 0, 0.25);
}

/* Responsive */
@media (max-width: 1024px) {
	.ph-metrics-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 640px;
	}
}

@media (max-width: 540px) {
	.ph-metrics-grid {
		grid-template-columns: 1fr;
		max-width: 320px;
	}

	.ph-metric-card {
		padding: 1rem 0.9rem;
	}

	.ph-metric-card__label {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ph-metric-card:hover,
	.ph-metric-card:hover .ph-metric-card__accent {
		transform: none;
	}
}
