/*--------------------------------------------------------------
# Book a Call — Hero
# The "Private Zoom Consultations" page's banner (1 Dec 2026, Anish):
# Anish's picture of Owen on a Zoom call fills the band, and the copy
# sits centred under Owen's face, on a dark fade over the lower part of
# the picture. Sits below the site header rather than under it: this
# page does not opt into the tpp-overlay-header class.
--------------------------------------------------------------*/

.bac-hero {
	position: relative;
	background: var(--tpp-black);
	overflow: hidden;
	text-align: center;
	/* The copy starts under Owen's chin. The picture spans the full width
	   at its own shape (1640×795), so his chin is 19% of the width down
	   (39% of its height); a % padding is a share of the width too, so
	   the copy follows his chin at every desktop width. The 72px is the
	   room the fade below needs to turn dark before the eyebrow. */
	padding: calc(19% + 72px) 0 72px;
}


/* ── Background ── */

/* Owen on a Zoom call, with signs worded for this page
   (assets/images/zoom-consultation.webp, 1640×795: Anish's ChatGPT
   picture, cropped to the scene inside its Zoom window, without the title
   bar, toolbar or name tag). Full width at its own shape, so nothing is
   cut at the sides; from the top, so Owen's head and the signs always
   show, and only the bottom gets cut when the hero is shorter. Keep
   aspect-ratio equal to the picture's shape, or `cover` zooms it in. */
.bac-hero__bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	aspect-ratio: 1640 / 795;
	background-image: url('../../images/zoom-consultation.webp');
	background-size: cover;
	background-position: 50% 0;
	background-repeat: no-repeat;
	pointer-events: none;
}

/* The fade the copy reads on. Clear over Owen's face and the top signs;
   an oval of dark behind the copy (over his T-shirt), so the signs at
   the sides stay bright; and the picture's bottom edge fading into the
   band, for when the hero runs longer than the picture. */
.bac-hero__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(
			ellipse var(--bac-oval, 30%) 46% at 50% 72%,
			rgba(16, 16, 16, 0.9) 0%,
			rgba(16, 16, 16, 0.84) 62%,
			rgba(16, 16, 16, 0) 100%
		),
		linear-gradient(
			180deg,
			rgba(16, 16, 16, 0) 0%,
			rgba(16, 16, 16, 0) 82%,
			var(--tpp-black) 100%
		);
}


/* ── Container ── */

.bac-hero__container {
	position: relative;
	z-index: 1;
	width: 100%;
	/* Narrow: three short lines of centred copy, between the signs on
	   either side of Owen. A wider measure would let the paragraph run
	   past the heading it belongs to. */
	max-width: 680px;
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);

	/* Scroll-reveal */
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.bac-hero.is-visible .bac-hero__container {
	opacity: 1;
	transform: translateY(0);
}


/* ── Eyebrow ── */

.bac-hero__eyebrow {
	display: inline-block;
	font-family: var(--tpp-font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	margin-bottom: 20px;
}


/* ── Heading ── */

.bac-hero__heading {
	font-family: var(--tpp-font-heading);
	font-size: clamp(2.1rem, 4.4vw + 0.5rem, 3.4rem);
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -0.03em;
	color: var(--tpp-white);
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
	margin: 0;
}

/* Its own line, not a dimmed accent. Elsewhere in the theme the second half
   of a heading drops to the lighter grey, but here that half is the hook the
   page turns on — muting it would work against the point. */
.bac-hero__heading-line {
	display: block;
}


/* ── Description ── */

.bac-hero__desc {
	font-family: var(--tpp-font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.82);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
	max-width: 560px;
	margin: 20px auto 0;
}


/* ── Actions ── */

.bac-hero__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 36px;
}

.bac-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 15px 32px;
	border-radius: var(--tpp-radius-pill);
	background: var(--tpp-accent); /* orange key button, white until 29 Nov 2026 */
	border: 1.5px solid var(--tpp-accent);
	color: var(--tpp-black);
	font-family: var(--tpp-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: box-shadow var(--tpp-transition), transform var(--tpp-transition), background var(--tpp-transition);
}

/* :visited restated — an internal anchor the reader has followed would
   otherwise take the browser's default purple. */
.bac-hero__cta:hover,
.bac-hero__cta:visited,
.bac-hero__cta:hover:visited,
.bac-hero__cta:focus,
.bac-hero__cta:active {
	color: var(--tpp-black);
}

.bac-hero__cta:hover {
	background: var(--tpp-accent-dark);
	border-color: var(--tpp-accent-dark);
	box-shadow: 0 10px 30px rgba(255, 153, 0, 0.25);
}

.bac-hero__cta:focus-visible {
	outline: 2px solid var(--tpp-white);
	outline-offset: 3px;
}

/* Points down, because this scrolls down the page rather than leaving it. */
.bac-hero__cta-icon {
	flex-shrink: 0;
	transition: transform var(--tpp-transition);
}

.bac-hero__cta:hover .bac-hero__cta-icon {
	transform: translateY(3px);
}


/* ──────────────────────────────────────────────
   Reduced motion
   ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.bac-hero__container,
	.bac-hero__cta,
	.bac-hero__cta-icon {
		transition: none;
	}

	.bac-hero__cta:hover .bac-hero__cta-icon {
		transform: none;
	}
}


/* ──────────────────────────────────────────────
   Tablet (≤991px)
   ────────────────────────────────────────────── */

@media screen and (max-width: 1199px) {
	/* The copy is wider for the picture here, so the dark oval is too. */
	.bac-hero {
		--bac-oval: 38%;
	}
}

@media screen and (max-width: 991px) {
	.bac-hero {
		padding-bottom: 64px;
	}
}


/* ──────────────────────────────────────────────
   Mobile (≤767px)
   ────────────────────────────────────────────── */

@media screen and (max-width: 767px) {
	/* Owen alone, at a good size: the picture 507px tall in a 440px box,
	   centred on him, so on most phones the signs fall outside it (on wider
	   ones their cut edges fade out at the sides). His chin is then 198px
	   down, and the copy starts 56px under it. */
	.bac-hero {
		padding: 254px 0 64px;
	}

	.bac-hero__bg {
		aspect-ratio: auto;
		height: 440px;
		background-size: auto 507px;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 80%, transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 80%, transparent 100%);
	}

	/* A plain fade under his face instead of the oval: on a phone the
	   copy is as wide as the picture. */
	.bac-hero__bg::after {
		background: linear-gradient(
			180deg,
			rgba(16, 16, 16, 0) 0%,
			rgba(16, 16, 16, 0) 46%,
			rgba(16, 16, 16, 0.86) 58%,
			var(--tpp-black) 100%
		);
	}

	.bac-hero__heading {
		font-size: clamp(1.85rem, 8vw, 2.6rem);
	}

	.bac-hero__desc {
		font-size: 0.9375rem;
		margin-top: 16px;
	}

	.bac-hero__actions {
		margin-top: 28px;
	}

	/* Full width so it is a proper tap target rather than a pill floating in
	   the middle of the band. */
	.bac-hero__cta {
		width: 100%;
	}
}


/* ──────────────────────────────────────────────
   Small mobile (≤480px)
   ────────────────────────────────────────────── */

@media screen and (max-width: 480px) {
	.bac-hero__eyebrow {
		font-size: 0.75rem;
		margin-bottom: 16px;
	}

	.bac-hero__cta {
		padding: 14px 24px;
	}
}
