/* Zlonínský Dvůr – veřejný web */

:root {
  --dark: #151515;
  --dark-2: #1f1e1c;
  --dark-3: #2a2826;
  --gold: #cfa670;
  --gold-hover: #ddb985;
  --gold-text: #8a6a3c;      /* zlatá pro text na světlém pozadí (dostatečný kontrast) */
  --cream: #f7f3ec;
  --paper: #fffdf9;
  --ink: #26221e;
  --ink-muted: #6b6359;
  --on-dark: #ece7df;
  --on-dark-muted: #a9a297;
  --line-light: #e4dccf;
  --line-dark: #3a3733;
  --ok: #2f7d4f;
  --err: #b3261e;
  --radius: 4px;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Cabin', 'Segoe UI', Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--dark);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; letter-spacing: .02em; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 820px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--dark); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.kicker {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .85rem;
  color: var(--gold);
  margin-bottom: .75rem;
}
.kicker--dark { color: var(--gold-text); }

/* Tlačítka */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .95rem;
  text-decoration: none;
  padding: 14px 28px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold); color: var(--dark); }
.btn--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--dark); }
.btn--sm { padding: 9px 18px; font-size: .85rem; }

/* Oznámení a horní lišta */
.notice { background: var(--gold); color: var(--dark); text-align: center; padding: 10px 20px; font-weight: 600; }
.topbar { background: #0d0d0d; color: var(--on-dark-muted); font-size: .85rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--gold); text-decoration: none; }

/* Hlavička */
.header { position: sticky; top: 0; z-index: 50; background: rgba(21, 21, 21, .96); border-bottom: 1px solid var(--line-dark); backdrop-filter: blur(6px); }
.header--static { position: static; }
.header__in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.header__logo img { width: 58px; height: 58px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--on-dark);
  text-decoration: none;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .92rem;
  padding: 10px 12px;
  transition: color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--gold); }
.nav a.nav__cta { border: 1px solid var(--gold); color: var(--gold); margin-left: 8px; border-radius: var(--radius); padding: 8px 16px; }
.nav a.nav__cta:hover { background: var(--gold); color: var(--dark); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 46px; height: 46px; background: none; border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer; padding: 0 11px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--on-dark); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark); border-bottom: 1px solid var(--line-dark);
    padding: 8px 20px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .nav a.nav__cta { margin: 14px 0 0; text-align: center; }
  .topbar__in { justify-content: center; }
  .topbar__in span { display: none; }
}

/* Úvod */
.hero {
  background: radial-gradient(ellipse at 75% 30%, #2b2722 0%, var(--dark) 60%);
  color: var(--on-dark);
  padding: clamp(40px, 7vw, 90px) 0 0;
}
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); text-transform: uppercase; font-weight: 500; margin-bottom: .35em; }
.hero__lead { font-size: 1.15rem; color: var(--on-dark-muted); max-width: 34em; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__photo { margin: 0; position: relative; }
.hero__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: var(--radius); }
.hero__photo img { position: relative; border-radius: var(--radius); width: 100%; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: clamp(50px, 7vw, 80px);
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-bottom: 0;
  padding: 0;
}
.fact { background: var(--dark-2); padding: 24px 26px; display: flex; flex-direction: column; gap: 3px; }
.fact__label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--gold); margin-bottom: 4px; }
.fact__value { color: var(--on-dark); text-decoration: none; }
.fact__value b { font-weight: 600; }
.fact__big { font-family: var(--font-head); font-size: 1.6rem; letter-spacing: .04em; }
.fact__big:hover, .fact__link:hover { color: var(--gold); }
.fact__link { color: var(--gold); text-decoration: none; font-size: .95rem; margin-top: 4px; }

@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__photo { max-width: 560px; margin-right: 18px; }
  .facts { grid-template-columns: 1fr; margin-left: 20px; margin-right: 20px; }
}

/* Sekce */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--light { background: var(--cream); color: var(--ink); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--bar { background: var(--dark-2); color: var(--on-dark); }
.section__head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--left { text-align: left; margin-bottom: 24px; }
.section__head h2 { margin-bottom: .2em; }
.section__head h2::after { content: ""; display: block; width: 60px; height: 2px; background: var(--gold); margin: 18px auto 0; }
.section__head--left h2::after { margin-left: 0; }
.section__sub { font-family: var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: 16px; }
.empty { text-align: center; color: var(--ink-muted); font-size: 1.1rem; max-width: 40em; margin: 0 auto; }
.section--dark .empty, .section--bar .empty { color: var(--on-dark-muted); }
.empty--left { text-align: left; margin: 0; }
.empty a { color: var(--gold-text); }
.section--dark .empty a { color: var(--gold); }

/* O nás */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about__text p { color: #4a443d; font-size: 1.08rem; }
.about__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about__photos img { border-radius: var(--radius); aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.about__photos img:last-child { margin-top: 48px; }
.signature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(50px, 7vw, 90px); }
.signature figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.signature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.signature figure:hover img { transform: scale(1.04); }
.signature figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em;
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .signature { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

/* Jídelní lístek */
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px clamp(30px, 6vw, 80px); }
.menu-cat { margin-bottom: 34px; break-inside: avoid; }
.menu-cat h3 { color: var(--gold-text); border-bottom: 1px solid var(--line-light); padding-bottom: 10px; margin-bottom: 18px; }
.section--dark .menu-cat h3, .section--bar .menu-cat h3 { color: var(--gold); border-color: var(--line-dark); }
.dish { margin-bottom: 18px; }
.dish__row { display: flex; align-items: baseline; gap: 8px; }
.dish__name { font-weight: 600; font-size: 1.05rem; }
.dish__name small { font-weight: 400; color: var(--ink-muted); font-size: .85rem; margin-left: 2px; }
.dish__dots { flex: 1; border-bottom: 1px dotted #b9ad9b; transform: translateY(-4px); min-width: 20px; }
.dish__price { font-family: var(--font-head); font-size: 1.1rem; color: var(--gold-text); white-space: nowrap; }
.dish__desc { margin: 2px 0 0; color: var(--ink-muted); font-style: italic; font-size: .97rem; max-width: 92%; }
.dish__alg { margin: 2px 0 0; font-size: .8rem; color: var(--ink-muted); }
.section--dark .dish__name small, .section--dark .dish__desc, .section--dark .dish__alg,
.section--bar .dish__name small, .section--bar .dish__desc, .section--bar .dish__alg { color: var(--on-dark-muted); }
.section--dark .dish__price, .section--bar .dish__price { color: var(--gold); }
.section--dark .dish__dots, .section--bar .dish__dots { border-color: #5a554e; }
.menu-note { font-size: .93rem; color: var(--ink-muted); border-left: 2px solid var(--gold); padding-left: 12px; }
.section--dark .menu-note, .section--bar .menu-note { color: var(--on-dark-muted); }
.menu-note--center { text-align: center; border: 0; padding: 0; margin-bottom: 30px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.chips a {
  text-decoration: none; padding: 7px 16px; border: 1px solid var(--line-light); border-radius: 100px;
  font-size: .92rem; background: var(--paper); color: var(--ink); transition: border-color .2s, color .2s;
}
.chips a:hover { border-color: var(--gold-text); color: var(--gold-text); }

@media (max-width: 760px) {
  .menu-cols { grid-template-columns: 1fr; }
  .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 0 20px 6px; }
  .chips a { white-space: nowrap; }
}

/* Bar */
.bar { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.bar__photo img { border-radius: var(--radius); position: sticky; top: 100px; }
@media (max-width: 860px) {
  .bar { grid-template-columns: 1fr; }
  .bar__photo { max-width: 360px; }
}

/* Akce */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.event { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
.event__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.event__body { padding: 22px 24px 10px; }
.event__date { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--gold-text); margin-bottom: 6px; }
.event h3 { font-size: 1.4rem; text-transform: none; letter-spacing: .02em; }
.event p { color: #4a443d; }

/* Rezervace */
.resv { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 6vw, 80px); }
.resv__intro { color: var(--on-dark-muted); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin: 24px 0 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .9rem; color: var(--on-dark); }
.field label span { color: var(--gold); }
.field input, .field textarea {
  font: inherit; font-size: 1rem;
  color: var(--on-dark);
  background: var(--dark-3);
  border: 1px solid #4a4640;
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  min-height: 48px;
  color-scheme: dark;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(207, 166, 112, .25); }
.field--err input, .field--err textarea { border-color: #e2726a; }
.field__err { color: #f19a93; font-size: .88rem; }
.form__legal { font-size: .85rem; color: var(--on-dark-muted); }
.form__legal a { color: var(--gold); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin: 16px 0; }
.alert--ok { background: #1d3527; border: 1px solid #3f8a5c; color: #d4f0de; }
.alert--err { background: #3a1f1d; border: 1px solid #b3554d; color: #f6d5d2; }
.resv__side { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.card { background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 26px; }
.card h3 { color: var(--gold); }
.card p { color: var(--on-dark-muted); }
.card__big { font-family: var(--font-head); font-size: 1.8rem; color: var(--on-dark); text-decoration: none; letter-spacing: .03em; }
.card__big:hover, .card__link:hover { color: var(--gold); }
.card__link { color: var(--gold); word-break: break-all; }
@media (max-width: 860px) {
  .resv { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form__grid { grid-template-columns: 1fr; }
}

/* Časté dotazy */
.faq details { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-text); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px; color: #4a443d; }
.faq details p:last-child { padding-bottom: 6px; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); }
.contact__list { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; margin: 24px 0; }
.contact__list dt { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--gold); padding-top: 3px; }
.contact__list dd { margin: 0; }
.contact__list a { color: var(--on-dark); text-decoration: none; }
.contact__list a:hover { color: var(--gold); }
.contact__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.contact__h { color: var(--gold); margin-top: 10px; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-weight: 400; }
.hours td { text-align: right; font-family: var(--font-head); letter-spacing: .05em; }
.hours__note { color: var(--on-dark-muted); font-size: .95rem; margin-top: 16px; }
.social { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 9px 16px;
}
.social a:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
}

/* Patička */
.footer { background: #0d0d0d; color: var(--on-dark-muted); text-align: center; padding: 50px 0 40px; font-size: .92rem; }
.footer img { width: 84px; height: 84px; margin: 0 auto 18px; opacity: .9; }
.footer a { color: var(--gold); }
.footer__small { font-size: .82rem; }

/* Textové stránky */
.prose { color: var(--ink); }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); text-transform: uppercase; }
.prose h2 { font-size: 1.4rem; text-transform: uppercase; margin-top: 1.8em; letter-spacing: .06em; }
.prose a { color: var(--gold-text); }
.prose li { margin-bottom: .4em; }
.muted { color: var(--ink-muted); font-size: .9rem; }

/* Fotka jídla – odkaz na názvu a vyskakovací okno */
.dish__name--photo { color: inherit; text-decoration: none; cursor: zoom-in; }
.dish__name--photo:hover { color: var(--gold-text); }
.section--dark .dish__name--photo:hover, .section--bar .dish__name--photo:hover { color: var(--gold); }
.dish__name--photo svg { width: 15px; height: 15px; vertical-align: -2px; color: var(--gold-text); margin-left: 2px; }
.section--dark .dish__name--photo svg, .section--bar .dish__name--photo svg { color: var(--gold); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 82vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox figcaption { color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; text-align: center; margin-top: 12px; }
.lightbox__close {
  position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--gold); color: var(--dark); font-size: 1.8rem; line-height: 1; cursor: pointer;
}
@media (max-width: 600px) { .lightbox__close { top: -54px; right: 0; } }

/* Rozvozy v navigaci: vypnuté = zašedlé tlačítko + stav s červeným puntíkem */
.nav__off { display: inline-flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav .nav__cta.is-disabled {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .92rem;
  border: 1px solid #55514b; color: #77716a; border-radius: var(--radius); padding: 8px 16px; cursor: not-allowed; user-select: none;
}
.nav__status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--on-dark-muted); white-space: nowrap; }
.nav__dot { width: 8px; height: 8px; border-radius: 50%; background: #e0453a; box-shadow: 0 0 0 3px rgba(224, 69, 58, .2); flex: none; }
@media (max-width: 900px) {
  .nav__off { margin: 14px 0 0; flex-direction: column; align-items: stretch; gap: 8px; }
  .nav .nav__cta.is-disabled { text-align: center; padding: 14px 4px; }
  .nav__status { justify-content: center; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .nav a { padding: 10px 8px; }
  .nav__off { flex-direction: column; align-items: center; gap: 3px; }
  .nav .nav__cta.is-disabled { padding: 5px 12px; }
  .nav__status { font-size: .7rem; }
}

/* Sekce s nabídkou v libovolném pořadí: světlá varianta a oddělení dvou světlých sekcí */
.section--light .section__sub { color: var(--gold-text); }
.section--sep { border-top: 1px solid var(--line-light); }
@media (min-width: 901px) and (max-width: 1180px) {
  .nav a { padding: 10px 7px; letter-spacing: .06em; font-size: .88rem; }
  .nav a.nav__cta { padding: 8px 12px; }
}
