/**
 * Maison Lune Closing (Figma Home "Closing").
 *
 * Desktop (1440 × 680): full-bleed photo under a 42% dark overlay; the invitation (560: title
 * 56 white, line 18, "Book a table") at the left and a 544 paper card (radius 16, padding 16/32)
 * with three closed questions at the right, both vertically centred.
 * Tablet (834): padding 56/32, invitation (title 48) then the card full width, 40 apart.
 * Phone (390): padding 32/20, title 36, line 16, full-width button, card padding 8/20.
 */

.ml-closing {
	overflow: hidden;
}

.ml--dark.ml-closing {
	--ml-heading: var(--ml-c-white);
}

.ml-closing--photo {
	background: var(--ml-c-dark);
}

.ml-closing__media,
.ml-closing__overlay {
	position: absolute;
	inset: 0;
}

.ml .ml-closing__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.ml-closing__overlay {
	background: var(--ml-c-dark);
	opacity: 0.42;
	pointer-events: none;
}

.ml-closing__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
	min-height: 520px;
}

.ml-closing__invite {
	flex: 0 1 560px;
	min-width: 0;
}

.ml-closing__title {
	color: var(--ml-heading);
	font-family: var(--ml-serif);
	font-size: 56px;
	line-height: 60px;
	font-weight: 400;
}

.ml-closing .ml-closing__text {
	margin-top: 24px;
	color: var(--ml-text);
}

.ml-closing__actions {
	margin-top: 24px;
}

.ml-closing__invite > :first-child {
	margin-top: 0;
}

/* Paper card of questions: keeps ink text whatever the section palette. */
.ml-closing__card {
	--ml-heading: var(--ml-c-ink);
	--ml-text: var(--ml-c-muted);
	--ml-line: var(--ml-c-border);
	flex: 0 1 544px;
	min-width: 0;
	padding: 16px 32px;
	border-radius: var(--ml-radius-panel);
	background: var(--ml-c-paper);
	color: var(--ml-c-ink);
}

.ml-closing__card .ml-faq__item {
	border-bottom: 0;
}

.ml-closing__card .ml-faq__item + .ml-faq__item {
	border-top: 1px solid var(--ml-line);
}

.ml-closing__card .ml-faq__q {
	min-height: 65px;
	padding: 20px 0;
}

.ml-closing__card .ml-faq__question {
	font-size: 18px;
	line-height: 25px;
	font-weight: 500;
}

.ml-closing__card .ml-faq__a {
	padding: 0 40px 24px 0;
	color: var(--ml-text);
	font-size: 16px;
	line-height: 24px;
}

.ml-closing__card .ml-faq__q:focus-visible {
	outline-offset: 4px;
}

/* Tablet (834). */
@media (max-width: 1024px) {
	.ml-closing__inner {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 40px;
		min-height: 0;
	}

	.ml-closing__invite,
	.ml-closing__card {
		flex: none;
	}

	.ml-closing__title {
		font-size: 48px;
		line-height: 52px;
	}
}

/* Phone (390). */
@media (max-width: 767px) {
	.ml-closing {
		--ml-section-pad: 32px;
	}

	.ml-closing__title {
		font-size: 36px;
		line-height: 39px;
	}

	.ml-closing .ml-closing__text {
		font-size: 16px;
		line-height: 24px;
	}

	.ml-closing .ml-closing__button {
		width: 100%;
	}

	.ml-closing__card {
		padding: 8px 20px;
	}

	.ml-closing__card .ml-faq__a {
		padding-right: 0;
	}
}
