/**
 * BookingBee redesign layout fixes (home + feature pages).
 */

/* Same glass header as home on all redesign pages (bundle may set solid .site-header). */
.bb-redesign header.site-header,
.bb-redesign .site-header {
	background: transparent !important;
	box-shadow: none !important;
}

.bb-redesign #page,
.bb-redesign main {
	max-width: 100%;
}

/* Home integrations block + Integrations page buttons (match redesign, not global type scale). */
.bb-redesign .integrations .btn-outline {
	font-family: var(--f-bold) !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	line-height: 30px !important;
	color: #632dba !important;
	background: #efe8fa !important;
	border: 1px solid #632dba !important;
	border-radius: 24px !important;
	padding: 3px 18px !important;
	min-height: 38px !important;
	height: auto !important;
	letter-spacing: 0 !important;
}

/* Integrations hero CTAs — dark hero (Gotham 700, #ffc300). */
.bb-redesign .ip-hero .ip-btn-primary,
.bb-redesign .ip-hero .ip-btn-secondary {
	box-sizing: border-box !important;
	font-family: var(--f-gotham) !important;
	border-radius: 12px !important;
	align-items: center !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s !important;
	display: inline-flex !important;
	height: auto !important;
	line-height: normal !important;
	letter-spacing: 0 !important;
}

.bb-redesign .ip-hero .ip-btn-primary {
	color: #190041 !important;
	background: #ffc300 !important;
	padding: 14px 18px 14px 22px !important;
	border: 0 !important;
}

.bb-redesign .ip-hero .ip-btn-primary:hover {
	color: #190041 !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 26px -8px rgba(255, 195, 0, 0.55);
}

.bb-redesign .ip-hero .ip-btn-secondary {
	color: #ffc300 !important;
	background: transparent !important;
	border: 1.5px solid #ffc300 !important;
	padding: 12.5px 18px !important;
}

.bb-redesign .ip-hero .ip-btn-secondary:hover {
	color: #ffc300 !important;
	border-color: #ffc300 !important;
	box-shadow: none;
}

/* Connect now — same weight/style as header “Schedule a demo”. */
.bb-redesign .ip-plan-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--f-bold) !important;
	font-weight: 600 !important;
	font-size: 16px !important;
	line-height: 30px !important;
	color: #190041 !important;
	background: #ffc300 !important;
	border: 0 !important;
	border-radius: 28px !important;
	padding: 8px 24px !important;
	min-height: 46px !important;
	text-decoration: none !important;
	letter-spacing: 0 !important;
}

.bb-redesign .ip-plan-btn:hover {
	color: #190041 !important;
	box-shadow: 0 8px 22px rgba(255, 195, 0, 0.35);
}

/*
 * Home hero H1 — same family stack as bookingbee-redesign.css.
 * ExtraBold is local-only in the theme; without it, Urbanist 800 is the face
 * that actually renders (do not pin ExtraBold to Gilroy-Bold/Black files).
 */
.bb-redesign .hero2-copy h1 {
	font-family: "BB Gilroy", "Gilroy-ExtraBold", "Gilroy", "Urbanist", system-ui, sans-serif !important;
	font-weight: 800 !important;
	font-size: 64px !important;
	line-height: 1.06 !important;
	letter-spacing: var(--ts-h1-ls, -1.92px) !important;
	font-synthesis: none !important;
	-webkit-font-smoothing: antialiased;
	color: #fff !important;
	margin: 0 !important;
}
.bb-redesign .hero2-copy h1 .y {
	color: #ffcd00 !important;
}
.bb-redesign .hero2-copy h1 .l {
	color: #ff8080 !important;
}
@media (max-width: 1199.98px) {
	.bb-redesign .hero2-copy h1 {
		font-size: 52px !important;
	}
}
@media (max-width: 767.98px) {
	.bb-redesign .hero2-copy h1 {
		font-size: 36px !important;
		letter-spacing: -1.08px !important;
	}
}

/* —— Hero revamp —— */
/* Pull hero under the floating header so blinds + room art start at the viewport top (same as pre-revamp overlay). */
.bb-redesign .hero2 {
	margin-top: calc(-1 * var(--hdr-h, 142px));
}

.bb-redesign .gradient-blinds-container.hero2-blinds {
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: calc(640px + var(--hdr-h, 142px));
	opacity: 0.45;
}

.bb-redesign .hero2-room {
	background-position: center bottom;
	background-size: 100% auto;
}

.bb-redesign .hero2-obj {
	filter: none !important;
}

.bb-redesign .hero2-copy .bb-pill {
	margin-bottom: 8px;
}

@media (max-width: 767.98px) {
	.bb-redesign .gradient-blinds-container.hero2-blinds {
		height: calc(520px + var(--hdr-h, 88px));
	}
}

/* Handle section — feature pack visuals (replaces dashboard mock) */
.bb-redesign .handle-visual {
	display: grid;
	place-items: center;
	width: 100%;
	max-width: min(656px, 100%);
	margin: 0 auto;
}

.bb-redesign .handle-pack {
	grid-area: 1 / 1;
	width: 100%;
	max-width: 656px;
	height: auto;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.45s ease;
	pointer-events: none;
}

.bb-redesign .handle-pack.is-on {
	opacity: 1;
}

@media (min-width: 1200px) {
	.bb-redesign .handle-right {
		height: auto;
		min-height: 0;
		display: flex;
		align-items: flex-start;
		justify-content: center;
	}

	.bb-redesign .handle-right .handle-visual {
		max-width: 640px;
	}

	.bb-redesign .handle-pack {
		max-width: 640px;
	}
}

/* AI Receptionist — section padding; stats card below globe */
.bb-redesign .tr4 {
	padding: 48px 24px 64px;
}

.bb-redesign .tr4-head {
	margin-bottom: 8px;
}

.bb-redesign .tr4-stage {
	padding-top: 16px;
	padding-bottom: 8px;
	margin-bottom: 32px;
}

.bb-redesign .tr4-impact {
	margin-top: 48px;
	padding-top: 12px;
}

.bb-redesign .tr4-join {
	position: relative;
	z-index: 2;
	margin-top: 48px;
	padding-top: 16px;
	clear: both;
}

.bb-redesign .tr4-logos {
	margin-top: 20px;
}

/* Pin runway wraps handle-row only; title/lead stay in normal flow. */
.bb-redesign .handle {
	margin-top: 40px;
}

.bb-redesign .handle-scroller {
	margin-top: 0;
	position: relative;
}

.bb-redesign .handle-scroller.is-pinned .handle-row {
	position: sticky;
	top: var(--handle-top, 94px);
	zoom: var(--handle-zoom, 1);
	box-sizing: border-box;
}

.bb-redesign .handle-head.fs-head {
	margin-bottom: 12px;
}

.bb-redesign .handle-row {
	width: min(100%, 1296px);
	max-width: calc(100% - 48px);
	margin: 16px auto 0;
	padding: 0;
	box-sizing: border-box;
}

/* What BookingBee Handles — match What BookingBee Does heading stack */
.bb-redesign .handle-head.fs-head .lead {
	margin: 12px 0 0;
	max-width: 720px;
	font-family: var(--f-book);
	font-size: var(--fs-body-m);
	line-height: var(--lh-body-m);
	color: #3e2960;
	white-space: normal;
}

.bb-redesign .handle-head.fs-head .fs-heading .bb-pill {
	color: inherit;
}

.bb-redesign .handle-head.fs-head .fs-heading {
    align-items: center;
}

/* FAQ + integrations — never exceed viewport (fixed px columns in redesign.css) */
@media (min-width: 1200px) {
	.bb-redesign .faq-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	}

	.bb-redesign .integrations .int-row {
		max-width: 100%;
	}

	.bb-redesign .integrations .int-visual {
		max-width: min(712px, 100%);
	}
}

/* Reviews row — same proportions as meevo-26 gallery (480px) */
.bb-redesign .reviews-row {
	align-items: stretch;
	height: 480px;
	min-height: 480px;
	overflow: visible;
}

.bb-redesign .reviews-row .rv {
	position: relative;
	height: 480px;
	min-height: 480px;
	max-height: 480px;
	overflow: hidden;
}

.bb-redesign .reviews-row .rv.is-on {
	height: 480px;
	min-height: 480px;
	max-height: 480px;
	z-index: 3;
}

.bb-redesign .rv-body {
	position: absolute;
	left: 20px;
	right: 20px;
	top: auto;
	bottom: 22px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 9px;
	width: auto;
	max-width: 380px;
	opacity: 0;
	pointer-events: none;
	text-align: left;
	transition: opacity 0.3s ease 0.12s;
	overflow: visible;
	max-height: none;
	padding-bottom: 0;
}

.bb-redesign .rv.is-on .rv-body {
	opacity: 1;
}

.bb-redesign .rv-name {
	margin: 0;
	font-family: var(--f-semi);
	font-size: 15px;
	line-height: 1.2;
	color: #fff;
}

.bb-redesign .rv-role {
	margin: 4px 0 0;
	font-family: var(--f-book);
	font-size: 12px;
	line-height: 1.3;
	color: #cecbd4;
}

.bb-redesign .rv-quote {
	margin: 0;
	font-family: var(--f-semi);
	font-size: 16px;
	line-height: 1.45;
	color: #fff;
}

.bb-redesign .rv hr {
	width: 100%;
	height: 1px;
	border: 0;
	margin: 0;
	background: rgba(255, 255, 255, 0.14);
}

.bb-redesign .rv-stat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	margin: 0;
}

.bb-redesign .rv-stat b {
	font-family: var(--f-black);
	font-size: 16px;
	line-height: normal;
	color: #fbbc04;
	font-weight: 800;
}

.bb-redesign .rv-stat small {
	font-family: var(--f-book);
	font-size: 12px;
	line-height: normal;
	color: #cecbd4;
}

.bb-redesign .rv.is-on .rv-play {
	top: 38%;
}

/* Mobile reviews slider (home) */
.bb-redesign .reviews-mobile.meevo-26-reviews-slider {
	display: none;
}

/* Tablet through laptop — avoid fixed-width gallery / integration blowout */
@media screen and (max-width: 1199.98px) {
	.bb-redesign #page section.reviews,
	.bb-redesign .reviews-inner {
		overflow-x: hidden;
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
	}

	.bb-redesign .integrations {
		padding: 48px 0;
		overflow-x: hidden;
	}

	.bb-redesign .integrations .int-inner {
		max-width: 100%;
		padding: 0;
	}

	.bb-redesign .integrations .int-card {
		padding: 32px 24px;
		border-radius: 32px;
	}

	.bb-redesign .integrations .int-row {
		flex-direction: column;
		align-items: stretch;
		height: auto;
		margin-left: 0;
		gap: 24px;
	}

	.bb-redesign .integrations .int-text {
		width: 100%;
		padding: 0;
	}

	.bb-redesign .integrations .int-text p {
		width: 100%;
		max-width: none;
	}

	.bb-redesign .integrations .int-visual {
		width: 100%;
		height: auto;
		padding: 0;
	}

	.bb-redesign .integrations .int-visual img {
		width: 100%;
		max-width: 100%;
		height: auto;
	}

	.bb-redesign .tr4 {
		padding: 48px 0 40px;
		overflow-x: hidden;
	}

	.bb-redesign .tr4-head h2 {
		font-size: clamp(28px, 4.2vw, 36px);
		line-height: 1.2;
		letter-spacing: -0.03em;
	}

	/* Trusted globe — same framing as desktop (1422×510), scaled with calc() */
	.bb-redesign .tr4-stage {
		width: calc(100vw - 32px);
		max-width: 1422px;
		height: calc((100vw - 32px) * 510 / 1422) !important;
		min-height: 0;
		padding-top: 0 !important;
		margin-left: auto;
		margin-right: auto;
		position: relative;
		overflow: visible;
	}

	.bb-redesign .tr4-globe {
		width: 100% !important;
		height: calc((100vw - 32px) * 372 / 1422) !important;
		max-height: 372px;
		left: 50%;
		transform: translateX(-50%);
		-webkit-mask-image: linear-gradient(#000 62%, #0000 100%);
		mask-image: linear-gradient(#000 62%, #0000 100%);
	}

	.bb-redesign .tr4-sphere,
	.bb-redesign .tr4-globe .salon-globe {
		width: 100% !important;
		max-width: none !important;
		top: calc((100vw - 32px) * -116 / 1422) !important;
		left: 0 !important;
		transform: none !important;
		position: absolute !important;
		aspect-ratio: 1 / 1 !important;
		height: auto !important;
	}

	.bb-redesign .tr4-impact {
		position: absolute !important;
		top: calc((100vw - 32px) * 329 / 1422) !important;
		left: 50% !important;
		width: min(649px, calc(100% - 16px));
		max-width: 100%;
		margin: 0 !important;
		margin-top: 0 !important;
		padding-top: 24px !important;
		transform: translateX(-50%) !important;
		z-index: 4;
		box-sizing: border-box;
	}

	.bb-redesign .tr4-join {
		margin-top: 70px;
		padding-top: 12px;
		text-align: center;
	}

	.bb-redesign .tr4-logos {
		width: 100%;
		max-width: 100vw;
	}

	.bb-redesign .handle {
		width: 100%;
		max-width: 100%;
		margin: 0;
		padding: 48px 0;
		box-sizing: border-box;
	}

	.bb-redesign .handle-scroller,
	.bb-redesign .handle-scroller.is-pinned {
		height: auto !important;
	}

	.bb-redesign .handle-scroller.is-pinned .handle-row {
		position: relative !important;
		top: auto !important;
		zoom: 1 !important;
	}

	.bb-redesign .handle-progress {
		display: none;
	}

	.bb-redesign .handle-stage {
		height: auto;
	}

	.bb-redesign .handle-row {
		max-width: 100%;
		width: 100% !important;
		height: auto !important;
		min-height: 0;
		margin: 24px 0 56px;
		padding-bottom: 8px;
		display: flex;
		flex-direction: column;
		gap: 24px;
		overflow: visible;
	}

	.bb-redesign .handle-left {
		position: relative !important;
		width: 100% !important;
		top: auto !important;
		left: auto !important;
		order: 1;
	}

	.bb-redesign .handle-right {
		position: relative !important;
		width: 100% !important;
		max-width: 100%;
		top: auto !important;
		left: auto !important;
		height: auto;
		margin-top: 0;
		padding-bottom: 0;
		order: 2;
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}

	.bb-redesign .handle-row .dash {
		position: relative !important;
		width: 100% !important;
		max-width: min(600px, 100%);
		left: auto !important;
		top: auto !important;
		margin: 0 auto;
		box-sizing: border-box;
	}

	.bb-redesign .handle-row .ml-pack {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		width: 100%;
		max-width: min(656px, 100%);
		height: auto;
		margin: 0 auto;
		display: none;
		order: 3;
		opacity: 0;
		transform: none;
		pointer-events: none;
	}

	.bb-redesign .handle.show-pack .ml-pack {
		display: block;
		opacity: 1;
		pointer-events: auto;
	}

	.bb-redesign .handle.show-pack .handle-right {
		display: none;
		opacity: 0;
		pointer-events: none;
	}

	.bb-redesign .handle-head.fs-head {
		align-items: flex-start;
		text-align: left;
	}

	.bb-redesign .handle .handle-progress {
		display: none;
	}
}

/* iPad / small laptop — web-style review gallery, scaled to fit */
@media screen and (min-width: 768px) and (max-width: 1199.98px) {
	.bb-redesign .reviews-row--desktop {
		display: flex !important;
		width: 100%;
		max-width: 100%;
		padding: 0;
		gap: clamp(4px, 0.65vw, 8px);
		height: clamp(300px, 48vw, 420px) !important;
		min-height: 300px !important;
		max-height: 420px;
		align-items: stretch;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}

	.bb-redesign .reviews-row .rv {
		flex: 0 0 clamp(52px, 11vw, 120px);
		width: auto !important;
		height: 100% !important;
		min-height: 0 !important;
		max-height: none !important;
		scroll-snap-align: start;
	}

	.bb-redesign .reviews-row .rv.is-on {
		flex: 0 0 clamp(180px, 36vw, 340px);
		width: auto !important;
	}

	.bb-redesign .reviews-mobile.meevo-26-reviews-slider {
		display: none !important;
	}
}

@media screen and (max-width: 767.98px) {
	.bb-redesign .tr4 {
		padding: 40px 0 48px;
	}

	.bb-redesign .reviews-row--desktop {
		display: none !important;
	}

	.bb-redesign .reviews-mobile.meevo-26-reviews-slider {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		gap: 24px;
		width: 100%;
		max-width: 100%;
		overflow: hidden;
		margin-top: 8px;
	}

	.bb-redesign .integrations .int-card {
		padding: 28px 16px;
	}
}
