/**
 * Food Menu page — the tabbed board.
 *
 * A course tab bar over two columns of photographed dish cards on the ink
 * ground, closed by a cream allergen strip. Loaded after brewhub.css, so the
 * few shared classes it touches (.bh-price, .bh-pill) are refined here rather
 * than in the base sheet.
 *
 * @package BrewHub
 */

/* Board ------------------------------------------------------------------- */

.bh-menupage {
	background: var(--bh-ink);
	padding-block: 4rem 5.5rem;
}

.bh-menupage__intro {
	max-width: 46rem;
	margin: 0 auto 2.6rem;
	text-align: center;
}

.bh-menupage__intro .bh-lotus {
	display: block;
	margin: 0 auto 1rem;
	opacity: 0.9;
}

.bh-menupage__intro p {
	margin: 0;
	color: var(--bh-sand);
	font-size: 1.02rem;
	line-height: 1.75;
}

.bh-menupage__intro p + p {
	margin-top: 0.55rem;
}

/* Course tabs ------------------------------------------------------------- */

.bh-menutabs {
	margin-bottom: 2.8rem;
}

/*
 * The functional menu tab bar is left-aligned and scrolls on small screens,
 * so the "ruled" variant's decorative flanking lines have nothing to centre
 * against and the left one renders as a stray dash. Those rules belong to the
 * home page's centred pills only; suppress them here at every width.
 */
body.bh .bh-menutabs.bh-pills--ruled::before,
body.bh .bh-menutabs.bh-pills--ruled::after {
	display: none;
}

.bh-menutabs .bh-pill {
	white-space: nowrap;
}

/*
 * The active tab is the primary action, so it takes the oxblood field the
 * brand layer gives every control — with the cream text that field's own
 * buttons carry, since ink on oxblood cannot be read.
 */
body.bh .bh-menutabs .bh-pill[aria-selected='true'] {
	background: var(--bh-oxblood);
	border-color: var(--bh-oxblood);
	color: var(--bh-cream);
	box-shadow: 0 12px 26px -18px rgba(110, 43, 46, 0.9);
}

.bh-menupage__panel {
	display: block;
}

/* The trap: a panel with a display value ignores [hidden] unless told. */
.bh-menupage__panel[hidden] {
	display: none;
}

.bh-menupage__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 1.4rem 3rem;
	align-items: end;
	padding-bottom: 1.4rem;
	margin-bottom: 2.4rem;
	border-bottom: 1px solid var(--bh-border);
}

.bh-menupage__head .bh-eyebrow {
	margin-bottom: 0.55rem;
}

.bh-menupage__head .bh-display {
	font-size: clamp(1.9rem, 3.2vw, 2.6rem);
	margin: 0;
}

.bh-menupage__desc {
	margin: 0;
	color: var(--bh-sand);
	font-size: 0.95rem;
	line-height: 1.7;
	max-width: 34rem;
	justify-self: end;
}

/* Dish cards -------------------------------------------------------------- */

.bh-menugrid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 2.6rem;
}

.bh-dish {
	display: grid;
	grid-template-columns: 13.5rem minmax(0, 1fr);
	gap: 1.5rem;
	align-items: center;
	padding: 0.9rem;
	border: 1px solid transparent;
	border-radius: 14px;
	transition: var(--bh-ease);
}

.bh-dish:hover {
	border-color: var(--bh-gold-soft);
	background: rgba(239, 231, 221, 0.03);
}

.bh-dish__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	background: var(--bh-field);
	aspect-ratio: 4 / 3;
}

/* The anchor is now inside the frame rather than being it, so it has to fill it. */
.bh-dish__shot {
	display: block;
	width: 100%;
	height: 100%;
}

.bh-dish__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(200deg, rgba(22, 17, 15, 0) 45%, rgba(22, 17, 15, 0.55) 100%);
	pointer-events: none;
}

.bh-dish__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.6s ease;
}

.bh-dish:hover .bh-dish__media img {
	transform: scale(1.07);
}

.bh-dish__badge {
	position: absolute;
	z-index: 1;
	top: 0.7rem;
	left: 0.7rem;
	background: var(--bh-gold);
	color: var(--bh-ink);
	font-family: var(--bh-body);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 0.24rem 0.66rem;
}

.bh-dish__body {
	min-width: 0;
}

.bh-dish__line {
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
}

.bh-dish .bh-dish__name {
	font-family: var(--bh-display);
	font-size: 1.32rem;
	line-height: 1.2;
	margin: 0;
	min-width: 0;
	/* min-width:0 lets the box shrink below its content; without this a long
	   title would then paint outside it and extend the document's scroll box. */
	overflow-wrap: anywhere;
}

.bh-dish .bh-dish__name a {
	color: var(--bh-cream);
	transition: var(--bh-ease);
}

.bh-dish .bh-dish__name a:hover {
	color: var(--bh-gold);
}

.bh-dish__dots {
	flex: 1;
	min-width: 1.5rem;
	border-bottom: 1px dashed var(--bh-border);
	transform: translateY(-4px);
}

.bh-dish__line .bh-price {
	color: var(--bh-gold);
	white-space: nowrap;
	font-size: 1rem;
}

.bh-dish__note {
	margin: 0.5rem 0 0;
	color: var(--bh-sand);
	font-size: 0.88rem;
	line-height: 1.65;
}

/* Nothing on the board yet ------------------------------------------------ */

.bh-menupage__empty {
	max-width: 40rem;
	margin: 0 auto;
	text-align: center;
	padding: 3rem 1rem 0;
	border-top: 1px solid var(--bh-border);
}

.bh-menupage__empty p {
	margin: 0;
	color: var(--bh-sand);
}

/* Allergens + booking strip (light ground — every colour stated) ----------- */

.bh-menucoda {
	background: var(--bh-cream);
	color: #5a4c41;
	padding-block: 3.4rem;
}

.bh-menucoda__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: 2rem 3rem;
	align-items: center;
}

.bh-menucoda__label {
	font-family: var(--bh-body);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bh-gold-deep);
	margin: 0 0 0.7rem;
}

/*
 * No `.bh-menucoda__note p` rule here on purpose. A class+type selector scores
 * (0,1,1) and would outrank both `.bh-menucoda__label` and
 * `.bh-menucoda__where` at (0,1,0) — the gold label and the ink address line
 * would both silently collapse to the body brown. `.bh-menucoda` already sets
 * that brown and it inherits, and nothing in the cascade declares a bare
 * `p { color }` to block the inheritance.
 */
.bh-menucoda__body {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.75;
	max-width: 46rem;
}

.bh-menucoda__where {
	margin: 0.9rem 0 0;
	padding-top: 0.9rem;
	border-top: 1px solid rgba(22, 17, 15, 0.16);
	font-family: var(--bh-body);
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	color: #16110f;
}

.bh-menucoda__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	justify-content: flex-end;
}

/* The primary button keeps its oxblood field from the brand layer; only the
   outline button needs restating for the cream ground. */
.bh-menucoda__actions .bh-btn--ghost {
	border-color: rgba(22, 17, 15, 0.24);
	color: #16110f;
}

.bh-menucoda__actions .bh-btn--ghost:hover {
	border-color: var(--bh-terracotta);
	color: var(--bh-terracotta);
}

/* Narrower --------------------------------------------------------------- */

@media (max-width: 1024px) {
	.bh-dish {
		grid-template-columns: 11rem minmax(0, 1fr);
		gap: 1.1rem;
	}

	.bh-dish .bh-dish__name {
		font-size: 1.2rem;
	}

	/* Too little room left for a leader — the price simply holds the right
	   edge, which lines the column of prices up anyway. */
	.bh-dish__dots {
		display: none;
	}

	.bh-dish__line .bh-price {
		margin-left: auto;
	}
}

@media (max-width: 900px) {
	.bh-menupage__head {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.bh-menupage__desc {
		justify-self: start;
	}

	/*
	 * Two dish columns stop working here, not at 780: the card is a fixed
	 * 11rem plate beside its text, so at 900px each text column is already
	 * down to ~180px and shrinking fast. One column gives every plate the
	 * full shell width instead.
	 */
	.bh-menugrid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.4rem;
	}
}

@media (max-width: 780px) {
	.bh-menutabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
		padding-bottom: 0.4rem;
		margin-inline: -1.5rem;
		padding-inline: 1.5rem;
	}

	.bh-menutabs::-webkit-scrollbar {
		display: none;
	}

	.bh-menutabs.bh-pills--ruled::before,
	.bh-menutabs.bh-pills--ruled::after {
		display: none;
	}

	.bh-menucoda__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.bh-menucoda__actions {
		justify-content: flex-start;
	}
}

@media (max-width: 560px) {
	.bh-dish {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.9rem;
	}

	.bh-dish__media {
		aspect-ratio: 16 / 9;
	}

	.bh-dish__line {
		flex-wrap: wrap;
		gap: 0.4rem 0.7rem;
	}

	.bh-dish__dots {
		display: none;
	}

	.bh-dish__line .bh-price {
		margin-left: auto;
	}
}

/* "What We're Known For" — the photo-free highlights band that replaced the
   rated photo grid. Three columns of real dishes and prices on the cream
   panel, reusing the menu's dotted-leader price rows. */
body.bh .bh-signature__lede {
	max-width: 46rem;
	margin: 0 auto clamp(2.4rem, 5vw, 3.5rem);
	text-align: center;
	color: var(--bh-ink);
	opacity: 0.75;
	font-size: 1.05rem;
	line-height: 1.7;
}

body.bh .bh-signature__cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}

body.bh .bh-signature__course {
	margin: 0 0 0.4rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--bh-border);
	font-family: var(--bh-display);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--bh-ink);
}

/* The dotted-leader rows sit flush in this context — no card frame. */
body.bh .bh-signature__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.bh .bh-signature__list li {
	padding: 0.85rem 0;
	border: 0;
	border-bottom: 1px solid var(--bh-border);
	background: none;
}

body.bh .bh-signature__list li:last-child {
	border-bottom: 0;
}

body.bh .bh-signature__list h4 {
	margin: 0;
	font-family: var(--bh-display);
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--bh-ink);
}

body.bh .bh-signature__list .bh-price {
	color: var(--bh-oxblood);
	font-weight: 600;
	white-space: nowrap;
}

body.bh .bh-signature__cta {
	margin-top: clamp(2.4rem, 5vw, 3.5rem);
	text-align: center;
}

@media (max-width: 860px) {
	body.bh .bh-signature__cols {
		grid-template-columns: 1fr;
		gap: 2.4rem;
	}
}
