/**
 * Mikropor Page Hero plugin frontend styles.
 * Sharp-edged, content-width layout aligned with Mikropor's visual language.
 */

body.mikropor-hide-entry-header header.entry-header {
	display: none !important;
}

body.mikropor-has-page-hero .ccfw-breadcrumbs {
	display: none !important;
}

.mikropor-page-hero {
	--mph-red: #e43c2f;
	--mph-charcoal: #2f363d;
	--mph-image-position: center center;
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: clamp(340px, 34vw, 500px);
	margin: 0 0 38px;
	overflow: hidden;
	background: var(--mph-charcoal);
	color: #fff;
	isolation: isolate;
	box-shadow: 0 18px 38px rgba(26, 31, 36, 0.12);
}

.mikropor-page-hero::before {
	content: "";
	position: absolute;
	z-index: 4;
	top: 0;
	left: 0;
	width: 100%;
	height: 5px;
	background: var(--mph-red);
}

.mikropor-page-hero .mph-background-image {
	position: absolute;
	z-index: 0;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: var(--mph-image-position) !important;
}

.mikropor-page-hero .mph-overlay {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(31, 38, 44, 0.96) 0%,
		rgba(31, 38, 44, 0.88) 34%,
		rgba(31, 38, 44, 0.62) 54%,
		rgba(31, 38, 44, 0.16) 82%,
		rgba(31, 38, 44, 0.06) 100%
	);
	pointer-events: none;
}

.mikropor-page-hero .mph-overlay::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: min(62%, 760px);
	height: 48%;
	background: rgba(228, 60, 47, 0.16);
	clip-path: polygon(0 34%, 100% 100%, 0 100%);
}

.mikropor-page-hero.mph-no-image .mph-overlay {
	background: linear-gradient(110deg, #252c32 0%, #3a4249 68%, #4a535b 100%);
}

.mikropor-page-hero .mph-content {
	position: relative;
	z-index: 2;
	width: min(68%, 720px);
	padding: clamp(54px, 7vw, 92px) clamp(34px, 6vw, 76px);
	box-sizing: border-box;
}

.mikropor-page-hero .mph-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin: 0 0 18px;
	color: rgba(255, 255, 255, 0.76);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.035em;
}

.mikropor-page-hero .mph-breadcrumb a,
.mikropor-page-hero .mph-breadcrumb a:visited {
	color: #fff !important;
	text-decoration: none;
	transition: color 0.2s ease;
}

.mikropor-page-hero .mph-breadcrumb a:hover,
.mikropor-page-hero .mph-breadcrumb a:focus {
	color: #ff6b60 !important;
	text-decoration: none;
}

.mikropor-page-hero .mph-breadcrumb-separator {
	color: var(--mph-red);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
}

.mikropor-page-hero .mph-breadcrumb-current {
	color: rgba(255, 255, 255, 0.72);
}

.mikropor-page-hero .mph-title {
	position: relative;
	margin: 0;
	padding: 0 0 19px;
	color: #fff;
	font-size: clamp(34px, 4vw, 54px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.mikropor-page-hero .mph-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 58px;
	height: 4px;
	background: var(--mph-red);
}

.mikropor-page-hero .mph-description {
	max-width: 620px;
	margin: 22px 0 0;
	color: #fff !important;
	font-size: clamp(15px, 1.35vw, 18px);
	font-weight: 400;
	line-height: 1.65;
}

.mikropor-page-hero .mph-description * {
	color: #fff !important;
}

.mikropor-page-hero .mph-description > :first-child {
	margin-top: 0;
}

.mikropor-page-hero .mph-description > :last-child {
	margin-bottom: 0;
}

.mikropor-page-hero .mph-description a,
.mikropor-page-hero .mph-description a:visited {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--mph-red);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

@media (max-width: 991px) {
	.mikropor-page-hero {
		min-height: 400px;
	}

	.mikropor-page-hero .mph-overlay {
		background: linear-gradient(
			90deg,
			rgba(31, 38, 44, 0.94) 0%,
			rgba(31, 38, 44, 0.82) 58%,
			rgba(31, 38, 44, 0.42) 100%
		);
	}

	.mikropor-page-hero .mph-content {
		width: min(82%, 680px);
		padding: 58px 42px;
	}
}

@media (max-width: 767px) {
	.mikropor-page-hero {
		min-height: 390px;
		margin-bottom: 28px;
		box-shadow: 0 12px 26px rgba(26, 31, 36, 0.12);
	}

	.mikropor-page-hero .mph-overlay {
		background: rgba(31, 38, 44, 0.76);
	}

	.mikropor-page-hero .mph-overlay::after {
		width: 100%;
		height: 38%;
		background: rgba(228, 60, 47, 0.14);
	}

	.mikropor-page-hero .mph-content {
		width: 100%;
		padding: 52px 28px 46px;
	}

	.mikropor-page-hero .mph-breadcrumb {
		margin-bottom: 14px;
		font-size: 11px;
	}

	.mikropor-page-hero .mph-title {
		padding-bottom: 16px;
		font-size: clamp(30px, 10vw, 42px);
		line-height: 1.08;
	}

	.mikropor-page-hero .mph-description {
		margin-top: 18px;
		font-size: 15px;
		line-height: 1.55;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mikropor-page-hero .mph-breadcrumb a {
		transition: none;
	}
}
