/*--------------------------------------------------------------
# Consultation CTA Block
# Full-width centered call-to-action with floating card image
# and dual action buttons. Clean, minimal Apple-like aesthetic.
--------------------------------------------------------------*/

/* ── Section ── */
/* The 190px top is what carries the gap from .membership above, which has
   no bottom padding of its own on desktop. Left untouched — the mobile
   override at the end of this file is where the fix lives. */
.consultation-cta {
	padding: 190px 0 70px 0;
	background: var(--tpp-white);
	overflow: hidden;
}

/* ── Container ── */
.consultation-cta__container {
	position: relative;
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* ── Heading ── */
.consultation-cta__heading {
	position: relative;
	z-index: 2;
	font-family: var(--tpp-font-heading);
	font-size: clamp(2rem, 5vw + 0.5rem, 3.2rem);
	font-weight: 600;
	color: var(--tpp-black);
	letter-spacing: -0.04em;
	line-height: 1.15;
	margin: 0 0 24px;
}

/* ── Description ── */
.consultation-cta__desc {
	position: relative;
	z-index: 2;
	font-family: var(--tpp-font-body);
	font-size: clamp(1rem, 1.5vw + 0.4rem, 1.15rem);
	font-weight: 400;
	line-height: 1.65;
	color: var(--tpp-text);
	max-width: 620px;
	margin: 0 0 56px;
}

/* ── Card image — behind content via z-index ── */
.consultation-cta__image-wrap {
	position: relative;
	z-index: 0;
	width: 100%;
	max-width: 720px;
	margin: 80px 0;
	padding-left: 20%;
}

.consultation-cta__image {
	width: 100%;
	height: auto;
	display: block;
	scale: 1.7;
	-webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 50%, transparent 90%);
	mask-image: radial-gradient(ellipse 80% 80% at center, black 50%, transparent 90%);
}

/* ── Action buttons ── */
.consultation-cta__actions {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.consultation-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 32px;
	border-radius: 100px;
	font-family: var(--tpp-font-body);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--tpp-transition);
}

/* Primary — solid dark */
/* Orange: the section's key button (black until 29 Nov 2026) */
.consultation-cta__btn--primary {
	background: var(--tpp-accent);
	border: 1.5px solid var(--tpp-accent);
}

.consultation-cta__btn--primary,
.consultation-cta__btn--primary:visited,
.consultation-cta__btn--primary:hover,
.consultation-cta__btn--primary:focus,
.consultation-cta__btn--primary:active {
	color: var(--tpp-black);
}

.consultation-cta__btn--primary:hover {
	background: var(--tpp-accent-dark);
	border-color: var(--tpp-accent-dark);
}

/* Ensure animated text inherits button color */
.consultation-cta__btn .text-reveal-primary,
.consultation-cta__btn .text-reveal-secondary {
	color: inherit;
}

/* Secondary — black with white text (outlined until 30 Nov 2026, made black
   at Anish's request). The colour is restated for every link state, because
   style.css sets them to color: inherit, which outranks one class. */
.consultation-cta__btn--secondary {
	background: var(--tpp-black);
	border: 1.5px solid var(--tpp-black);
}

.consultation-cta__btn--secondary,
.consultation-cta__btn--secondary:visited,
.consultation-cta__btn--secondary:hover,
.consultation-cta__btn--secondary:focus,
.consultation-cta__btn--secondary:active {
	color: var(--tpp-white);
}

.consultation-cta__btn--secondary:hover {
	background: var(--tpp-dark);
	border-color: var(--tpp-dark);
}

/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */

/* Tablet and below (≤991px) — the base 190px top exists to carry the gap
   from .membership, which has no bottom padding on desktop. Below 992px
   membership pads itself, so 190 on top of that would read as a 270px
   hole. */
@media screen and (max-width: 991px) {
	.consultation-cta {
		padding: calc(var(--tpp-section-spacing) * 1.4) 0 var(--tpp-section-spacing);
	}
}

@media screen and (max-width: 767px) {
	/* --tpp-section-spacing was undefined, so this declaration was invalid
	   and the section rendered with padding: 0 on every phone — its
	   190px/70px desktop padding was wiped rather than reduced. */
	.consultation-cta {
		padding: var(--tpp-section-spacing) 0;
	}

	.consultation-cta__heading {
		font-size: 1.8rem;
	}

	.consultation-cta__desc {
		margin-bottom: 40px;
	}

	/* The desktop composition floats the card behind the copy, offset right
	   and blown up 1.7×. Neither survives a phone: the 20% inset throws it
	   off-centre and 1.7× on a 300px box renders 510px wide. Centre it and
	   scale back so the whole card is inside the viewport.
	   The shorthand also resets margin-top, which the old `margin-bottom`
	   override left sitting at the base value of 80px. */
	.consultation-cta__image-wrap {
		max-width: 260px;
		margin: 24px 0 40px;
		padding-left: 0;
	}

	.consultation-cta__image {
		scale: 1.3;
	}

	.consultation-cta__actions {
		flex-direction: column;
		width: 100%;
	}

	.consultation-cta__btn {
		width: 100%;
		padding: 14px 24px;
	}
}

/* Small mobile (≤480px) */
@media screen and (max-width: 480px) {
	.consultation-cta__heading {
		font-size: 1.6rem;
	}

	.consultation-cta__desc {
		margin-bottom: 32px;
	}

	.consultation-cta__image-wrap {
		max-width: 220px;
		margin: 16px 0 32px;
	}
}
