/**
 * BlueMed — strona Zespół (hero premium + siatka lekarzy)
 *
 * Follows the same conventions as about-page.css and services-page.css.
 * Global design tokens from premium.css / site-colors.css are inherited.
 */

/* ── Hero — spójny z about-hero, services-hero i homepage ──────────────── */
.bluemed-team-hero {
	position: relative;
	overflow: hidden;
	background: var(--bluemed-white, #ffffff);
	margin-top: 0;
}

/* Decorative orb — right / top */
.bluemed-team-hero::before {
	content: "";
	position: absolute;
	right: -6%;
	top: -40%;
	width: min(44vw, 620px);
	height: min(44vw, 620px);
	border-radius: 50%;
	background: radial-gradient(
		ellipse at 40% 40%,
		var(--bm-sand-deep, #EAF0FA) 0%,
		var(--bluemed-sand, #F8F9FD) 60%,
		transparent 100%
	);
	pointer-events: none;
	z-index: 0;
}

/* Decorative orb — left / bottom */
.bluemed-team-hero::after {
	content: "";
	position: absolute;
	left: -4%;
	bottom: -30%;
	width: min(22vw, 280px);
	height: min(22vw, 280px);
	border-radius: 50%;
	background: radial-gradient(
		ellipse,
		rgba(205, 216, 228, 0.18) 0%,
		transparent 70%
	);
	pointer-events: none;
	z-index: 0;
}

/* Two-column stage — 54 / 46 split */
.bluemed-team-hero__stage {
	display: grid;
	grid-template-columns: 54fr 46fr;
	align-items: center;
	gap: clamp(2.5rem, 5vw, 5.5rem);
	max-width: 1480px;
	margin-left: auto;
	margin-right: auto;
	padding: 70px clamp(1.5rem, 5vw, 3.5rem);
	position: relative;
	z-index: 1;
	box-sizing: border-box;
}

.bluemed-team-hero__copy {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.bluemed-team-hero__visual {
	position: relative;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.bluemed-team-hero__photo {
	width: 100%;
	margin: 0 !important;
}

.bluemed-team-hero__photo img {
	width: 100%;
	max-height: min(74vh, 700px);
	object-fit: cover;
	object-position: center top;
	border-radius: 20px;
	display: block;
	box-shadow: var(
		--bm-shadow-hero,
		0 40px 100px rgba(51, 52, 61, 0.08),
		0 8px 32px rgba(21, 61, 138, 0.04)
	);
}

/* Kicker — pill consistent with About / Service hero */
.bluemed-team-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.72rem !important;
	letter-spacing: 0.3em !important;
	text-transform: uppercase !important;
	font-weight: 700 !important;
	color: var(--accent-primary, #153D8A) !important;
	border: 1px solid rgba(21, 61, 138, 0.2);
	border-radius: 999px;
	padding: 0.45rem 1rem;
	margin: 0 0 1.75rem !important;
	line-height: 1;
	width: fit-content;
}

/* H1 */
.bluemed-team-hero__title {
	font-size: clamp(2.05rem, 4.15vw, 3.5rem) !important;
	font-weight: 700 !important;
	line-height: 1.07 !important;
	letter-spacing: -0.034em !important;
	max-width: 15ch !important;
	color: var(--bluemed-heading, #33343D);
	margin-top: 0 !important;
	margin-bottom: clamp(1rem, 2vw, 1.35rem) !important;
}

/* Lead paragraph */
.bluemed-team-hero__lead {
	font-size: clamp(1rem, 1.5vw, 1.15rem) !important;
	line-height: 1.7 !important;
	margin-bottom: clamp(1.5rem, 3vw, 2rem) !important;
	max-width: 520px;
}

/* CTA wrapper */
.bluemed-team-hero__cta-wrap {
	display: flex !important;
	flex-direction: column;
	gap: 0.75rem;
}

/* Below-buttons note */
.bluemed-team-hero__cta-note {
	font-size: 0.75rem !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Hero buttons — canonical pill style, consistent with About / Service hero */
.bluemed-team-hero__cta-primary .wp-block-button__link,
.bluemed-team-hero__cta-primary a.wp-block-button__link {
	background-color: var(--bluemed-graphite, #153D8A) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 1rem 2.25rem !important;
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em !important;
	box-shadow: 0 16px 44px rgba(21, 61, 138, 0.22) !important;
	border: none !important;
	transition: transform 0.3s var(--bluemed-ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
	            box-shadow 0.3s var(--bluemed-ease-out, cubic-bezier(0.22, 1, 0.36, 1)) !important;
}

.bluemed-team-hero__cta-primary .wp-block-button__link:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 24px 56px rgba(21, 61, 138, 0.28) !important;
}

.bluemed-team-hero__cta-secondary .wp-block-button__link,
.bluemed-team-hero__cta-secondary a.wp-block-button__link {
	border: 1.5px solid rgba(21, 61, 138, 0.22) !important;
	color: var(--bluemed-graphite, #153D8A) !important;
	background: transparent !important;
	border-radius: 999px !important;
	padding: 0.95rem 2rem !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em !important;
	transition: border-color 0.25s ease, color 0.25s ease,
	            transform 0.25s var(--bluemed-ease-out, cubic-bezier(0.22, 1, 0.36, 1)) !important;
}

.bluemed-team-hero__cta-secondary .wp-block-button__link:hover {
	border-color: var(--bluemed-graphite, #153D8A) !important;
	background: var(--primary-50, #EEF3FC) !important;
	transform: translateY(-2px) !important;
}

/* ── Team grid — avatar size boost for dedicated team page ──────────────── */

/* Larger circular avatar on the full team page vs the 128px homepage preview.
   Must override both the figure (max-width) and the img to stay in sync. */
.bluemed-team-page-card .bluemed-home-team-card__avatar {
	max-width: 160px !important;
	margin: 0 auto 1.5rem !important;
	display: block;
}

.bluemed-team-page-card .bluemed-home-team-card__avatar img {
	width: 160px !important;
	height: 160px !important;
	aspect-ratio: 1 !important;
	object-fit: cover !important;
	object-position: center top !important;
	border-radius: 999px !important;
	display: block;
	margin: 0 auto;
}

/* Ensure the "Umów wizytę" button sits at the bottom (card stretches to fill height) */
.bluemed-team-equal-grid .wp-block-column > .wp-block-group {
	display: flex;
	flex-direction: column;
}

.bluemed-team-page-card p:last-of-type {
	margin-top: auto;
}

.bluemed-team-page-card .wp-block-buttons {
	margin-top: auto;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.bluemed-team-hero__stage {
		grid-template-columns: 1fr;
		padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 2rem);
		gap: 2.5rem;
	}

	.bluemed-team-hero__visual {
		justify-content: center;
		order: -1;
	}

	.bluemed-team-hero__photo img {
		max-height: 380px;
	}

	.bluemed-team-hero__title {
		font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
		max-width: none !important;
	}

	.bluemed-team-equal-grid {
		flex-wrap: wrap;
	}

	.bluemed-team-equal-grid .wp-block-column {
		flex-basis: calc(50% - 1rem) !important;
		min-width: 260px;
	}
}

@media (max-width: 600px) {
	.bluemed-team-hero__stage {
		padding: 2.5rem 1.25rem;
	}

	.bluemed-team-hero__title {
		font-size: clamp(1.5rem, 8vw, 2rem) !important;
	}

	.bluemed-team-equal-grid .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ── Phase 2C: overflow protection ─────────────────────────────────────── */
.bluemed-team-hero__title {
	overflow-wrap: break-word;
	word-break: break-word;
}
