/* ==========================================================================
   Entotox Hero
   Fonts and colours come from the site: Elementor global fonts/colours
   (Montserrat, --e-global-color-*) and the Bugro theme variables (--cus-*).
   ========================================================================== */

.etx-hero {
	--etx-shade: var(--cus-drk-bg-color, #1C3029);
	--etx-shade-strength: 92%;
	--etx-dir: 90deg;
	--etx-font: var(--e-global-typography-primary-font-family, "Montserrat"), sans-serif;
	--etx-ink: var(--cus-drk-txt-color, #1C3029);
	--etx-muted: var(--e-global-color-text, #605F5E);
	--etx-line: var(--cus-border-color, #E2E6D3);

	position: relative;
	isolation: isolate;
	display: flex;
	min-height: 836px;
	overflow: hidden;
	background-color: var(--etx-shade);
	font-family: var(--etx-font);
	color: #fff;
}

.rtl .etx-hero {
	--etx-dir: 270deg;
	--etx-font: "Tajawal", "IBM Plex Sans Arabic", var(--e-global-typography-primary-font-family, "Montserrat"), sans-serif;
}

/* Photo + shade ----------------------------------------------------------- */

.etx-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.etx-hero__media img,
.etx-hero .etx-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 70% 60%;
	border-radius: 0;
}

.etx-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		var(--etx-dir),
		color-mix(in srgb, var(--etx-shade) var(--etx-shade-strength), transparent) 0%,
		color-mix(in srgb, var(--etx-shade) calc(var(--etx-shade-strength) * 0.89), transparent) 32%,
		color-mix(in srgb, var(--etx-shade) calc(var(--etx-shade-strength) * 0.46), transparent) 50%,
		transparent 68%
	);
}

/* Layout ------------------------------------------------------------------ */

.etx-hero__inner {
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 48px;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 64px;
	box-sizing: border-box;
}

.etx-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 660px;
}

.etx-hero .etx-hero__title {
	margin: 0;
	padding: 0;
	font-family: var(--etx-font);
	font-size: 62px;
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.03em;
	text-transform: none;
	color: #fff;
}

.etx-hero__highlight {
	color: var(--e-global-color-primary, #3AAE2A);
}

.etx-hero .etx-hero__text {
	margin: 26px 0 0;
	max-width: 560px;
	font-family: var(--etx-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.86);
}

/* Buttons: theme CEA button markup, same values as the site's CEA buttons */

.etx-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 36px;
}

.etx-hero .cea-button-wrapper {
	display: inline-flex;
}

.etx-hero .etx-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 30px 12px 29px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-family: var(--etx-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 28px;
	color: #fff;
	fill: #fff;
	text-decoration: none;
	transition: all .3s;
}

.etx-hero .etx-hero__btn .cea-button-text {
	color: inherit;
	white-space: nowrap;
}

.etx-hero .etx-hero__btn--main {
	background-color: var(--e-global-color-primary, #3AAE2A);
}

.etx-hero .etx-hero__btn--main:hover,
.etx-hero .etx-hero__btn--main:focus-visible {
	background-color: var(--e-global-color-secondary, #2FAAC4);
	color: #fff;
}

.etx-hero .etx-hero__btn--ghost {
	background-color: transparent;
	border-color: #fff;
}

.etx-hero .etx-hero__btn--ghost:hover,
.etx-hero .etx-hero__btn--ghost:focus-visible {
	background-color: var(--e-global-color-primary, #3AAE2A);
	border-color: var(--e-global-color-primary, #3AAE2A);
	color: #fff;
}

.etx-hero .etx-hero__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.etx-hero .cea-button-content-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.etx-hero .cea-button-icon {
	display: inline-flex;
	font-size: 18px;
	line-height: 1;
}

.etx-hero .cea-button-icon svg {
	width: 18px;
	height: 18px;
}

.etx-hero .cea-align-icon-right {
	order: 2;
}

/* Google rating card ------------------------------------------------------ */

.etx-hero__aside {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-end;
	flex: 0 0 auto;
}

.etx-hero__card {
	display: grid;
	grid-template-columns: 40px 1fr auto;
	align-items: center;
	column-gap: 12px;
	width: 340px;
	padding: 20px 22px;
	box-sizing: border-box;
	background-color: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6);
	color: var(--etx-ink);
	font-family: var(--etx-font);
}

.etx-hero__g {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--etx-line);
	border-radius: 50%;
	box-sizing: border-box;
}

.etx-hero__g svg {
	width: 22px;
	height: 22px;
}

.etx-hero__card-main {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.etx-hero__card-label {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--etx-muted);
}

.etx-hero__stars {
	position: relative;
	display: inline-flex;
	align-self: flex-start;
	line-height: 0;
}

.etx-hero__stars-base,
.etx-hero__stars-fill {
	display: inline-flex;
	gap: 2px;
	white-space: nowrap;
}

.etx-hero__stars-base {
	color: var(--etx-line);
}

.etx-hero__stars-fill {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	color: #FBBC04;
}

.rtl .etx-hero__stars-fill {
	inset: 0 0 0 auto;
	flex-direction: row-reverse;
}

.etx-hero__stars svg {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
}

.etx-hero__score {
	display: flex;
	align-items: baseline;
	gap: 4px;
	color: var(--etx-ink);
}

.etx-hero__score strong {
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.etx-hero__score span {
	font-size: 13px;
	font-weight: 600;
	color: var(--etx-muted);
}

.etx-hero__card-foot {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--etx-line);
	font-size: 13px;
	line-height: 1.4;
	color: var(--etx-muted);
}

.etx-hero__count strong {
	font-weight: 700;
	color: var(--etx-ink);
}

.etx-hero .etx-hero__card-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	/* Taller tap area without changing the card's layout. */
	padding-block: 12px;
	margin-block: -12px;
	font-weight: 700;
	color: var(--etx-ink);
	text-decoration: none;
}

.etx-hero .etx-hero__card-link:hover,
.etx-hero .etx-hero__card-link:focus-visible {
	color: var(--e-global-color-primary, #3AAE2A);
}

.etx-hero__card-link svg {
	width: 14px;
	height: 14px;
}

.rtl .etx-hero__card-link svg {
	transform: scaleX(-1);
}

/* Tablet ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.etx-hero .etx-hero__title {
		font-size: 48px;
	}

	.etx-hero .etx-hero__text {
		font-size: 17px;
	}

	.etx-hero__media::after {
		background: linear-gradient(
			var(--etx-dir),
			color-mix(in srgb, var(--etx-shade) var(--etx-shade-strength), transparent) 0%,
			color-mix(in srgb, var(--etx-shade) calc(var(--etx-shade-strength) * 0.85), transparent) 45%,
			color-mix(in srgb, var(--etx-shade) calc(var(--etx-shade-strength) * 0.3), transparent) 70%,
			transparent 90%
		);
	}
}

/* Mobile: text on the shade, photo edge to edge below, card over the road - */

@media (max-width: 767px) {
	.etx-hero {
		flex-direction: column;
		min-height: 0;
	}

	.etx-hero__inner {
		display: contents;
	}

	.etx-hero__content {
		order: 1;
		max-width: none;
		padding: inherit;
	}

	.etx-hero .etx-hero__title {
		font-size: 38px;
		line-height: 1.08;
	}

	.etx-hero .etx-hero__text {
		margin-top: 16px;
		font-size: 16px;
		line-height: 1.6;
	}

	.etx-hero__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin-top: 24px;
	}

	.etx-hero .cea-button-wrapper,
	.etx-hero .etx-hero__btn {
		width: 100%;
	}

	.etx-hero .etx-hero__btn {
		padding-left: 12px;
		padding-right: 12px;
	}

	.etx-hero__media {
		order: 2;
		position: relative;
		inset: auto;
		z-index: 0;
		height: 464px;
		margin-top: -1px;
	}

	.etx-hero__media img,
	.etx-hero .etx-hero__img {
		object-position: 83% 100%;
	}

	.etx-hero__media::after {
		top: -2px;
		background: linear-gradient(
			180deg,
			var(--etx-shade) 0%,
			var(--etx-shade) 3%,
			color-mix(in srgb, var(--etx-shade) 60%, transparent) 22%,
			transparent 42%,
			transparent 70%,
			color-mix(in srgb, var(--etx-shade) 70%, transparent) 100%
		);
	}

	.etx-hero__aside {
		order: 3;
		position: relative;
		z-index: 1;
		align-items: stretch;
		margin-top: -48px;
		padding: 0 16px 24px;
	}

	.etx-hero__card {
		width: 100%;
		padding: 16px 18px;
		grid-template-columns: 38px 1fr auto;
	}

	.etx-hero__g {
		width: 38px;
		height: 38px;
	}

	.etx-hero__score strong {
		font-size: 30px;
	}

	.etx-hero__card-foot {
		margin-top: 12px;
		padding-top: 10px;
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.etx-hero .etx-hero__btn {
		transition: none;
	}
}
