/**
 * Inoforest Statement
 *
 * Contents
 * 1. Variables and frame
 * 2. Sentence and its photos
 * 3. Reveal (the photos widen into place)
 * 4. Signature and link
 * 5. Small screens, reduced motion
 *
 * Colours and fonts read the Design System (--inoforest-*) with fallbacks; the Style tab controls set the same
 * properties on the widget and win.
 */

/* 1. Variables and frame -------------------------------------------------------- */
.ino-statement {
	--ino-statement-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ino-statement-highlight: var(--inoforest-color-primary, #0b7a75);
	--ino-statement-img: 2.3em;
	max-width: var(--ino-statement-width, 1120px);
	margin-inline: auto;
	text-align: center;
}

.ino-statement[data-align="start"] {
	margin-inline: 0;
	text-align: start;
}

/* 2. Sentence and its photos ----------------------------------------------------- */
.ino-statement .ino-statement__text {
	margin: 0;
	font-family: var(--inoforest-font-heading-family, Georgia, serif);
	font-size: clamp(2rem, 4.4vw, 3.9rem);
	font-weight: 400;
	line-height: 1.28;
	letter-spacing: -0.02em;
	color: var(--inoforest-color-heading, #0d1b2a);
}

.ino-statement[data-size="lg"] .ino-statement__text {
	font-size: clamp(1.7rem, 3.2vw, 2.8rem);
}

.ino-statement__text em {
	font-style: italic;
	color: var(--ino-statement-highlight);
}

.ino-statement__img {
	display: inline-block;
	width: var(--ino-statement-img);
	height: 1.05em;
	margin-inline: 0.12em;
	overflow: hidden;
	line-height: 0;
	vertical-align: -0.12em;
	border-radius: 999px;
	transition: width 1.1s var(--ino-statement-ease), margin 1.1s var(--ino-statement-ease), opacity 0.8s var(--ino-statement-ease);
}

.ino-statement__img:nth-of-type(2) {
	transition-delay: 0.15s;
}

.ino-statement__img:nth-of-type(3) {
	transition-delay: 0.3s;
}

/* Two classes to beat Elementor's `.elementor img` reset; the image keeps its width while the frame widens. */
.ino-statement .ino-statement__img img {
	display: block;
	width: var(--ino-statement-img);
	max-width: none;
	height: 100%;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* 3. Reveal: script.js sets .is-pending until the sentence is half in view ------------- */
.ino-statement.is-pending .ino-statement__img {
	width: 0;
	margin-inline: 0;
	opacity: 0;
}

/* 4. Signature and link ------------------------------------------------------------------ */
.ino-statement__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px 28px;
	margin-top: 44px;
}

.ino-statement[data-align="start"] .ino-statement__foot {
	justify-content: flex-start;
}

.ino-statement .ino-statement__sign {
	font-family: "Caveat", cursive;
	font-size: 1.9rem;
	line-height: 1;
	color: var(--inoforest-color-heading, #0d1b2a);
}

.ino-statement .ino-statement__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--inoforest-color-primary, #0b7a75);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
	transition: background-size 0.35s var(--ino-statement-ease), color 0.35s var(--ino-statement-ease);
}

.ino-statement .ino-statement__link:hover,
.ino-statement .ino-statement__link:focus-visible {
	background-size: 100% 1px;
}

.ino-statement__link svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

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

.ino-statement__hint {
	margin: 0;
	padding: 10px 14px;
	font-size: 13px;
	color: #1d2327;
	background: #fff8e5;
	border-left: 4px solid #dba617;
}

/* 5. Small screens, reduced motion ------------------------------------------------------- */
@media (max-width: 767px) {
	.ino-statement {
		--ino-statement-img: 1.9em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ino-statement__img,
	.ino-statement .ino-statement__link {
		transition: none;
	}
}
