/**
 * Pure Haven IT Consulting — Global component styles
 * Works with child theme PHP templates (automation-first build).
 */

/* Layout */
.ph-site-main {
	display: block;
}

.ph-section {
	padding: var(--ph-section-padding) 0;
}

.ph-section--grey {
	background: var(--ph-color-surface);
}

.ph-section-header {
	margin-bottom: var(--ph-space-2xl);
}

.ph-section-header--center {
	text-align: center;
	max-width: 720px;
	margin-inline: auto;
}

.ph-section-header__text {
	color: var(--ph-color-text-muted);
	font-size: var(--ph-font-size-body-lg);
	line-height: var(--ph-line-height-body);
	margin: var(--ph-space-md) 0 0;
}

.ph-section-cta {
	margin-top: var(--ph-space-2xl);
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--ph-space-md);
	justify-content: center;
}

.ph-content-stack {
	display: flex;
	flex-direction: column;
	gap: var(--ph-space-lg);
	max-width: 800px;
}

.ph-h2 {
	font-family: var(--ph-font-heading);
	font-weight: var(--ph-font-weight-bold);
	font-size: var(--ph-font-size-h2);
	color: var(--ph-color-navy);
	line-height: var(--ph-line-height-tight);
	margin: 0;
}

.ph-h3 {
	font-family: var(--ph-font-heading);
	font-weight: var(--ph-font-weight-semibold);
	font-size: var(--ph-font-size-h3);
	color: var(--ph-color-navy);
	margin: 0 0 var(--ph-space-md);
}

.ph-lead {
	font-size: var(--ph-font-size-body-lg);
	line-height: var(--ph-line-height-body);
	color: var(--ph-color-charcoal, #1E293B);
	margin: 0 0 var(--ph-space-lg);
}

.ph-text-inverse { color: var(--ph-color-text-inverse); }
.ph-text-inverse-muted { color: rgba(255, 255, 255, 0.85); }

/* Eyebrow */
.ph-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--ph-color-primary);
	margin-bottom: var(--ph-space-lg);
}

/* Hero */
.ph-hero {
	position: relative;
	min-height: 85vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.ph-hero-gradient-bg {
	background: linear-gradient(135deg, #081428 0%, #0D1B3E 45%, #1A2F5C 100%);
}

.ph-hero-gradient-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.25) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(0, 180, 166, 0.2) 0%, transparent 40%);
	pointer-events: none;
}

.ph-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
	padding: var(--ph-section-padding) 0;
}

.ph-hero__title {
	font-family: var(--ph-font-heading);
	font-weight: var(--ph-font-weight-bold);
	font-size: var(--ph-font-size-hero);
	line-height: var(--ph-line-height-tight);
	color: var(--ph-color-text-inverse);
	margin: 0 0 var(--ph-space-lg);
}

.ph-hero__subtitle {
	font-size: var(--ph-font-size-body-lg);
	line-height: var(--ph-line-height-body);
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 var(--ph-space-2xl);
}

.ph-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ph-space-md);
	margin-bottom: var(--ph-space-md);
}

.ph-hero__link a {
	color: var(--ph-color-accent);
	font-weight: 600;
	text-decoration: none;
}

.ph-hero__link a:hover {
	text-decoration: underline;
}

/* Page hero */
.ph-page-hero {
	background: var(--ph-color-navy);
	padding: var(--ph-space-3xl) 0;
}

.ph-page-hero__title {
	font-family: var(--ph-font-heading);
	font-size: var(--ph-font-size-h1);
	color: var(--ph-color-text-inverse);
	margin: 0 0 var(--ph-space-md);
}

.ph-page-hero__subtitle {
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--ph-font-size-body-lg);
	line-height: var(--ph-line-height-body);
	max-width: 720px;
	margin: 0;
}

.ph-page-hero__cta {
	margin-top: var(--ph-space-xl);
}

/* Buttons */
.ph-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: var(--ph-radius-md);
	font-family: var(--ph-font-body);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform var(--ph-transition-fast), box-shadow var(--ph-transition-base), background var(--ph-transition-fast);
}

.ph-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--ph-shadow-md);
}

.ph-btn:active {
	transform: translateY(0) scale(0.98);
}

.ph-btn--pill { border-radius: var(--ph-radius-pill); }
.ph-btn--sm { padding: 8px 16px; font-size: 13px; }

.ph-btn--blue {
	background: var(--ph-color-primary);
	color: var(--ph-color-white);
}

.ph-btn--blue:hover {
	background: var(--ph-color-primary-hover);
	color: var(--ph-color-white);
}

.ph-btn--orange {
	background: var(--ph-color-secondary);
	color: var(--ph-color-white);
}

.ph-btn--orange:hover {
	background: var(--ph-color-secondary-hover);
	color: var(--ph-color-white);
}

.ph-btn--teal {
	background: var(--ph-color-accent);
	color: var(--ph-color-white);
}

.ph-btn--ghost {
	background: transparent;
	color: var(--ph-color-primary);
	border-color: var(--ph-color-primary);
}

.ph-btn--ghost:hover {
	background: var(--ph-color-electric-blue-light);
}

.ph-link {
	color: var(--ph-color-accent);
	font-weight: 600;
	text-decoration: none;
}

.ph-link:hover { text-decoration: underline; }

/* Trust strip */
.ph-trust-strip {
	padding: 48px 0;
	background: var(--ph-color-white);
	border-bottom: 1px solid var(--ph-color-grey-border);
}

.ph-trust-strip__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--ph-space-lg);
	text-align: center;
}

.ph-trust-strip__number {
	display: block;
	font-family: var(--ph-font-heading);
	font-weight: 700;
	font-size: 2rem;
	color: var(--ph-color-primary);
}

.ph-trust-strip__label {
	display: block;
	font-size: 14px;
	color: var(--ph-color-text-muted);
	margin-top: 4px;
}

/* Split layouts */
.ph-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--ph-space-2xl);
	align-items: center;
}

.ph-split--about .ph-split__content { max-width: 560px; }

.ph-image-placeholder {
	min-height: 320px;
	border-radius: var(--ph-radius-xl);
	background: linear-gradient(135deg, #1A2F5C 0%, #0D1B3E 100%);
	box-shadow: var(--ph-shadow-lg);
}

/* Cards */
.ph-card-grid {
	display: grid;
	gap: var(--ph-space-lg);
}

.ph-card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ph-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ph-card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.ph-card {
	background: var(--ph-color-white);
	border: 1px solid var(--ph-color-grey-border);
	border-radius: var(--ph-radius-xl);
	padding: var(--ph-space-xl);
	box-shadow: var(--ph-shadow-sm);
	transition: transform var(--ph-transition-base), box-shadow var(--ph-transition-base);
}

.ph-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ph-shadow-lg);
}

.ph-card--glass {
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(12px);
}

.ph-card--glass-dark {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--ph-color-text-inverse);
}

.ph-card--referral {
	background: var(--ph-color-surface);
}

.ph-card--lead {
	background: var(--ph-color-navy);
	color: var(--ph-color-text-inverse);
}

.ph-card--lead .ph-h3 { color: var(--ph-color-text-inverse); }

/* Preview grid */
.ph-preview-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--ph-space-lg);
}

.ph-preview-tile {
	background: var(--ph-color-white);
	border: 1px solid var(--ph-color-grey-border);
	border-radius: var(--ph-radius-xl);
	padding: var(--ph-space-lg);
}

.ph-preview-tile--glass {
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(8px);
}

/* Showcase */
.ph-showcase-group {
	padding: var(--ph-space-2xl) 0;
}

.ph-showcase-group__title {
	font-family: var(--ph-font-heading);
	font-size: 1.5rem;
	color: var(--ph-color-navy);
	margin: 0 0 var(--ph-space-xl);
	padding-bottom: var(--ph-space-md);
	border-bottom: 2px solid var(--ph-color-grey-border);
}

.ph-showcase-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--ph-space-lg);
}

.ph-showcase-card__meta {
	color: var(--ph-color-text-muted);
	font-size: 14px;
	margin-bottom: var(--ph-space-md);
}

.ph-showcase-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ph-space-sm);
}

/* Tags */
.ph-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: var(--ph-space-md);
}

.ph-tag {
	font-size: 12px;
	font-weight: 500;
	padding: 4px 12px;
	border-radius: var(--ph-radius-pill);
	background: var(--ph-color-surface);
	color: var(--ph-color-text-muted);
	border: 1px solid var(--ph-color-grey-border);
}

/* Split CTA */
.ph-split-cta {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.ph-split-cta__col {
	padding: var(--ph-space-3xl) var(--ph-space-xl);
}

.ph-split-cta__col--employers { background: var(--ph-color-navy); }
.ph-split-cta__col--seekers { background: linear-gradient(135deg, #0D1B3E 0%, #1A2F5C 100%); }

.ph-split-cta__inner {
	max-width: 480px;
}

/* Icon grid */
.ph-icon-grid {
	display: grid;
	gap: var(--ph-space-lg);
}

.ph-icon-grid--3 { grid-template-columns: repeat(3, 1fr); }

.ph-icon-grid__item {
	display: flex;
	align-items: center;
	gap: var(--ph-space-md);
	font-weight: 500;
	color: var(--ph-color-charcoal, #1E293B);
}

.ph-icon-grid__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ph-color-accent);
	flex-shrink: 0;
}

/* Testimonial */
.ph-split--testimonial {
	grid-template-columns: 1.2fr 1fr;
}

.ph-quote {
	font-size: 1.125rem;
	line-height: 1.6;
	font-style: italic;
	margin: 0 0 var(--ph-space-md);
}

.ph-quote-meta {
	font-size: 14px;
	opacity: 0.85;
	margin: 0;
}

/* Final CTA */
.ph-final-cta {
	background: var(--ph-color-navy);
	text-align: center;
}

.ph-final-cta__inner {
	max-width: 640px;
	margin-inline: auto;
}

.ph-final-cta .ph-hero__actions {
	justify-content: center;
}

/* Lists */
.ph-check-list,
.ph-contact-list,
.ph-steps {
	margin: 0;
	padding-left: 1.25rem;
	line-height: 1.8;
}

.ph-note {
	font-size: 14px;
	color: var(--ph-color-text-muted);
}

/* ==========================================================================
   Premium refinement pass
   ========================================================================== */

.ph-section--compact {
	padding: 40px 0;
}

.ph-section-header__eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ph-color-accent);
	margin: 0 0 12px;
	display: block;
}

.ph-hero {
	min-height: 78vh;
}

.ph-hero__micro {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.72);
	margin: 0 0 var(--ph-space-xl);
}

.ph-hero__title {
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.ph-h2 {
	letter-spacing: -0.02em;
}

.ph-trust-strip__grid--4 {
	grid-template-columns: repeat(4, 1fr);
}

.ph-about-bullets {
	margin: 0 0 var(--ph-space-lg);
}

.ph-card-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

.ph-card--service {
	position: relative;
	padding-top: calc(var(--ph-space-xl) + 8px);
}

.ph-card__icon {
	display: block;
	width: 28px;
	height: 3px;
	background: var(--ph-color-accent);
	border-radius: 2px;
	margin-bottom: var(--ph-space-md);
}

.ph-card {
	border: 1px solid var(--ph-color-grey-border);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ph-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 48px rgba(13, 27, 62, 0.10);
	border-color: rgba(0, 180, 166, 0.35);
}

.ph-card--quote {
	border: 1px solid var(--ph-color-grey-border);
	background: var(--ph-color-white);
}

.ph-preview-tile {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--ph-color-grey-border);
	border-radius: var(--ph-radius-xl);
	padding: var(--ph-space-lg);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ph-preview-tile:hover {
	transform: translateY(-3px);
	box-shadow: var(--ph-shadow-md);
}

.ph-image-placeholder--premium {
	background:
		linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
		linear-gradient(225deg, rgba(0, 180, 166, 0.12) 0%, transparent 45%),
		linear-gradient(135deg, #1a2f5c 0%, #0d1b3e 100%);
}

.ph-btn--primary {
	box-shadow: 0 8px 24px rgba(255, 107, 0, 0.22);
}

.ph-btn--pill {
	border-radius: var(--ph-radius-pill);
}

.ph-final-cta__support {
	margin-top: var(--ph-space-lg);
}

.ph-final-cta__support a {
	color: var(--ph-color-accent);
	font-weight: 600;
	text-decoration: none;
}

.ph-final-cta__support a:hover {
	text-decoration: underline;
}

.ph-icon-grid--why .ph-icon-grid__item {
	padding: var(--ph-space-sm) 0;
}

/* Responsive */
@media (max-width: 1024px) {
	.ph-card-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.ph-preview-grid,
	.ph-showcase-grid { grid-template-columns: repeat(2, 1fr); }
	.ph-trust-strip__grid,
	.ph-trust-strip__grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.ph-split,
	.ph-split-cta,
	.ph-split--testimonial { grid-template-columns: 1fr; }
	.ph-card-grid--4,
	.ph-card-grid--2,
	.ph-card-grid--3,
	.ph-icon-grid--3,
	.ph-preview-grid,
	.ph-showcase-grid { grid-template-columns: 1fr; }
	.ph-trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
	.ph-hero { min-height: auto; }
	.ph-hero__title { font-size: 2.5rem; }
	.ph-hero__actions .ph-btn { width: 100%; justify-content: center; }
}
