@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");

:root {
	--bg: #1f2638;
	--card-bg: #2b334f;
	--text: #e3e8ff;
	--muted: #8c9bb3;
	--accent: #3fa795;
	--highlight: #f5a35c;
	--nav-bg: #1b233d;
	--radius: 0px;
	--transition: 0.3s ease;
	--max-width: 1200px;
}

/* RESET & BASE */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

body {
	padding-top: 60px;
	background: var(--bg);
	color: var(--text);
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: clamp(0.95rem, 1vw, 1.1rem);
	line-height: 1.6;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 1rem 1.5rem;
}

/* NAVIGATION */
.nav-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: var(--nav-bg);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	padding: 0.5rem 1rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	z-index: 9999;
}

.brand a {
	color: orange;
	font-weight: 550;
	font-size: clamp(.2rem, 2.5vw, 1.5rem);
	text-decoration: none;
	white-space: nowrap;
}

.nav-toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.nav-label {
	display: none;
	cursor: pointer;
	padding: 0.5rem;
	user-select: none;
}
.nav-label span,
.nav-label span::before,
.nav-label span::after {
	display: block;
	background: var(--text);
	height: 3px;
	width: 25px;
	border-radius: 2px;
	position: relative;
	transition: var(--transition);
}
.nav-label span::before,
.nav-label span::after {
	content: "";
	position: absolute;
	left: 0;
}
.nav-label span::before {
	top: -8px;
}
.nav-label span::after {
	top: 8px;
}

.nav-toggle:checked + .nav-label span {
	background: transparent;
}
.nav-toggle:checked + .nav-label span::before {
	transform: rotate(45deg);
	top: 0;
}
.nav-toggle:checked + .nav-label span::after {
	transform: rotate(-45deg);
	top: 0;
}

.nav-list {
	list-style: none;
	display: flex;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	align-items: center;
	flex-wrap: wrap;
}
.nav-list li a {
	font-size: clamp(0.8rem, 2vw, 1rem);
	padding: 0.4rem 0.8rem;
	border-radius: 6px;
	text-decoration: none;
	color: var(--text);
	font-weight: 600;
	transition: background var(--transition), color var(--transition);
	white-space: nowrap;
}
.nav-list li a:hover,
.nav-list li a.active {
	background: rgba(255, 255, 255, 0.08);
	color: var(--highlight);
}

@media (max-width: 900px) {
	.nav-label {
		display: flex;
		align-items: center;
	}

	.nav-list {
		flex-direction: column;
		width: 100vw;
		margin-left: calc(50% - 50vw);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.2s ease, padding 0.4s ease;
		gap: 0;
		background-color: var(--nav-bg);
		padding: 0;
		margin-top: 0.5rem;
		will-change: max-height;
	}

	.nav-toggle:checked + .nav-label + .nav-list {
		max-height: 500px;
		padding: 1rem;
		border-radius: 6px;
	}

	.nav-list li {
		margin: 0.4rem 0;
		width: 100%;
	}

	.nav-list li a {
		width: 100%;
		box-sizing: border-box;
	}

	.brand a {
		margin-left: 10px;
		font-size: clamp(1.2rem, 1vw, 1.6rem);
	}

	.nav-wrapper {
		padding: 0.5rem 0.75rem;
	}
}

/* HEADER */
header {
	background-image: url("../img/menu4.png");
	background-size: cover;
	background-position: right;
	height: clamp(120px, 30vw, 200px);
	position: relative;
	margin-bottom: 1rem;
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fade {
	position: absolute;
	inset: 0;
	background: rgba(134, 60, 60, 0.1);
}

.header-text {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: rgba(228, 177, 69, 0.9);
	text-align: center;
	gap: 0.5rem;
	padding: 0 1rem;
	text-shadow: -1px -1px 0 #967676, 1px -1px 0 #752222, -1px 1px 0 #000,
		1px 1px 0 #000;
}

.header-text h1 {
	font-size: clamp(3.6rem, 10vw, 14.5rem);
	margin: 0;
}



.header-text p {
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	margin: 0;
}

/* SEKCJE I TREŚĆ */
.section {
	margin-bottom: 2rem;
}

.section-title {
	font-size: clamp(1.2rem, 3vw, 4rem);
	color: var(--highlight);
	margin-bottom: 1rem;
	text-align: center;
}

h3 {
	text-align: center;
	margin-top: 1.2rem;
	margin-bottom: 1rem;
	font-size: clamp(1.2rem, 3vw, 2.8rem);
	color: var(--accent);
}

p,
ul {
	text-indent: 1rem;
	font-size: clamp(0.8rem, 2.5vw, 1.2rem);
	margin: 0.5rem 0 1rem;
	line-height: 1.7;
}

ul {
	padding-left: 2rem;
}

/* TABELA */
.unit-table-wrapper {
	overflow-x: auto;
	width: 100%;
	margin-bottom: 1.5rem;
	-webkit-overflow-scrolling: touch;
}

.unit-table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	background: var(--card-bg);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	min-width: 600px;
}

.unit-table th,
.unit-table td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.unit-table th {
	background: rgba(170, 49, 49, 0.05);
	color: var(--highlight);
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.unit-table tr:last-child td {
	border-bottom: none;
}

.unit-table td {
	font-size: 0.9rem;
	vertical-align: top;
}

/* STOPKA */
footer {
	background: var(--nav-bg);
	text-align: center;
	padding: 1.5rem 1rem;
	color: var(--text);
	font-size: clamp(0.75rem, 2vw, 1rem);
	margin-top: 2rem;
}

footer a.polityka {
	color: var(--text);
	text-decoration: underline;
}

footer a.polityka:hover {
	color: var(--accent);
}

/* COOKIES */
#cookie-banner {
	display: flex;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	color: #333;
	padding: 20px;
	box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	font-family: "Montserrat", system-ui, sans-serif;
	flex-wrap: wrap;
	gap: 10px;
}
#cookie-banner a {
	color: #0066cc;
	text-decoration: underline;
}
#cookie-banner button {
	background-color: #0066cc;
	color: white;
	padding: 10px 20px;
	border: none;
	cursor: pointer;
	border-radius: 5px;
}

/* MAŁE EKRANY */
@media (max-width: 600px) {
	.nav-list li a {
		padding: 0.35rem 0.6rem;
	}
	header {
		height: clamp(150px, 28vw, 200px);
	}
}

@media (max-width: 400px) {
	.header-text p {
		font-size: 0.9rem;
	}
	.nav-label span,
	.nav-label span::before,
	.nav-label span::after {
		width: 20px;
	}
	.nav-list li a {
		font-size: 0.85rem;
		padding: 0.3rem 0.5rem;
	}
	footer {
		font-size: 0.75rem;
	}
}

/* KARTY POSIŁKÓW */
.meal-card-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	padding: 0.9rem;
}

.meal-card {
	flex: 1 1 300px;
	max-width: 350px;
	background-color: #2c3444;
	padding: 1rem;
	border-radius: 12px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.meal-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2vw, 1.4rem);   /* min: 16px, płynny, max: 22px */
  font-weight: 700;
  color: var(--highlight);
  margin-bottom: 8px;
  text-align: left;
}

/* Podtytuły wewnątrz kart */
.meal-card h5 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem); /* min: 14px, max: 19px */
  font-weight: 600;
  text-decoration: underline;
  font-style: italic;
  margin-bottom: 6px;
}

.meal-card p {
	margin: 0;
	font-size: 0.95rem;
	color: #7f8ee6;
}

/* Lista składników */
.meal-card ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 10px;
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.85rem, 1.5vw, 1rem); /* min: 13.5px, max: 16px */
  line-height: 1.5;
  color: var(--text);
}

.meal-card li ul {
	margin-bottom: 0.25rem;
	line-height: 1.4;
	padding-left: 0.2em;
	text-indent: -0.2em;
}

/* 📱 Wersja mobilna – jedna karta pod drugą z tabelkowym stylem */
@media (max-width: 600px) {
	.meal-card {
		flex: 1 1 100%;
		max-width: 100%;
		background-color: #2c3444;
		border: 1px solid rgba(255, 255, 255, 0.1);
		padding: 1rem;
		border-radius: 10px;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	}
	.meal-card ul {
		list-style-type: none;
		padding: 0;
		margin: 0;
	}
	.meal-card li {
		padding: 0.5rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		display: flex;
		align-items: center;
		gap: 0.5rem;
	}
	.meal-card li::before {
		content: "•";
		color: var(--highlight);
		font-weight: bold;
		display: inline-block;
		width: 1rem;
		text-align: center;
	}
	.meal-card li:last-child {
		border-bottom: none;
	}
}

.blur-text h1 {
	opacity: 0.9;
}

/* Makroskładniki */
.makro {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.1rem, 3vw, 2.95rem); /* min: 12.8px, max: 15.2px */
  font-style: italic;

  margin-top: 5px;
}


p.makro {
  font-size: clamp(0.7rem, 1.5vw, 0.95rem) !important;
  font-style: italic;
  color: var(--muted);
  text-indent: 0; /* usuwa wcięcie z ogólnego p */
}
