/* ─── Hero with image ────────────────────────────────────────────────────────── */
.single-hero-img {
	position: relative;
	height: 60vh;
	min-height: 500px;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

.single-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.single-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.65) 0%,
		rgba(0, 0, 0, 0.35) 50%,
		transparent 100%
	);
}

.single-hero-content {
	position: relative;
	z-index: 10;
	padding-bottom: 3rem;
}

.single-hero-text {
	max-width: 56rem;
	width: 100%;
	margin-inline: auto;
}

.single-hero-text h1 {
	color: #fff;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
	margin-top: 0.75rem;
}

/* Excerpt / lead text inside image hero — must be white and legible */
.single-hero-lead {
	margin-top: 0.75rem;
	font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
	line-height: 1.65;
	max-width: 42rem;
	color: rgba(255, 255, 255, 0.85);
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}

/* ─── Badge light variant (on dark hero) ─────────────────────────────────────── */
.badge--light {
	background-color: hsl(var(--background) / 0.9);
	color: hsl(var(--foreground));
}

/* ─── Text-only header ───────────────────────────────────────────────────────── */
.single-hero-text-only {
	padding-top: clamp(5rem, 10vw, 8rem);
}

.single-hero-text-wrap {
	max-width: 56rem;
}

.single-hero-text-wrap h1 {
	margin: 0.5rem 0 0;
}

.single-hero-text-wrap .section-desc {
	margin-top: 0.75rem;
	max-width: 42rem; /* wider than the default 36rem for hero lead text */
}

/* ─── Team card wrapper ──────────────────────────────────────────────────────── */
.single-team-card {
	background: hsl(var(--background));
	border-radius: 1.5rem;
	box-shadow: 0 20px 60px hsl(0 0% 0% / 0.12);
	border: 1px solid hsl(var(--border));
	overflow: hidden;
}

/* Pull team section up to overlap the bottom of the image hero */
.single-team--overlap {
	margin-top: -3rem;
	position: relative;
	z-index: 1;
}

.single-team-inner {
	padding: 3rem;
	background: hsl(var(--secondary) / 0.3);
}

@media (max-width: 640px) {
	.single-team-inner {
		padding: 1.5rem;
	}
}

.single-team-header {
	margin-bottom: 2rem;
}

.single-team-header h2 {
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	margin-bottom: 0.375rem;
}

.single-team-header p {
	color: hsl(var(--muted-foreground));
	font-size: 0.9375rem;
}

/* ─── Team grid ──────────────────────────────────────────────────────────────── */
.single-team-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.single-team-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.single-team-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ─── Team member card ───────────────────────────────────────────────────────── */
.single-member-card {
	position: relative;
	overflow: hidden;
	border-radius: 1rem;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--background));
	transition: box-shadow 0.3s ease;
}

.single-member-card:hover {
	box-shadow: 0 12px 40px hsl(0 0% 0% / 0.1);
}

.single-member-bar {
	height: 0.375rem;
	width: 100%;
}

.single-member-body {
	padding: 1.5rem;
}

.single-member-top {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.single-member-avatar {
	width: 4rem;
	height: 4rem;
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.single-member-card:hover .single-member-avatar {
	transform: scale(1.1);
}

.single-member-avatar i {
	width: 2rem;
	height: 2rem;
	color: rgba(255, 255, 255, 0.9);
}

.single-member-info {
	flex: 1;
	min-width: 0;
}

.single-member-info h3 {
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	font-family: var(--font-sans);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 0.125rem;
}

.single-member-role {
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	font-weight: 500;
}

.single-member-bio {
	margin-top: 1rem;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ─── Post content ───────────────────────────────────────────────────────────── */
.single-content {
	max-width: 1200px;
	margin-inline: auto;
}

.single-content p,
.single-content ul,
.single-content ol {
	color: hsl(var(--muted-foreground));
}

.single-content img {
	width: 100%;
}

/* ─── CTA section ────────────────────────────────────────────────────────────── */
.single-cta {
	background: linear-gradient(
		135deg,
		hsl(var(--accent) / 0.08) 0%,
		hsl(var(--secondary) / 0.3) 100%
	);
	border-radius: 1.5rem;
	padding: clamp(2rem, 5vw, 3rem);
	text-align: center;
}

.single-cta h2 {
	margin-bottom: 1rem;
}

.single-cta > p {
	color: hsl(var(--muted-foreground));
	max-width: 36rem;
	margin-inline: auto;
	margin-bottom: 2rem;
}

.single-cta-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* ─── Single Equipa ──────────────────────────────────────────────────────────── */
.single-equipa-hero {
	padding-top: clamp(5rem, 10vw, 8rem);
}

.single-equipa-hero-inner {
	display: flex;
	align-items: flex-start;
	gap: 2.5rem;
	max-width: 56rem;
}

@media (max-width: 640px) {
	.single-equipa-hero-inner {
		flex-direction: column;
		gap: 1.5rem;
	}
}

.single-equipa-avatar {
	width: 7rem;
	height: 7rem;
	border-radius: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-family: var(--font-serif);
	font-size: 3rem;
	font-weight: 600;
	color: #fff;
	box-shadow: 0 8px 30px hsl(0 0% 0% / 0.15);
}

.single-equipa-meta {
	padding-top: 0.25rem;
}

.single-equipa-meta h1 {
	margin: 0.375rem 0 0;
}

.single-equipa-role,
.single-equipa-role-hero {
	font-size: 1.0625rem;
	color: hsl(var(--muted-foreground));
	font-weight: 500;
	margin-top: 0.375rem;
}

.single-equipa-role-hero {
	color: rgba(255, 255, 255, 0.85);
}

/* ─── Single Testemunho ──────────────────────────────────────────────────────── */
.single-testemunho-figure {
	max-width: 56rem;
	margin-inline: auto;
	text-align: center;
}

.single-testemunho-icon {
	width: 3rem;
	height: 3rem;
	color: hsl(var(--accent) / 0.3);
	margin-bottom: 1.5rem;
}

.single-testemunho-quote {
	font-family: var(--font-serif);
	font-size: clamp(1.25rem, 2.5vw, 1.875rem);
	font-style: italic;
	line-height: 1.6;
	color: hsl(var(--foreground));
	margin: 0 0 2rem;
}

.single-testemunho-author {
	font-size: 0.9375rem;
	color: hsl(var(--muted-foreground));
}
