/* ============================================================
   Restaurace Na Radnici – styl (krémová / černá / zlatá)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --ivory: #f7f4ec;
  --ivory-soft: #efeadd;
  --ink: #1a1815;
  --ink-soft: #4a453d;
  --gold: #b0893c;
  --gold-light: #cbab6a;
  --line: rgba(176, 137, 60, 0.45);
  --shadow: rgba(26, 24, 21, 0.12);
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'EB Garamond', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--ivory);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
body.loaded { opacity: 1; transform: none; }
body.page-exit {
  opacity: 0;
  transform: translateY(-10px) scale(.995);
  transition: opacity .32s ease, transform .32s ease;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1080px, 92%); margin: 0 auto; }

/* ---------- ornamentální oddělovač ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 30px 0; color: var(--gold);
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: 90px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}
.ornament .diamond { font-size: 14px; letter-spacing: 4px; }

/* ---------- horní lišta (boxovaná, plovoucí) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; padding: 14px 0;
  background: linear-gradient(to bottom, var(--ivory) 55%, rgba(247,244,236,0));
}
.topbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 10px 22px;
  background: rgba(255, 253, 248, 0.9); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 26px var(--shadow);
}

/* navigace (vlevo, jeden řádek) */
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: nowrap; }
.nav a {
  position: relative; color: var(--ink-soft); font-size: 15px;
  letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap;
  padding: 4px 0; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: center; transition: transform .25s ease;
}
.nav a:hover { color: var(--gold); text-decoration: none; }
.nav a:hover::after { transform: scaleX(1); }

/* logo v liště (vpravo) */
.logo-lockup { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-lockup img { height: 46px; width: auto; }
.logo-lockup .logo-text { font-family: var(--display); line-height: 1; text-align: left; }
.logo-lockup .logo-text .l1 {
  display: block; font-size: 20px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
}
.logo-lockup .logo-text .l2 {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
}
.logo-lockup:hover { text-decoration: none; }

.burger { display: none; background: none; border: none; cursor: pointer; font-size: 26px; color: var(--ink); }

/* ---------- hero ---------- */
.hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-section::before {
  content: "";
  position: absolute; inset: 0;
  background: url("/img/radnice.jpg") center 38% / cover no-repeat;
  transform: scale(1.05);
}
.hero-section::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(247,244,236,.60), rgba(247,244,236,.68) 52%, rgba(247,244,236,.92));
}
.hero { position: relative; z-index: 1; text-align: center; padding: 64px 0 40px; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: 8px; font-size: 15px; color: var(--gold); }
.hero-logo { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 10px; }
.hero-logo::before, .hero-logo::after {
  content: ""; height: 1px; width: min(140px, 20vw);
  background: linear-gradient(to right, transparent, var(--line), transparent);
}
.hero-logo img { height: clamp(96px, 17vw, 165px); width: auto; filter: drop-shadow(0 3px 8px rgba(26,24,21,.18)); }

/* wordmark: RESTAURACE velké, NA RADNICI menší (jako v původním logu) */
.wordmark {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  line-height: .98; margin: 6px 0 4px; display: flex; flex-direction: column; align-items: center;
}
.wordmark .wm-top { font-size: clamp(46px, 9vw, 104px); letter-spacing: 4px; }
.wordmark .wm-bottom { font-size: clamp(24px, 4.6vw, 54px); letter-spacing: 7px; margin-top: 2px; }

/* nadpis na stránkách lístků */
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 84px);
  line-height: 1; letter-spacing: 4px; text-transform: uppercase; margin: 6px 0;
}

.hero .subtitle {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 7px;
  font-size: clamp(15px, 3vw, 22px); color: var(--ink-soft); margin-top: 8px;
}
.hero .tagline { font-style: italic; font-size: 20px; color: var(--ink-soft); margin-top: 16px; }

/* ---------- sekce ---------- */
section { padding: 46px 0; }
.section-title {
  font-family: var(--display); text-align: center; font-weight: 600;
  font-size: clamp(30px, 5vw, 48px); letter-spacing: 6px; text-transform: uppercase;
}
.section-lead { text-align: center; color: var(--ink-soft); max-width: 680px; margin: 0 auto; font-size: 19px; }
.tinted { background: var(--ivory-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- denní menu ---------- */
.daily-image-wrap {
  max-width: 560px; margin: 24px auto 0; border: 1px solid var(--line);
  padding: 10px; background: #fff; box-shadow: 0 12px 34px var(--shadow);
}
.daily-image-wrap img { width: 100%; }
.daily .note, .note { text-align: center; font-style: italic; color: var(--ink-soft); margin-top: 18px; }
.daily .empty, .empty {
  text-align: center; color: var(--ink-soft); font-style: italic;
  border: 1px dashed var(--line); padding: 40px; max-width: 560px; margin: 24px auto 0;
}

/* ---------- šablona denního menu (jako klasický lístek) ---------- */
.daily-card {
  max-width: 560px; margin: 26px auto 0;
  background: #fff; padding: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px var(--shadow);
}
.daily-card-inner {
  border: 2px solid var(--gold);
  outline: 1px solid var(--gold); outline-offset: 4px;
  padding: 34px 30px 26px;
  position: relative;
}
.daily-card .dm-eyebrow {
  text-align: center; text-transform: uppercase; letter-spacing: 6px;
  font-size: 13px; color: var(--ink-soft);
}
.daily-card .dm-brand {
  text-align: center; font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 4px;
  font-size: clamp(30px, 6vw, 46px); line-height: 1; margin: 2px 0 4px;
}
.daily-card .dm-town {
  text-align: center; text-transform: uppercase; letter-spacing: 4px;
  font-size: 13px; color: var(--gold);
}
.daily-card .dm-town .dm-arrow { color: var(--gold); font-size: 10px; }
.daily-card .dm-orn { display: flex; justify-content: center; color: var(--gold); margin: 14px 0; font-size: 12px; letter-spacing: 4px; }
.daily-card .dm-label {
  text-align: center; font-family: var(--display); text-transform: uppercase;
  letter-spacing: 5px; font-size: clamp(20px, 4vw, 28px); font-weight: 600;
}
.daily-card .dm-labelrule { height: 1px; background: var(--line); margin: 10px 0 18px; }
.daily-card .dm-item {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; align-items: baseline; padding: 8px 0;
}
.daily-card .dm-name {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; font-size: 21px;
}
.daily-card .dm-desc { grid-column: 1 / 2; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; color: var(--ink-soft); }
.daily-card .dm-price {
  grid-row: 1 / 2; grid-column: 2 / 3; font-family: var(--display); font-weight: 600;
  font-size: 22px; white-space: nowrap; border-left: 1px solid var(--line); padding-left: 16px;
}
.daily-card .dm-sep { text-align: center; color: var(--gold); font-size: 9px; letter-spacing: 3px; opacity: .8; margin: 2px 0; }
.daily-card .dm-foot { text-align: center; margin-top: 22px; }
.daily-card .dm-thanks { text-transform: uppercase; letter-spacing: 3px; font-size: 11px; color: var(--ink-soft); }
.daily-card .dm-wish { font-family: var(--display); font-style: italic; color: var(--gold); font-size: 18px; margin-top: 2px; }

/* ---------- obrázkový pás u lístků ---------- */
.menu-image-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin: 0 auto 40px; max-width: 900px;
}
.menu-image-strip figure { border: 1px solid var(--line); padding: 8px; background: #fff; box-shadow: 0 8px 22px var(--shadow); }
.menu-image-strip img { width: 100%; height: 320px; object-fit: contain; background: var(--ivory-soft); }

/* ---------- lístky ---------- */
.menu-block { margin-bottom: 40px; }
.menu-cat {
  font-family: var(--display); font-size: 28px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 18px;
}
.menu-item {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 20px;
  align-items: baseline; padding: 12px 0; border-bottom: 1px dotted rgba(74, 69, 61, 0.25);
}
.menu-item:last-child { border-bottom: none; }
.menu-item .name { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: 1px; }
.menu-item .desc { grid-column: 1 / 2; color: var(--ink-soft); font-size: 17px; font-style: italic; text-transform: lowercase; }
.menu-item .price { font-family: var(--display); font-size: 26px; font-weight: 600; white-space: nowrap; grid-row: 1 / 2; grid-column: 2 / 3; }

/* ---------- rezervační formulář ---------- */
.res-form { max-width: 760px; margin: 26px auto 0; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rf { display: flex; flex-direction: column; }
.rf.full { margin-top: 18px; }
.rf label { font-family: var(--display); font-size: 18px; letter-spacing: 1px; margin-bottom: 6px; color: var(--ink-soft); }
.rf input, .rf textarea {
  font-family: var(--body); font-size: 17px; padding: 11px 13px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.rf input:focus, .rf textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,137,60,.15); }
.rf textarea { resize: vertical; }
.res-msg { text-align: center; margin-top: 16px; font-size: 17px; min-height: 22px; }
.res-msg.ok { color: #3f7d4e; font-style: italic; }
.res-msg.err { color: #a23c3c; }
@media (max-width: 640px) { .res-grid { grid-template-columns: 1fr; } }

/* ---------- info mřížka ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px; margin-top: 26px; }
.info-card h3 { font-family: var(--display); font-size: 26px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hours-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dotted rgba(74, 69, 61, 0.25); }
.hours-row .day { font-weight: 500; }
.contact-line { margin-bottom: 8px; }
.map-wrap { margin-top: 26px; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 26px; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border: 1px solid var(--line); transition: transform .35s ease, box-shadow .35s ease; }
.gallery-grid img:hover { transform: scale(1.04); box-shadow: 0 12px 26px var(--shadow); }

/* ---------- recenze ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 26px; }
.review-card { background: #fff; border: 1px solid var(--line); padding: 24px; box-shadow: 0 6px 18px var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px var(--shadow); }
.review-card .stars { color: var(--gold); letter-spacing: 3px; font-size: 18px; }
.review-card .text { font-style: italic; margin: 10px 0; }
.review-card .author { font-weight: 500; }
.rev-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.rev-time { font-size: 14px; color: var(--ink-soft); }
.rev-summary { margin-bottom: 6px; font-family: var(--display); }
.rev-summary .rev-score { font-size: 40px; font-weight: 700; color: var(--gold); vertical-align: middle; }
.rev-summary .stars { color: var(--gold); letter-spacing: 3px; font-size: 22px; }
.rev-summary .rev-total { color: var(--ink-soft); font-size: 18px; }

/* ---------- tlačítko ---------- */
.btn {
  display: inline-block; font-family: var(--display); letter-spacing: 2px;
  text-transform: uppercase; font-size: 16px; padding: 12px 30px;
  border: 1px solid var(--gold); color: var(--ink); background: transparent;
  cursor: pointer; transition: background .25s, color .25s, transform .15s;
}
.btn:hover { background: var(--gold); color: var(--ivory); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--ivory); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.center { text-align: center; }
.menu-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- patička ---------- */
footer { text-align: center; padding: 44px 0 30px; border-top: 1px solid var(--line); background: var(--ivory-soft); }
footer .thanks { text-transform: uppercase; letter-spacing: 5px; font-size: 15px; color: var(--ink-soft); }
footer .wish { font-style: italic; font-size: 22px; color: var(--gold); margin-top: 6px; }
footer .small { font-size: 14px; color: var(--ink-soft); margin-top: 20px; }
footer .admin-foot { display: inline-block; margin-top: 18px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); opacity: .7; }
footer .admin-foot:hover { color: var(--gold); opacity: 1; }

/* ============================================================
   ANIMACE
   ============================================================ */
body.loaded .hero > * { animation: heroIn .7s cubic-bezier(.2,.7,.2,1) both; }
body.loaded .hero .eyebrow { animation-delay: .05s; }
body.loaded .hero .hero-logo { animation-delay: .15s; }
body.loaded .hero h1 { animation-delay: .28s; }
body.loaded .hero .subtitle { animation-delay: .4s; }
body.loaded .hero .ornament { animation-delay: .5s; }
body.loaded .hero .tagline { animation-delay: .58s; }
body.loaded .hero .menu-links { animation-delay: .66s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

body.loaded .hero-logo img { animation: floaty 6s ease-in-out 1.2s infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- responsivita ---------- */
@media (max-width: 820px) {
  .nav {
    position: absolute; top: calc(100% + 6px); right: 0; left: 0;
    background: #fffdf8; flex-direction: column; gap: 0;
    border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 12px 30px var(--shadow); display: none; overflow: hidden;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 14px 22px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav a::after { display: none; }
  .burger { display: block; order: -1; }
  .topbar .inner { position: relative; }
  .logo-lockup .logo-text .l1 { font-size: 17px; }
  .logo-lockup img { height: 40px; }
  body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  body, body.page-exit { opacity: 1; transform: none; }
}
