.solea-service-showcase {
	position: relative;
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(0, 1.2fr);
	gap: 32px 48px;
	padding-block: clamp(32px, 5vw, 56px);
}

/*
 * Top/bottom hairline rules, same gradient construct as .solea-quick-links
 * (assets/css/homepage.css): a thin brand-gradient line flush with this
 * block's own top/bottom edges. Unlike quick-links (a section wrapper itself),
 * this block sits inside a plain .solea-home-section, so the rules are drawn
 * against its own padding-block rather than the section's.
 */
.solea-service-showcase::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(122, 59, 234, 0) 0%, var(--wp--preset--color--brand-purple-light) 35%, var(--wp--preset--color--brand-accent-light) 65%, rgba(196, 169, 255, 0) 100%);
	top: 0;
}

.solea-service-showcase__intro {
	grid-column: 1 / -1;
}

.solea-service-showcase__heading {
	position: relative;
	display: inline-block;
	margin: 0 0 32px;
	padding-bottom: 12px;
	font-size: 2.75rem !important;
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--base);
}

.solea-service-showcase__heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 80%;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(-90deg, var(--wp--preset--color--brand-purple) 0%, var(--wp--preset--color--brand-accent-light) 100%);
}

.solea-service-showcase__subtext {
	margin: 0;
	color: #c6bbd8;
}

/*
 * margin/padding forced: assets/css/native-content.css's
 * ".entry-content ul, .wp-block-post-content ul" (a descendant selector,
 * higher specificity than this single class) otherwise wins and re-adds its
 * 1.4em left padding + 1.2em bottom margin meant for editorial list content.
 */
.solea-service-showcase__list {
	grid-column: 1;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.solea-service-showcase__item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	text-decoration: none;
	color: var(--wp--preset--color--brand-lavender);
	border: 1px solid transparent;
	border-radius: 14px;
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.solea-service-showcase__item:hover,
.solea-service-showcase__item:focus-visible,
.solea-service-showcase__item.is-active {
	border-color: rgba(162, 126, 254, 0.55);
	background: rgba(162, 126, 254, 0.13);
	transform: translateX(4px);
	box-shadow: 0 8px 24px -12px rgba(122, 59, 234, 0.5);
}

.solea-service-showcase__item-icon {
	display: inline-flex;
	flex: none;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--wp--preset--color--brand-purple-light);
	transition: background 0.15s ease, color 0.15s ease;
}

/*
 * Rendered but hidden on desktop: hovering/focusing a row already reveals its
 * photo in .solea-service-showcase__panels, so a second, smaller copy of the
 * same image next to the row would be redundant there. On touch (see the
 * max-width media query below) there's no hover to reveal that panel before
 * the tap navigates away, so this thumbnail becomes each row's only preview.
 */
.solea-service-showcase__item-thumb-wrap {
	display: none;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	overflow: hidden;
}

.solea-service-showcase__item-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.solea-service-showcase__item:hover .solea-service-showcase__item-thumb,
.solea-service-showcase__item:focus-visible .solea-service-showcase__item-thumb {
	transform: scale(1.05);
}

.solea-service-showcase__item:hover .solea-service-showcase__item-icon,
.solea-service-showcase__item:focus-visible .solea-service-showcase__item-icon,
.solea-service-showcase__item.is-active .solea-service-showcase__item-icon {
	background: var(--wp--preset--color--brand-purple);
	color: #fff;
}

.solea-service-showcase__item-text {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.solea-service-showcase__item-title {
	font-weight: 600;
	color: #fff;
}

.solea-service-showcase__item-operator {
	font-weight: 600;
	color: var(--wp--preset--color--brand-muted);
}

.solea-service-showcase__item:hover .solea-service-showcase__item-operator,
.solea-service-showcase__item:focus-visible .solea-service-showcase__item-operator,
.solea-service-showcase__item.is-active .solea-service-showcase__item-operator {
	color: var(--wp--preset--color--brand-accent-light);
}

.solea-service-showcase__item-arrow {
	flex: none;
	color: #fff;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.solea-service-showcase__item:hover .solea-service-showcase__item-arrow,
.solea-service-showcase__item:focus-visible .solea-service-showcase__item-arrow,
.solea-service-showcase__item.is-active .solea-service-showcase__item-arrow {
	opacity: 1;
	transform: translateX(0);
}

.solea-service-showcase__panels {
	grid-column: 2;
	position: relative;
	min-height: 420px;
	border-radius: 20px;
	overflow: hidden;
	background: var(--wp--preset--color--brand-purple-dark);
	box-shadow: 0 24px 60px -20px rgba(122, 59, 234, 0.45);
}

.solea-service-showcase__panel {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
}

.solea-service-showcase__panel.is-active {
	opacity: 1;
	visibility: visible;
}

.solea-service-showcase__panel-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.solea-service-showcase__panel:hover .solea-service-showcase__panel-image,
.solea-service-showcase__panel:focus-visible .solea-service-showcase__panel-image {
	transform: scale(1.05);
}

.solea-service-showcase__panel-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 32px 40px;
	background: linear-gradient(0deg, rgba(18, 11, 34, 0.9) 0%, rgba(18, 11, 34, 0) 100%);
	color: #fff;
}

.solea-service-showcase__panel-operator {
	display: inline-block;
	margin: 0 0 4px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--wp--preset--color--brand-accent-light);
	color: #000;
}

.solea-service-showcase__panel-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--h-2);
	font-weight: 800;
}

.solea-service-showcase__panel-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-accent-light);
	text-decoration: none;
	transition: color 0.15s ease;
}

.solea-service-showcase__panel-link:hover,
.solea-service-showcase__panel-link:focus-visible {
	color: #fff;
}

/* Inspector: one row per service */
.solea-service-showcase-repeater-row {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 0;
	border-top: 1px solid #e0e0e0;
}

.solea-service-showcase-repeater-row:first-child {
	padding-top: 0;
	border-top: none;
}

.solea-service-showcase-repeater-row__heading {
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #757575;
}

.solea-service-showcase-link-picker,
.solea-service-showcase-image-picker {
	margin-bottom: 0;
}

.solea-service-showcase-link-picker__label,
.solea-service-showcase-image-picker__label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.6875rem;
	font-weight: 500;
	text-transform: uppercase;
}

.solea-service-showcase-link-picker__button {
	width: 100%;
	justify-content: flex-start;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.solea-service-showcase-image-picker__preview {
	display: block;
	max-width: 100%;
	margin-bottom: 8px;
	border-radius: 4px;
}

/*
 * Mobile: the hover-to-preview interaction (list on the left, photo revealed
 * on the right in .solea-service-showcase__panels) has no touch equivalent —
 * a tap activates and navigates in the same gesture, so the panel is never
 * actually seen, and scrolling past every row just to reach it below adds a
 * screen's worth of dead scrolling for nothing. Below the breakpoint the
 * panels are dropped entirely and each row becomes a self-contained card
 * (icon or thumbnail + title + operator + arrow), so no information is lost
 * and every row reads as equally tappable rather than only the first one
 * (server-rendered with "is-active") looking interactive.
 */
@media (max-width: 768px) {
	.solea-service-showcase {
		grid-template-columns: 1fr;
	}

	.solea-service-showcase__list {
		grid-column: 1;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.solea-service-showcase__panels {
		display: none;
	}

	.solea-service-showcase__item,
	.solea-service-showcase__item:hover,
	.solea-service-showcase__item:focus-visible,
	.solea-service-showcase__item.is-active,
	.solea-service-showcase__item:active {
		background: rgba(255, 255, 255, 0.05);
		border-color: transparent;
		box-shadow: none;
		transform: none;
	}

	.solea-service-showcase__item {
		flex-direction: column;
		align-items: stretch;
		padding: 0;
		gap: 0;
		overflow: hidden;
	}

	.solea-service-showcase__item--has-image .solea-service-showcase__item-icon {
		display: none;
	}

	/* No image for this service: the icon takes the thumbnail's place, at the same width/height footprint, instead of staying at its small 40px desktop size. */
	.solea-service-showcase__item-icon {
		width: 100%;
		height: 96px;
		border-radius: 0;
	}

	.solea-service-showcase__item-thumb-wrap {
		display: block;
		width: 100%;
		height: 96px;
		border-radius: 0;
	}

	.solea-service-showcase__item-text {
		padding: 12px 14px 16px;
		gap: 8px;
	}

	.solea-service-showcase__item-operator {
		display: inline-block;
		align-self: flex-start;
		padding: 4px 10px;
		border: 1px solid transparent;
		border-radius: 999px;
		font-size: 0.6875rem;
		background: #a27efe24;
		color: var(--wp--preset--color--brand-purple-light);
	}

	/* No hover-to-reveal preview on touch and no room in a two-column card for the row's trailing arrow. */
	.solea-service-showcase__item-arrow {
		display: none;
	}

	/* Neutralize the desktop hover/focus/is-active treatment on the icon, thumbnail and operator chip so every card renders identically on mobile. */
	.solea-service-showcase__item:hover .solea-service-showcase__item-icon,
	.solea-service-showcase__item:focus-visible .solea-service-showcase__item-icon,
	.solea-service-showcase__item.is-active .solea-service-showcase__item-icon {
		background: rgba(255, 255, 255, 0.08);
		color: var(--wp--preset--color--brand-purple-light);
	}

	.solea-service-showcase__item:hover .solea-service-showcase__item-thumb,
	.solea-service-showcase__item:focus-visible .solea-service-showcase__item-thumb {
		transform: none;
	}

	.solea-service-showcase__item:hover .solea-service-showcase__item-operator,
	.solea-service-showcase__item:focus-visible .solea-service-showcase__item-operator,
	.solea-service-showcase__item.is-active .solea-service-showcase__item-operator {
		background: #a27efe24;
		color: var(--wp--preset--color--brand-purple-light);
	}
}

@media (max-width: 640px) {
	.solea-service-showcase__heading {
		font-size: 2rem !important;
	}
}
