/* Restaurant Menu — Frontend Styles
   MOBILE-FIRST: base rules below target small screens (people
   scanning a QR code on their phone), then a single min-width query
   scales layout up for tablet/desktop. No border-radius anywhere
   (intentionally sharp corners for now). */

.rm-menu {
	--rm-menu-bg: #ffffff;
	--rm-page-bg: #0073a2;
	--rm-accent: #fcb82f;
	--rm-text: #000000;
	--rm-secondary-text: #535353;
	--rm-category-heading: #000000;
	--rm-price-color: #000000;
	--rm-divider-color: rgba(0, 0, 0, 0.2);

	font-family: "Google Sans", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--rm-page-bg);
	color: var(--rm-text);
	padding: 16px 12px 24px;
	box-sizing: border-box;
	max-width: 900px;
	margin: 0 auto;
	overflow-x: hidden;
	position: relative;
}

.rm-menu *,
.rm-menu *::before,
.rm-menu *::after {
	box-sizing: inherit;
}

/* Header — sits directly on the page background, not a card, so its
   controls use fixed light tones rather than the card text variables. */
.rm-menu-header {
	margin-bottom: 16px;
}

.rm-menu-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.rm-menu-header-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	text-align: left;
	flex: 1 1 auto;
}

.rm-menu-logo {
	max-width: 44px;
	max-height: 44px;
	width: auto;
	height: auto;
	flex-shrink: 0;
	display: block;
}

.rm-menu-title {
	font-size: clamp(22px, 7vw, 44px);
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0;
	color: var(--rm-accent);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Hamburger button */
.rm-hamburger {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	cursor: pointer;
	padding: 0;
}

.rm-hamburger span {
	display: block;
	width: 18px;
	height: 2px;
	background: #ffffff;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.rm-hamburger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.rm-hamburger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.rm-hamburger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.rm-hamburger:focus-visible {
	outline: 2px solid var(--rm-accent);
	outline-offset: 2px;
}

/* Quick Veg / Non-Veg filter bar — always visible, not tucked in the flyout */
.rm-food-filter {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.rm-food-filter-btn {
	flex: 1;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #ffffff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	padding: 10px 8px;
	cursor: pointer;
	text-align: center;
	min-height: 40px;
}

.rm-food-filter-btn.rm-food-filter-active {
	background: var(--rm-accent);
	border-color: var(--rm-accent);
	color: #1a1a1a;
}

.rm-food-filter-btn:focus-visible {
	outline: 2px solid var(--rm-accent);
	outline-offset: 2px;
}

/* Flyout: backdrop + sliding panel (white card style, matching the menu cards) */
.rm-flyout {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.rm-flyout[hidden] {
	display: none;
}

.rm-flyout-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.rm-flyout-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(84vw, 320px);
	background: var(--rm-menu-bg);
	box-shadow: -8px 0 24px rgba(0, 0, 0, 0.35);
	transform: translateX(100%);
	transition: transform 0.25s ease;
	display: flex;
	flex-direction: column;
	padding: 16px;
	overflow-y: auto;
}

.rm-flyout.rm-flyout-open .rm-flyout-backdrop {
	opacity: 1;
}

.rm-flyout.rm-flyout-open .rm-flyout-panel {
	transform: translateX(0);
}

.rm-flyout-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.rm-flyout-panel-title {
	color: var(--rm-text);
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.rm-flyout-close {
	width: 32px;
	height: 32px;
	border: none;
	background: rgba(0, 0, 0, 0.06);
	color: var(--rm-text);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.rm-flyout-close:focus-visible {
	outline: 2px solid var(--rm-page-bg);
	outline-offset: 2px;
}

.rm-flyout-nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rm-nav-btn {
	background: transparent;
	border: 1px solid var(--rm-divider-color);
	color: var(--rm-text);
	padding: 11px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	font-family: inherit;
}

.rm-nav-btn:hover {
	border-color: var(--rm-accent);
}

.rm-nav-btn.rm-nav-active {
	background: var(--rm-accent);
	border-color: var(--rm-accent);
	color: #1a1a1a;
}

.rm-nav-btn:focus-visible {
	outline: 2px solid var(--rm-page-bg);
	outline-offset: 2px;
}

/* Menu body: stack of white category cards */
.rm-menu-body {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rm-category {
	background: var(--rm-menu-bg);
	padding: 8px 14px;
}

.rm-category-heading {
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--rm-category-heading);
	padding: 14px 0 6px;
	margin: 0;
}

.rm-divider {
	height: 1px;
	background: var(--rm-divider-color);
	border: none;
	margin: 0 0 12px;
}

/* Veg / Non-Veg subsection within a category.
   --rm-price-col is shared by the header row and every item row
   below via the same grid-template-columns, so the "500 g" / "1 Kg"
   labels are guaranteed to sit exactly above their numbers — on any
   screen size — instead of two independent flex rows drifting out
   of sync. */
.rm-food-group {
	--rm-price-col: 60px;
	--rm-row-gap: 8px;
	margin-bottom: 8px;
}

.rm-food-group:last-child {
	margin-bottom: 0;
}

.rm-food-group-heading {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0;
	padding: 8px 0;
}

.rm-food-group-heading-veg {
	color: #2e9e4f;
}

.rm-food-group-heading-nonveg {
	color: #d1373f;
}

/* Column-header row: "500 g" / "1 Kg" labels above each subsection's items */
.rm-menu-header-row,
.rm-menu-item {
	display: grid;
	grid-template-columns: 1fr var(--rm-price-col) var(--rm-price-col);
	column-gap: var(--rm-row-gap);
	align-items: start;
}

.rm-menu-header-row {
	padding: 6px 0;
	border-bottom: 1px solid var(--rm-divider-color);
}

/* Spans the item-details column so the row only needs two visible
   labels, positioned in the exact same grid columns (2 and 3) the
   price numbers occupy below. */
.rm-col-spacer {
	grid-column: 1;
}

.rm-col-label {
	text-align: right;
	font-size: 12px;
	font-weight: 700;
	color: var(--rm-text);
	overflow-wrap: break-word;
}

.rm-col-label-plate {
	grid-column: 2;
}

.rm-col-label-kg {
	grid-column: 3;
}

/* Menu item row: details, two right-aligned price columns. Each cell
   is placed on an explicit grid-column so alignment holds regardless
   of content. */
.rm-menu-item {
	padding: 12px 0;
	border-bottom: 1px solid var(--rm-divider-color);
}

.rm-food-group .rm-menu-item:last-child {
	border-bottom: none;
}

.rm-item-content {
	grid-column: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rm-item-name {
	font-size: 16px;
	font-weight: 500;
	color: var(--rm-text);
	line-height: 1.3;
	margin: 0;
	overflow-wrap: break-word;
}

.rm-item-desc {
	font-size: 13px;
	color: var(--rm-secondary-text);
	line-height: 1.5;
	margin: 0;
	overflow-wrap: break-word;
}

.rm-item-price-col {
	text-align: right;
	font-size: 14px;
	font-weight: 600;
	color: var(--rm-price-color);
	overflow-wrap: break-word;
}

.rm-item-price-plate {
	grid-column: 2;
}

.rm-item-price-kg {
	grid-column: 3;
}

/* Empty states */
.rm-empty-state {
	text-align: center;
	color: var(--rm-secondary-text);
	font-size: 14px;
	padding: 30px 10px;
	margin: 0;
}

.rm-empty-state-category {
	text-align: left;
	padding: 0 0 14px;
}

/* Bottom CTA section — accent-coloured for contrast against the page/cards */
.rm-cta {
	background: var(--rm-accent);
	padding: 22px 16px;
	margin-top: 20px;
	text-align: center;
}

.rm-cta-title {
	font-size: clamp(17px, 5.5vw, 24px);
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 14px;
}

.rm-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--rm-page-bg);
	color: #ffffff;
	font-weight: 700;
	font-size: 16px;
	padding: 13px 28px;
	text-decoration: none;
	min-height: 44px;
	width: 100%;
	max-width: 320px;
}

.rm-cta-icon {
	font-size: 18px;
	line-height: 1;
}

/* Tablet / desktop: scale up spacing and switch the item row to the
   fixed-width table layout (image | details | 140px | 140px). */
@media ( min-width: 601px ) {
	.rm-menu {
		padding: 36px 32px 40px;
	}

	.rm-menu-header {
		margin-bottom: 22px;
	}

	.rm-menu-logo {
		max-width: 56px;
		max-height: 56px;
	}

	.rm-hamburger {
		width: 42px;
		height: 42px;
	}

	.rm-hamburger span {
		width: 20px;
	}

	.rm-menu-body {
		gap: 30px;
	}

	.rm-category {
		padding: 10px 28px;
	}

	.rm-category-heading {
		font-size: 26px;
		padding: 18px 0;
	}

	.rm-food-group-heading {
		font-size: 14px;
		padding: 10px 0;
	}

	/* Alignment between the header row and item rows is guaranteed by
	   the shared grid-template-columns in .rm-menu-header-row /
	   .rm-menu-item — scaling up to the desktop table layout is just
	   a matter of changing these two custom properties. */
	.rm-food-group {
		--rm-price-col: 140px;
		--rm-row-gap: 24px;
	}

	.rm-menu-item {
		padding: 15px 0;
	}

	.rm-item-content {
		gap: 8px;
	}

	.rm-col-label {
		font-size: 20px;
	}

	.rm-item-name {
		font-size: 22px;
	}

	.rm-item-desc {
		font-size: 16px;
	}

	.rm-item-price-col {
		font-size: 20px;
		font-weight: 500;
	}

	.rm-cta {
		padding: 28px 20px;
		margin-top: 30px;
	}

	.rm-cta-btn {
		width: auto;
		padding: 14px 32px;
	}
}
