/*
 * Section: booking line (the "jl-bookline" group).
 *
 * One quiet line with an arrow link, under a small label. Not a banner: it
 * sits on the page colour and the page then ends, with the footer band
 * easing in below it.
 *
 * Colours, fonts and edge spacing come from the theme. The fade-in only runs
 * once the script is running (html.jl-js).
 */

.jl-bookline.jl-bookline {
	--bl-pad: 48px;
	--bl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	margin-block: 0;
	padding: 120px var(--bl-pad) 150px;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

/* WordPress spaces out a Group's children; every part here sets its own spacing. */
.jl-bookline.jl-bookline > *,
.jl-bookline .jl-bookline__row > * {
	margin-block: 0;
}

.jl-bookline .jl-bookline__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px 32px;
	margin-top: 22px;
}

.jl-bookline .jl-bookline__row > p:not(.jl-arrow) {
	max-width: 440px;
	font-size: 1.1875rem;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

.jl-bookline .jl-bookline__row .jl-arrow {
	font-size: 1.0625rem;
	line-height: 1.4;
}

/* ---------- Motion (front only, once the script is running) ---------- */

.jl-js .jl-bookline > * {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.9s var(--bl-ease) var(--d, 0ms), transform 0.9s var(--bl-ease) var(--d, 0ms);
}

.jl-js .jl-bookline.is-in > * {
	opacity: 1;
	transform: none;
}

.jl-bookline > :nth-child(n + 2) {
	--d: 100ms;
}

@media (max-width: 1099px) {
	.jl-bookline.jl-bookline {
		--bl-pad: 40px;
		padding-top: 96px;
		padding-bottom: 120px;
	}
}

@media (max-width: 699px) {
	.jl-bookline.jl-bookline {
		--bl-pad: 24px;
		padding-top: 64px;
		padding-bottom: 96px;
	}

	.jl-bookline .jl-bookline__row {
		margin-top: 18px;
	}
}

/* Set by the script if it could not prepare the section: everything shows at rest. */
.jl-bookline.is-plain > * {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.jl-js .jl-bookline > * {
		opacity: 1;
		transform: none;
		transition: none !important;
	}
}
