/**
 * Inoforest Profile Hero
 *
 * Contents
 * 1. Variables, the name, the three columns
 * 2. Kicker, tagline, buttons
 * 3. Portrait and badge
 * 4. Profiles
 * 5. Light colours
 * 6. Smaller screens (stacked below 992 px), reduced motion
 *
 * The widget draws no background: the section behind it does. Colours read the Design System (--inoforest-color-*)
 * with fallbacks. Rules use two classes; the Style tab's controls use three (or set the variables), so a choice in the
 * panel always wins.
 */

/* 1. Variables, the name, the three columns ---------------------------------------- */
.inoforest-profile-hero {
	--ino-ph-primary: var(--inoforest-color-primary, #0b7a75);
	--ino-ph-primary-dark: color-mix(in srgb, var(--ino-ph-primary) 80%, #000);
	--ino-ph-heading: var(--inoforest-color-heading, #0d1b2a);
	--ino-ph-highlight: color-mix(in srgb, var(--ino-ph-primary) 45%, #fff);
	--ino-ph-name-size: clamp(3.4rem, 12.5vw, 12rem);
	--ino-ph-portrait: 400px;
	--ino-ph-gap: 44px;
	--ino-ph-shadow: 0 18px 44px color-mix(in srgb, var(--ino-ph-heading) 12%, transparent);
	color: rgba(255, 255, 255, 0.78);
}

.inoforest-profile-hero .inoforest-profile-hero__name {
	position: relative;
	z-index: 0;
	margin: 0;
	font-family: var(--inoforest-font-heading-family, inherit);
	font-size: var(--ino-ph-name-size);
	font-weight: var(--inoforest-font-heading-weight, 600);
	line-height: 0.92;
	letter-spacing: -0.03em;
	text-align: center;
	white-space: nowrap;
	color: #fff;
}

.inoforest-profile-hero .inoforest-profile-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, var(--ino-ph-portrait)) minmax(0, 1fr);
	align-items: end;
	gap: var(--ino-ph-gap);
	/* The portrait rises over the name. */
	margin-top: calc(var(--ino-ph-name-size) * -0.45);
}

/* 2. Kicker, tagline, buttons ---------------------------------------------------------- */
.inoforest-profile-hero .inoforest-profile-hero__intro {
	min-width: 0;
	padding-bottom: 12px;
}

.inoforest-profile-hero .inoforest-profile-hero__kicker {
	display: block;
	margin-bottom: 12px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ino-ph-highlight);
}

.inoforest-profile-hero .inoforest-profile-hero__tagline {
	margin: 0;
	font-family: var(--inoforest-font-heading-family, inherit);
	font-size: 1.65rem;
	line-height: 1.3;
	color: #fff;
}

.inoforest-profile-hero__tagline em {
	color: var(--ino-ph-highlight);
}

.inoforest-profile-hero .inoforest-profile-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.inoforest-profile-hero .inoforest-profile-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	min-height: 54px;
	padding: 14px 22px;
	font-size: 0.975rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background-color: var(--ino-ph-primary);
	border: 2px solid var(--ino-ph-primary);
	border-radius: 999px;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.inoforest-profile-hero .inoforest-profile-hero__button:is(:hover, :focus-visible) {
	color: #fff;
	background-color: var(--ino-ph-primary-dark);
	border-color: var(--ino-ph-primary-dark);
}

/* The second button: an outline that fills white on hover. */
.inoforest-profile-hero .inoforest-profile-hero__button--2 {
	color: #fff;
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.4);
}

.inoforest-profile-hero .inoforest-profile-hero__button--2:is(:hover, :focus-visible) {
	color: var(--ino-ph-heading);
	background-color: #fff;
	border-color: #fff;
}

.inoforest-profile-hero :is(.inoforest-profile-hero__button, .inoforest-profile-hero__badge, .inoforest-profile-hero__profile-icon) svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* 3. Portrait and badge ----------------------------------------------------------------- */
.inoforest-profile-hero .inoforest-profile-hero__portrait {
	position: relative;
	margin: 0;
	aspect-ratio: 9 / 11;
	overflow: hidden;
	background-color: color-mix(in srgb, var(--ino-ph-primary) 12%, #fff);
	border-radius: 220px 220px 26px 26px;
	box-shadow: var(--ino-ph-shadow);
}

/* Two classes to beat Elementor's `.elementor img` reset. */
.inoforest-profile-hero__portrait img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.inoforest-profile-hero .inoforest-profile-hero__badge {
	position: absolute;
	bottom: 18px;
	left: 50%;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	font-size: 0.85rem;
	font-weight: 700;
	white-space: nowrap;
	color: var(--ino-ph-heading);
	background-color: #fff;
	border-radius: 999px;
	box-shadow: 0 6px 20px color-mix(in srgb, var(--ino-ph-heading) 8%, transparent);
	translate: -50% 0;
}

.inoforest-profile-hero__badge :is(i, svg) {
	color: var(--ino-ph-primary);
}

/* 4. Profiles ----------------------------------------------------------------------------- */
.inoforest-profile-hero .inoforest-profile-hero__profiles {
	display: grid;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 0 0 12px;
	list-style: none;
}

.inoforest-profile-hero__profiles li {
	margin: 0;
}

.inoforest-profile-hero .inoforest-profile-hero__profile {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	color: #fff;
	text-decoration: none;
	background-color: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	transition: background-color 0.3s ease;
}

.inoforest-profile-hero a.inoforest-profile-hero__profile:is(:hover, :focus-visible) {
	color: #fff;
	background-color: rgba(255, 255, 255, 0.12);
}

.inoforest-profile-hero .inoforest-profile-hero__profile-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	font-size: 20px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
}

.inoforest-profile-hero .inoforest-profile-hero__profile-number {
	display: block;
	font-family: var(--inoforest-font-heading-family, inherit);
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1;
}

.inoforest-profile-hero .inoforest-profile-hero__profile-label {
	display: block;
	margin-top: 4px;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.7);
}

/* 5. Light colours -------------------------------------------------------------------------- */
.inoforest-profile-hero[data-look="light"] {
	--ino-ph-highlight: var(--ino-ph-primary);
	color: var(--inoforest-color-text, #5a6a79);
}

.inoforest-profile-hero[data-look="light"] :is(.inoforest-profile-hero__name, .inoforest-profile-hero__tagline) {
	color: var(--ino-ph-heading);
}

.inoforest-profile-hero[data-look="light"] .inoforest-profile-hero__button--2 {
	color: var(--ino-ph-heading);
	border-color: var(--inoforest-color-border, #e3e9ee);
}

.inoforest-profile-hero[data-look="light"] .inoforest-profile-hero__profile {
	color: var(--ino-ph-heading);
	background-color: #fff;
	border-color: var(--inoforest-color-border, #e3e9ee);
}

.inoforest-profile-hero[data-look="light"] a.inoforest-profile-hero__profile:is(:hover, :focus-visible) {
	color: var(--ino-ph-heading);
	border-color: var(--ino-ph-primary);
}

.inoforest-profile-hero[data-look="light"] .inoforest-profile-hero__profile-icon {
	color: var(--ino-ph-primary);
	background-color: color-mix(in srgb, var(--ino-ph-primary) 12%, #fff);
}

.inoforest-profile-hero[data-look="light"] .inoforest-profile-hero__profile-label {
	color: var(--inoforest-color-text, #5a6a79);
}

/* 6. Smaller screens, reduced motion --------------------------------------------------------- */
@media (max-width: 1199px) {
	.inoforest-profile-hero {
		--ino-ph-portrait: 340px;
		--ino-ph-gap: 28px;
	}

	.inoforest-profile-hero .inoforest-profile-hero__tagline {
		font-size: 1.4rem;
	}
}

@media (max-width: 991px) {
	.inoforest-profile-hero {
		--ino-ph-gap: 30px;
	}

	.inoforest-profile-hero .inoforest-profile-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		margin-top: 28px;
		text-align: center;
	}

	.inoforest-profile-hero .inoforest-profile-hero__portrait {
		order: -1;
		width: min(380px, 100%);
	}

	.inoforest-profile-hero .inoforest-profile-hero__intro {
		max-width: 560px;
		padding: 0;
	}

	.inoforest-profile-hero .inoforest-profile-hero__actions {
		justify-content: center;
	}

	.inoforest-profile-hero .inoforest-profile-hero__profiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		max-width: 560px;
		padding: 0;
		text-align: start;
	}
}

@media (max-width: 767px) {
	.inoforest-profile-hero .inoforest-profile-hero__profiles {
		gap: 10px;
	}

	.inoforest-profile-hero .inoforest-profile-hero__profile {
		gap: 10px;
		padding: 12px;
	}

	.inoforest-profile-hero .inoforest-profile-hero__profile-icon {
		width: 36px;
		height: 36px;
		font-size: 17px;
	}

	.inoforest-profile-hero .inoforest-profile-hero__profile-number {
		font-size: 1.35rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.inoforest-profile-hero .inoforest-profile-hero__button,
	.inoforest-profile-hero .inoforest-profile-hero__profile {
		transition: none;
	}
}
