/**
 * Shared sub-page hero styles.
 *
 * @package AriawellTheme
 */

.about-hero {
	position: relative;
	height: 480px;
	overflow: hidden;
	padding-left: var(--aw-layout-gutter-x);
	padding-right: var(--aw-layout-gutter-x);
}

.about-hero__visual {
	position: absolute;
	inset: 0;
}

.about-hero__bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(253, 142, 0, 0.3) 67.812%,
		rgba(253, 120, 1, 0.3) 100%
	);
}

.about-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	max-width: var(--aw-content-max);
	height: 100%;
	margin: 0 auto;
	padding: 0;
}

.about-hero__content {
	position: relative;
	z-index: 1;
	align-self: flex-start;
	padding-top: clamp(4rem, 10vw, 7.5rem);
}

.about-hero__title {
	margin: 0;
	font-family: var(--aw-font-display);
	font-size: clamp(2.25rem, 3.02vw, 3.625rem);
	font-weight: 700;
	line-height: 1.12;
	color: #fff;
}

.about-hero__character {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 0;
	width: auto;
	height: clamp(12rem, 90.5%, 24rem);
	object-fit: contain;
	object-position: right bottom;
	pointer-events: none;
}

@media (max-width: 1280px) {
	.about-hero__character {
		height: clamp(10.5rem, 72%, 18.75rem);
	}
}

@media (max-width: 1024px) {
	.about-hero {
		height: clamp(17.5rem, 32vw, 24rem);
	}

	.about-hero__content {
		padding-top: clamp(3rem, 8vw, 5rem);
	}
}

@media (max-width: 768px) {
	.about-hero {
		height: auto;
		min-height: 28rem;
	}

	.about-hero__overlay {
		background:
			linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 45%),
			linear-gradient(90deg, rgba(253, 142, 0, 0.35) 67.812%, rgba(253, 120, 1, 0.35) 100%);
	}

	.about-hero__inner {
		min-height: 28rem;
	}

	.about-hero__content {
		padding-top: clamp(2.5rem, 10vw, 3.75rem);
	}

	.about-hero__title {
		font-size: 2.25rem;
		line-height: 1.2;
	}

	.about-hero__character {
		height: min(56%, 16rem);
		max-width: min(72%, 13.375rem);
	}
}

@media (max-width: 480px) {
	.about-hero__content {
		padding-top: 2.25rem;
	}

	.about-hero__title {
		font-size: 2rem;
	}

	.about-hero__character {
		height: min(58%, 16.5rem);
		max-width: min(68%, 14rem);
	}
}
