/* Portfolio & Case Studies: one component for Free, Verified and Verified Pro profiles. */
.nr-cases {
	--nr-cases-ink: #0e0e12;
	--nr-cases-ink-3: #5a5a60;
	--nr-cases-accent: #6e61fc;
	--nr-cases-card: #fff;
	margin: 40px 0 0;
}

.nr-cases__title {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--nr-cases-ink);
}

.nr-cases__meta {
	font-size: 13px;
	font-weight: 500;
	color: var(--nr-cases-ink-3);
}

.nr-cases__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.nr-case {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border-radius: 12px;
	background: var(--nr-cases-card);
}

.nr-case__thumb {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #ecebf3;
	color: inherit;
}

.nr-case__thumb--empty {
	background: linear-gradient(135deg, #ecebf3, #dcd9f5);
}

.nr-case__thumb img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	border-radius: 0;
	object-fit: cover;
	transition: transform 0.35s ease;
}

a.nr-case__thumb:hover img,
a.nr-case__thumb:focus-visible img {
	transform: scale(1.04);
}

a.nr-case__thumb:focus-visible {
	outline: 3px solid var(--nr-cases-accent);
	outline-offset: -3px;
}

.nr-case__video {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.nr-case__video svg {
	width: 10px;
	height: 10px;
}

.nr-case__body {
	padding: 16px 18px 18px;
}

.nr-case__tag {
	margin-bottom: 6px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nr-cases-accent);
}

.nr-case__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--nr-cases-ink);
}

.nr-case__desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--nr-cases-ink-3);
}

/* Free / Verified profile: same block inside the classic layout. */
.single-agency .nr-cases {
	margin: 0;
}

.single-agency .agency-portfolio--cases {
	padding: 14px 0 40px;
}

@media (max-width: 1200px) {
	.nr-cases__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 992px) {
	.nr-cases__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.nr-cases__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.nr-cases__title {
		font-size: 20px;
	}
}

/* Verified Pro profile: spacing and heading style of the other Pro sections. */
.agency-paid-profile .nr-cases {
	margin: 40px 0 0;
}

.agency-paid-profile .nr-cases__title.section-title {
	margin: 0 0 18px;
}

.agency-paid-profile .nr-cases__meta.section-meta {
	margin-left: 0;
}

/* -------------------------------------------------------------------------
 * Agency key facts (all tiers): team size, founded, rate, budget, industries.
 * ---------------------------------------------------------------------- */
.nr-facts {
	--nr-facts-ink: #0e0e12;
	--nr-facts-muted: #5a5a60;
	--nr-facts-accent: #6e61fc;
	display: grid;
	gap: 14px;
	margin: 18px 0 0;
}

.nr-facts__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px;
	margin: 0;
}

.nr-fact {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid rgba(14, 14, 18, 0.08);
	border-radius: 12px;
	background: #faf9f7;
}

.nr-fact__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(110, 97, 252, 0.1);
	color: var(--nr-facts-accent);
}

.nr-fact__icon svg {
	width: 20px;
	height: 20px;
}

.nr-fact dt {
	margin: 0 0 2px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nr-facts-muted);
}

.nr-fact dd {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--nr-facts-ink);
	overflow-wrap: anywhere;
}

.nr-facts__industries {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.nr-facts__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nr-facts-muted);
}

.nr-facts__label svg {
	width: 16px;
	height: 16px;
	color: var(--nr-facts-accent);
}

.nr-facts__chip {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid rgba(110, 97, 252, 0.3);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--nr-facts-ink);
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nr-facts__chip:hover,
.nr-facts__chip:focus-visible {
	border-color: var(--nr-facts-accent);
	background: rgba(110, 97, 252, 0.08);
	color: var(--nr-facts-accent);
}

.nr-agency-tagline {
	margin: 4px 0 0;
	font-size: 16px;
	line-height: 1.4;
	color: #5a5a60;
}

.agency-paid-profile .nr-facts {
	margin: 0 0 24px;
}

@media (max-width: 575px) {
	.nr-facts__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nr-fact {
		padding: 10px 12px;
		gap: 10px;
	}

	.nr-fact__icon {
		width: 32px;
		height: 32px;
	}
}

/* Free / Verified layout: room before the skill tags. */
.single-agency .nr-facts {
	margin: 4px 0 18px;
}

/* Mobile actions row (Get verified / Visit website / Get in touch) wraps instead of overflowing. */
.single-agency .link-profile.mobile {
	flex-wrap: wrap;
	justify-content: flex-start;
}

/* Facts: short values on one line; tidy two-column grid on phones. */
.nr-fact dd {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nr-facts__label {
	margin-right: 2px;
	padding-left: 2px;
}

@media (max-width: 575px) {
	.nr-facts {
		gap: 12px;
	}

	.nr-facts__list {
		gap: 8px;
	}

	.nr-fact {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 12px;
	}

	.nr-fact__icon {
		width: 30px;
		height: 30px;
		border-radius: 8px;
	}

	.nr-fact__icon svg {
		width: 17px;
		height: 17px;
	}

	.nr-fact dt {
		font-size: 10px;
	}

	.nr-fact dd {
		font-size: 15px;
	}

	.nr-facts__industries {
		gap: 6px;
	}

	.nr-facts__label {
		flex-basis: 100%;
		margin: 0 0 2px;
	}

	.nr-facts__chip {
		padding: 5px 10px;
		font-size: 12px;
	}
}
