/**
 * Menu page.
 *
 * Loaded only on the page with slug "menu" (see burgerboi_enqueue_page_style).
 * Figma frame "Menu", 1512 wide. Uses the theme design tokens from main.css.
 *
 * 1. Hero
 * 2. Sticky category nav
 * 3. Category sections
 * 4. Cards (big + list)
 * 5. Responsive
 */

/* -------------------------------------------------------------------------- */
/* 1. Hero                                                                     */
/* -------------------------------------------------------------------------- */

.mhero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(420px, 37.8vw, 572px); /* header (~90px) + this ≈ the 670 design hero */
	padding-block: clamp(48px, 5.29vw, 80px);
	background: var(--c-ink);
	color: var(--c-white);
	isolation: isolate;
}

.mhero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.mhero__media img,
.mhero__media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Dark scrim so the copy stays legible on any photo. */
.mhero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(17 17 17 / 20%) 0%, rgb(17 17 17 / 85%) 100%);
}

.mhero__inner {
	display: flex;
	gap: 32px;
	align-items: flex-end;
	justify-content: space-between;
	width: 100%;
}

.mhero__eyebrow {
	margin: 0 0 16px;
	font-size: clamp(16px, 1.587vw, 24px); /* 24 / 1512 */
	font-weight: var(--fw-semibold);
	line-height: 1.2;
	text-transform: uppercase;
}

.mhero__title {
	margin: 0;
	font-size: clamp(40px, 4.7619vw, 72px); /* 72 / 1512 */
	font-weight: var(--fw-bold);
	letter-spacing: -0.02em;
	line-height: 1;
	text-transform: uppercase;
}

.mhero__title-accent {
	display: block;
	color: var(--c-purple);
}

.mhero__actions {
	display: flex;
	flex-shrink: 0;
	flex-direction: column;
	align-items: flex-end;
	gap: 16px;
}

/* -------------------------------------------------------------------------- */
/* 2. Sticky category nav                                                      */
/* -------------------------------------------------------------------------- */

.mnav {
	position: sticky;
	/* Comes to rest under the sticky site header rather than beneath it. */
	top: var(--header-h);
	z-index: 50;
	padding-block: 16px;
	background: var(--c-white);
	border-bottom: 1px solid var(--c-cream);
}

.mnav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Pills: outline by default, solid purple for the section in view. */
.mnav__link {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border: 1px solid rgb(51 51 51 / 35%);
	border-radius: var(--radius-pill);
	color: var(--c-charcoal);
	font-size: 14px;
	font-weight: var(--fw-semibold);
	letter-spacing: 0.02em;
	line-height: 1.4;
	text-transform: uppercase;
	white-space: nowrap;
	transition:
		background-color var(--duration) var(--ease),
		border-color var(--duration) var(--ease),
		color var(--duration) var(--ease);
}

.mnav__link:hover,
.mnav__link.is-active {
	border-color: var(--c-purple);
	background: var(--c-purple);
	color: var(--c-white);
}

/* -------------------------------------------------------------------------- */
/* 3. Category sections                                                        */
/* -------------------------------------------------------------------------- */

.mcat {
	padding-block: clamp(40px, 4.23vw, 64px); /* 64 / 1512 */
	/* Offset for the sticky nav when jumping to an anchor. */
	scroll-margin-top: 70px;
}

.mcat--light {
	background: var(--c-white);
}

.mcat--tint {
	background: var(--c-off-white);
}

.mcat__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mcat__head {
	display: flex;
	gap: 24px;
	align-items: flex-end;
	justify-content: space-between;
}

.mcat__title {
	margin: 0;
	color: var(--c-charcoal);
	font-size: clamp(32px, 3.1746vw, 48px); /* 48 / 1512 */
	font-weight: var(--fw-bold);
	line-height: 1.2;
	text-transform: uppercase;
}

.mcat__sub {
	margin: 8px 0 0;
	color: var(--c-grey);
	font-size: 18px;
	font-weight: var(--fw-medium);
	line-height: 1.6;
}

.mcat__order {
	flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* 4. Cards                                                                    */
/* -------------------------------------------------------------------------- */

/*
 * Three 444px cards per 1380px row with 24px gaps: 444×3 + 24×2 = 1380.
 * A grid keeps the columns equal and lets list cards grow to their text.
 */
.mgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: start;
}

/* The list card spans differently, but both fit the same 3-col grid. */

.mcard {
	overflow: hidden;
	border: 1px solid var(--c-cream);
	border-radius: 12px;
	background: var(--c-off-white);
}

.mcard__media {
	position: relative;
}

.mcard__media img {
	display: block;
	object-fit: cover;
}

.mcard__badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 6px 12px;
	border: 1px solid var(--c-white);
	border-radius: var(--radius-pill);
	background: var(--c-purple);
	color: var(--c-white);
	font-size: 16px;
	font-weight: var(--fw-semibold);
	line-height: 1.2;
}

.mcard__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mcard__title {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	color: var(--c-charcoal);
	text-transform: none;
}

.mcard__tag {
	padding: 2px 10px;
	border-radius: var(--radius-pill);
	background: var(--c-purple);
	color: var(--c-white);
	font-size: 12px;
	font-weight: var(--fw-semibold);
	line-height: 1.6;
	text-transform: uppercase;
}

.mcard__desc {
	margin: 0;
	color: var(--c-grey);
	font-size: 14px;
	font-weight: var(--fw-medium);
	line-height: 1.5;
}

.mcard__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	align-items: center;
	justify-content: space-between;
}

.mcard__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The order link: an outline purple pill with a sliding arrow. */
.mcard__order {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	flex-shrink: 0;
	padding: 6px 12px;
	border: 1px solid var(--c-purple);
	border-radius: var(--radius-pill);
	color: var(--c-purple);
	font-size: 14px;
	font-weight: var(--fw-semibold);
	line-height: 1.6;
	text-transform: uppercase;
	transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.mcard__order:hover {
	background: var(--c-purple);
	color: var(--c-white);
}

.mcard__order-icon {
	width: 20px;
	height: 20px;
	transition: transform var(--duration) var(--ease);
}

.mcard__order:hover .mcard__order-icon {
	transform: translateX(3px);
}

/* --- Big card: image on top --- */

.mcard--big {
	display: flex;
	flex-direction: column;
}

.mcard--big .mcard__media {
	aspect-ratio: 444 / 270;
}

/* Absolutely fill the aspect box so every card image is the same height, no
 * matter the source photo's proportions. */
.mcard--big .mcard__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.mcard--big .mcard__body {
	flex: 1;
	justify-content: space-between;
	padding: 16px;
}

.mcard--big .mcard__title {
	font-size: 24px;
	font-weight: var(--fw-bold);
	line-height: 1.2;
}

/* Big-card meta reads as plain dark facts, per the design. */
.mcard--big .mcard__meta-item {
	color: var(--c-charcoal);
	font-size: 14px;
	font-weight: var(--fw-medium);
	line-height: 1.6;
}

/* --- List card: image on the left --- */

.mcard--list {
	display: flex;
	gap: 12px;
	padding: 12px;
}

.mcard--list .mcard__media {
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	overflow: hidden;
	border-radius: 8px;
}

.mcard--list .mcard__media img {
	width: 100%;
	height: 100%;
}

.mcard--list .mcard__body {
	flex: 1;
	min-width: 0;
	justify-content: space-between;
}

.mcard--list .mcard__title {
	font-size: 20px;
	font-weight: var(--fw-semibold);
	line-height: 1.3;
}

.mcard--list .mcard__badge {
	/* A list card's image is small — keep the badge proportionate. */
	top: 6px;
	right: 6px;
	padding: 2px 8px;
	font-size: 12px;
}

/* List-card meta reads as small purple pills. */
.mcard--list .mcard__meta-item {
	padding: 1px 10px;
	border: 1px solid rgb(102 75 186 / 35%);
	border-radius: var(--radius-pill);
	color: var(--c-purple);
	font-size: 13px;
	font-weight: var(--fw-medium);
	line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* 5. Responsive                                                               */
/* -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
	.mgrid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.mhero__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.mhero__actions {
		align-items: flex-start;
	}

	.mcat__head {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 600px) {
	.mgrid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 400px) {
	.mcard--list {
		flex-direction: column;
	}

	.mcard--list .mcard__media {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 10;
	}
}
