/**
 * SigmaGraft Connect — Careers hero.
 *
 * Copy panel beside an art panel holding a dotted mesh, a set of orbs and an
 * optional note card. Own `sgxc-hr` namespace.
 *
 * Orbs are repeater-driven elements, not fixed pseudo-elements, so their
 * number, size, position, gradient and shadow all stay editable.
 */

.sgxc-hr {
	position: relative;
	overflow: hidden;
	background-color: #F7FAF9;
}

/*
 * The grid lives on an inner wrapper rather than the section itself, so the
 * whole band can be constrained to a boxed column without losing the
 * edge-to-edge option — the same Container control every other widget has.
 */
.sgxc-hr__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, var(--sgxc-hr-r, 52fr)) minmax(0, 48fr);
	align-items: stretch;
	min-height: 680px;
	width: 100%;
	margin-inline: auto;
}

.sgxc-hr--boxed .sgxc-hr__inner {
	max-width: 1240px;
}

.sgxc-hr--full .sgxc-hr__inner {
	max-width: none;
}

.sgxc-hr__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

/* ═════════ Copy ═════════ */

.sgxc-hr__copy {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 100px 7vw 80px;
}

/*
 * Panel colour lives on its own layer rather than on the panel, so it can be
 * pushed past the panel edge to the viewport while the content stays inside
 * the boxed column. The section clips it.
 */
.sgxc-hr__copy-bg,
.sgxc-hr__art-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.sgxc-hr__art-bg {
	background-image:
		radial-gradient(circle at 75% 18%, #CCECE7 0, transparent 30%),
		linear-gradient(145deg, #DFEEEE, #9BCBD3 65%, #70ADBD);
}

.sgxc-hr--bleed .sgxc-hr__copy-bg {
	left: -100vw;
}

.sgxc-hr--bleed .sgxc-hr__art-bg {
	right: -100vw;
}

/* Swap which side bleeds when the panels are swapped. */
.sgxc-hr--bleed.sgxc-hr--art-left .sgxc-hr__copy-bg {
	left: 0;
	right: -100vw;
}

.sgxc-hr--bleed.sgxc-hr--art-left .sgxc-hr__art-bg {
	right: 0;
	left: -100vw;
}

.sgxc-hr__copy-inner {
	position: relative;
	z-index: 1;
	min-width: 0;
	width: 100%;
}

.sgxc-hr__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 25px;
	color: #3F7B8E;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sgxc-hr__eyebrow-rule {
	display: block;
	flex: 0 0 auto;
	width: 34px;
	height: 1px;
	background-color: currentColor;
}

.sgxc-hr__title {
	margin: 0;
	color: #102C3C;
	font-size: clamp(44px, 6vw, 91px);
	font-weight: 400;
	line-height: 0.98;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.sgxc-hr__title em,
.sgxc-hr__title i {
	color: #4E9BAD;
	font-family: inherit;
	font-style: italic;
	font-weight: inherit;
}

.sgxc-hr__text {
	max-width: 520px;
	margin: 30px 0 36px;
	color: #526B76;
	font-size: 18px;
	line-height: 1.7;
	text-wrap: pretty;
}

/* ═════════ Actions ═════════ */

.sgxc-hr__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
}

/*
 * Two classes. Hello Elementor's reset paints a border on every bare
 * <button>/[type=submit]; an attribute selector ties with a single class and
 * the theme sheet loads last, so a one-class rule loses.
 */
.sgxc-hr .sgxc-hr__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 15px 20px;
	background-color: #17607C;
	border: 0;
	border-radius: 0;
	color: #FFFFFF;
	font: 700 13px/1.3 inherit;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.sgxc-hr .sgxc-hr__btn:hover,
.sgxc-hr .sgxc-hr__btn:focus-visible {
	background-color: #12394B;
	transform: translateY(-1px);
}

.sgxc-hr .sgxc-hr__btn:focus-visible {
	outline: 2px solid #17607C;
	outline-offset: 3px;
}

/* Text-link variant — an underlined action with no fill. */
.sgxc-hr .sgxc-hr__btn--link {
	padding: 13px 0;
	background-color: transparent;
	border-bottom: 1px solid #9EB5BD;
	color: #102C3C;
}

.sgxc-hr .sgxc-hr__btn--link:hover,
.sgxc-hr .sgxc-hr__btn--link:focus-visible {
	background-color: transparent;
	border-bottom-color: #17607C;
	color: #17607C;
}

/* A button with no destination is not interactive. */
.sgxc-hr span.sgxc-hr__btn {
	cursor: default;
}

.sgxc-hr__btn-label {
	min-width: 0;
}

.sgxc-hr__btn-arrow {
	flex: 0 0 auto;
}

/* ═════════ Art panel ═════════ */

.sgxc-hr__art {
	position: relative;
	z-index: 2;
	min-width: 0;
	min-height: 680px;
	overflow: hidden;
}

/*
 * The dotted mesh is a repeating radial gradient rather than an image, so its
 * colour, spacing, rotation and fade are all controllable.
 */
.sgxc-hr__mesh {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.6) 1.4px, transparent 1.5px);
	background-size: 28px 28px;
	transform: rotate(-10deg) scale(1.2);
	-webkit-mask-image: linear-gradient(110deg, transparent 5%, #000 65%, transparent 100%);
	mask-image: linear-gradient(110deg, transparent 5%, #000 65%, transparent 100%);
	pointer-events: none;
}

.sgxc-hr__orb {
	position: absolute;
	z-index: 1;
	display: block;
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 50%;
	box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.53), 0 15px 50px rgba(44, 114, 128, 0.25);
	pointer-events: none;
}

.sgxc-hr .sgxc-hr__art-img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* ═════════ Note card ═════════ */

.sgxc-hr__note {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 3;
	width: 260px;
	min-width: 0;
	padding: 24px 31px;
	background-color: #FFFFFF;
}

.sgxc-hr__note-label {
	display: block;
	margin: 0;
	color: #67818B;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.19em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sgxc-hr__note-title {
	display: block;
	margin: 8px 0 0;
	color: #102C3C;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.35;
	text-wrap: pretty;
}

/* ═════════ Tablet ═════════ */

@media (max-width: 1024px) {

	.sgxc-hr__inner {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.sgxc-hr__copy {
		padding: 70px 7vw;
	}

	.sgxc-hr__art {
		min-height: 460px;
	}
}

/* ═════════ Mobile ═════════ */

@media (max-width: 600px) {

	.sgxc-hr__copy {
		padding: 60px 24px;
	}

	.sgxc-hr__art {
		min-height: 380px;
	}

	.sgxc-hr__actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.sgxc-hr__note {
		width: 230px;
		padding: 20px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.sgxc-hr .sgxc-hr__btn {
		transition: none !important;
	}

	.sgxc-hr .sgxc-hr__btn:hover {
		transform: none;
	}
}
