/**
 * SigmaGraft Products — 01 / Product Types.
 *
 * Two bands in one widget, matching the reference:
 *   · intro band — kicker in a narrow first column, then a nested grid holding
 *     the heading and the supporting paragraph
 *   · family band — a card grid on a pale ground, ruled top and bottom
 *
 * Own `sgxs-pt` namespace. base.css supplies only .sgxs-icon and .sgxs-reveal.
 *
 * Layout is driven through custom properties rather than hard-coded track
 * lists, so the column counts and ratios stay adjustable per breakpoint from
 * the panel without any rule here needing to win a specificity fight.
 */

.sgxs-pt {
	--sgxs-pt-line: #DCE4EF;
	--sgxs-pt-accent: #1457A6;
	--sgxs-pt-ink: #0E2E5C;

	position: relative;
	padding: 0;
}

.sgxs-pt__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

/* ═════════ Bands ═════════ */

.sgxs-pt__intro-band,
.sgxs-pt__family-band {
	position: relative;
	z-index: 2;
}

.sgxs-pt__intro-band {
	background-color: #FFFFFF;
	padding: 95px 0 70px;
}

.sgxs-pt__family-band {
	background-color: #F7F9FC;
	border-top: 1px solid var(--sgxs-pt-line);
	border-bottom: 1px solid var(--sgxs-pt-line);
	padding: 50px 0;
}

.sgxs-pt__inner {
	width: 100%;
	margin-inline: auto;
	padding-inline: 7vw;
}

.sgxs-pt__family-band .sgxs-pt__inner {
	padding-inline: 6vw;
}

.sgxs-pt--boxed .sgxs-pt__inner {
	max-width: 1200px;
}

/* Full-bleed is the default: the gutter alone sets the inset. Declared so the
   modifier is a deliberate state rather than an unstyled marker class. */
.sgxs-pt--full .sgxs-pt__inner {
	max-width: none;
}

/* ═════════ Intro row ═════════ */

/*
 * Outer grid: a narrow kicker rail, then everything else. The reference is
 * 1fr / 3fr — the kicker sits on the heading's first baseline rather than
 * stacked above it, which is what gives this section its wide, editorial feel.
 */
.sgxs-pt__intro {
	display: grid;
	grid-template-columns: 1fr 3fr;
	gap: 40px;
	align-items: start;
}

.sgxs-pt__kicker {
	margin: 0;
	color: var(--sgxs-pt-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sgxs-pt__intro-main {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 7vw;
	align-items: start;
	min-width: 0;
}

.sgxs-pt__title {
	margin: 0;
	color: var(--sgxs-pt-ink);
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

/* The reference's base layer sets Georgia 400 here; the brand override keeps
   the accent line upright and at the same weight. Only the override ships. */
.sgxs-pt__title em,
.sgxs-pt__title i {
	color: var(--sgxs-pt-ink);
	font-family: inherit;
	font-style: normal;
	font-weight: inherit;
}

.sgxs-pt__lede {
	margin: 5px 0 0;
	min-width: 0;
	color: #64758A;
	font-size: 16px;
	line-height: 1.7;
	text-wrap: pretty;
}

/* ═════════ Card grid ═════════ */

.sgxs-pt__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

/*
 * Two classes on the card, and it matters. Hello Elementor's reset.css carries
 * `[type=button], [type=submit], button { border: 1px solid #c36 }`. An
 * attribute selector weighs the same as a class, and the theme sheet loads
 * after this one, so a single-class rule only ties with it and loses — putting
 * a pink border on every card. (0,2,0) settles it.
 */
.sgxs-pt .sgxs-pt__card {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	min-height: 390px;
	margin: 0;
	padding: 24px;
	background-color: #FFFFFF;
	border: 1px solid #E1E8F0;
	border-radius: 3px;
	box-shadow: 0 5px 18px rgba(14, 46, 92, 0.05);
	color: var(--sgxs-pt-ink);
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: transform 300ms ease, box-shadow 300ms ease, background-color 300ms ease, border-color 300ms ease;
}

/* A card with no destination is not interactive — don't imply otherwise. */
.sgxs-pt div.sgxs-pt__card {
	cursor: default;
}

.sgxs-pt__card:hover,
.sgxs-pt__card:focus-visible {
	transform: translateY(-5px);
	box-shadow: 0 12px 28px rgba(14, 46, 92, 0.1);
}

.sgxs-pt__card:focus-visible {
	outline: 2px solid var(--sgxs-pt-accent);
	outline-offset: 3px;
}

.sgxs-pt__index {
	display: block;
	color: #7B8FA8;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.4;
}

/* ═════════ Card media ═════════ */

/*
 * The panel bleeds through the card's side padding. The negative inline margin
 * is its own control rather than being derived from the padding, because a
 * DIMENSIONS control cannot be read back — change one and adjust the other.
 */
.sgxs-pt__media {
	position: relative;
	width: auto;
	align-self: stretch;
	height: 155px;
	margin: 12px -24px 22px;
	overflow: hidden;
	background-color: #EDF3FA;
	background-position: 50% 50%;
	background-size: cover;
	background-repeat: no-repeat;
}

/*
 * Doubly anchored. Elementor's frontend sheet carries
 * `.elementor img { height: auto }` at a specificity a single class cannot
 * beat, which would let the photo stop at its intrinsic ratio and leave the
 * panel showing through beneath it.
 */
.sgxs-pt .sgxs-pt__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 50%;
}

.sgxs-pt__media--contain {
	background-size: contain;
}

.sgxs-pt__media--contain .sgxs-pt__img {
	object-fit: contain;
}

.sgxs-pt__media-icon {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--sgxs-pt-accent);
	font-size: 48px;
}

/* ═════════ Card body ═════════ */

.sgxs-pt__card-title {
	margin: 30px 0 12px;
	color: var(--sgxs-pt-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.03em;
}

/*
 * min-height levels the four cards so their links sit on one line even when
 * one description wraps to two. Released once the cards stack.
 */
.sgxs-pt__text {
	margin: 0;
	min-height: 62px;
	color: #66798F;
	font-size: 13px;
	line-height: 1.6;
	text-wrap: pretty;
}

/* margin-top:auto pins the link to the floor of the tallest card in the row. */
.sgxs-pt__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 18px;
	color: var(--sgxs-pt-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

/* min-width:0 so a long label wraps inside the flex row instead of pushing
   the arrow past the card edge. */
.sgxs-pt__link-label {
	min-width: 0;
}

.sgxs-pt__link-arrow {
	flex: 0 0 auto;
	transition: transform 300ms ease;
}

.sgxs-pt__card:hover .sgxs-pt__link-arrow,
.sgxs-pt__card:focus-visible .sgxs-pt__link-arrow {
	transform: translateX(4px);
}

/* ═════════ Laptop ═════════ */

@media (max-width: 1200px) {

	.sgxs-pt__intro {
		gap: 30px;
	}

	.sgxs-pt__intro-main {
		gap: 5vw;
	}
}

/* ═════════ Tablet ═════════ */

@media (max-width: 1024px) {

	.sgxs-pt__intro-band {
		padding: 88px 0 64px;
	}

	.sgxs-pt__family-band {
		padding: 35px 0;
	}

	/*
	 * Both grids collapse to a single column so the kicker, heading and
	 * paragraph stack in reading order instead of being squeezed into three
	 * narrow columns.
	 */
	.sgxs-pt__intro,
	.sgxs-pt__intro-main {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.sgxs-pt__lede {
		margin-top: 0;
	}
}

/* ═════════ Mobile ═════════ */

@media (max-width: 767px) {

	.sgxs-pt__intro-band {
		padding: 70px 0 48px;
	}

	.sgxs-pt__family-band {
		padding: 25px 0;
	}

	.sgxs-pt__inner,
	.sgxs-pt__family-band .sgxs-pt__inner {
		padding-inline: 6vw;
	}

	/* Levelling the descriptions is pointless once the cards stack. */
	.sgxs-pt__text {
		min-height: 0;
	}

	.sgxs-pt__card-title {
		margin-top: 22px;
	}

	/* No hover on touch — the lift only ever fires as a sticky tap state. */
	.sgxs-pt .sgxs-pt__card {
		transition: none;
	}

	.sgxs-pt__card:hover {
		transform: none;
		box-shadow: 0 5px 18px rgba(14, 46, 92, 0.05);
	}
}

@media (prefers-reduced-motion: reduce) {

	.sgxs-pt .sgxs-pt__card,
	.sgxs-pt__link-arrow {
		transition: none !important;
	}

	.sgxs-pt__card:hover {
		transform: none;
	}
}
