/* Hero block â€” front end and editor. Values from Figma (Home 1440Ã—900, Inner 1440Ã—700, Mobile 390). */

.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	max-width: none;
	margin: 0;
	overflow: hidden;
	color: var(--c-white);
	background: var(--c-ink);
	/* Room for the transparent header that sits on top. */
	padding-top: calc(var(--header-h, 124px) + 40px);
}

.hero--home {
	min-height: min(100svh, 900px);
}

.hero--inner {
	min-height: min(85svh, 700px);
}

/* ---------- Background ---------- */

.hero__media,
.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero__media picture,
.hero__img,
.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__video {
	opacity: 0;
	transition: opacity .6s ease;
}

.hero__video.is-playing {
	opacity: 1;
}

/* Overlay presets. Medium = Home design, Strong = inner-page design. */
.hero--overlay-light .hero__overlay {
	background:
		linear-gradient(180deg, rgba(10, 8, 6, .4) 0%, rgba(10, 8, 6, .1) 35%, rgba(10, 8, 6, .35) 70%, rgba(10, 8, 6, .8) 100%),
		linear-gradient(90deg, rgba(10, 8, 6, .4) 0%, rgba(0, 0, 0, 0) 60%);
}

.hero--overlay-medium .hero__overlay {
	background:
		linear-gradient(180deg, rgba(10, 8, 6, .55) 0%, rgba(10, 8, 6, .2) 35%, rgba(10, 8, 6, .55) 70%, rgba(10, 8, 6, .92) 100%),
		linear-gradient(90deg, rgba(10, 8, 6, .55) 0%, rgba(0, 0, 0, 0) 65%);
}

.hero--overlay-strong .hero__overlay {
	background:
		linear-gradient(180deg, rgba(10, 8, 6, .62) 0%, rgba(10, 8, 6, .28) 38%, rgba(10, 8, 6, .62) 72%, rgba(10, 8, 6, .94) 100%),
		linear-gradient(90deg, rgba(10, 8, 6, .7) 0%, rgba(0, 0, 0, 0) 70%);
}

/* ---------- Content ---------- */

/* .hero__inner is a Bootstrap .container (width from the design tokens). */

.hero__main {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px 48px;
}

.hero__title {
	margin: 0;
	max-width: 20ch;
	color: inherit;
	font-family: var(--ff-display);
	font-size: var(--fs-display);
	line-height: var(--lh-display);
	letter-spacing: var(--ls-display);
	font-weight: var(--fw-display);
	font-variation-settings: var(--fvs-heading);
	text-wrap: balance;
}

.hero--inner .hero__title {
	max-width: none;
	font-family: var(--ff-page-title);
	font-size: var(--fs-page-title);
	line-height: var(--lh-page-title);
	letter-spacing: var(--ls-page-title);
	font-weight: var(--fw-page-title);
}

/* Italic = gold highlight (site-wide rule). */
.hero__title em {
	color: var(--c-gold);
	font-style: italic;
	font-weight: 300;
}

/* Superscript = smaller text on the same baseline (the "TH" in 5TH). */
.hero__title sup {
	font-size: .645em;
	vertical-align: baseline;
	line-height: 0;
}

.hero__title--empty {
	opacity: .55;
	font-size: 24px;
	line-height: 1.4;
}

.hero__actions {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 300px;
	flex-shrink: 0;
}

.hero__actions .btn {
	width: 100%;
}

/* Clinic strip */
/* Bootstrap .row.g-0.row-cols-1.row-cols-md-{clinic count} */
.hero__clinics {
	margin-top: 54px;
	border-top: 1px solid rgba(255, 255, 255, .22);
}

.hero__clinics > .clinic-link + .clinic-link {
	border-left: 1px solid rgba(255, 255, 255, .22);
	padding-left: 24px;
}

.hero--inner .hero__inner,
.hero--home .hero__inner {
	padding-bottom: clamp(32px, 5vw, 45px);
}

.hero--inner .hero__inner {
	padding-bottom: clamp(40px, 5vw, 64px);
}

/* ---------- Clinic link (component, also used elsewhere) ---------- */

.clinic-link {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 2px 16px;
	padding: 21px 24px 6px 0;
	color: var(--c-white);
	text-decoration: none;
}

.clinic-link__label {
	grid-column: 1 / -1;
	font-size: 12px;
	line-height: 19.2px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
}

.clinic-link--soon .clinic-link__label {
	color: var(--c-gold);
}

.clinic-link__name {
	font-family: var(--ff-h4);
	font-size: var(--fs-h4);
	line-height: var(--lh-h4);
	font-variation-settings: var(--fvs-heading);
}

.clinic-link .icon {
	width: 22px;
	height: 22px;
	transition: transform .2s ease;
}

.clinic-link:hover .icon,
.clinic-link:focus-visible .icon {
	transform: translate(3px, -3px);
	color: var(--c-gold);
}

.clinic-link:focus-visible {
	outline: 2px solid var(--c-gold);
	outline-offset: 4px;
}

/* ---------- Tablet / phone ---------- */

@media (max-width: 1023px) {
	.hero__main {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 767px) {
	.hero {
		padding-top: calc(var(--header-h, 110px) + 32px);
	}

	.hero--home {
		min-height: 0;
	}

	.hero__actions {
		width: 100%;
	}

	.hero__actions .btn {
		min-height: 52px;
	}

	.hero__clinics {
		margin-top: 40px;
	}

	.hero__clinics > .clinic-link + .clinic-link {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, .22);
		padding-left: 0;
	}

	.clinic-link {
		padding: 16px 0;
	}
}
