/* ==========================================================================
   Ukázka — Restaurace
   ========================================================================== */

:root {
	--c-dark: #1a1714;
	--c-warm: #2c2520;
	--c-sand: #e8e0d4;
	--c-cream: #f5f1eb;
	--c-white: #fff;
	--c-text: #2c2520;
	--c-muted: #8a7e72;
	--c-accent: #b8432f;
	--c-accent-hover: #9a3626;
	--c-border: #ddd5c9;
	--c-tag-bg: #f0ebe3;

	--f-heading: 'EB Garamond', Georgia, serif;
	--f-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

	--container: 1080px;
	--nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
	font-family: var(--f-body);
	color: var(--c-text);
	background: var(--c-cream);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* --- Navigation --- */
.site-nav {
	background: var(--c-dark);
	position: sticky;
	top: 0;
	z-index: 100;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 0;
}

.nav-links a {
	display: block;
	padding: 0 1.5rem;
	line-height: var(--nav-h);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--c-sand);
	transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
	color: var(--c-white);
	background: rgba(255,255,255,0.05);
}

.nav-links a.active {
	color: var(--c-white);
	border-bottom: 2px solid var(--c-accent);
}

/* Mobile toggle */
.nav-toggle {
	display: none;
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 200;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--c-dark);
	border: none;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--c-sand);
	border-radius: 1px;
}

/* --- Buttons --- */
.btn {
	display: inline-flex;
	align-items: center;
	padding: 0.65rem 1.6rem;
	font-family: var(--f-body);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: none;
	cursor: pointer;
	transition: all 0.15s;
}

.btn-primary {
	background: var(--c-accent);
	color: var(--c-white);
}

.btn-primary:hover {
	background: var(--c-accent-hover);
}

.btn-outline {
	background: transparent;
	color: var(--c-sand);
	border: 1px solid rgba(232,224,212,0.4);
}

.btn-outline:hover {
	border-color: var(--c-sand);
	color: var(--c-white);
}

.btn-ghost {
	background: transparent;
	color: var(--c-text);
	border: 1px solid var(--c-border);
}

.btn-ghost:hover {
	background: var(--c-dark);
	color: var(--c-sand);
	border-color: var(--c-dark);
}

.btn-large {
	padding: 0.85rem 2.4rem;
	font-size: 0.9rem;
}

/* --- Hero --- */
.hero {
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--c-dark);
	color: var(--c-sand);
	text-align: center;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 30% 40%, rgba(184,67,47,0.15) 0%, transparent 60%),
		radial-gradient(ellipse at 70% 60%, rgba(184,67,47,0.08) 0%, transparent 50%);
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 620px;
	padding: 4rem 2rem;
}

.hero h1 {
	font-family: var(--f-heading);
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	font-weight: 400;
	line-height: 1.15;
	margin-bottom: 1rem;
}

.hero h1 em {
	font-style: italic;
	color: var(--c-white);
}

.hero p {
	font-size: 1.05rem;
	color: var(--c-muted);
	margin-bottom: 2.5rem;
	line-height: 1.7;
}

.hero-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* --- Page Header (non-home pages) --- */
.page-header {
	background: var(--c-dark);
	color: var(--c-sand);
	padding: 5rem 0 3.5rem;
	text-align: center;
}

.page-header h1 {
	font-family: var(--f-heading);
	font-size: 2.4rem;
	font-weight: 400;
	margin-bottom: 0.3rem;
}

.page-header p {
	opacity: 0.55;
	font-size: 0.95rem;
}

/* --- Sections --- */
.section { padding: 4.5rem 0; }

.section-title {
	font-family: var(--f-heading);
	font-size: 1.8rem;
	text-align: center;
	margin-bottom: 0.3rem;
}

.section-subtitle {
	text-align: center;
	color: var(--c-muted);
	margin-bottom: 3rem;
	font-size: 0.95rem;
}

.section-cta {
	text-align: center;
	margin-top: 2.5rem;
}

/* --- About (O nás) --- */
.about-lead {
	text-align: center;
	color: var(--c-text);
	font-size: 1.1rem;
	line-height: 1.7;
	margin-bottom: 3rem;
}

.about-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.about-text p {
	color: var(--c-muted);
	font-size: 0.98rem;
	line-height: 1.75;
	margin: 0;
}

.about-image {
	position: relative;
	border: 1px solid var(--c-border);
	overflow: hidden;
}

.about-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Terracotta duotone tint → full colour on hover (mirrors the gallery motif). */
.about-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: #b8432f;             /* --c-accent */
	mix-blend-mode: soft-light;
	opacity: 0.6;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.about-image:hover::after {
	opacity: 0;
}

@media (max-width: 768px) {
	.about-split { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Menu Grid (Homepage featured) --- */
.menu-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.menu-card {
	background: var(--c-white);
	border: 1px solid var(--c-border);
	padding: 1.5rem;
	transition: border-color 0.15s;
}

.menu-card:hover {
	border-color: var(--c-accent);
}

.menu-card-body h3 {
	font-family: var(--f-heading);
	font-size: 1.2rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.menu-card-tags {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin-bottom: 0.5rem;
}

.tag {
	font-size: 0.7rem;
	padding: 0.2rem 0.5rem;
	background: var(--c-tag-bg);
	border-radius: 2px;
	letter-spacing: 0.02em;
}

.menu-card-desc {
	color: var(--c-muted);
	font-size: 0.88rem;
	line-height: 1.6;
	margin-bottom: 0.75rem;
}

.menu-card-price {
	font-weight: 600;
	color: var(--c-accent);
	font-size: 1rem;
}

/* --- Menu List (Full menu / daily menu pages) --- */
.menu-category {
	margin-bottom: 3rem;
}

.category-title {
	font-family: var(--f-heading);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--c-text);
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--c-border);
	margin-bottom: 1.25rem;
}

.menu-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.menu-list-item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1.5rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--c-border);
}

.menu-list-item:last-child { border-bottom: none; }

.menu-list-info h3 {
	font-family: var(--f-heading);
	font-size: 1.1rem;
	font-weight: 500;
}

.menu-list-info h3 .tag {
	margin-left: 0.5rem;
	vertical-align: middle;
}

.menu-list-info p {
	color: var(--c-muted);
	font-size: 0.88rem;
	margin-top: 0.2rem;
}

.menu-list-price {
	font-weight: 600;
	color: var(--c-accent);
	white-space: nowrap;
}

/* --- Opening Hours --- */
.opening-hours {
	background: var(--c-white);
	border-top: 1px solid var(--c-border);
	border-bottom: 1px solid var(--c-border);
}

.hours-grid, .hours-list {
	max-width: 360px;
	margin: 0 auto;
}

.hours-row {
	display: flex;
	justify-content: space-between;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--c-border);
	font-size: 0.92rem;
}

.hours-row:last-child { border-bottom: none; }

.hours-day { font-weight: 500; }
.hours-time { color: var(--c-muted); }

/* --- CTA Section --- */
.cta-section {
	background: var(--c-dark);
	color: var(--c-sand);
	text-align: center;
}

.cta-section h2 {
	font-family: var(--f-heading);
	font-size: 1.8rem;
	font-weight: 400;
	margin-bottom: 0.3rem;
}

.cta-section p {
	opacity: 0.55;
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}

/* --- Reservation & Contact Layouts --- */
.reservation-layout,
.contact-layout {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 3rem;
	align-items: start;
}

.reservation-form-wrapper,
.contact-form-wrapper {
	background: var(--c-white);
	padding: 2rem;
	border: 1px solid var(--c-border);
}

.reservation-form-wrapper h2,
.contact-form-wrapper h2 {
	font-family: var(--f-heading);
	font-size: 1.4rem;
	font-weight: 400;
	margin-bottom: 1.5rem;
}

.reservation-info,
.contact-info {
	padding: 2rem;
	background: var(--c-white);
	border: 1px solid var(--c-border);
}

.reservation-info h3,
.contact-info h3 {
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 1rem;
	margin-top: 1.5rem;
	color: var(--c-muted);
}

.reservation-info h3:first-child,
.contact-info h3:first-child {
	margin-top: 0;
}

/* --- Gallery --- */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0.75rem;
}

.gallery-item {
	aspect-ratio: 4/3;
	overflow: hidden;
	background: var(--c-border);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(30%);
	transition: filter 0.3s, transform 0.3s;
	cursor: pointer;
}

.gallery-item:hover img {
	filter: grayscale(0%);
	transform: scale(1.03);
}

/* --- Forms --- */
form { display: flex; flex-direction: column; gap: 1rem; }

label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.3rem;
	color: var(--c-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--c-border);
	font-family: var(--f-body);
	font-size: 0.95rem;
	background: var(--c-cream);
	transition: border-color 0.15s;
}

input:focus,
textarea:focus {
	outline: none;
	border-color: var(--c-dark);
	background: var(--c-white);
}

textarea { resize: vertical; min-height: 100px; }
.is-invalid { border-color: var(--c-accent) !important; }

form .btn { margin-top: 0.5rem; }

/* --- Contact List --- */
.contact-list li {
	margin-bottom: 0.5rem;
	font-size: 0.92rem;
}

/* --- Map Placeholder --- */
.map-placeholder {
	margin-top: 1.5rem;
	height: 180px;
	background: var(--c-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--c-muted);
	font-size: 0.9rem;
}

/* --- Flash Messages --- */
#flash-messages {
	position: fixed;
	top: calc(var(--nav-h) + 1rem);
	right: 1rem;
	z-index: 200;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-width: 360px;
}

.flash-message {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1.1rem;
	background: var(--c-dark);
	color: var(--c-sand);
	font-size: 0.88rem;
	animation: slideIn 0.25s ease;
}

.flash-success { border-left: 3px solid #4ade80; }
.flash-error   { border-left: 3px solid var(--c-accent); }
.flash-warning { border-left: 3px solid #fbbf24; }

.flash-close {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.1rem;
	margin-left: auto;
	color: var(--c-muted);
}

@keyframes slideIn {
	from { transform: translateX(100%); opacity: 0; }
	to   { transform: translateX(0); opacity: 1; }
}

/* --- Empty State --- */
.empty-state {
	text-align: center;
	padding: 4rem 2rem;
	color: var(--c-muted);
}

.empty-state p { margin-bottom: 0.5rem; }
.empty-state small { font-size: 0.85rem; }
.empty-state a { color: var(--c-accent); }
.empty-state a:hover { text-decoration: underline; }

/* --- Daily Note --- */
.daily-note {
	text-align: center;
	font-family: var(--f-heading);
	font-style: italic;
	font-size: 1.1rem;
	color: var(--c-muted);
	margin-bottom: 2rem;
}

/* --- Footer --- */
.site-footer {
	background: var(--c-dark);
	color: var(--c-sand);
	padding: 3.5rem 0 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 3rem;
	margin-bottom: 2.5rem;
}

.footer-col h3 {
	font-family: var(--f-heading);
	font-size: 1.05rem;
	font-weight: 500;
	margin-bottom: 1rem;
	color: var(--c-white);
}

.footer-col p,
.footer-col li {
	font-size: 0.88rem;
	line-height: 1.8;
	opacity: 0.6;
}

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.08);
	padding: 1.25rem 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.8rem;
	opacity: 0.4;
}

.admin-link:hover { opacity: 0.7; }

/* --- Responsive --- */
@media (max-width: 968px) {
	.reservation-layout,
	.contact-layout {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.nav-toggle { display: flex; }

	.site-nav {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		top: auto;
		transform: translateY(100%);
		opacity: 0;
		pointer-events: none;
		transition: 0.3s;
		z-index: 150;
	}

	body.nav-open .site-nav {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	.nav-links {
		flex-direction: column;
		padding: 1rem 0;
	}

	.nav-links a {
		text-align: center;
		padding: 0.75rem 1.5rem;
	}

	.hero { min-height: 55vh; }
	.hero h1 { font-size: 2rem; }

	.section { padding: 3rem 0; }

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 0.5rem;
		text-align: center;
	}

	.menu-list-item {
		flex-direction: column;
		gap: 0.25rem;
	}

	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 0.5rem;
	}
}
