/**
 * Webbotica — Content Marketing Service Section
 * Light social-content post with an embedded production loop and analytics.
 */

.wb-service-content {
	--wb-content-blue: var(--color-primary, #496af9);
	--wb-content-bg: var(--color-surface, #ffffff);
	--wb-content-surface: var(--color-surface, #ffffff);
	--wb-content-heading: var(--color-heading, #111827);
	--wb-content-copy: var(--color-paragraph, #6b7280);
	--wb-content-border: var(--color-border, #e5e7eb);
	--wb-content-muted: #f7f7f5;
	--wb-content-green: #2f7d57;

	padding: 5.5rem 0;
	scroll-margin-top: 6rem;
	background: var(--wb-content-bg);
	font-family: "Plus Jakarta Sans", sans-serif;
}

.wb-service-content *,
.wb-service-content *::before,
.wb-service-content *::after { box-sizing: border-box; }

.wb-service-content__container {
	width: min(100% - 2rem, 1240px);
	margin-inline: auto;
}

.wb-service-content__copy { max-width: 620px; }

.wb-service-content__index {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.15rem;
	color: var(--wb-content-copy);
	font-size: 0.69rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	line-height: 1.4;
	text-transform: uppercase;
}

.wb-service-content__index span { color: var(--wb-content-blue); }

.wb-service-content__title {
	max-width: 670px;
	margin: 0;
	color: var(--wb-content-heading);
	font-size: clamp(2.25rem, 10vw, 3.25rem);
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 1.04;
	text-wrap: balance;
}

.wb-service-content__outcome {
	max-width: 610px;
	margin: 1.4rem 0 0;
	color: var(--wb-content-heading);
	font-size: clamp(1.22rem, 5.2vw, 1.55rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.38;
	text-wrap: balance;
}

.wb-service-content__summary {
	max-width: 590px;
	margin: 1rem 0 0;
	color: var(--wb-content-copy);
	font-size: 0.95rem;
	line-height: 1.68;
}

.wb-service-content__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 1.65rem;
	padding-bottom: 0.3rem;
	color: var(--wb-content-heading);
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: color 180ms ease;
}

.wb-service-content__link::after {
	content: "";
	position: absolute;
	right: 1.6rem;
	bottom: 0;
	left: 0;
	height: 1px;
	background: currentColor;
	transform-origin: left;
	transition: transform 180ms ease;
}

.wb-service-content__link:hover { color: var(--wb-content-blue); }
.wb-service-content__link:hover::after { transform: scaleX(0.72); }
.wb-service-content__link:focus-visible { outline: 3px solid rgba(73, 106, 249, 0.22); outline-offset: 5px; }

.wb-service-content__link svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wb-service-content__visual { margin-top: 3rem; }

.wb-service-content__frame {
	display: grid;
	gap: 0.72rem;
	width: 100%;
	padding: 0.78rem;
	border: 1px solid var(--wb-content-border);
	border-radius: 18px;
	background: var(--wb-content-muted);
}

.wb-service-content__post,
.wb-service-content__analytics {
	border: 1px solid var(--wb-content-border);
	background: var(--wb-content-surface);
}

.wb-service-content__post { padding: 0.72rem; }

.wb-service-content__post-head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.48rem;
}

.wb-service-content__avatar {
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	border-radius: 50%;
	background: #9ca3af;
	color: #ffffff;
	font-size: 0.55rem;
	font-weight: 750;
	letter-spacing: -0.03em;
}

.wb-service-content__post-head > div {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.02rem;
}

.wb-service-content__post-head strong {
	color: var(--wb-content-heading);
	font-size: 0.56rem;
	line-height: 1.25;
}

.wb-service-content__post-head small {
	color: var(--wb-content-copy);
	font-size: 0.42rem;
	line-height: 1.25;
}

.wb-service-content__more {
	color: var(--wb-content-heading);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.wb-service-content__post-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 34px;
	gap: 0.55rem;
	margin-top: 0.62rem;
}

.wb-service-content__post-main { min-width: 0; }

.wb-service-content__media {
	overflow: hidden;
	border: 1px solid var(--wb-content-border);
	background: #ffffff;
}

.wb-service-content__preview {
	position: relative;
	min-height: 225px;
	overflow: hidden;
	background: #e8eaee;
}

.wb-service-content__preview-scene {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.wb-service-content__preview-scene span {
	position: absolute;
	display: block;
	background: #c3c7cf;
}

.wb-service-content__preview-scene span:nth-child(1) {
	inset: 15% 8% 31% 10%;
	border: 8px solid #f5f6f7;
	background: #d6d9de;
}

.wb-service-content__preview-scene span:nth-child(2) {
	right: 8%;
	bottom: 0;
	left: 6%;
	height: 39%;
	background: #b7bdc7;
	clip-path: polygon(0 100%, 0 55%, 22% 25%, 47% 74%, 68% 38%, 100% 70%, 100% 100%);
}

.wb-service-content__preview-scene span:nth-child(3) {
	top: 12%;
	right: 10%;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #c9ced6;
}

.wb-service-content__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border: 1px solid rgba(17,24,39,0.12);
	border-radius: 50%;
	background: rgba(255,255,255,0.94);
	box-shadow: 0 8px 24px rgba(17,24,39,0.10);
	transform: translate(-50%, -50%);
}

.wb-service-content__play svg { width: 21px; height: 21px; fill: var(--wb-content-blue); stroke: none; }

.wb-service-content__preview > p {
	position: absolute;
	right: 0.55rem;
	bottom: 0.55rem;
	left: 0.55rem;
	margin: 0;
	padding: 0.48rem 0.54rem;
	border: 1px solid rgba(229,231,235,0.82);
	background: rgba(255,255,255,0.94);
	color: var(--wb-content-heading);
	font-size: 0.46rem;
	font-weight: 650;
	line-height: 1.35;
}

.wb-service-content__production {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	border-top: 1px solid var(--wb-content-border);
	background: #ffffff;
}

.wb-service-content__production > div {
	display: flex;
	min-width: 0;
	min-height: 58px;
	padding: 0.42rem 0.24rem;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 0.24rem;
	border-right: 1px solid var(--wb-content-border);
	text-align: center;
}

.wb-service-content__production > div:last-child { border-right: 0; }

.wb-service-content__step-icon {
	display: grid;
	width: 25px;
	height: 25px;
	place-items: center;
	border: 1px solid rgba(73,106,249,0.22);
	border-radius: 50%;
	background: rgba(73,106,249,0.06);
	color: var(--wb-content-blue);
}

.wb-service-content__step-icon svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.35;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wb-service-content__production strong {
	color: var(--wb-content-heading);
	font-size: 0.41rem;
	font-weight: 700;
	line-height: 1.2;
}

.wb-service-content__engagement {
	display: flex;
	align-self: center;
	flex-direction: column;
	gap: 0.65rem;
}

.wb-service-content__engagement span {
	display: grid;
	place-items: center;
	gap: 0.12rem;
	color: var(--wb-content-heading);
}

.wb-service-content__engagement svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.45;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wb-service-content__engagement small {
	font-size: 0.34rem;
	font-weight: 700;
	line-height: 1;
}

.wb-service-content__caption { padding: 0.65rem 0.08rem 0.02rem; }

.wb-service-content__caption h3 {
	margin: 0;
	color: var(--wb-content-heading);
	font-size: 0.57rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

.wb-service-content__caption p {
	margin: 0.28rem 0 0;
	color: var(--wb-content-copy);
	font-size: 0.45rem;
	line-height: 1.45;
}

.wb-service-content__caption p strong { color: var(--wb-content-heading); }

.wb-service-content__hashtags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.35rem;
}

.wb-service-content__hashtags span {
	color: var(--wb-content-blue);
	font-size: 0.39rem;
	font-weight: 600;
	line-height: 1.25;
}

.wb-service-content__analytics { padding: 0.7rem; }

.wb-service-content__section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
}

.wb-service-content__label {
	display: block;
	color: var(--wb-content-copy);
	font-size: 0.5rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.wb-service-content__section-head strong {
	color: var(--wb-content-green);
	font-size: 0.46rem;
	font-weight: 700;
	line-height: 1.3;
}

.wb-service-content__chart {
	margin-top: 0.42rem;
	padding: 0.28rem 0.35rem 0;
	background: var(--wb-content-muted);
}

.wb-service-content__chart svg { display: block; width: 100%; height: 65px; }
.wb-service-content__chart .wb-service-content__grid { fill: none; stroke: #e1e4e9; stroke-width: 1; }
.wb-service-content__chart .wb-service-content__line { fill: none; stroke: var(--wb-content-blue); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.wb-service-content__chart circle { fill: #fff; stroke: var(--wb-content-blue); stroke-width: 1.7; }

.wb-service-content__metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.28rem;
	margin-top: 0.42rem;
}

.wb-service-content__metrics span {
	display: flex;
	min-width: 0;
	min-height: 42px;
	padding: 0.3rem 0.24rem;
	flex-direction: column;
	justify-content: center;
	gap: 0.08rem;
	border: 1px solid var(--wb-content-border);
	background: #ffffff;
}

.wb-service-content__metrics svg {
	display: block;
	width: 13px;
	height: 13px;
	margin-bottom: 0.08rem;
	fill: none;
	stroke: var(--wb-content-heading);
	stroke-width: 1.35;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wb-service-content__metrics small { color: var(--wb-content-copy); font-size: 0.33rem; line-height: 1.2; }
.wb-service-content__metrics strong {
	display: inline-flex;
	align-items: center;
	gap: 0.18rem;
	color: var(--wb-content-heading);
	font-size: 0.48rem;
	font-weight: 700;
	line-height: 1.2;
}

.wb-service-content__growth {
	display: inline-grid;
	width: 9px;
	height: 9px;
	flex: 0 0 auto;
	place-items: center;
	color: #34a853;
	font-style: normal;
}

.wb-service-content__metrics .wb-service-content__growth svg {
	width: 9px;
	height: 9px;
	margin: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.55;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wb-service-content.is-enhanced .wb-service-content__frame {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 520ms ease, transform 520ms ease;
}

.wb-service-content.is-visible .wb-service-content__frame { opacity: 1; transform: none; }

@media (min-width: 900px) {
	.wb-service-content {
		padding: clamp(7rem, 9vw, 9.5rem) 0;
		scroll-margin-top: 7rem;
	}

	.wb-service-content__container {
		width: min(100% - 3rem, 1240px);
		display: grid;
		grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
		grid-template-areas: "copy visual";
		align-items: center;
		gap: clamp(4rem, 7vw, 7rem);
	}

	.wb-service-content__copy { grid-area: copy; }
	.wb-service-content__visual { grid-area: visual; margin-top: 0; }
	.wb-service-content__title { font-size: clamp(3rem, 4.15vw, 4.35rem); }
	.wb-service-content__outcome { font-size: clamp(1.35rem, 1.8vw, 1.72rem); }
	.wb-service-content__summary { font-size: 1rem; }
	.wb-service-content__frame { padding: 0.86rem; gap: 0.78rem; }
	.wb-service-content__post { padding: 0.78rem; }
	.wb-service-content__preview { min-height: 250px; }
}

@media (max-width: 599px) {
	.wb-service-content__frame { padding: 0.62rem; border-radius: 16px; }
	.wb-service-content__post { padding: 0.6rem; }
	.wb-service-content__post-layout { grid-template-columns: minmax(0, 1fr) 30px; gap: 0.42rem; }
	.wb-service-content__preview { min-height: 190px; }
	.wb-service-content__production > div { min-height: 52px; padding-inline: 0.12rem; }
	.wb-service-content__step-icon { width: 23px; height: 23px; }
	.wb-service-content__production strong { font-size: 0.37rem; }
	.wb-service-content__engagement { gap: 0.55rem; }
	.wb-service-content__engagement svg { width: 17px; height: 17px; }
	.wb-service-content__caption h3 { font-size: 0.53rem; }
	.wb-service-content__caption p { font-size: 0.42rem; }
	.wb-service-content__hashtags { gap: 0.25rem; }
	.wb-service-content__hashtags span { font-size: 0.35rem; }
	.wb-service-content__chart svg { height: 58px; }
	.wb-service-content__metrics small { font-size: 0.3rem; }
	.wb-service-content__metrics strong { font-size: 0.44rem; }
}

@media (max-width: 360px) {
	.wb-service-content__container { width: min(100% - 1.25rem, 1240px); }
	.wb-service-content__post-layout { grid-template-columns: minmax(0, 1fr) 27px; }
	.wb-service-content__production strong { font-size: 0.34rem; }
	.wb-service-content__metrics { gap: 0.2rem; }
	.wb-service-content__metrics span { padding-inline: 0.15rem; }
	.wb-service-content__metrics small { font-size: 0.27rem; }
}

@media (prefers-reduced-motion: reduce) {
	.wb-service-content *,
	.wb-service-content *::before,
	.wb-service-content *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
