/* Everest Custom Elements: page-hero.css
   everest_page_hero. Tokens only (ehf-tokens). Text column follows the 1200 container's left edge,
   the image column bleeds to the viewport edge at >=1025px. */

.ehf-page-hero {
	--ehf-hero-pad: max(var(--ehf-gutter), calc((100vw - var(--ehf-container)) / 2 + var(--ehf-gutter)));
	position: relative;
	box-sizing: border-box;
	background: var(--ehf-c-surface);
	color: var(--ehf-c-body);
	font-family: var(--ehf-ff-body);
	overflow: hidden;
}

.ehf-page-hero--bg-tint {
	background: var(--ehf-g-hero-tint);
}

.ehf-page-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: stretch;
}

.ehf-page-hero--no-image .ehf-page-hero__grid {
	grid-template-columns: minmax(0, 1fr);
}

.ehf-page-hero__text {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: var(--ehf-gap-stack);
	padding-block: var(--ehf-pad-hero-t) var(--ehf-pad-hero-b);
	padding-inline: var(--ehf-hero-pad) var(--ehf-s-5);
	min-width: 0;
}

.ehf-page-hero--no-image .ehf-page-hero__text {
	padding-inline: var(--ehf-hero-pad);
}

.ehf-page-hero__text > * {
	max-width: 560px;
}

.ehf-page-hero--no-image .ehf-page-hero__text > * {
	max-width: 760px;
}

.ehf-page-hero--img-left .ehf-page-hero__media {
	order: -1;
}

.ehf-page-hero--img-left .ehf-page-hero__text {
	padding-inline: var(--ehf-s-5) var(--ehf-hero-pad);
}

/* Breadcrumb */
.ehf-page-hero__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--ehf-fs-small);
	line-height: 1.5;
}

.ehf-page-hero__crumbs li {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.ehf-page-hero__crumbs li + li::before {
	content: "/";
	margin-inline: 8px;
	color: var(--ehf-c-body);
	opacity: 0.6;
}

.ehf-page-hero__crumbs a {
	color: var(--ehf-c-primary);
	text-decoration: none;
	font-weight: 600;
}

.ehf-page-hero__crumbs a:hover {
	text-decoration: underline;
}

.ehf-page-hero__crumbs [aria-current="page"] {
	color: var(--ehf-c-body);
}

.ehf-page-hero__eyebrow {
	margin: 0;
	font-family: var(--ehf-ff-body);
	font-size: var(--ehf-fs-eyebrow);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ehf-c-primary);
}

.ehf-page-hero__heading {
	margin: 0;
	font-family: var(--ehf-ff-head);
	font-size: var(--ehf-fs-display);
	font-weight: 800;
	line-height: 1.1;
	color: var(--ehf-c-ink);
	text-wrap: balance;
}

.ehf-page-hero__lede {
	margin: 0;
	max-width: 46ch;
	font-size: var(--ehf-fs-lead);
	line-height: 1.55;
	color: var(--ehf-c-body);
}

.ehf-page-hero__lede + .ehf-page-hero__lede {
	margin-top: calc(var(--ehf-gap-stack) * -0.5);
}

/* Actions */
.ehf-page-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ehf-gap-stack) var(--ehf-s-3);
	margin-top: var(--ehf-s-1);
	max-width: none;
}

.ehf-page-hero__quote svg {
	fill: none;
	stroke: currentColor;
}

.ehf-hero-phone,
.ehf-hero-email {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-family: var(--ehf-ff-head);
	font-size: 16px;
	font-weight: 700;
	color: var(--ehf-c-ink);
	text-decoration: none;
}

.ehf-hero-phone:hover,
.ehf-hero-email:hover {
	color: var(--ehf-c-primary-700);
	text-decoration: underline;
}

.ehf-hero-phone svg,
.ehf-hero-email svg {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	fill: none;
	stroke: var(--ehf-c-primary);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Trust chips with dividers */
.ehf-page-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ehf-s-1) 0;
	margin: var(--ehf-s-1) 0 0;
	padding: 0;
	list-style: none;
	max-width: none;
}

.ehf-page-hero__chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding-inline: var(--ehf-s-3);
	font-size: var(--ehf-fs-small);
	font-weight: 600;
	line-height: 1.3;
	color: var(--ehf-c-ink);
}

.ehf-page-hero__chip:first-child {
	padding-inline-start: 0;
}

.ehf-page-hero__chip + .ehf-page-hero__chip {
	border-inline-start: 1px solid var(--ehf-c-tint-200);
}

.ehf-page-hero__chip-icon {
	display: inline-flex;
	color: var(--ehf-c-primary);
	font-size: 20px;
	line-height: 1;
}

.ehf-page-hero__chip-icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* The theme's `.elementor img{height:auto}` would stop the image at its own ratio; pin it to the media column */
.ehf-page-hero .ehf-page-hero__media .ehf-page-hero__img {
	width: 100%;
	height: 100%;
	max-width: none;
}

/* Media: bleeds to the right (or left) viewport edge */
.ehf-page-hero__media {
	position: relative;
	min-height: 320px;
	min-width: 0;
}

.ehf-page-hero__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--ehf-r-lg) 0 0 var(--ehf-r-lg);
}

.ehf-page-hero--img-left .ehf-page-hero__img {
	border-radius: 0 var(--ehf-r-lg) var(--ehf-r-lg) 0;
}

/* Tablet: 55/45, image inside the container with radius 16 */
@media (max-width: 1024px) {
	.ehf-page-hero__grid {
		grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
		column-gap: var(--ehf-s-4);
		padding-inline: var(--ehf-gutter);
		max-width: var(--ehf-container);
		margin-inline: auto;
		box-sizing: border-box;
	}

	.ehf-page-hero--no-image .ehf-page-hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ehf-page-hero__text,
	.ehf-page-hero--img-left .ehf-page-hero__text,
	.ehf-page-hero--no-image .ehf-page-hero__text {
		padding-inline: 0;
	}

	.ehf-page-hero__media {
		margin-block: var(--ehf-pad-hero-t) var(--ehf-pad-hero-b);
	}

	.ehf-page-hero__img,
	.ehf-page-hero--img-left .ehf-page-hero__img {
		border-radius: var(--ehf-r-lg);
	}
}

/* Mobile: text, stacked 56px actions, then the image at 16:10 */
@media (max-width: 767px) {
	.ehf-page-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0;
	}

	.ehf-page-hero--img-left .ehf-page-hero__media {
		order: 0;
	}

	.ehf-page-hero__text {
		padding-block-end: var(--ehf-s-3);
	}

	.ehf-page-hero__text > * {
		max-width: none;
	}

	.ehf-page-hero__actions {
		flex-direction: column;
		align-items: stretch;
		gap: var(--ehf-s-1);
		width: 100%;
	}

	.ehf-page-hero__actions .ehf-btn,
	.ehf-hero-phone,
	.ehf-hero-email {
		box-sizing: border-box;
		justify-content: center;
		width: 100%;
		min-height: 56px;
		padding: 14px 24px;
		border-radius: var(--ehf-r-md);
		font-size: 18px;
	}

	.ehf-hero-phone,
	.ehf-hero-email {
		border: 1px solid var(--ehf-c-primary);
		background: var(--ehf-c-surface);
		color: var(--ehf-c-primary);
	}

	.ehf-hero-phone:hover,
	.ehf-hero-email:hover {
		background: var(--ehf-c-tint-100);
		text-decoration: none;
	}

	.ehf-page-hero__chips {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--ehf-s-1);
	}

	.ehf-page-hero__chip,
	.ehf-page-hero__chip + .ehf-page-hero__chip {
		padding-inline: 0;
		border-inline-start: 0;
	}

	.ehf-page-hero__media {
		min-height: 0;
		aspect-ratio: 16 / 10;
		max-height: 260px;
		margin-block: 0 var(--ehf-pad-hero-b);
		margin-inline: 0;
		width: 100%;
	}
}

@media (max-width: 480px) {
	.ehf-page-hero__chip-icon {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	.ehf-page-hero__media {
		box-sizing: border-box;
	}
}

/* 1.4.1 M10: chips stack with no divider up to 1024 (a wrapped second row was indented behind an orphan divider) */
@media (max-width: 1024px) {
	.ehf-page-hero__chips {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--ehf-s-1);
	}

	.ehf-page-hero__chip,
	.ehf-page-hero__chip + .ehf-page-hero__chip {
		padding-inline: 0;
		border-inline-start: 0;
	}
}

/* 1.4.1 M12: the quote label stays centred and wraps cleanly; the arrow sits inline after the text */
.ehf-page-hero__quote span {
	min-width: 0;
	text-align: center;
	white-space: normal;
}

/* 1.4.2: Elementor's `.elementor img { border-radius:0 }` outranks the base rules above. */
.ehf-page-hero img.ehf-page-hero__img {
	border-radius: var(--ehf-r-lg) 0 0 var(--ehf-r-lg);
}

.ehf-page-hero.ehf-page-hero--img-left img.ehf-page-hero__img {
	border-radius: 0 var(--ehf-r-lg) var(--ehf-r-lg) 0;
}

@media (max-width: 1024px) {
	.ehf-page-hero img.ehf-page-hero__img,
	.ehf-page-hero.ehf-page-hero--img-left img.ehf-page-hero__img {
		border-radius: var(--ehf-r-lg);
	}
}
