/*
 * Conversion items of the 21 Oct 2026 approvals (inc/conversion.php): the Google reviews
 * band, the "Book a consultation" box under veneer and TMJ articles, and the Call and
 * Book bar on phones. Tokens only from global.css.
 */

/* ---- Reviews band (home and treatment pages) ---- */
.review-proof .rp-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	text-align: center;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.review-proof .rp-stars {
	display: inline-flex;
	gap: 0.2rem;
	color: rgb(var(--color-accent));
}

.review-proof .rp-stars svg {
	fill: currentColor;
}

.review-proof .rp-title {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	font-weight: 400;
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	color: rgb(var(--color-text));
}

.review-proof .rp-title a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgb(var(--color-accent) / 0.6);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
	transition: text-decoration-color var(--dur-fast) var(--ease);
}

.review-proof .rp-title a:hover {
	text-decoration-color: rgb(var(--color-accent));
}

.review-proof .rp-quotes {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.review-proof .rp-quotes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.review-proof .rp-quote figure {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1rem;
	height: 100%;
	margin: 0;
	padding: 1.4rem 1.5rem;
	background: rgb(var(--color-surface));
	border: 1px solid rgb(var(--color-border));
	border-radius: var(--radius-md);
}

.review-proof .rp-quote blockquote {
	margin: 0;
}

.review-proof .rp-quote p {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: var(--leading-relaxed);
	color: rgb(var(--color-text));
}

.review-proof .rp-quote figcaption {
	font-size: 0.85rem;
	letter-spacing: var(--tracking-wide);
	color: rgb(var(--color-muted));
}

/* ---- "Book a consultation" box under veneer and TMJ articles ---- */
.article-book {
	max-width: 46rem;
	margin: clamp(2rem, 4vw, 3rem) auto 0;
	padding: clamp(1.4rem, 3vw, 2rem);
	background: rgb(var(--color-surface));
	border: 1px solid rgb(var(--color-border));
	border-top: 2px solid rgb(var(--color-accent));
	border-radius: var(--radius-md);
}

.article-book__title {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 400;
	line-height: var(--leading-tight);
	color: rgb(var(--color-text));
}

.article-book__text {
	margin-top: 0.6rem;
	line-height: var(--leading-relaxed);
	color: rgb(var(--color-muted));
}

.article-book__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	margin-top: 1.25rem;
}

.article-book__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: rgb(var(--color-text));
	text-decoration: none;
}

.article-book__phone span {
	font-size: 0.75rem;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: rgb(var(--color-muted));
}

/* ---- Call and Book bar, phones only ---- */
.mobile-cta {
	display: none;
}

@media (max-width: 767px) {
	.mobile-cta {
		position: fixed;
		z-index: 94;
		left: 0;
		right: 0;
		bottom: 0;
		display: flex;
		align-items: center;
		gap: 0.5rem;
		/* the right end stays clear for the chat icon (85px box, bottom right) */
		padding: 0.6rem 5.75rem calc(0.6rem + env(safe-area-inset-bottom)) 0.75rem;
		background: rgb(var(--color-surface));
		border-top: 1px solid rgb(var(--color-border));
		box-shadow: 0 -4px 14px rgb(0 0 0 / 0.08);
	}

	.mobile-cta a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.4rem;
		min-height: 2.75rem;
		padding: 0 0.9rem;
		border-radius: var(--radius-pill);
		font-family: var(--font-body);
		font-size: 0.875rem;
		line-height: 1.1;
		text-align: center;
		text-decoration: none;
		white-space: nowrap;
	}

	.mobile-cta__call {
		flex: 0 0 auto;
		border: 1px solid rgb(var(--color-primary));
		color: rgb(var(--color-primary));
		background: transparent;
	}

	.mobile-cta__book {
		flex: 1 1 auto;
		min-width: 0;
		background: rgb(var(--color-primary));
		color: rgb(var(--color-primary-fg));
	}

	.mobile-cta a:focus-visible {
		outline: 2px solid rgb(var(--color-accent));
		outline-offset: 2px;
	}

	/* Room for the bar at the end of the page, and the floating buttons above it. */
	body:has(.mobile-cta) {
		padding-bottom: calc(4rem + env(safe-area-inset-bottom));
	}

	body:has(.mobile-cta) .a11y-fab,
	body:has(.mobile-cta) .ask-chat {
		bottom: calc(4.75rem + env(safe-area-inset-bottom));
	}

	/* Out of the way while the phone menu is open, like the chat prompt. */
	body:has(#mobileDrawer.is-open) .mobile-cta {
		display: none;
	}
}

@media (max-width: 359px) {
	.mobile-cta a {
		padding: 0 0.65rem;
		font-size: 0.8rem;
	}
}

@media print {
	.mobile-cta {
		display: none !important;
	}
}
