/*
 * Restaurant: the offer quick-nav, the game-meat feature, the Medvedja večerja
 * band, the pasta cards, and the menu tabs.
 */

/* --- The offer, from the first screen ----------------------------------- */

/*
 * Deliberately quiet. This sits directly under the page lead, above the first
 * photograph, and its job is to be findable rather than to be the loudest thing
 * on the screen — the heading above it is still the page's opening statement.
 * So: the same uppercase micro-type as the menu tabs it leads to, a hairline
 * rule to separate it from the lead, and no filled buttons.
 */
.offer-quicknav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(26, 42, 30, 0.1);
}

.offer-quicknav__label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-stone);
}

/*
 * `max-width` so the row can never run under the floating WhatsApp button.
 *
 * That button is fixed to the bottom-right corner and is about 3.5rem across
 * with its offset. The pills are centred, so on a phone they already stop well
 * short of it — but "already" is a property of these four labels, and the tabs
 * are content that the client edits. A fifth entry, or a longer name, would
 * widen the row until the last pill slid under the button. The cap keeps that
 * from ever being one edit away.
 */
.offer-quicknav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 0.75rem;
	max-width: min(100%, 52rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 767px) {
	.offer-quicknav__list {
		max-width: calc(100% - 4.5rem);
	}
}

.offer-quicknav__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	border: 1px solid rgba(26, 42, 30, 0.14);
	border-radius: 999px;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-forest);
	transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.offer-quicknav__link svg {
	flex: none;
	width: 0.875rem;
	height: 0.875rem;
}

.offer-quicknav__link:hover,
.offer-quicknav__link:focus-visible {
	border-color: var(--wp--preset--color--brand-wood);
	background: rgba(255, 255, 255, 0.6);
	color: var(--wp--preset--color--brand-wood);
}

.rest-game .feature {
	flex-direction: column-reverse;
}

.rest-game .feature__body {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.rest-game .feature__body > * + * {
	margin-top: 0;
}

.rest-game .section-body strong {
	color: var(--wp--preset--color--brand-wood);
	font-weight: 600;
}

@media (min-width: 1024px) {
	.rest-game .feature {
		flex-direction: row;
	}
}

/* --- Medvedja večerja --------------------------------------------------- */

.rest-bear {
	padding-block: 6rem;
	background: var(--wp--preset--color--brand-bark-deep);
	color: var(--wp--preset--color--brand-cream);
	scroll-margin-top: 6rem;
}

.rest-bear__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.2;
	mix-blend-mode: overlay;
}

.rest-bear__backdrop img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(1px);
}

.rest-bear__wash {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(to bottom, rgba(24, 15, 8, 0.9), transparent, rgba(24, 15, 8, 0.95));
}

.rest-bear__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem;
	max-width: 56rem;
	text-align: center;
}

.rest-bear__lead {
	max-width: 42rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.125rem;
	line-height: 1.7;
	color: rgba(245, 240, 232, 0.9);
}

.rest-bear__note {
	max-width: 36rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.875rem;
	line-height: 1.7;
	color: rgba(245, 240, 232, 0.75);
}

/*
 * The photography carries this section, so it is allowed to fill it.
 *
 * It was capped at 42rem inside a 56rem column — narrower than the paragraph
 * above it, and, at the 21:9 the old ratio gave it, shorter than the food
 * gallery further down the same page. A section whose whole point is a special
 * occasion had the smallest picture on the page.
 *
 * Widening to the column it already sits in is the whole change: no new
 * container, no change to the copy, the heading, the gold hairline or the
 * spacing. Together with the 3:2 ratio it goes from 672x289 to 846x564 —
 * measured, at a 1600px viewport — which puts it above the pasta gallery in
 * the page's visual order, where the section's own hierarchy already put it.
 */
.rest-bear .slider {
	width: 100%;
	max-width: 56rem;
	border: 1px solid rgba(196, 163, 90, 0.2);
}

.rest-bear .section-heading {
	align-items: center;
}

@media (min-width: 768px) {
	.rest-bear {
		padding-block: 7rem;
	}
}

/* --- Pasta / B2B -------------------------------------------------------- */

.rest-pasta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	max-width: 48rem;
	text-align: center;
}

.rest-pasta__inner .section-heading {
	align-items: center;
}

/*
 * The brand mark above the ravioli section index.
 *
 * Sized in `rem` off its own aspect ratio rather than given a width and a
 * height, so it scales with the type around it and never becomes the subject.
 * `height` is the constraint because the logo is a wide lockup: at 3.5rem tall
 * it is about 7.7rem wide, roughly the width of the section index under it,
 * which is the visual weight this section can carry without the mark competing
 * with the heading.
 */
.rest-pasta__mark {
	width: auto;
	height: 3.5rem;
	margin-bottom: -0.5rem;
}

@media (min-width: 768px) {
	.rest-pasta__mark {
		height: 4.5rem;
	}
}

.rest-pasta__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	width: 100%;
	text-align: left;
	padding-top: 1rem;
}

@media (min-width: 640px) {
	.rest-pasta__cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* --- Menu tabs ---------------------------------------------------------- */

.menu-tabs__inner {
	max-width: 64rem;
	padding-inline: 1.5rem;
}

.menu-tabs__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	margin-bottom: 3rem;
	text-align: center;
}

.menu-tabs__bar {
	position: relative;
	margin-bottom: 2.5rem;
	border-bottom: 1px solid rgba(26, 42, 30, 0.1);
}

.menu-tabs__scroller {
	overflow-x: auto;
	margin-bottom: -1px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.menu-tabs__scroller::-webkit-scrollbar {
	display: none;
}

.menu-tabs__list {
	display: flex;
	gap: 0.5rem;
	width: max-content;
	margin-inline: auto;
}

.menu-tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem 1rem;
	border: 0;
	background: none;
	cursor: pointer;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(90, 90, 90, 0.6);
	transition: color 0.3s;
}

.menu-tab:hover {
	color: var(--wp--preset--color--brand-wood);
}

.menu-tab.is-active {
	color: var(--wp--preset--color--brand-wood);
}

.menu-tab svg {
	flex: none;
	width: 1rem;
	height: 1rem;
}

.menu-tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--wp--preset--color--brand-gold);
	transform: scaleX(0);
	transition: transform 0.35s var(--ease-luxury);
}

.menu-tab.is-active::after {
	transform: scaleX(1);
}

.menu-tabs__fade {
	position: absolute;
	top: 0;
	bottom: 1px;
	right: 0;
	width: 3rem;
	pointer-events: none;
	opacity: 0;
	background: linear-gradient(to left, var(--wp--preset--color--brand-cream-soft), transparent);
	transition: opacity 0.3s;
}

.menu-tabs__fade.is-visible {
	opacity: 1;
}

.menu-panel {
	padding: 2rem;
	border: 1px solid rgba(196, 163, 90, 0.15);
	border-radius: 2rem;
	background: #fff;
	box-shadow: var(--luxury-shadow);
}

.menu-panel[hidden] {
	display: none;
}

.menu-panel__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	max-width: 42rem;
	margin-inline: auto;
	text-align: center;
}

.menu-panel__title {
	font-size: 1.5rem;
	line-height: 1.25;
	text-wrap: balance;
}

.menu-panel__intro,
.menu-panel__body {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	line-height: 1.75;
	color: var(--wp--preset--color--brand-stone);
}

.menu-panel__stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	width: 100%;
}

.menu-stat {
	padding: 1.5rem 1rem;
	border: 1px solid rgba(196, 163, 90, 0.2);
	border-radius: 1rem;
	background: rgba(250, 246, 239, 0.6);
}

.menu-stat__value {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.875rem;
	font-weight: 900;
	line-height: 1;
	color: var(--wp--preset--color--brand-wood);
}

.menu-stat__label {
	margin-top: 0.75rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-gold);
}

.menu-stat__unit {
	margin-top: 0.25rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.6875rem;
	color: rgba(90, 90, 90, 0.7);
}

/* The owner's documents are still being prepared; the panel says so rather
   than inventing dishes or prices. */
.menu-pending {
	width: 100%;
	padding: 2rem 1.5rem;
	border: 1px dashed rgba(196, 163, 90, 0.4);
	border-radius: 1rem;
	background: rgba(250, 246, 239, 0.6);
}

.menu-pending__label {
	margin-bottom: 0.75rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: rgba(196, 163, 90, 0.8);
}

.menu-pending__headline {
	margin-bottom: 0.75rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.5rem;
	font-style: italic;
	line-height: 1.2;
	color: var(--wp--preset--color--brand-wood);
}

.menu-pending__body {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--wp--preset--color--brand-stone);
}

@media (min-width: 640px) {
	.menu-panel__stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 768px) {
	.menu-tabs__list {
		gap: 2rem;
	}

	.menu-tab {
		padding-inline: 1rem;
	}

	.menu-panel {
		padding: 3rem;
		border-radius: 2rem;
	}

	.menu-panel__title {
		font-size: 1.875rem;
	}

	.menu-pending__headline {
		font-size: 1.875rem;
	}
}

/* --- Closing sections --------------------------------------------------- */

.rest-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	text-align: center;
}

.rest-cta__inner .page-lead {
	margin-inline: auto;
	max-width: 36rem;
}

/*
 * The pasta section's photography, between the description and the two cards.
 *
 * `width: 100%` is load-bearing, not decoration. `.rest-pasta__inner` is a
 * centring flex column, so a flex item with no intrinsic width collapses to
 * zero and takes the slider — which sizes itself from its own width via
 * aspect-ratio — down to 0x0 with it. `.rest-pasta__cards` below solves the
 * same problem the same way.
 */
.rest-pasta__media {
	width: 100%;
	margin-top: 1rem;
	text-align: left;
}
