/**
 * Maison Lune Hero (ml-hero) and the shared dark page hero (.ml-phero, also used by the
 * reservation widget through ml_render_page_hero()).
 *
 * Photo layout, Figma Home "Hero": 1440×900 (padding 80/120), 834×920 (56/32), 390×760
 * (32/20); photo under #2e2327 at 42%; the text sits 188 / 264 px above the quick booking bar
 * (1200×88, paper, radius 12, 12 inside, fields divided by ink 25% rules); no bar on phones,
 * where a fixed "Booking bar" (76 high) appears once the hero's button is off screen.
 *
 * Page hero, Figma "Hero" of La carte / Our story / Le Salon / Gallery / Reservation: plain
 * #2e2327, text at the bottom, padding 80 / 56 / 32.
 */

/* ------------------------------------------------------------------ */
/* Photo layout                                                       */
/* ------------------------------------------------------------------ */

.ml-hero--photo {
	/* Display title in white on the photo (the "Heading colour" control still overrides it). */
	--ml-heading: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: var(--ml-hero-h, 900px);
	padding-top: var(--ml-pad-t, 80px);
	padding-bottom: var(--ml-pad-b, 80px);
	overflow: hidden;
}

.ml-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--ml-c-dark);
}

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

.ml-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ml-hero-overlay, #2e2327);
	opacity: var(--ml-hero-overlay-o, 0.42);
}

.ml-hero__copy,
.ml-hero__booking {
	position: relative;
	z-index: 1;
}

.ml-hero__eyebrow {
	color: var(--ml-text);
	font-size: 13px;
	line-height: 20px;
	font-weight: 500;
}

/* Figma: Cormorant Garamond 72/108% (56 tablet, 42 phone). */
.ml-hero__title {
	max-width: 760px;
	font-size: 72px;
	line-height: 1.08;
}

.ml-hero__text {
	max-width: 560px;
	color: var(--ml-text);
	font-size: 18px;
	line-height: 27px;
}

.ml-hero__copy > * + * {
	margin-top: 24px;
}

.ml-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

.ml-hero .ml-hero__actions .ml-link {
	min-height: 48px;
	color: var(--ml-heading);
	font-size: 16px;
	line-height: 24px;
	font-weight: 500;
}

.ml-hero--photo :focus-visible {
	outline-color: var(--ml-c-paper);
}

/* Quick booking bar ------------------------------------------------- */

.ml-hero__booking {
	margin-top: var(--ml-hero-gap, 188px);
}

.ml-hero__bar {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) 224px;
	align-items: center;
	column-gap: 20px;
	padding: 12px;
	border: 1px solid var(--ml-c-border);
	border-radius: var(--ml-radius);
	background: var(--ml-c-paper);
	color: var(--ml-c-ink);
}

.ml-hero__bar :focus-visible {
	outline-color: var(--ml-c-wine);
}

.ml-book-field {
	position: relative;
	min-width: 0;
	min-height: 62px;
	padding: 8px;
	border-right: 1px solid var(--ml-c-border);
}

.ml-book-field__label {
	position: relative;
	z-index: 1;
	display: block;
	color: var(--ml-c-muted);
	font-size: 12px;
	line-height: 18px;
	font-weight: 400;
	text-transform: uppercase;
	pointer-events: none;
}

/* The native control covers the whole field, its value where Figma draws it (30px down). */
.ml-book-field__control {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 30px 32px 8px 8px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--ml-c-ink);
	font-family: var(--ml-sans);
	font-size: 16px;
	line-height: 24px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.ml-book-field__control:focus {
	outline: 0;
}

.ml-book-field__control:focus-visible {
	outline: 2px solid var(--ml-c-wine);
	outline-offset: -2px;
}

.ml-book-field__control option {
	color: var(--ml-c-ink);
	background: var(--ml-c-paper);
}

.ml-book-field__icon {
	position: absolute;
	top: 50%;
	right: 2px;
	transform: translateY(-50%);
	color: var(--ml-c-ink);
	pointer-events: none;
}

.ml-book-field--date .ml-book-field__icon {
	right: 5px;
}

/* Date: "Friday 16 October" over the native input (hero.js keeps it in sync). */
.ml-book-field__value {
	display: none;
}

html:not(.ml-js) .ml-book-field--date .ml-book-field__icon {
	display: none;
}

.ml-js .ml-book-field--date .ml-book-field__value {
	position: relative;
	z-index: 1;
	display: block;
	margin-top: 4px;
	padding-right: 24px;
	overflow: hidden;
	color: var(--ml-c-ink);
	font-size: 16px;
	line-height: 24px;
	white-space: nowrap;
	text-overflow: ellipsis;
	pointer-events: none;
}

.ml-js .ml-book-field--date .ml-book-field__control {
	opacity: 0;
}

.ml-js .ml-book-field--date .ml-book-field__control::-webkit-calendar-picker-indicator {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
}

.ml-js .ml-book-field--date:focus-within {
	outline: 2px solid var(--ml-c-wine);
	outline-offset: -2px;
	border-radius: 4px;
}

.ml-hero__submit {
	width: 100%;
}

.ml-hero__note {
	grid-column: 1 / -1;
	margin-top: 8px;
	color: var(--ml-c-muted);
}

/* Fixed bar on phones (shown in the phone media query) -------------- */

.ml-hero__phonebar {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Page hero (panel layout, reservation)                              */
/* ------------------------------------------------------------------ */

.ml-phero {
	--ml-phero-h: 760px;
	--ml-phero-pad: 80px;
	--ml-phero-g1: 16px;
	--ml-phero-g2: 16px;
	--ml-phero-title: 64px;
	--ml-phero-text-fs: 18px;
	--ml-phero-text-lh: 27px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-sizing: border-box;
	min-height: var(--ml-phero-h);
	padding: var(--ml-phero-pad-t, var(--ml-phero-pad)) 0 var(--ml-phero-pad-b, var(--ml-phero-pad));
	background: var(--ml-phero-bg, var(--ml-c-dark));
	color: var(--ml-phero-text, var(--ml-c-paper));
	font-family: var(--ml-sans);
	font-size: 16px;
	line-height: 24px;
}

.ml-phero--menu,
.ml-phero--story {
	--ml-phero-h: 760px;
}

.ml-phero--salon {
	--ml-phero-h: 720px;
}

.ml-phero--gallery {
	--ml-phero-h: 600px;
}

.ml-phero--reservation {
	--ml-phero-h: 480px;
}

.ml-phero--auto {
	--ml-phero-h: 0px;
}

.ml-phero--menu {
	--ml-phero-g1: 20px;
	--ml-phero-g2: 20px;
}

.ml-phero--story {
	--ml-phero-g1: 32px;
}

.ml-phero--title-xl {
	--ml-phero-title: 88px;
}

.ml-phero--text-body {
	--ml-phero-text-fs: 16px;
	--ml-phero-text-lh: 24px;
}

.ml-phero--text-small {
	--ml-phero-text-fs: 15px;
	--ml-phero-text-lh: 23px;
}

.ml-phero :where(p, h1, h2, h3) {
	margin: 0;
}

.ml-phero__eyebrow {
	color: var(--ml-phero-text, var(--ml-c-paper));
	font-size: 12px;
	line-height: 18px;
	font-weight: 400;
}

.ml-phero__title {
	margin-top: var(--ml-phero-g1);
	color: var(--ml-phero-heading, var(--ml-c-paper));
	font-family: var(--ml-serif);
	font-size: var(--ml-phero-title);
	line-height: 1.1;
	font-weight: 400;
	letter-spacing: 0;
}

.ml-phero__text {
	max-width: 760px;
	margin-top: var(--ml-phero-g2);
	font-size: var(--ml-phero-text-fs);
	line-height: var(--ml-phero-text-lh);
}

.ml-phero__notes {
	margin-top: var(--ml-phero-g2);
}

.ml-phero__note {
	font-size: 13px;
	line-height: 20px;
}

.ml-phero__note + .ml-phero__note {
	margin-top: 4px;
}

.ml-phero__note b {
	font-weight: 600;
}

.ml-phero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin-top: 16px;
}

/* Button with a text link: a 44px row 8px lower (Figma Le Salon "Actions"). */
.ml-phero--has-link .ml-phero__actions {
	margin-top: 24px;
}

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

.ml-phero .ml-link {
	min-height: 44px;
	color: var(--ml-phero-heading, var(--ml-c-paper));
	font-size: 14px;
	line-height: 21px;
}

.ml-phero .ml-btn--outline {
	color: var(--ml-phero-heading, var(--ml-c-paper));
}

.ml-phero :focus-visible {
	outline-color: var(--ml-c-paper);
}

/* In the hero widget the section style controls drive the panel. */
.ml-hero--panel .ml-phero {
	--ml-phero-bg: var(--ml-bg);
	--ml-phero-heading: var(--ml-heading);
	--ml-phero-text: var(--ml-text);
	min-height: var(--ml-hero-h, var(--ml-phero-h));
	padding-top: var(--ml-pad-t, var(--ml-phero-pad));
	padding-bottom: var(--ml-pad-b, var(--ml-phero-pad));
}

/* ------------------------------------------------------------------ */
/* Tablet (834)                                                       */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.ml-hero--photo {
		min-height: var(--ml-hero-h, 920px);
		padding-top: var(--ml-pad-t, 56px);
		padding-bottom: var(--ml-pad-b, 56px);
	}

	.ml-hero__title {
		max-width: 640px;
		font-size: 56px;
	}

	.ml-hero__text {
		font-size: 17px;
		line-height: 25px;
	}

	.ml-hero__booking {
		margin-top: var(--ml-hero-gap, 264px);
	}

	/* Figma 834: date 190, experience 130, time 108, guests 131, button; 12 apart. */
	.ml-hero__bar {
		grid-template-columns: minmax(0, 190fr) minmax(0, 130fr) minmax(0, 108fr) minmax(0, 131fr) auto;
		column-gap: 12px;
	}

	.ml-hero__submit {
		width: auto;
	}

	.ml-phero {
		--ml-phero-pad: 56px;
	}

	.ml-phero--menu,
	.ml-phero--salon {
		--ml-phero-h: 560px;
	}

	.ml-phero--story {
		--ml-phero-h: 600px;
	}

	.ml-phero--gallery {
		--ml-phero-h: 480px;
	}

	.ml-phero--reservation {
		--ml-phero-h: 400px;
		--ml-phero-g1: 12px;
		--ml-phero-g2: 12px;
	}

	.ml-phero--title-xl {
		--ml-phero-title: 64px;
	}

	.ml-phero--title-m {
		--ml-phero-title: 56px;
	}

	.ml-phero--text-lead {
		--ml-phero-text-fs: 17px;
		--ml-phero-text-lh: 25px;
	}
}

/* ------------------------------------------------------------------ */
/* Phone (390)                                                        */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.ml-hero--photo {
		min-height: var(--ml-hero-h, 760px);
		padding-top: var(--ml-pad-t, 32px);
		padding-bottom: var(--ml-pad-b, 32px);
	}

	.ml-hero__title {
		font-size: 42px;
	}

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

	.ml-hero__copy > * + * {
		margin-top: 20px;
	}

	/* Full-width button, the link under it. */
	.ml-hero__actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.ml-hero__actions .ml-btn {
		width: 100%;
	}

	/* No bar in the phone hero (the fixed bar takes over), unless asked for. */
	.ml-hero__booking {
		display: none;
	}

	.ml-hero__booking--phone {
		display: block;
		margin-top: var(--ml-hero-gap, 32px);
	}

	.ml-hero__bar {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		row-gap: 0;
		column-gap: 0;
	}

	.ml-hero__bar .ml-book-field {
		border-right: 0;
		border-bottom: 1px solid var(--ml-c-border);
	}

	.ml-hero__bar .ml-hero__field--date,
	.ml-hero__submit {
		grid-column: 1 / -1;
	}

	.ml-hero__submit {
		width: 100%;
		margin-top: 12px;
	}

	.ml-phero {
		--ml-phero-pad: 32px;
		--ml-phero-title: 44px;
	}

	.ml-phero--menu,
	.ml-phero--salon {
		--ml-phero-h: 480px;
	}

	.ml-phero--story {
		--ml-phero-h: 520px;
	}

	.ml-phero--gallery {
		--ml-phero-h: 400px;
	}

	.ml-phero--reservation {
		--ml-phero-h: 360px;
	}

	.ml-phero--title-xl,
	.ml-phero--title-m {
		--ml-phero-title: 44px;
	}

	.ml-phero--text-lead {
		--ml-phero-text-fs: 16px;
		--ml-phero-text-lh: 24px;
	}

	/* A lone button spans the width (Figma Gallery). */
	.ml-phero__actions > .ml-btn:only-child {
		width: 100%;
	}

	/* Fixed booking bar (Figma "Mobile/Home/Booking bar", 76 high). */
	.ml-hero__phonebar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		display: flex;
		align-items: center;
		gap: 12px;
		min-height: 76px;
		margin: 0;
		padding: 0 20px env(safe-area-inset-bottom, 0px);
		border-top: 1px solid var(--ml-c-border);
		background: var(--ml-c-paper);
		color: var(--ml-c-ink);
		transition: transform 0.25s ease, visibility 0.25s ease;
	}

	.ml-js .ml-hero__phonebar.is-hidden {
		visibility: hidden;
		transform: translateY(100%);
	}

	.ml-hero__phonebar :focus-visible {
		outline-color: var(--ml-c-wine);
	}

	.ml-hero__phonebar-text {
		display: flex;
		flex-direction: column;
		min-width: 0;
		margin: 0;
	}

	.ml-hero__phonebar-title {
		color: var(--ml-c-ink);
		font-size: 14px;
		line-height: 21px;
		font-weight: 500;
	}

	.ml-hero__phonebar-sub {
		color: var(--ml-c-muted);
		font-size: 13px;
		line-height: 20px;
	}

	.ml-hero .ml-hero__phonebar .ml-btn {
		flex: none;
		background: var(--ml-c-wine);
		color: var(--ml-c-paper);
	}

	.ml-hero .ml-hero__phonebar .ml-btn:hover {
		background: var(--ml-c-wine-dark);
	}

	html.ml-phonebar-shown body {
		padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
	}
}

/* Never in the Elementor editor. */
.elementor-editor-active .ml-hero__phonebar {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.ml-hero__phonebar {
		transition: none;
	}
}
