/**
 * Inweb agency CTA — "Inweb Hub" category archives (template-parts/components/hub-cta.php).
 * Desktop: text on the left, infinity art on the right. Mobile: art peeks in
 * from the bottom-right corner behind the text.
 */

.hub-cta {
	position: relative;
	overflow: hidden;
	margin-bottom: 30px;
	padding: 25px 15px 30px;
	border: 2px solid var(--color-hub);
	border-radius: 10px;
	background: var(--color-white);
}

.hub-cta__content {
	position: relative;
	z-index: 1;
}

.hub-cta__title {
	font-family: var(--font-family-display);
	font-size: 25px;
	font-weight: var(--font-weight-medium);
	line-height: 1.2;
	color: var(--color-hub);
}

.hub-cta__subtitle {
	margin-top: 5px;
	font-family: var(--font-family-display);
	font-size: 18px;
	font-weight: var(--font-weight-medium);
	line-height: 1.1;
	color: #1d1d1b;
}

.hub-cta__text {
	max-width: 230px;
	margin: 25px 0 0;
	font-size: 16px;
	line-height: 1.2;
}

.hub-cta__btn {
	margin-top: 16px;
	min-height: 30px;
	font-size: 16px;
}

.hub-cta__art {
	position: absolute;
	right: -150px;
	bottom: 10px;
	width: 340px;
	height: auto;
	transform: rotate(-62deg);
	pointer-events: none;
}

@media (min-width: 768px) {
	.hub-cta {
		margin-bottom: 30px;
		padding: 22px 30px 22px;
	}

	.hub-cta__title {
		font-size: 50px;
	}

	.hub-cta__subtitle {
		margin-top: 10px;
		font-size: 22px;
	}

	.hub-cta__text {
		max-width: 576px;
		margin-top: 30px;
		font-size: 20px;
		line-height: 1.3;
	}

	.hub-cta__btn {
		min-height: 42px;
		margin-top: 15px;
		padding-inline: 50px;
		font-size: 20px;
	}

	.hub-cta__art {
		top: 50%;
		right: 15px;
		bottom: auto;
		width: 430px;
		transform: translateY(-50%);
	}
}

/* Laptop: art is narrower so it doesn't run under the text. */
@media (min-width: 768px) and (max-width: 1199px) {
	.hub-cta__title {
		font-size: 36px;
	}

	.hub-cta__text {
		max-width: 420px;
	}

	.hub-cta__art {
		right: -60px;
		width: 340px;
		opacity: 0.9;
	}
}
