/**
 * Haris Hero for Elementor — frontend styles.
 * Colours, sizes and spacing come from the Elementor Style tab;
 * the values here are structural fallbacks only.
 */

.haris-hero {
	--haris-hero-col: 50%;
	--haris-hero-align: left;
	--haris-hero-justify: flex-start;
	--haris-hero-stagger: 0.12s;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	min-height: 100vh;
	padding: 0 0 0 60px;
	background-color: #000;
	overflow: hidden;
	text-align: var(--haris-hero-align);
}

.haris-hero,
.haris-hero *,
.haris-hero *::before,
.haris-hero *::after {
	box-sizing: border-box;
}

.haris-hero::before {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.haris-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 40px;
	width: 100%;
}

/* ---------------------------------------------------------------- Columns */

.haris-hero__content {
	flex: 0 1 var(--haris-hero-col);
	min-width: 0;
	max-width: 560px;
}

.haris-hero__media {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.haris-hero--media-left .haris-hero__inner {
	flex-direction: row-reverse;
}

/* --------------------------------------------------------------- Eyebrow */

.haris-hero__eyebrow {
	display: flex;
	align-items: center;
	justify-content: var(--haris-hero-justify);
	gap: 14px;
	margin: 0 0 26px;
	color: #e8c547;
}

.haris-hero__eyebrow-line {
	display: block;
	width: 48px;
	height: 1px;
	background-color: currentColor;
	flex: 0 0 auto;
}

.haris-hero__eyebrow-text {
	font-size: 12px;
	letter-spacing: 3px;
	text-transform: uppercase;
	line-height: 1;
}

/* -------------------------------------------------------------- Headline */

.haris-hero__title {
	margin: 0 0 28px;
	color: #fff;
	font-size: 60px;
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -1px;
}

.haris-hero__desc {
	margin: 0 0 42px;
	max-width: 460px;
	color: #b8b8b8;
	font-size: 17px;
	line-height: 1.65;
}

.haris-hero--align-center .haris-hero__desc,
.haris-hero__desc {
	margin-inline: unset;
}

/* --------------------------------------------------------------- Buttons */

.haris-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--haris-hero-justify);
	gap: 20px;
}

.haris-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px 30px;
	border: 0 solid transparent;
	text-decoration: none;
	line-height: 1;
	font-size: 14px;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
		box-shadow 0.3s ease, transform 0.3s ease;
}

.haris-hero__btn--primary {
	background-color: #e8c547;
	color: #0a0a0a;
}

.haris-hero__btn--secondary {
	background-color: transparent;
	color: #fff;
	border: 1px solid #fff;
}

.haris-hero__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.haris-hero__btn-icon i,
.haris-hero__btn-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	font-size: inherit;
	fill: currentColor;
}

.haris-hero--icon-slide .haris-hero__btn:hover .haris-hero__btn-icon--after {
	transform: translateX(5px);
}

.haris-hero--icon-slide .haris-hero__btn:hover .haris-hero__btn-icon--before {
	transform: translateX(-5px);
}

.haris-hero__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* -------------------------------------------------------------- Portrait */

.haris-hero__image-wrap {
	position: relative;
	width: 100%;
	line-height: 0;
}

.haris-hero__image {
	--haris-hero-gray: 100%;
	--haris-hero-fade: 22%;
	--haris-mask-x: linear-gradient(to right, #000 0%, #000 100%);
	--haris-mask-y: linear-gradient(to bottom, #000 0%, #000 100%);
	display: block;
	width: 100%;
	height: 100vh;
	object-fit: cover;
	object-position: center center;
	filter: grayscale(var(--haris-hero-gray, 100%));
	transition: filter 0.45s ease;
	-webkit-mask-image: var(--haris-mask-x), var(--haris-mask-y);
	mask-image: var(--haris-mask-x), var(--haris-mask-y);
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

.haris-hero--fade-left .haris-hero__image {
	--haris-mask-x: linear-gradient(to right, transparent 0%, #000 var(--haris-hero-fade));
}

.haris-hero--fade-right .haris-hero__image {
	--haris-mask-x: linear-gradient(to left, transparent 0%, #000 var(--haris-hero-fade));
}

.haris-hero--fade-left.haris-hero--fade-right .haris-hero__image {
	--haris-mask-x: linear-gradient(
		to right,
		transparent 0%,
		#000 var(--haris-hero-fade),
		#000 calc(100% - var(--haris-hero-fade)),
		transparent 100%
	);
}

.haris-hero--fade-top .haris-hero__image {
	--haris-mask-y: linear-gradient(to bottom, transparent 0%, #000 var(--haris-hero-fade));
}

.haris-hero--fade-bottom .haris-hero__image {
	--haris-mask-y: linear-gradient(to top, transparent 0%, #000 var(--haris-hero-fade));
}

.haris-hero--fade-top.haris-hero--fade-bottom .haris-hero__image {
	--haris-mask-y: linear-gradient(
		to bottom,
		transparent 0%,
		#000 var(--haris-hero-fade),
		#000 calc(100% - var(--haris-hero-fade)),
		transparent 100%
	);
}

/* ------------------------------------------------------------ Focus card */

.haris-hero__card {
	position: absolute;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 400px;
	max-width: 100%;
	padding: 26px 30px;
	background-color: rgba(26, 26, 26, 0.92);
	text-align: left;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

a.haris-hero__card:hover {
	transform: translateY(-3px);
}

.haris-hero--card-bottom-left .haris-hero__card {
	left: var(--haris-card-x, 0px);
	bottom: var(--haris-card-y, 0px);
}

.haris-hero--card-bottom-right .haris-hero__card {
	right: var(--haris-card-x, 0px);
	bottom: var(--haris-card-y, 0px);
}

.haris-hero--card-top-left .haris-hero__card {
	left: var(--haris-card-x, 0px);
	top: var(--haris-card-y, 0px);
}

.haris-hero--card-top-right .haris-hero__card {
	right: var(--haris-card-x, 0px);
	top: var(--haris-card-y, 0px);
}

.haris-hero--card-static .haris-hero__card {
	position: relative;
	margin-top: 24px;
}

.haris-hero__card-label {
	color: #e8c547;
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	line-height: 1;
}

.haris-hero__card-title {
	color: #fff;
	font-size: 24px;
	line-height: 1.25;
}

/* ------------------------------------------------------------ Scroll cue */

.haris-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%);
	z-index: 3;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: #9a9a9a;
	text-decoration: none;
	line-height: 1;
	transition: color 0.3s ease, opacity 0.4s ease, visibility 0.4s ease;
}

.haris-hero__scroll-text {
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.haris-hero__scroll-icon {
	display: inline-flex;
	font-size: 16px;
}

.haris-hero__scroll-icon i,
.haris-hero__scroll-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	font-size: inherit;
	fill: currentColor;
}

.haris-hero--scroll-bounce .haris-hero__scroll-icon {
	animation: haris-hero-bounce 2s ease-in-out infinite;
}

.haris-hero__scroll.is-faded {
	opacity: 0;
	visibility: hidden;
}

@keyframes haris-hero-bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(6px);
	}
}

/* ------------------------------------------------------------- Stacking */

.haris-hero--stack-none .haris-hero__inner {
	flex-wrap: nowrap;
}

@media (max-width: 1024px) {
	.haris-hero--stack-tablet .haris-hero__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.haris-hero--stack-tablet .haris-hero__content {
		flex: 1 1 auto;
		max-width: 100%;
	}

	/*
	 * Stacked, the columns sit in a column flex container, where `flex: 1 1 0`
	 * would size the portrait from whatever space is left over rather than
	 * from its own height — and leave it flattened when there is none.
	 */
	.haris-hero--stack-tablet .haris-hero__media {
		flex: 0 0 auto;
		width: 100%;
		align-self: auto;
	}

	.haris-hero--stack-tablet.haris-hero--stacked-media-first .haris-hero__inner {
		flex-direction: column-reverse;
	}

	.haris-hero--stack-tablet .haris-hero__image {
		height: 60vh;
	}

	.haris-hero--stack-tablet .haris-hero__card {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.haris-hero--stack-mobile .haris-hero__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.haris-hero--stack-mobile .haris-hero__content {
		flex: 1 1 auto;
		max-width: 100%;
	}

	/* Same reason as the tablet rule above. */
	.haris-hero--stack-mobile .haris-hero__media {
		flex: 0 0 auto;
		width: 100%;
		align-self: auto;
	}

	/* Without this the portrait keeps its full-height desktop value. */
	.haris-hero--stack-mobile .haris-hero__image {
		height: 420px;
	}

	.haris-hero--stack-mobile.haris-hero--stacked-media-first .haris-hero__inner {
		flex-direction: column-reverse;
	}

	.haris-hero__card {
		width: 100%;
	}

	.haris-hero--card-bottom-left .haris-hero__card,
	.haris-hero--card-bottom-right .haris-hero__card,
	.haris-hero--card-top-left .haris-hero__card,
	.haris-hero--card-top-right .haris-hero__card {
		position: relative;
		left: auto;
		right: auto;
		top: auto;
		bottom: auto;
		margin-top: -40px;
	}

	/*
	 * Buttons below the portrait.
	 *
	 * The buttons live inside the text block, so they cannot be moved past the
	 * portrait with `order` alone. `display: contents` dissolves that wrapper
	 * for this breakpoint only, which puts the eyebrow, title, description and
	 * buttons into the same column as the portrait, where order can place them.
	 * The wrapper carries no styling of its own, so nothing is lost.
	 */
	.haris-hero--mbtn-after:not(.haris-hero--stack-none) .haris-hero__inner {
		flex-direction: column;
		align-items: stretch;
		/* The column gap would now fall between every element, so spacing goes
		   back to each element's own margins. */
		gap: 0;
	}

	.haris-hero--mbtn-after:not(.haris-hero--stack-none) .haris-hero__content {
		display: contents;
	}

	.haris-hero--mbtn-after:not(.haris-hero--stack-none) .haris-hero__eyebrow {
		order: 1;
	}

	.haris-hero--mbtn-after:not(.haris-hero--stack-none) .haris-hero__title {
		order: 2;
	}

	.haris-hero--mbtn-after:not(.haris-hero--stack-none) .haris-hero__desc {
		order: 3;
	}

	.haris-hero--mbtn-after:not(.haris-hero--stack-none) .haris-hero__media {
		order: 4;
	}

	/* A card set to sit in the flow follows its portrait. */
	.haris-hero--mbtn-after:not(.haris-hero--stack-none) .haris-hero__card {
		order: 5;
	}

	.haris-hero--mbtn-after:not(.haris-hero--stack-none) .haris-hero__buttons {
		order: 6;
		margin-top: var(--haris-hero-mbtn-gap, 28px);
	}

	/* Portrait first: the text follows it, and the buttons still close. */
	.haris-hero--mbtn-after:not(.haris-hero--stack-none).haris-hero--stacked-media-first
		.haris-hero__media {
		order: 1;
	}

	.haris-hero--mbtn-after:not(.haris-hero--stack-none).haris-hero--stacked-media-first
		.haris-hero__card {
		order: 2;
	}

	.haris-hero--mbtn-after:not(.haris-hero--stack-none).haris-hero--stacked-media-first
		.haris-hero__eyebrow {
		order: 3;
	}

	.haris-hero--mbtn-after:not(.haris-hero--stack-none).haris-hero--stacked-media-first
		.haris-hero__title {
		order: 4;
	}

	.haris-hero--mbtn-after:not(.haris-hero--stack-none).haris-hero--stacked-media-first
		.haris-hero__desc {
		order: 5;
	}

	.haris-hero__btn {
		flex: 1 1 auto;
	}
}

/* ------------------------------------------------------------ A11y / RM */

@media (prefers-reduced-motion: reduce) {
	.haris-hero *,
	.haris-hero *::before,
	.haris-hero *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
