/**
 * Vienna Moose Lodge - Food & Beverage Menu Frontend Styles
 * Aligns with the Navy + Gold aesthetic. Supports hover expansions and zoom animations.
 */

:root {
	--fbm-navy:        #0a0f1e;
	--fbm-navy-mid:    #0f1b35;
	--fbm-navy-card:   #131f3a;
	--fbm-gold:        #d4a017;
	--fbm-gold-light:  #e8c547;
	--fbm-gold-glow:   rgba(212, 160, 23, 0.18);
	--fbm-white:       #f4f1ea;
	--fbm-white-soft:  rgba(244, 241, 234, 0.80);
	--fbm-transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Expand parent content wrapper on standard page template to allow full menu width */
.vm-single-content-wrap:has(.fbm-menu-wrapper),
.vm-single-content-wrap:has(.fbm-menu-wrapper) .wp-block-post-content,
.vm-single-content-wrap:has(.fbm-menu-wrapper) .entry-content {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Force direct Gutenberg child elements to stretch to full width on the Menu page */
.vm-single-content-wrap:has(.fbm-menu-wrapper) > :not(.alignleft):not(.alignright):not(.alignfull),
.vm-single-content-wrap:has(.fbm-menu-wrapper) .wp-block-post-content > :not(.alignleft):not(.alignright):not(.alignfull),
.vm-single-content-wrap:has(.fbm-menu-wrapper) .entry-content > :not(.alignleft):not(.alignright):not(.alignfull) {
	max-width: 100% !important;
	width: 100% !important;
}

.fbm-menu-wrapper {
	width: 100%;
	font-family: 'Work Sans', sans-serif;
	color: var(--fbm-white);
}

.fbm-menu-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 2rem 4rem 2rem;
}

/* ============================================================
   HEADER AREA
   ============================================================ */
/* Hide theme cover block (hero image) only on our menu page */
body.fbm-menu-page .wp-block-cover,
body:has(.fbm-menu-wrapper) .wp-block-cover {
	display: none !important;
}

.fbm-menu-header {
	position: relative;
	text-align: center;
	margin-bottom: 0; /* Align directly flush with the nav bar */
	background: var(--fbm-navy-mid);
	border-bottom: 1px solid rgba(212, 160, 23, 0.15);
	padding: 3.5rem 2rem; /* Reduced padding to remove extra space */
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0,0,0,0.3);
	width: 100%;
}

.fbm-header-watermark {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-family: 'Work Sans', sans-serif;
	font-size: clamp(180px, 28vw, 380px); /* Increased size */
	font-weight: 800;
	color: rgba(244, 241, 234, 0.05); /* Increased visibility to match screenshot */
	letter-spacing: 5px;
	z-index: 1;
	pointer-events: none;
	user-select: none;
	line-height: 1;
}

.fbm-menu-title {
	position: relative;
	z-index: 2;
	font-family: 'Belleza', serif;
	font-size: clamp(36px, 6vw, 54px);
	font-weight: 400;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--fbm-gold);
	margin: 0 0 0.8rem 0;
}

.fbm-title-rule {
	position: relative;
	z-index: 2;
	width: 80px;
	height: 3px;
	background: var(--fbm-gold);
	margin: 0.8rem auto 1.8rem auto;
	border-radius: 2px;
}

.fbm-menu-subtitle {
	position: relative;
	z-index: 2;
	font-size: clamp(16px, 2.5vw, 18px);
	line-height: 1.6;
	color: var(--fbm-white-soft);
	max-width: 650px;
	margin: 0 auto;
}

/* ============================================================
   SPECIALS BANNER
   ============================================================ */
.fbm-specials-banner {
	background: linear-gradient(135deg, var(--fbm-navy-card) 0%, var(--fbm-navy-mid) 100%);
	border: 1.5px solid var(--fbm-gold);
	border-radius: 12px;
	padding: 2.5rem;
	margin-bottom: 4rem;
	text-align: center;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--fbm-gold-glow);
	position: relative;
	overflow: hidden;
}

.fbm-specials-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	background: var(--fbm-gold);
	color: var(--fbm-navy);
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 1rem;
	text-transform: uppercase;
}

.fbm-specials-title {
	font-family: 'Belleza', serif;
	font-size: 28px;
	color: var(--fbm-white);
	margin: 0 0 1rem 0;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.fbm-specials-text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--fbm-white-soft);
	max-width: 700px;
	margin: 0 auto;
}

/* ============================================================
   JUMP NAVIGATION MENU
   ============================================================ */
.fbm-jump-nav {
	width: 100% !important;
	background: #1c1811 !important; /* Dark goldish-brown bar */
	border-top: 1px solid rgba(212, 160, 23, 0.18) !important;
	border-bottom: 1px solid rgba(212, 160, 23, 0.18) !important;
	padding: 1.2rem 2rem !important;
	margin-bottom: 0 !important;
	position: relative !important;
	z-index: 5 !important;
}

.fbm-jump-list {
	list-style: none !important;
	list-style-type: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 2.5rem !important;
}

.fbm-jump-item {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	list-style-type: none !important;
}

.fbm-jump-link {
	text-decoration: none !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: rgba(244, 241, 234, 0.65) !important;
	text-transform: uppercase !important;
	letter-spacing: 1.5px !important;
	transition: color 0.3s ease !important;
	display: inline-block !important;
}

.fbm-jump-link:hover,
.fbm-jump-link.fbm-active {
	color: var(--fbm-gold) !important;
}

/* ============================================================
   SECTIONS & TITLES
   ============================================================ */
.fbm-menu-section {
	margin-bottom: 3rem;
}

.fbm-section-title,
.fbm-menu-wrapper .fbm-section-title,
.vm-single-content-wrap h2.fbm-section-title {
	font-family: 'Belleza', serif !important;
	font-size: 28px !important;
	font-weight: 400 !important;
	text-transform: uppercase !important;
	letter-spacing: 1.5px !important;
	color: var(--fbm-gold) !important;
	margin-top: 0 !important;
	margin-bottom: 2.5rem !important;
	border: none !important;
	padding: 0 !important;
	position: relative;
	display: flex;
	align-items: center;
}

.fbm-section-title span {
	background: var(--fbm-navy); /* matches background to overlap line */
	padding-right: 20px;
	z-index: 2;
}

.fbm-section-title::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(212, 160, 23, 0.25);
	z-index: 1;
}

/* ============================================================
   FOOD GRID & CARDS
   ============================================================ */
.fbm-food-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 30px;
}

/* Default span: 3 items abreast (each takes 2 columns out of 6) */
.fbm-food-grid > .fbm-food-card {
	grid-column: span 2;
}

/* Flexible layout: desktop and tablet only */
@media (min-width: 769px) {
	/* 1 Item: spans the full width (6 columns) and uses horizontal card style */
	.fbm-food-grid > .fbm-food-card:only-child {
		grid-column: span 6 !important;
		flex-direction: row !important;
		align-items: stretch !important;
		min-height: 180px !important;
	}

	.fbm-food-grid > .fbm-food-card:only-child .fbm-food-image-wrapper {
		width: 240px !important;
		flex-shrink: 0 !important;
		height: auto !important;
		min-height: 180px !important;
	}

	.fbm-food-grid > .fbm-food-card:only-child .fbm-food-body {
		flex-grow: 1 !important;
		padding: 1.5rem !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: center !important;
	}

	/* 2 Items: fill the space side-by-side (each takes 3 columns out of 6, i.e., 50% width) */
	.fbm-food-grid:has(> .fbm-food-card:nth-child(2):last-child) > .fbm-food-card {
		grid-column: span 3 !important;
	}

	/* 4 Items: first 3 items are 3 abreast (span 2), 4th item breaks to new row and spans full width (span 6) in horizontal style */
	.fbm-food-grid:has(> .fbm-food-card:nth-child(4):last-child) > .fbm-food-card:nth-child(4):last-child {
		grid-column: span 6 !important;
		flex-direction: row !important;
		align-items: stretch !important;
		min-height: 180px !important;
	}

	.fbm-food-grid:has(> .fbm-food-card:nth-child(4):last-child) > .fbm-food-card:nth-child(4):last-child .fbm-food-image-wrapper {
		width: 240px !important;
		flex-shrink: 0 !important;
		height: auto !important;
		min-height: 180px !important;
	}

	.fbm-food-grid:has(> .fbm-food-card:nth-child(4):last-child) > .fbm-food-card:nth-child(4):last-child .fbm-food-body {
		flex-grow: 1 !important;
		padding: 1.5rem !important;
		display: flex !important;
		flex-direction: column !important;
		justify-content: center !important;
	}

	/* 5 Items: first 3 items are 3 abreast (span 2), 4th and 5th items go to new row and fill space side-by-side (span 3) */
	.fbm-food-grid:has(> .fbm-food-card:nth-child(5):last-child) > .fbm-food-card:nth-child(4),
	.fbm-food-grid:has(> .fbm-food-card:nth-child(5):last-child) > .fbm-food-card:nth-child(5) {
		grid-column: span 3 !important;
	}
}

.fbm-food-card {
	background: var(--fbm-navy-mid);
	border: 1px solid rgba(244, 241, 234, 0.08);
	border-radius: 12px;
	overflow: hidden;
	transition: transform var(--fbm-transition), border-color var(--fbm-transition), box-shadow var(--fbm-transition);
	display: flex;
	flex-direction: column;
	height: 100%;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.fbm-food-card:hover {
	transform: translateY(-5px);
	border-color: rgba(212, 160, 23, 0.4);
	box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 10px rgba(212, 160, 23, 0.1);
}

/* Image zoom transition */
.fbm-food-image-wrapper {
	width: 100%;
	height: 220px;
	overflow: hidden;
	position: relative;
}

.fbm-food-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fbm-food-card:hover .fbm-food-image {
	transform: scale(1.06);
}

.fbm-food-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.fbm-food-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin-bottom: 0.8rem;
}

.fbm-food-title,
.fbm-menu-wrapper .fbm-food-title,
.vm-single-content-wrap h3.fbm-food-title {
	font-family: 'Work Sans', sans-serif !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	color: var(--fbm-gold) !important;
	margin: 0 !important;
	letter-spacing: 0.5px !important;
	text-transform: none !important;
	flex-grow: 1;
	padding-right: 15px;
}

.fbm-food-price,
.fbm-menu-wrapper .fbm-food-price {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: var(--fbm-gold) !important;
	white-space: nowrap;
}

.fbm-food-desc {
	font-size: 14px;
	line-height: 1.6;
	color: var(--fbm-white-soft);
	margin: 0 0 1.2rem 0;
	flex-grow: 1;
}

/* Bubbles / Tags */
.fbm-food-bubbles {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fbm-bubble {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 4px 10px;
	border-radius: 4px;
}

/* Colored Bubbles Profiles */
.fbm-bubble-favorite {
	background-color: var(--fbm-gold-glow);
	color: var(--fbm-gold-light);
	border: 1px solid var(--fbm-gold);
}

.fbm-bubble-spicy {
	background-color: rgba(229, 62, 62, 0.15);
	color: #feb2b2;
	border: 1px solid rgba(229, 62, 62, 0.6);
}

.fbm-bubble-vegetarian {
	background-color: rgba(72, 187, 120, 0.15);
	color: #c6f6d5;
	border: 1px solid rgba(72, 187, 120, 0.6);
}

.fbm-bubble-custom {
	background-color: rgba(66, 153, 225, 0.15);
	color: #bee3f8;
	border: 1px solid rgba(66, 153, 225, 0.6);
}

.fbm-bubble-default {
	background-color: rgba(244, 241, 234, 0.08);
	color: var(--fbm-white-soft);
	border: 1px solid rgba(244, 241, 234, 0.2);
}

/* ============================================================
   BEVERAGES GRID LAYOUT
   ============================================================ */
.fbm-beverages-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.fbm-beverages-grid > .fbm-beverage-card {
	grid-column: span 1;
}

.fbm-beverage-card {
	background: var(--fbm-navy-mid);
	border: 1px solid rgba(244, 241, 234, 0.08);
	border-radius: 12px;
	overflow: hidden;
	transition: transform var(--fbm-transition), border-color var(--fbm-transition), box-shadow var(--fbm-transition);
	display: flex;
	flex-direction: column;
	height: 100%;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.fbm-beverage-card:hover {
	transform: translateY(-5px);
	border-color: rgba(212, 160, 23, 0.4);
	box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 10px rgba(212, 160, 23, 0.1);
}

.fbm-beverage-image-wrapper {
	width: 100%;
	height: 160px;
	overflow: hidden;
	position: relative;
}

.fbm-beverage-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fbm-beverage-card:hover .fbm-beverage-image {
	transform: scale(1.06);
}

.fbm-beverage-body {
	padding: 1.25rem 1rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.fbm-beverage-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin-bottom: 0.6rem;
}

.fbm-beverage-title {
	font-family: 'Work Sans', sans-serif !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: var(--fbm-gold) !important;
	margin: 0 !important;
	letter-spacing: 0.5px !important;
	text-transform: none !important;
	line-height: 1.2 !important;
	flex-grow: 1;
	padding-right: 5px;
}

.fbm-beverage-price {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: var(--fbm-gold) !important;
	white-space: nowrap;
}

.fbm-beverage-desc {
	font-size: 12px;
	line-height: 1.5;
	color: var(--fbm-white-soft);
	margin: 0 0 1rem 0;
	flex-grow: 1;
}

.fbm-beverage-bubbles {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* Responsive fixes */
@media (max-width: 1100px) {
	.fbm-beverages-grid {
		grid-template-columns: repeat(3, 1fr) !important;
	}
	.fbm-beverages-grid > .fbm-beverage-card {
		grid-column: span 1 !important;
	}
}

@media (max-width: 768px) {
	.fbm-food-grid {
		grid-template-columns: 1fr !important;
	}
	.fbm-food-grid > .fbm-food-card {
		grid-column: span 1 !important;
	}
	
	.fbm-beverages-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	.fbm-beverages-grid > .fbm-beverage-card {
		grid-column: span 1 !important;
	}
}

@media (max-width: 480px) {
	.fbm-beverages-grid {
		grid-template-columns: 1fr !important;
	}
	.fbm-beverages-grid > .fbm-beverage-card {
		grid-column: span 1 !important;
	}
}

/* Back to Top Link */
.fbm-back-to-top {
	text-align: right !important;
	margin-top: 1rem !important;
	border-top: 1px dashed rgba(244, 241, 234, 0.08) !important;
	padding-top: 0.5rem !important;
}

.fbm-top-link {
	font-size: 12px !important;
	font-weight: 600 !important;
	color: var(--fbm-gold) !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	text-transform: uppercase !important;
	letter-spacing: 1.5px !important;
	transition: color 0.3s ease, transform 0.2s ease !important;
}

.fbm-top-link:hover {
	color: var(--fbm-gold-light) !important;
	transform: translateY(-2px) !important;
}

.fbm-top-link svg {
	transition: transform 0.2s ease !important;
}

.fbm-top-link:hover svg {
	transform: translateY(-2px) !important;
}

/* ============================================================
   ALLERGEN WARNING NOTICE
   ============================================================ */
.fbm-allergen-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: rgba(212, 160, 23, 0.04);
	border: 1px solid rgba(212, 160, 23, 0.20);
	border-radius: 8px;
	padding: 1.2rem 1.6rem;
	margin-top: 4rem;
	margin-bottom: 2rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.fbm-allergen-icon {
	color: var(--fbm-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.fbm-allergen-text {
	font-size: 13px;
	line-height: 1.6;
	color: var(--fbm-white-soft);
	font-style: italic;
}

@media (max-width: 600px) {
	.fbm-allergen-card {
		flex-direction: column;
		text-align: center;
		padding: 1.2rem;
		gap: 12px;
	}
}

/* Single and Bucket Pricing Layout */
.fbm-price-sep {
	opacity: 0.4;
	font-weight: 300 !important;
	padding: 0 4px;
}

.fbm-price-bucket {
	font-size: 0.85em !important;
	font-weight: 600 !important;
	opacity: 0.9;
}
