/* Jármi Sütöde */

@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/fraunces-latin-ext-600.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/fraunces-latin-600.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--bg: #fbf6ee;
	--surface: #ffffff;
	--ink: #2e1d12;
	--ink-soft: #6b5444;
	--brand: #4a240e;
	--brand-ink: #f7ebdc;
	--accent: #b0501a;
	--accent-strong: #8f3f12;
	--line: #eadfce;
	--ok: #2f7a3d;
	--radius: 18px;
	--shadow: 0 1px 2px rgba(46, 29, 18, .06), 0 8px 24px rgba(46, 29, 18, .08);
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sidebar-w: 15rem;
	--header-h: 6.5rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--accent-strong);
}

h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
	letter-spacing: -.01em;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.skip {
	position: absolute;
	left: -999px;
	top: 0;
	z-index: 100;
	padding: .75rem 1rem;
	background: var(--surface);
}

.skip:focus {
	left: 1rem;
	top: 1rem;
}

/* Menü (mobilon felső sáv) */

.sidebar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--brand);
	color: var(--brand-ink);
	padding: .75rem 1rem 0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

.brand {
	display: block;
	font-family: var(--serif);
	font-weight: 600;
	font-size: 1.35rem;
	color: inherit;
	text-decoration: none;
}

.sidebar nav ul {
	position: relative;
	display: flex;
	gap: .25rem;
	list-style: none;
	margin: .4rem -1rem 0;
	padding: 0 .75rem;
	overflow-x: auto;
	scrollbar-width: none;
}

.sidebar nav ul::-webkit-scrollbar {
	display: none;
}

.sidebar nav a {
	display: block;
	padding: .6rem .7rem .7rem;
	color: rgba(247, 235, 220, .75);
	text-decoration: none;
	font-size: .95rem;
	font-weight: 500;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	transition: color .2s, border-color .2s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
	color: #fff;
	border-bottom-color: #e39a5c;
}

.sidebar-phone {
	display: none;
}

/* Kezdőlap */

.hero {
	padding: 2.5rem 1.25rem 2rem;
	animation: rise .7s ease-out both;
}

.hero h1 {
	font-size: clamp(2.6rem, 9vw, 4.75rem);
	color: var(--brand);
}

.tagline {
	margin: .5rem 0 0;
	font-size: 1.25rem;
	color: var(--ink-soft);
}

.status {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin: 1.25rem 0 0;
	padding: .45rem .9rem;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--line);
	font-size: .95rem;
}

.status::before {
	content: "";
	width: .55rem;
	height: .55rem;
	border-radius: 50%;
	background: var(--ink-soft);
	flex: none;
}

.status.is-open::before {
	background: var(--ok);
	box-shadow: 0 0 0 4px rgba(47, 122, 61, .18);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1.75rem;
}

.button {
	display: inline-block;
	padding: .85rem 1.4rem;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid var(--accent);
	transition: background .2s, border-color .2s, color .2s;
}

.button:hover {
	background: var(--accent-strong);
	border-color: var(--accent-strong);
}

.button-ghost {
	background: transparent;
	color: var(--accent-strong);
}

.button-ghost:hover {
	color: #fff;
}

.hero-image {
	display: none;
}

/* Szekciók */

.section {
	padding: 2.5rem 1rem;
	scroll-margin-top: var(--header-h);
}

.section-head {
	margin: 0 .25rem 1.5rem;
}

.section-head h2 {
	font-size: clamp(2rem, 6vw, 2.75rem);
	color: var(--brand);
}

.section-head p {
	margin: .35rem 0 0;
	color: var(--ink-soft);
}

/* Tálak */

.dish {
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	margin-bottom: 1.25rem;
}

.dish img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--line);
}

.dish-body {
	padding: 1.25rem 1.25rem 1.5rem;
}

.dish h3 {
	font-size: 1.5rem;
}

.price {
	display: inline-block;
	margin: .6rem 0 0;
	padding: .3rem .85rem;
	border-radius: 999px;
	background: #fbe9da;
	color: var(--accent-strong);
	font-family: var(--serif);
	font-weight: 600;
	font-size: 1.3rem;
}

.dish ul {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.dish li {
	position: relative;
	padding: .3rem 0 .3rem 1.25rem;
	border-top: 1px solid var(--line);
}

.dish li:first-child {
	border-top: 0;
}

.dish li::before {
	content: "";
	position: absolute;
	left: .1rem;
	top: .95rem;
	width: .4rem;
	height: .4rem;
	border-radius: 50%;
	background: var(--accent);
}

/* Köretek, saláták */

.menu-list {
	list-style: none;
	margin: 0;
	padding: .5rem 1.25rem;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.menu-list li {
	display: flex;
	align-items: baseline;
	gap: .5rem;
	padding: .9rem 0;
	border-top: 1px solid var(--line);
	font-size: 1rem;
}

.menu-list li:first-child {
	border-top: 0;
}

.menu-list small {
	display: block;
	font-size: .85rem;
	color: var(--ink-soft);
}

.dots {
	flex: 1;
	min-width: 1rem;
	border-bottom: 2px dotted #d6c6b0;
	transform: translateY(-.3rem);
}

.amount {
	font-family: var(--serif);
	font-weight: 600;
	color: var(--accent-strong);
	white-space: nowrap;
}

#koretek {
	padding-bottom: 0;
}

/* Rendelés */

.order {
	text-align: left;
}

.order-phone {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	padding: 1rem 1.5rem;
	border-radius: var(--radius);
	background: var(--brand);
	color: #fff;
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(1.4rem, 6vw, 2rem);
	text-decoration: none;
	box-shadow: var(--shadow);
	transition: background .2s;
}

.order-phone:hover {
	background: var(--accent-strong);
}

.order-phone svg,
.sidebar-phone svg,
.callbar svg {
	width: 1.1em;
	height: 1.1em;
	fill: currentColor;
	flex: none;
}

.contact {
	display: grid;
	gap: 1rem;
	margin: 1.75rem 0 0;
}

.contact div {
	padding: 1rem 1.25rem;
	background: var(--surface);
	border-radius: var(--radius);
	border: 1px solid var(--line);
}

.contact dt {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.contact dd {
	margin: .25rem 0 0;
	font-size: 1.1rem;
}

.footer {
	padding: 1.5rem 1.25rem 2rem;
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: .9rem;
}

.footer p {
	margin: 0;
}

/* Mobil hívás sáv */

.callbar {
	position: fixed;
	left: .75rem;
	right: .75rem;
	bottom: calc(.75rem + env(safe-area-inset-bottom));
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	padding: .95rem 1rem;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(143, 63, 18, .35);
}

@media (max-width: 899px) {
	body {
		padding-bottom: 5.5rem;
	}
}

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

/* Asztali nézet: oldalsó menü */

@media (min-width: 900px) {
	.sidebar {
		position: fixed;
		inset: 0 auto 0 0;
		width: var(--sidebar-w);
		display: flex;
		flex-direction: column;
		padding: 2.5rem 1.75rem;
		box-shadow: none;
	}

	.brand {
		font-size: 1.6rem;
	}

	.sidebar nav ul {
		flex-direction: column;
		margin: 2.5rem 0 0;
		padding: 0;
		gap: .15rem;
		overflow: visible;
	}

	.sidebar nav a {
		padding: .55rem 0 .55rem 1rem;
		font-size: 1.05rem;
		border-bottom: 0;
		border-left: 3px solid transparent;
	}

	.sidebar nav a:hover,
	.sidebar nav a.active {
		border-left-color: #e39a5c;
	}

	.sidebar-phone {
		display: flex;
		align-items: center;
		gap: .5rem;
		margin-top: auto;
		color: var(--brand-ink);
		font-weight: 600;
		text-decoration: none;
	}

	.sidebar-phone:hover {
		color: #fff;
	}

	main {
		margin-left: var(--sidebar-w);
	}

	.callbar {
		display: none;
	}

	.hero {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: 3rem;
		min-height: 88vh;
		padding: 4rem clamp(2rem, 5vw, 5rem);
	}

	.hero-image {
		display: block;
	}

	.hero-image img {
		width: 100%;
		aspect-ratio: 4 / 5;
		object-fit: cover;
		border-radius: 28px;
		box-shadow: var(--shadow);
	}

	.section {
		padding: 4.5rem clamp(2rem, 5vw, 5rem);
		scroll-margin-top: 0;
	}

	.section-head {
		margin: 0 0 2.25rem;
	}

	.dish {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		margin-bottom: 2rem;
	}

	.dish:nth-of-type(even) picture {
		order: 2;
	}

	.dish-text {
		display: block;
	}

	.dish img {
		height: 100%;
		min-height: 20rem;
	}

	.dish-body {
		align-self: center;
		padding: 2.25rem 2.5rem;
	}

	.dish h3 {
		font-size: 1.85rem;
	}

	.menu-list,
	.contact {
		max-width: 44rem;
	}

	.menu-list {
		padding: .75rem 2rem;
	}

	.menu-list li {
		font-size: 1.1rem;
	}

	.footer {
		padding: 2rem clamp(2rem, 5vw, 5rem);
	}
}

@media (min-width: 1400px) {
	.section,
	.hero {
		max-width: 80rem;
	}
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
