/* Barvy: všechny dvojice text/pozadí splňují WCAG AA (min. 4,5 : 1) */
:root {
  --dark: #1d1611;
  --wood: #4a2e1f;
  --copper: #c0703a;      /* jen dekorace (linky, ikony), ne text */
  --accent: #9a5225;      /* odkazy, tlačítka, zvýrazněný text – 5,2 : 1 na krémové */
  --accent-hover: #7d4019;
  --tan: #d9b48a;         /* světlý akcent na tmavém pozadí */
  --cream: #f8f2e8;
  --cream-2: #efe4d2;
  --ink: #2b211b;
  --muted: #5e5148;       /* doplňkový text – min. 6 : 1 */
  --line: #d3c1a5;
  --topbar-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 8px); }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, .nav a, .menu-toggle {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.15;
}
p { max-width: 68ch; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }

/* Viditelný focus pro ovládání klávesnicí */
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--cream); color: var(--ink); font-weight: 600; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Lepivá horní lišta s menu */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--topbar-h);
  background: linear-gradient(rgba(20, 13, 8, .55), rgba(20, 13, 8, 0));
  transition: background .25s, box-shadow .25s;
}
.topbar.scrolled, .topbar.menu-open { background: var(--dark); box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.nav { height: 100%; max-width: 1150px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: center; }
.nav ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block;
  padding: 10px 14px;
  min-height: 44px;
  color: var(--cream);
  text-decoration: none;
  font-size: 1rem;
  border-radius: 6px;
}
.nav a:hover { color: var(--tan); background: rgba(255, 255, 255, .06); }
.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 22px;
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
}

/* Úvod */
.hero {
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  background: linear-gradient(rgba(20, 13, 8, .6), rgba(20, 13, 8, .82)), url("img/web/09-interier.jpg") center / cover;
}
.hero-text { padding: calc(var(--topbar-h) + 32px) 20px 64px; text-align: center; max-width: 780px; }
.hero-icon { width: 220px; margin: 0 auto 18px; }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; color: var(--tan); margin: 0 auto; font-weight: 700; font-size: .95rem; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.5rem); margin: .1em 0 .25em; }
.lead { font-size: clamp(1.15rem, 3.5vw, 1.35rem); margin: 0 auto 28px; }
.hero-buttons, .contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact-buttons { justify-content: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-ghost-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Rychlé informace pod úvodem */
.quickinfo {
  list-style: none;
  margin: -44px auto 0;
  padding: 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(29, 22, 17, .15);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.quickinfo li { padding: 18px 22px; border-left: 1px solid var(--line); }
.quickinfo li:first-child { border-left: 0; }
.qi-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.quickinfo a { font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration-color: var(--copper); }
.quickinfo a:hover { color: var(--accent); }

/* Sekce */
.section { padding: 88px 24px; max-width: 1150px; margin: 0 auto; }
.section.alt { max-width: none; background: var(--cream-2); }
.inner { max-width: 1102px; margin: 0 auto; }
.section h2 { font-size: clamp(2rem, 5vw, 2.6rem); margin: 0 0 .5em; color: var(--wood); }
.note { color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about-photo, .rounded { border-radius: 16px; box-shadow: 0 10px 30px rgba(29, 22, 17, .18); }
.badges { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; align-items: center; }
.badges img { height: 120px; width: auto; border-radius: 10px; background: #fff; }

/* Odkaz nahoru na konci sekcí */
.section-top {
  display: table;
  margin: 32px 0 0 auto;
  padding: 10px 22px;
  min-height: 44px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.section-top:hover { background: var(--accent); color: #fff; }
.section.alt > .section-top { margin-right: max(0px, calc((100% - 1102px) / 2)); }
.about > .section-top { grid-column: 1 / -1; margin-top: 0; }

/* Jídelní lístek */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.card { background: #fff; border-radius: 14px; padding: 26px; box-shadow: 0 2px 10px rgba(74, 46, 31, .08); border-top: 5px solid var(--copper); }
.card h3 { margin: 0 0 8px; color: var(--accent); font-size: 1.4rem; }
.card h4 { margin: 20px 0 4px; color: var(--wood); font-size: 1.05rem; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.price-list li span:last-child { white-space: nowrap; font-weight: 700; }
.price-list li:last-child { border-bottom: 0; }

/* Galerie */
.gallery-title { color: var(--accent); font-size: 1.3rem; margin: 36px 0 14px; }
.gallery { columns: 4 220px; column-gap: 14px; }
.gallery img { width: 100%; margin-bottom: 14px; border-radius: 10px; break-inside: avoid; cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.gallery img:hover { transform: scale(1.02); box-shadow: 0 6px 18px rgba(29, 22, 17, .2); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 16px 24px;
  background: rgba(15, 10, 6, .95);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity .2s;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 10px; object-fit: contain; }
.lightbox p { margin: 0; color: var(--cream); text-align: center; }
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .25); }

/* Otevírací doba */
.hours { border-collapse: collapse; width: 100%; max-width: 440px; font-size: 1.1rem; }
.hours th, .hours td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
.hours th { text-align: left; font-weight: 600; }
.hours td { text-align: right; }
.hours tr.today { background: #fff; font-weight: 700; }
.today-tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; vertical-align: 2px; }

/* Kontakt */
.contact p { margin: 0 0 14px; }
.map { width: 100%; height: 380px; border: 0; border-radius: 16px; background: var(--cream-2); }

.footer { background: var(--dark); color: var(--cream); text-align: center; padding: 40px 24px; font-size: .95rem; }
.footer p { margin: 0 auto; }
.footer .credit { margin-top: 8px; font-size: .85rem; color: #cbbfb0; }
.footer img { margin: 0 auto 16px; width: 140px; }

/* Plovoucí tlačítko zpět nahoru */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(29, 22, 17, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 10;
}
.to-top.visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-hover); color: #fff; }

@media (max-width: 800px) {
  body { font-size: 17px; }
  .section { padding: 64px 16px; }
  .two-col, .about { grid-template-columns: 1fr; gap: 32px; }
  .badges img { height: 100px; }
  .map { height: 300px; }
  .hero-icon { width: 170px; }
  .footer { padding-bottom: 88px; }

  .nav { justify-content: flex-end; }
  .menu-toggle { display: block; }
  .nav ul {
    display: none;
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--dark);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .3);
  }
  .menu-open .nav ul { display: flex; }
  .nav a { padding: 14px 8px; font-size: 1.15rem; border-bottom: 1px solid rgba(255, 255, 255, .1); border-radius: 0; }

  .quickinfo { margin: -32px 16px 0; }
  .quickinfo li { padding: 14px 16px; }
}

@media (max-width: 600px) {
  .quickinfo { grid-template-columns: 1fr; }
  .quickinfo li { border-left: 0; border-top: 1px solid var(--line); padding: 14px 18px; }
  .quickinfo li:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
