/**
 * Inoforest Arch Hero
 *
 * Contents
 * 1. Variables and frame
 * 2. Text and buttons
 * 3. Arches, tags and sparkle
 * 4. Reveal and pointer depth (script.js)
 * 5. Small screens, reduced motion
 *
 * Colours and fonts read the Design System (--inoforest-*) with fallbacks; the Style tab controls win.
 */

/* 1. Variables and frame --------------------------------------------------------- */
.ino-arch-hero {
	--ino-ah-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ino-ah-primary: var(--inoforest-color-primary, #0b7a75);
	--ino-ah-heading: var(--inoforest-color-heading, #0d1b2a);
	--ino-ah-highlight: var(--ino-ah-primary);
	--ino-ah-radius: 28px;
	position: relative;
	text-align: center;
}

/* 2. Text and buttons -------------------------------------------------------------- */
.ino-arch-hero__content {
	position: relative;
	z-index: 2;
	max-width: 880px;
	margin-inline: auto;
}

.ino-arch-hero .ino-arch-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.75;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--inoforest-color-accent, #ff6a3d);
}

.ino-arch-hero__eyebrow::before {
	content: "";
	flex: none;
	width: 36px;
	height: 1px;
	background: currentColor;
}

.ino-arch-hero .ino-arch-hero__title {
	margin: 0 0 22px;
	font-family: var(--inoforest-font-heading-family, Georgia, serif);
	font-size: clamp(3rem, 7.4vw, 6.6rem);
	font-weight: var(--inoforest-font-heading-weight, 500);
	line-height: 1;
	letter-spacing: -0.035em;
	color: var(--ino-ah-heading);
	overflow-wrap: anywhere;
}

.ino-arch-hero__title em {
	display: inline-block;
	font-style: italic;
	font-weight: 400;
	color: var(--ino-ah-highlight);
}

.ino-arch-hero .ino-arch-hero__text {
	max-width: 560px;
	margin: 0 auto 32px;
	font-size: 1.15rem;
	line-height: 1.75;
}

.ino-arch-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.ino-arch-hero .ino-arch-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 14px 30px;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background-color: var(--ino-ah-primary);
	border: 1px solid var(--ino-ah-primary);
	border-radius: 999px;
	transition: color 0.35s var(--ino-ah-ease), background-color 0.35s var(--ino-ah-ease), border-color 0.35s var(--ino-ah-ease);
}

.ino-arch-hero .ino-arch-hero__button:hover,
.ino-arch-hero .ino-arch-hero__button:focus-visible {
	color: #fff;
	background-color: color-mix(in srgb, var(--ino-ah-primary) 82%, #000);
	border-color: color-mix(in srgb, var(--ino-ah-primary) 82%, #000);
}

/* The second button is an outline, filled with the heading colour on hover. */
.ino-arch-hero .ino-arch-hero__button--2 {
	color: var(--ino-ah-heading);
	background-color: transparent;
	border-color: color-mix(in srgb, var(--ino-ah-heading) 22%, transparent);
}

.ino-arch-hero .ino-arch-hero__button--2:hover,
.ino-arch-hero .ino-arch-hero__button--2:focus-visible {
	color: #fff;
	background-color: var(--ino-ah-heading);
	border-color: var(--ino-ah-heading);
}

.ino-arch-hero__button i {
	font-size: 1.1em;
	transition: transform 0.35s var(--ino-ah-ease);
}

.ino-arch-hero__button svg {
	width: 1.1em;
	height: 1.1em;
	fill: currentColor;
	transition: transform 0.35s var(--ino-ah-ease);
}

.ino-arch-hero__button:hover :is(i, svg) {
	transform: translateX(3px);
}

[dir="rtl"] .ino-arch-hero__button :is(i, svg) {
	scale: -1 1;
}

/* 3. Arches, tags and sparkle --------------------------------------------------------- */
.ino-arch-hero__arches {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1.25fr 1fr;
	align-items: end;
	gap: var(--ino-ah-gap, 26px);
	max-width: var(--ino-ah-width, 1080px);
	margin: var(--ino-ah-space, 64px) auto 0;
}

.ino-arch-hero .ino-arch-hero__arch {
	--ino-ah-depth: 14px;
	position: relative;
	margin: 0;
	overflow: hidden;
	line-height: 0;
	aspect-ratio: 3 / 4;
	border-radius: 999px 999px var(--ino-ah-radius) var(--ino-ah-radius);
	clip-path: inset(0 0 0 0 round 999px 999px var(--ino-ah-radius) var(--ino-ah-radius));
	translate: calc(var(--ino-ah-mx, 0) * var(--ino-ah-depth)) calc(var(--ino-ah-my, 0) * var(--ino-ah-depth));
	transition: translate 0.9s var(--ino-ah-ease), opacity 1s var(--ino-ah-ease), clip-path 1.3s var(--ino-ah-ease);
}

.ino-arch-hero .ino-arch-hero__arch:nth-of-type(1) {
	--ino-ah-depth: 10px;
	aspect-ratio: 3 / 4.6;
	transition-delay: 0s, 0.15s, 0.15s;
}

.ino-arch-hero .ino-arch-hero__arch:nth-of-type(2) {
	--ino-ah-depth: 26px;
	transition-delay: 0s, 0.3s, 0.3s;
}

/* Two classes to beat Elementor's `.elementor img` reset. */
.ino-arch-hero .ino-arch-hero__image {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transition: transform 1.6s var(--ino-ah-ease), scale 1.8s var(--ino-ah-ease);
}

.ino-arch-hero__arch:hover .ino-arch-hero__image {
	transform: scale(1.05);
}

.ino-arch-hero .ino-arch-hero__tag {
	position: absolute;
	inset-block-end: 18px;
	inset-inline: 18px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 14px;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.75;
	color: var(--ino-ah-heading);
	background: color-mix(in srgb, #fff 88%, transparent);
	border-radius: 999px;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.ino-arch-hero__tag i {
	color: var(--ino-ah-primary);
}

.ino-arch-hero__tag svg {
	width: 1em;
	height: 1em;
	fill: var(--ino-ah-primary);
}

.ino-arch-hero__spark {
	position: absolute;
	inset-block-start: -26px;
	inset-inline-end: 18%;
	z-index: 3;
	width: 42px;
	height: 42px;
	color: var(--ino-ah-primary);
	transition: rotate 1.2s var(--ino-ah-ease) 0.6s, opacity 0.8s var(--ino-ah-ease) 0.6s;
}

.ino-arch-hero[data-count="1"] .ino-arch-hero__arches {
	grid-template-columns: minmax(0, 520px);
	justify-content: center;
}

.ino-arch-hero[data-count="1"] .ino-arch-hero__arch:not(:nth-of-type(1)) {
	display: none;
}

/* 4. Reveal and pointer depth: script.js sets .is-pending until the arches are in view, and --ino-ah-mx / -my -------- */
.ino-arch-hero.is-pending .ino-arch-hero__arch {
	opacity: 0;
	clip-path: inset(100% 0 0 0 round 999px 999px var(--ino-ah-radius) var(--ino-ah-radius));
}

.ino-arch-hero.is-pending .ino-arch-hero__image {
	scale: 1.15;
}

.ino-arch-hero.is-pending .ino-arch-hero__spark {
	opacity: 0;
	rotate: -90deg;
}

/* 5. Small screens, reduced motion ------------------------------------------------------- */
@media (max-width: 767px) {
	.ino-arch-hero {
		--ino-ah-radius: 22px;
	}

	.ino-arch-hero__arches {
		gap: var(--ino-ah-gap, 12px);
		margin-top: var(--ino-ah-space, 44px);
	}

	.ino-arch-hero .ino-arch-hero__tag {
		inset-block-end: 10px;
		inset-inline: 8px;
		padding: 6px 8px;
		font-size: 0.65rem;
	}

	.ino-arch-hero__tag :is(i, svg) {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ino-arch-hero .ino-arch-hero__arch,
	.ino-arch-hero .ino-arch-hero__image,
	.ino-arch-hero__spark,
	.ino-arch-hero .ino-arch-hero__button {
		transition: none;
	}
}
