/* "Join the Conversation" social feed section — shown site-wide,
 * directly under the Get In Touch section, above the rest of the
 * footer. Kept deliberately compact/modest — this is a small closing
 * touch, not a dominant section. */

.social-feed-section {
	background: #fff;
	--padding-bottom: 70px;
	position: relative;
	overflow: hidden;
}

/* Decorative, slow-drifting blurred gradient blobs behind the content —
 * purely visual, GPU-friendly (transform-only animation), and disabled
 * for anyone who's asked their OS/browser to reduce motion. */
.social-feed-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.social-feed-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.35;
	will-change: transform;
}

.social-feed-blob-1 {
	width: 380px;
	height: 380px;
	left: -120px;
	top: -140px;
	background: radial-gradient(circle at 30% 30%, #c2d500, transparent 70%);
	animation: efsimSocialBlobFloat1 18s ease-in-out infinite;
}

.social-feed-blob-2 {
	width: 320px;
	height: 320px;
	right: -100px;
	top: 20%;
	background: radial-gradient(circle at 70% 30%, #0a2240, transparent 70%);
	animation: efsimSocialBlobFloat2 22s ease-in-out infinite;
}

.social-feed-blob-3 {
	width: 260px;
	height: 260px;
	left: 40%;
	bottom: -160px;
	background: radial-gradient(circle at 50% 50%, #0a66c2, transparent 70%);
	animation: efsimSocialBlobFloat3 16s ease-in-out infinite;
}

@keyframes efsimSocialBlobFloat1 {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(40px, 30px) scale(1.15); }
}

@keyframes efsimSocialBlobFloat2 {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-30px, 40px) scale(1.1); }
}

@keyframes efsimSocialBlobFloat3 {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(20px, -30px) scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
	.social-feed-blob {
		animation: none;
	}
}

/* The "Get In Touch" contact box floats downward via a negative bottom
 * margin (--offset-contact-form), normally compensated by matching top
 * padding on whatever section immediately follows it. Since this
 * section now sits directly after it, it needs that same compensation
 * plus a bit extra breathing room — otherwise the floating box crowds
 * straight into this one. */
.footer-contact + .social-feed-section {
	padding-block-start: calc(var(--offset-contact-form, 300px) + 60px);
}

.social-feed-empty {
	padding: 30px 0;
	background: rgba(255, 220, 150, 0.2);
}

.social-feed-heading-wrap {
	margin-bottom: 30px;
}

.social-feed-grid {
	display: flex;
	gap: 16px;
	max-width: 900px;
	margin: 0 auto;
}

.social-feed-item {
	position: relative;
	display: block;
	flex: 1 1 0;
	min-width: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #e8eaf0;
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(10, 34, 64, 0.1);
}

.social-feed-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.social-feed-item:hover img {
	transform: scale(1.08);
}

/* Dark gradient overlay, badge always visible top-left, caption slides
 * up into view on hover/focus. */
.social-feed-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 10px;
	background: linear-gradient(180deg, rgba(10, 34, 64, 0) 55%, rgba(10, 34, 64, 0.85) 100%);
}

.social-feed-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.social-feed-badge svg {
	width: 14px;
	height: 14px;
}

.social-feed-badge-linkedin {
	background: #0a66c2;
}

.social-feed-caption {
	color: #fff;
	font-size: 12px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	line-height: 1.4;
}

.social-feed-item:hover .social-feed-caption,
.social-feed-item:focus .social-feed-caption {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 767px) {
	.social-feed-grid {
		max-width: 100%;
		overflow-x: auto;
		justify-content: flex-start;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
	}
	.social-feed-item {
		flex: 0 0 110px;
		width: 110px;
	}
}
