/* ==========================================================
   NESK Framework
   Professional / Consultant
   Version 0.4
   ========================================================== */


/* ----------------------------------------------------------
   Consultant design tokens
   ---------------------------------------------------------- */

body {
	--nesk-consultant-hero-min-height: 620px;
}


/* ----------------------------------------------------------
   Hero – base
   ---------------------------------------------------------- */

.nesk-hero {
	overflow: hidden;
}

.nesk-hero--split {
	padding-top: clamp(4rem, 8vw, 7rem);
	padding-bottom: clamp(4rem, 8vw, 7rem);
}


/* ----------------------------------------------------------
   Hero – split layout
   ---------------------------------------------------------- */

.nesk-hero .nesk-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;

	width: calc(100% - 48px);
	max-width: 1200px;
	min-height: var(--nesk-consultant-hero-min-height);

	margin-left: auto !important;
	margin-right: auto !important;
}


/* ----------------------------------------------------------
   Hero – content
   ---------------------------------------------------------- */

.nesk-hero__content {
	width: 100%;
	min-width: 0;
	max-width: none;
}

.nesk-hero__eyebrow {
	margin-top: 0;
	margin-bottom: 1rem;

	color: var(--wp--preset--color--accent);

	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.nesk-hero__title {
	margin-top: 0;
	margin-bottom: 1.5rem;

	max-width: none;

	text-wrap: balance;
	overflow-wrap: normal;
	word-break: normal;
}

.nesk-hero__lead {
	max-width: 620px;
	margin-top: 0;
	margin-bottom: 2rem;

	color: var(--wp--preset--color--muted);

	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	line-height: 1.65;
}


/* ----------------------------------------------------------
   Hero – actions
   ---------------------------------------------------------- */

.nesk-hero__actions {
	display: flex !important;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.nesk-hero__actions .wp-block-button {
	margin: 0;
}


/* Secondary button */

.nesk-button--secondary .wp-element-button {
	border: 1px solid var(--wp--preset--color--primary);

	background: transparent;
	color: var(--wp--preset--color--primary);

	box-shadow: none;
}

.nesk-button--secondary .wp-element-button:hover {
	background: var(--wp--preset--color--surface);
}


/* ----------------------------------------------------------
   Hero – media
   ---------------------------------------------------------- */

.nesk-hero__media {
	position: relative;

	width: 100%;
	min-width: 0;
}

.nesk-hero__image {
	overflow: hidden;

	width: 100%;
	max-width: 400px;

	margin-top: 0;
	margin-right: 0;
	margin-bottom: 0;
	margin-left: auto;

	border-radius: var(--nesk-radius-lg);
	box-shadow: var(--nesk-shadow-md);
}

.nesk-hero__image img {
	display: block;

	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;

	object-fit: cover;
}


/* ----------------------------------------------------------
   Tablet
   ---------------------------------------------------------- */

@media (max-width: 900px) {

	body {
		--nesk-consultant-hero-min-height: auto;
	}

	.nesk-hero .nesk-hero__grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;

		width: calc(100% - 40px);
		min-height: auto;
	}

	.nesk-hero__content {
		max-width: 760px;
	}

	.nesk-hero__media {
		max-width: 680px;
	}

	.nesk-hero__image {
		max-width: 520px;
		margin-left: 0;
	}
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 600px) {

	.nesk-hero--split {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.nesk-hero .nesk-hero__grid {
		width: calc(100% - 32px);
		gap: 2rem;
	}

	.nesk-hero__eyebrow {
		font-size: 0.8rem;
	}

	.nesk-hero__lead {
		font-size: 1.05rem;
	}

	.nesk-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.nesk-hero__actions .wp-block-button {
		width: 100%;
	}

	.nesk-hero__actions .wp-element-button {
		width: 100%;
		text-align: center;
	}

	.nesk-hero__image {
		width: 100%;
		max-width: none;
	}
}