/* ==========================================================================
   Gambit Health Team Block
   Maximus-style: one unified card per person. Large bust photo fills the
   top of the card, name + credentials sit below. The clean-background
   photos make each person appear to "pop out."
   ========================================================================== */

.gambit-health-team {
	background-color: var(--deep-charcoal);
}

/* Reduce top padding when following another dark section (testimonials)
   — both share deep-charcoal so 256px combined padding is excessive. */
.gambit-health-team.gambit-section {
	padding-top: 32px;
}

@media (min-width: 768px) {
	.gambit-health-team.gambit-section {
		padding-top: 40px;
	}
}

@media (min-width: 1400px) {
	.gambit-health-team.gambit-section {
		padding-top: 48px;
	}
}

/* ==========================================================================
   Institution Logos
   ========================================================================== */

.gambit-health-team__logos {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin-bottom: 48px;
	flex-wrap: wrap;
	padding: 24px 32px;
	border-radius: 16px;
	background: var(--warm-white-4);
	border: 1px solid var(--warm-white-6);
}

.gambit-health-team__logo {
	height: 32px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	opacity: 0.55;
	filter: brightness(0) invert(1);
	transition: opacity 0.3s ease;
}

.gambit-health-team__logo:hover {
	opacity: 0.85;
}

@media (min-width: 768px) {
	.gambit-health-team__logo {
		height: 40px;
	}

	.gambit-health-team__logos {
		gap: 48px;
		margin-bottom: 56px;
		padding: 28px 48px;
	}
}

@media (min-width: 1400px) {
	.gambit-health-team__logos {
		gap: 64px;
		padding: 32px 64px;
	}
}

/* ==========================================================================
   Headline + Description
   ========================================================================== */

.gambit-health-team__headline {
	font-family: var(--font-heading);
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--off-white);
	text-align: center;
	margin: 0 0 16px;
}

.gambit-health-team__description {
	font-size: clamp(15px, 1.5vw, 17px);
	line-height: 1.7;
	color: rgba(237, 237, 235, 0.6);
	text-align: center;
	max-width: 880px;
	margin: 0 auto 56px;
}

@media (min-width: 1200px) {
	.gambit-health-team__description {
		font-size: 17px;
	}
}

/* ==========================================================================
   Team Cards Grid
   ========================================================================== */

.gambit-health-team__grid {
	display: flex;
	gap: 16px;
	margin-bottom: 56px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.gambit-health-team__grid::-webkit-scrollbar {
	display: none;
}

.gambit-health-team__grid > .gambit-health-team__card {
	flex: 0 0 70%;
	max-width: 70%;
	scroll-snap-align: start;
}

@media (min-width: 768px) {
	.gambit-health-team__grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 24px;
		overflow-x: visible;
		scroll-snap-type: none;
	}

	.gambit-health-team__grid > .gambit-health-team__card {
		flex: none;
		max-width: none;
	}
}

@media (min-width: 1400px) {
	.gambit-health-team__grid {
		gap: 32px;
	}
}

/* ==========================================================================
   Single Card — image on top, text below, one container
   ========================================================================== */

.gambit-health-team__card {
	background: none;
	border: none;
	transition: transform 0.3s ease;
}

.gambit-health-team__card:hover {
	transform: translateY(-4px);
}

/* --- Image: large bust photo with its own rounded corners --- */
.gambit-health-team__img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: top center;
	display: block;
	border-radius: 20px;
}

@media (min-width: 768px) {
	.gambit-health-team__img {
		border-radius: 24px;
	}
}

/* --- Text area below the image --- */
.gambit-health-team__text {
	padding: 16px 14px 18px;
}

@media (min-width: 768px) {
	.gambit-health-team__text {
		padding: 20px 18px 22px;
	}
}

@media (min-width: 1200px) {
	.gambit-health-team__text {
		padding: 22px 22px 26px;
	}
}

/* Name */
.gambit-health-team__name {
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 700;
	color: var(--off-white);
	margin: 0 0 6px;
}

@media (min-width: 1400px) {
	.gambit-health-team__name {
		font-size: 22px;
	}
}

/* Title / role */
.gambit-health-team__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--signal-red);
	margin: 0 0 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Credentials */
.gambit-health-team__creds {
	font-size: 13px;
	line-height: 1.5;
	color: rgba(237, 237, 235, 0.45);
	margin: 0 0 6px;
}

@media (min-width: 1200px) {
	.gambit-health-team__name {
		font-size: 20px;
	}
	.gambit-health-team__title {
		font-size: 14px;
	}
	.gambit-health-team__creds {
		font-size: 14px;
	}
}

/* Bio */
.gambit-health-team__bio {
	font-size: 14px;
	line-height: 1.6;
	color: rgba(237, 237, 235, 0.45);
	margin: 0;
}

@media (min-width: 1400px) {
	.gambit-health-team__bio {
		font-size: 15px;
	}
}

/* ==========================================================================
   Concierge Points
   ========================================================================== */

/* Concierge heading */
.gambit-health-team__concierge-heading {
	font-family: var(--font-heading);
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--off-white);
	text-align: center;
	margin: 0 0 28px;
	padding-top: 48px;
	border-top: 1px solid var(--warm-white-6);
}

@media (min-width: 768px) {
	.gambit-health-team__concierge-heading {
		margin-bottom: 36px;
		padding-top: 56px;
	}
}

.gambit-health-team__concierge {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-bottom: 48px;
}

@media (min-width: 768px) {
	.gambit-health-team__concierge {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
		margin-bottom: 56px;
	}
}

/* Card */
.gambit-health-team__concierge-item {
	position: relative;
	text-align: left;
	padding: 0;
	border-radius: 16px;
	background: var(--warm-white-5);
	border: 1px solid var(--warm-white-8);
	overflow: hidden;
	transition: background 0.4s var(--ease-out-expo),
	            border-color 0.4s var(--ease-out-expo),
	            box-shadow 0.4s var(--ease-out-expo);
}

.gambit-health-team__concierge-item:hover {
	background: var(--warm-white-8);
	border-color: var(--warm-white-10);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
	.gambit-health-team__concierge-item {
		border-radius: 20px;
		aspect-ratio: 1.25 / 1;
		display: flex;
		flex-direction: column;
	}
}

/* Card image container */
.gambit-health-team__concierge-image {
	position: relative;
	width: 100%;
	height: 180px;
	overflow: hidden;
}

.gambit-health-team__concierge-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		transparent 30%,
		rgba(26, 26, 30, 0.55) 100%
	);
	pointer-events: none;
	z-index: 1;
}

.gambit-health-team__concierge-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.5s var(--ease-out-expo);
}

.gambit-health-team__concierge-item:hover .gambit-health-team__concierge-image img {
	transform: scale(1.04);
}

@media (min-width: 768px) {
	.gambit-health-team__concierge-image {
		height: auto;
		flex: 1 1 0%;
	}
}

/* Card text content */
.gambit-health-team__concierge-content {
	padding: 24px 24px 28px;
}

@media (min-width: 768px) {
	.gambit-health-team__concierge-content {
		padding: 28px 28px 32px;
	}
}

@media (min-width: 1200px) {
	.gambit-health-team__concierge-content {
		padding: 32px 32px 36px;
	}
}

.gambit-health-team__concierge-title {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 700;
	color: var(--off-white);
	margin: 0 0 8px;
	letter-spacing: -0.02em;
}

@media (min-width: 768px) {
	.gambit-health-team__concierge-title {
		font-size: 22px;
		margin-bottom: 10px;
	}
}

@media (min-width: 1200px) {
	.gambit-health-team__concierge-title {
		font-size: 24px;
	}
}

.gambit-health-team__concierge-desc {
	font-size: 15px;
	line-height: 1.65;
	color: rgba(237, 237, 235, 0.55);
	margin: 0;
}

@media (min-width: 768px) {
	.gambit-health-team__concierge-desc {
		font-size: 16px;
	}
}

/* CTA */
.gambit-health-team__cta-wrap {
	text-align: center;
}

/* Doctor Spotlight — mirrors product-deep-dive pop-out pattern. */

.gambit-doc-spot {
	background: var(--deep-charcoal);
	color: var(--warm-white);
	padding-block: clamp(64px, 8vw, 128px);
}

.gambit-doc-spot__inner {
	width: 100%;
}

/* Layout: column on mobile, row on desktop. Mobile dissolves the content
   wrapper via `display: contents` so headline / image-card / bio / body
   / stat / CTA become direct flex children that can be reordered. */
.gambit-doc-spot__layout {
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 4vw, 32px);
	overflow: visible;
}

@media (min-width: 1100px) {
	.gambit-doc-spot__layout {
		flex-direction: row;
		align-items: center;
		gap: 0;
		/* Image is 55% of card width × natural aspect 0.408 (h/w of doctor.png).
		   Subtracting 80px gives a consistent ~80px head popout at every viewport. */
		min-height: clamp(440px, calc((100vw - 64px) * 0.408 - 80px), 1100px);
		border-radius: 32px;
		background: linear-gradient(180deg, rgba(247, 245, 242, 0.06) 0%, rgba(196, 61, 47, 0.08) 100%);
		padding: 0;
	}
}

/* Mobile image-card: dark surface, image's head pops above via negative margin-top.
   margin-top on the figure clears the popping head from the headline above. */
.gambit-doc-spot__media {
	margin: clamp(64px, 8vw, 96px) 0 0;
	background: linear-gradient(180deg, rgba(247, 245, 242, 0.06) 0%, rgba(196, 61, 47, 0.08) 100%);
	border-radius: 24px;
	overflow: visible;
}

.gambit-doc-spot__media img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center bottom;
	margin-top: clamp(-96px, -8vw, -56px);
}

@media (min-width: 1100px) {
	.gambit-doc-spot__media {
		flex: 0 0 auto;
		width: 55%;
		position: relative;
		top: -120px;
		margin: 0 0 -120px;
		background: none;
		border-radius: 0;
		align-self: flex-end;
	}

	.gambit-doc-spot__media img {
		margin-top: 0;
	}
}

@media (min-width: 1400px) {
	.gambit-doc-spot__media {
		top: -140px;
		margin-bottom: -140px;
	}
}

/* Mobile: content wrapper dissolves so children reorder around the image card. */
.gambit-doc-spot__content {
	display: contents;
}

.gambit-doc-spot__headline { order: 1; }
.gambit-doc-spot__media    { order: 2; }
.gambit-doc-spot__bio      { order: 3; }
.gambit-doc-spot__body     { order: 4; }
.gambit-doc-spot__diff     { order: 5; }
.gambit-doc-spot__stat     { order: 6; }
.gambit-doc-spot__cta      { order: 7; }

@media (min-width: 1100px) {
	.gambit-doc-spot__content {
		display: flex;
		flex-direction: column;
		flex: 1;
		min-width: 0;
		padding: 40px 64px 40px 80px;
	}

	/* Reset mobile order so DOM order takes over inside the desktop content column. */
	.gambit-doc-spot__headline,
	.gambit-doc-spot__media,
	.gambit-doc-spot__bio,
	.gambit-doc-spot__body,
	.gambit-doc-spot__diff,
	.gambit-doc-spot__stat,
	.gambit-doc-spot__bullets,
	.gambit-doc-spot__cta {
		order: 0;
	}
}

@media (min-width: 1400px) {
	.gambit-doc-spot__content {
		padding: 48px 96px 48px 120px;
	}
}

.gambit-doc-spot__headline {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: clamp(28px, 4vw, 48px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 24px;
	color: var(--warm-white);
}

.gambit-doc-spot__headline em {
	font-style: italic;
	font-weight: 500;
	color: var(--signal-red);
}

.gambit-doc-spot__bio {
	margin-bottom: 20px;
}

.gambit-doc-spot__name {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 18px;
	margin: 0 0 4px;
	color: var(--warm-white);
}

.gambit-doc-spot__creds {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.5;
	color: var(--off-white);
	opacity: 0.65;
}

.gambit-doc-spot__creds li {
	padding: 2px 0;
}

.gambit-doc-spot__body,
.gambit-doc-spot__diff {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--off-white);
	opacity: 0.85;
	margin: 0 0 16px;
}

.gambit-doc-spot__diff {
	opacity: 0.75;
	padding-left: 16px;
	border-left: 3px solid var(--signal-red);
	margin-top: 24px;
}

.gambit-doc-spot__stat {
	margin: 24px 0;
	padding: 20px 0;
	border-top: 1px solid var(--warm-white-10);
	border-bottom: 1px solid var(--warm-white-10);
}

.gambit-doc-spot__stat-value {
	font-family: var(--font-heading);
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	margin: 0 0 8px;
	color: var(--signal-red);
	font-variant-numeric: tabular-nums;
}

.gambit-doc-spot__stat-bridge {
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.5;
	color: var(--off-white);
	opacity: 0.7;
	margin: 0;
}

.gambit-doc-spot__cta {
	align-self: stretch;
	justify-content: center;
	margin-top: 16px;
}

@media (min-width: 1100px) {
	.gambit-doc-spot__cta {
		align-self: flex-start;
		justify-content: flex-start;
	}
}

/* ==========================================================================
   Doc Spot — Trust Stack variant
   Mirrors Maximus "Not just telehealth. We're telehealthcare." closer.
   Layout: image (left/top) | headline + 4 ✓ bullets + CTA (right/bottom).
   ========================================================================== */

.gambit-doc-spot--trust-stack .gambit-doc-spot__bullets {
	list-style: none;
	margin: 8px 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gambit-doc-spot--trust-stack .gambit-doc-spot__bullets li {
	position: relative;
	padding-left: 32px;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--off-white);
	opacity: 0.92;
}

.gambit-doc-spot--trust-stack .gambit-doc-spot__bullets li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 20px;
	height: 20px;
	background-color: var(--signal-red);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M7.5 13.5L4 10l-1.4 1.4L7.5 16.3 17.4 6.4 16 5z'/></svg>") no-repeat center / contain;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M7.5 13.5L4 10l-1.4 1.4L7.5 16.3 17.4 6.4 16 5z'/></svg>") no-repeat center / contain;
}

@media (min-width: 768px) {
	.gambit-doc-spot--trust-stack .gambit-doc-spot__bullets {
		gap: 18px;
	}

	.gambit-doc-spot--trust-stack .gambit-doc-spot__bullets li {
		font-size: 17px;
		padding-left: 36px;
	}

	.gambit-doc-spot--trust-stack .gambit-doc-spot__bullets li::before {
		width: 22px;
		height: 22px;
		top: 5px;
	}
}

/* Mobile order map for trust-stack:
   headline (1) → image (2) → bullets (3) → CTA (4).
   Bio/body/diff/stat are not rendered in this variant.
   Scoped to <1100px so it doesn't override the desktop DOM-order reset. */
@media (max-width: 1099.98px) {
	.gambit-doc-spot--trust-stack .gambit-doc-spot__bullets { order: 3; }
}

/* Tighten content padding on the right column for trust-stack —
   bullets read better with a bit less breathing room than the spotlight body copy.
   CTA flows naturally under the bullets in DOM order, no margin-top: auto. */
@media (min-width: 1100px) {
	.gambit-doc-spot--trust-stack .gambit-doc-spot__content {
		padding: 48px 96px 48px 80px;
	}
}

/* Trust-stack card surface — dark-red treatment that matches the
   "only legally prescribed" lifestyle-banner card on the HGH page.
   Source: blocks/lifestyle-banner/style.css — #1A1218 base + signal-red
   radial overlay + 20% signal-red border. */

/* Desktop: the card IS the layout flex row. */
@media (min-width: 1100px) {
	.gambit-doc-spot--trust-stack .gambit-doc-spot__layout {
		background:
			radial-gradient(160% 130% at 0% 50%, rgba(196, 61, 47, 0.13), transparent 80%),
			#1A1218;
		border: 1px solid rgba(196, 61, 47, 0.20);
	}
}

/* Mobile: the image sits inside __media which carries the card surface,
   while headline / bullets / CTA float on the section bg directly. */
@media (max-width: 1099.98px) {
	.gambit-doc-spot--trust-stack .gambit-doc-spot__media {
		background:
			radial-gradient(120% 90% at 50% 50%, rgba(196, 61, 47, 0.13), transparent 80%),
			#1A1218;
		border: 1px solid rgba(196, 61, 47, 0.20);
	}
}
