/* ==========================================================================
   RBM - MENU OBRAZKOWE (STYL BUCZA + KOLORYSTYKA MAŁOPOLSKI + DARK MODE)
   ========================================================================== */
.rbm-imenu,
.rbm-imenu * {
	box-sizing: border-box;
}

.rbm-imenu {
	--rbm-accent: #E5007E;
	--rbm-imenu-radius: 16px;
	--rbm-navy: #0b2545;
	--rbm-surface: #ffffff;
	--rbm-border: rgba(11, 37, 69, 0.1);
	--rbm-shadow-sm: 0 6px 20px rgba(11, 37, 69, 0.11);
	--rbm-shadow: 0 14px 32px rgba(11, 37, 69, 0.22);
	--rbm-font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--rbm-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

	width: 100%;
	font-family: var(--rbm-font-sans);
	color: var(--rbm-navy);
}

html.rbm-dark-mode .rbm-imenu {
	--rbm-navy: #f1f5f9;
	--rbm-surface: #132038;
	--rbm-border: rgba(255, 255, 255, 0.14);
	--rbm-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.38);
	--rbm-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

/* Nagłówek sekcji ("| Poznaj Bucze") */
.rbm-imenu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.rbm-imenu-header-left {
	display: flex;
	align-items: stretch;
	gap: 14px;
	min-width: 0;
}

.rbm-imenu-accent-bar {
	width: 5px;
	align-self: stretch;
	min-height: 28px;
	border-radius: 999px;
	background: linear-gradient(180deg, #f3168e 0%, var(--rbm-accent) 100%);
	flex-shrink: 0;
}

.rbm-imenu-sec-title {
	margin: 0 !important;
	padding: 1px 0;
	font-family: var(--rbm-font-serif);
	font-style: italic;
	font-weight: 600;
	font-size: clamp(24px, 2.8vw, 34px);
	line-height: 1.15;
	color: var(--rbm-navy);
}

/* Opcjonalny ozdobny napis po prawej ("Bucze – tu dobrze się żyje!") */
.rbm-imenu-slogan-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 6px 18px 4px;
	border-radius: 999px;
	background: var(--rbm-surface);
	border: 1px solid var(--rbm-border);
	box-shadow: 0 4px 14px rgba(11, 37, 69, 0.06);
	flex-shrink: 0;
}

.rbm-imenu-slogan-txt {
	font-family: var(--rbm-font-serif);
	font-style: italic;
	font-weight: 600;
	font-size: 16px;
	color: var(--rbm-accent);
	line-height: 1.2;
	white-space: nowrap;
}

.rbm-imenu-slogan-wave {
	width: 88%;
	height: 9px;
	margin-top: 2px;
}

/* Siatka kafelków obrazkowych */
.rbm-imenu-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.rbm-imenu-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 185px;
	border-radius: var(--rbm-imenu-radius);
	overflow: hidden;
	background: #0b1324;
	text-decoration: none !important;
	box-shadow: var(--rbm-shadow-sm);
	border: 1px solid var(--rbm-border);
	isolation: isolate;
	transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.rbm-imenu-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rbm-shadow);
}

.rbm-imenu-bg {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	z-index: 1;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.rbm-imenu-card:hover .rbm-imenu-bg {
	transform: scale(1.07);
}

/* Czytelna ciemna mgiełka u dołu kafelka */
.rbm-imenu-scrim {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(
		180deg,
		rgba(11, 19, 36, 0.04) 0%,
		rgba(11, 19, 36, 0.16) 44%,
		rgba(11, 19, 36, 0.78) 100%
	);
	transition: background 0.26s ease;
}

.rbm-imenu-card:hover .rbm-imenu-scrim {
	background: linear-gradient(
		180deg,
		rgba(11, 19, 36, 0.08) 0%,
		rgba(11, 19, 36, 0.24) 40%,
		rgba(11, 19, 36, 0.86) 100%
	);
}

/* Ikona + tytuł + strzałka */
.rbm-imenu-content {
	position: relative;
	z-index: 4;
	width: 100%;
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 16px 16px 20px;
	color: #ffffff;
}

.rbm-imenu-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	color: #ffffff;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.rbm-imenu-icon svg,
.rbm-imenu-icon i {
	width: 26px;
	height: 26px;
	font-size: 24px;
	display: block;
}

.rbm-imenu-label {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.rbm-imenu-arrow {
	display: inline-block;
	transition: transform 0.22s ease;
}

.rbm-imenu-card:hover .rbm-imenu-arrow {
	transform: translateX(4px);
}

/* Kolorowa dolna belka akcentu Małopolski (jak na grafice poznaj.jpg) */
.rbm-imenu-bottom-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 6px;
	z-index: 5;
	background: var(--tile-bar, #E5007E);
	transition: height 0.22s ease;
}

.rbm-imenu-card:hover .rbm-imenu-bottom-bar {
	height: 8px;
}

/* Responsywność */
@media (max-width: 767px) {
	.rbm-imenu-header {
		flex-wrap: wrap;
		gap: 10px;
		margin-bottom: 14px;
	}

	.rbm-imenu-slogan-badge {
		display: none;
	}

	.rbm-imenu-accent-bar {
		min-height: 24px;
	}

	.rbm-imenu-content {
		padding: 12px 11px 15px;
		gap: 8px;
	}

	.rbm-imenu-icon {
		width: 22px;
		height: 22px;
	}

	.rbm-imenu-icon svg,
	.rbm-imenu-icon i {
		width: 20px;
		height: 20px;
		font-size: 19px;
	}

	.rbm-imenu-label {
		font-size: 13.5px;
		gap: 5px;
	}

	.rbm-imenu-bottom-bar {
		height: 5px;
	}
}