/**
 * Trusted By Section Styles — WP SOC Theme
 * A quiet, text-led section naming the technology stack, followed by a
 * restrained logo wall of rounded cards. Same token system as the Hero
 * so the two sections read as one continuous surface.
 */

.wp-soc-trusted {
	--wp-soc-bg: #050505;
	--wp-soc-card: #111111;
	--wp-soc-border: #242424;
	--wp-soc-primary: #00D084;
	--wp-soc-primary-rgb: 0, 208, 132;
	--wp-soc-text: #F5F5F5;
	--wp-soc-text-soft: #9CA3AF;
	--wp-soc-font-head: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
	--wp-soc-font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

	position: relative;
	background: var(--wp-soc-bg);
	color: var(--wp-soc-text);
	font-family: var(--wp-soc-font-body);
	padding: 140px 0;
	overflow: hidden;
}

.wp-soc-trusted *,
.wp-soc-trusted *::before,
.wp-soc-trusted *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- *
 * Background: near-invisible grid
 * ---------------------------------------------------------------- */

.wp-soc-trusted__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.wp-soc-trusted__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 85%);
}

/* ---------------------------------------------------------------- *
 * Layout
 * ---------------------------------------------------------------- */

.wp-soc-trusted__container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 48px;
}

.wp-soc-trusted__intro {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}

.wp-soc-trusted__label {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border: 1px solid var(--wp-soc-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.02);
	color: var(--wp-soc-text-soft);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.wp-soc-trusted__heading {
	margin: 26px 0 0;
	font-family: var(--wp-soc-font-head);
	font-weight: 600;
	font-size: clamp(2.1rem, 1.4vw + 1.8rem, 3.1rem);
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--wp-soc-text);
}

.wp-soc-trusted__description {
	margin: 22px auto 0;
	max-width: 540px;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--wp-soc-text-soft);
}

/* ---------------------------------------------------------------- *
 * Logo wall
 * ---------------------------------------------------------------- */

.wp-soc-trusted__grid-wall {
	list-style: none;
	margin: 76px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

.wp-soc-tech-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 32px 16px 26px;
	border-radius: 16px;
	background: var(--wp-soc-card);
	border: 1px solid var(--wp-soc-border);
	text-align: center;
	cursor: default;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
		border-color 0.35s ease,
		box-shadow 0.35s ease,
		background-color 0.35s ease;
}

.wp-soc-tech-card:hover,
.wp-soc-tech-card:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(var(--wp-soc-primary-rgb), 0.4);
	background: #131313;
	box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--wp-soc-primary-rgb), 0.12), 0 0 26px -6px rgba(var(--wp-soc-primary-rgb), 0.28);
}

.wp-soc-tech-card:focus-visible {
	outline: 2px solid var(--wp-soc-primary);
	outline-offset: 3px;
}

.wp-soc-tech-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--wp-soc-text-soft);
	opacity: 0.6;
	transition: opacity 0.35s ease, color 0.35s ease, background-color 0.35s ease;
}

.wp-soc-tech-card:hover .wp-soc-tech-card__icon,
.wp-soc-tech-card:focus-visible .wp-soc-tech-card__icon {
	opacity: 1;
	color: var(--wp-soc-primary);
	background: rgba(var(--wp-soc-primary-rgb), 0.08);
}

.wp-soc-tech-card__icon svg {
	width: 22px;
	height: 22px;
}

.wp-soc-tech-card__name {
	font-family: var(--wp-soc-font-head);
	font-size: 0.98rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--wp-soc-text-soft);
	opacity: 0.75;
	transition: color 0.35s ease, opacity 0.35s ease;
}

.wp-soc-tech-card:hover .wp-soc-tech-card__name,
.wp-soc-tech-card:focus-visible .wp-soc-tech-card__name {
	color: var(--wp-soc-text);
	opacity: 1;
}

.wp-soc-tech-card__category {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp-soc-text-soft);
	opacity: 0.42;
	transition: opacity 0.35s ease;
}

.wp-soc-tech-card:hover .wp-soc-tech-card__category,
.wp-soc-tech-card:focus-visible .wp-soc-tech-card__category {
	opacity: 0.7;
}

/* Scroll-in reveal, driven by JS toggling .is-visible on the list */
.wp-soc-trusted__grid-wall .wp-soc-tech-card {
	opacity: 0;
	transform: translateY(16px);
}

.wp-soc-trusted__grid-wall.is-visible .wp-soc-tech-card {
	animation: wp-soc-trusted-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	animation-delay: var(--wp-soc-card-delay, 0s);
}

@keyframes wp-soc-trusted-rise {
	to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------- *
 * Responsive
 * ---------------------------------------------------------------- */

@media (max-width: 1080px) {
	.wp-soc-trusted {
		padding: 120px 0;
	}

	.wp-soc-trusted__container {
		padding: 0 40px;
	}

	.wp-soc-trusted__grid-wall {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 760px) {
	.wp-soc-trusted {
		padding: 96px 0;
	}

	.wp-soc-trusted__container {
		padding: 0 28px;
	}

	.wp-soc-trusted__grid-wall {
		margin-top: 56px;
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}

	.wp-soc-tech-card {
		padding: 24px 12px 20px;
	}
}

@media (max-width: 520px) {
	.wp-soc-trusted__container {
		padding: 0 20px;
	}

	.wp-soc-trusted__heading {
		font-size: clamp(1.7rem, 6vw, 2.1rem);
	}

	.wp-soc-trusted__description {
		font-size: 0.98rem;
	}

	.wp-soc-trusted__grid-wall {
		grid-template-columns: repeat(2, 1fr);
	}

	.wp-soc-tech-card__icon {
		width: 38px;
		height: 38px;
	}

	.wp-soc-tech-card__name {
		font-size: 0.9rem;
	}
}

/* ---------------------------------------------------------------- *
 * Accessibility
 * ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.wp-soc-trusted * {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}

	.wp-soc-trusted__grid-wall .wp-soc-tech-card {
		opacity: 1 !important;
		transform: none !important;
	}
}
