/* ==================================================================
   Menu page — qhfnb theme
   Notice bar · tabs · category sections · item cards · CTA.
   Consumes :root tokens from style.css only — nothing redefined here.
   Mobile-first; grids stack per spec breakpoints.
   ================================================================== */

/* ---------- Hero (page variant) ---------- */

.qh-menu-hero .qh-container {
	position: relative;
	z-index: 1;
}

.qh-menu-hero-zh {
	margin: 1.1rem 0 0;
	font-size: 15px;
	letter-spacing: .35em;
}

/* ---------- Notice bar ---------- */

.qh-menu-notice {
	background: #0C0A07;
	border-top: 1px solid var(--qh-line-soft);
	border-bottom: 1px solid var(--qh-line-soft);
	padding: 1.4rem 0;
	text-align: center;
}

.qh-menu-notice p {
	margin: 0 auto;
	max-width: 760px;
	font-family: var(--qh-font-body);
	font-weight: 300;
	font-size: 14px;
	line-height: 1.75;
	color: var(--qh-body);
}

.qh-menu-notice-gold {
	color: var(--qh-gold);
}

/* ---------- Tabs row ---------- */

.qh-menu-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: clamp(3rem, 6vw, 4.75rem);
}

.qh-tab {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: 1px solid var(--qh-line);
	border-radius: 0;
	color: var(--qh-cream);
	font-family: var(--qh-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	padding: 13px 22px;
	transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}

.qh-tab .qh-zh {
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .08em;
}

.qh-tab:hover {
	border-color: var(--qh-gold);
	color: var(--qh-gold);
}

.qh-tab:focus-visible {
	outline: 1px solid var(--qh-gold);
	outline-offset: 3px;
}

.qh-tab.active {
	background: var(--qh-gold);
	border-color: var(--qh-gold);
	color: var(--qh-ink);
}

.qh-tab.active .qh-zh {
	color: var(--qh-ink);
}

/* ---------- Category sections ---------- */

.qh-menu-cat {
	margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.qh-menu-cat:last-child {
	margin-bottom: 0;
}

/* No-JS fallback: all four categories render stacked (above).
   main.js adds .js-tabs to the .qh-menu wrapper on init — from then on
   only the .active category is shown; .is-active honoured as an alias. */
.qh-menu.js-tabs .qh-menu-cat {
	display: none;
}

.qh-menu.js-tabs .qh-menu-cat.active,
.qh-menu.js-tabs .qh-menu-cat.is-active {
	display: block;
}

.qh-menu-cat-head {
	margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.qh-menu-cat-head .qh-display {
	margin: 0;
}

.qh-menu-cat-zh {
	font-size: 15px;
	font-weight: 400;
	letter-spacing: .14em;
	margin-left: .55em;
	white-space: nowrap;
}

.qh-menu-cat-rule {
	display: block;
	width: 36px;
	height: 2px;
	background: var(--qh-gold);
	margin: 18px 0 0;
}

/* ---------- Item cards (2-col grid, stack <= 820px) ---------- */

.qh-menu-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

@media (min-width: 821px) {
	.qh-menu-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}
}

.qh-menu-item {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: border-color .3s ease, transform .3s ease;
}

.qh-menu-item:hover {
	border-color: var(--qh-line);
	transform: translateY(-3px);
}

.qh-menu-item-img {
	display: block;
	width: 100%;
	height: 190px;
	object-fit: cover;
}

@media (min-width: 521px) {
	.qh-menu-item {
		flex-direction: row;
		align-items: stretch;
	}

	.qh-menu-item-img {
		width: 150px;
		height: 150px;
		flex: 0 0 150px;
		align-self: center;
	}
}

.qh-menu-item-body {
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
	flex: 1 1 auto;
}

.qh-menu-item .qh-badge {
	margin-bottom: 8px;
}

.qh-menu-item-zh {
	margin: 0 0 3px;
	font-size: 13px;
	letter-spacing: .1em;
}

.qh-menu-item-name {
	margin: 0 0 7px;
	font-family: var(--qh-font-display);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--qh-cream);
}

.qh-menu-item-desc {
	margin: 0;
	font-family: var(--qh-font-body);
	font-weight: 300;
	font-size: 14px;
	line-height: 1.65;
	color: var(--qh-body);
}

/* Keep the 150x150 crop but let very narrow desktop cards breathe */
@media (min-width: 521px) and (max-width: 980px) {
	.qh-menu-item-body {
		padding: 18px 20px;
	}
}

/* ---------- CTA ---------- */

.qh-menu-cta {
	background: var(--qh-bg-2);
	text-align: center;
}

.qh-menu-cta .qh-lead {
	margin-left: auto;
	margin-right: auto;
}

.qh-menu-cta-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 2.5rem;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	.qh-tab,
	.qh-menu-item {
		transition: none;
	}

	.qh-menu-item:hover {
		transform: none;
	}
}
