/* Hotel Šustr – veřejný web
   Barvy vycházejí z fasády domu: krémová omítka, terakotové lizény, tmavé dřevo dveří. */

@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-normal-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-normal-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinsonhyperlegiblenext-normal-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinsonhyperlegiblenext-normal-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinsonhyperlegiblenext-italic-latin-ext.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinsonhyperlegiblenext-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
  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 {
  --paper: #f6efe3;
  --paper-deep: #ede1cd;
  --card: #fffaf2;
  --ink: #2a1d16;
  --ink-soft: #5e4b3f;
  --terracotta: #a63d30;
  --terracotta-dark: #86301f;
  --facade: #d9796a;
  --line: #d8c6ad;
  --focus: #1f5fbf;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --space: clamp(3rem, 7vw, 5.5rem);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, .h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -.01em; }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--terracotta); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terracotta-dark); text-decoration-thickness: 2px; }

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

address { font-style: normal; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--ink-soft); }

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #f3e9db;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand img { width: 122px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav a {
  color: #f3e9db;
  text-decoration: none;
  font-weight: 500;
  padding-block: .4rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .35); }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--facade); }
.site-nav__phone {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 700 !important;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 4px;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 52rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, .15);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .site-nav a[aria-current="page"] { color: #ffb4a6; }
  .site-nav__phone { border-bottom: 0 !important; }
  .site-header__inner { flex-wrap: wrap; }
}

/* ---------- Tlačítka a odkazy ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.4rem;
  border: 2px solid var(--terracotta);
  border-radius: 4px;
  background: var(--terracotta);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: #fff; }
.button--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.button--light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Číslice (ceny, časy, data) sázíme v Literatě – Atkinson má přeškrtnutou nulu, která sem nepatří. */
.dish__price, .dish__weight, .hours, .fact__hours, .site-nav__phone, .site-footer address {
  font-family: var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}
.dish__weight { font-weight: 400; }

.text-link { font-weight: 700; }
.text-link::after { content: " →"; }

/* ---------- Úvod ---------- */

.hero {
  position: relative;
  display: grid;
  min-height: min(82vh, 52rem);
  background: var(--ink);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.hero__inner { position: relative; display: flex; align-items: flex-end; padding-bottom: clamp(1.5rem, 5vw, 3.5rem); }
.hero__panel {
  max-width: 34rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink);
  color: #f3e9db;
}
.hero__title { margin-bottom: .1em; color: #fff; font-size: clamp(2.75rem, 7vw, 5rem); }
.hero__sub { margin-bottom: 1.75rem; font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 40rem) {
  .hero { min-height: 0; }
  .hero__img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .hero__inner { padding: 0; }
  .hero__panel { max-width: none; width: 100%; }
}

/* ---------- Informační pruh ---------- */

.facts { background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: 2rem 2rem 2rem 0; }
.fact + .fact { padding-left: 2rem; border-left: 1px solid var(--line); }
.fact__label {
  margin-bottom: .75rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  color: var(--terracotta);
}
.fact__value { margin-bottom: .5rem; font-size: 1.15rem; }
.fact__phone { color: var(--ink); font-family: var(--serif); font-size: 1.6rem; font-weight: 600; text-decoration: none; }
.fact__phone:hover { color: var(--terracotta); }
.fact__hours { display: grid; gap: .15rem; margin: 0; font-size: 1.05rem; }
.fact__hours div { display: grid; grid-template-columns: 3.75rem 1fr; }
.fact__hours dt { color: var(--ink-soft); }
.fact__hours dd { margin: 0; }

@media (max-width: 52rem) {
  .facts__grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 1.5rem 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* ---------- Sekce a mřížka ---------- */

.section { padding-block: var(--space); }
.section--tight { padding-block: 0 var(--space); }
.section--dark { background: var(--ink); color: #eadfce; }
.section--dark h2 { color: #fff; }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-bottom: 1.5rem;
}
.section__head h2 { margin: 0; }

/* Dvousloupcová mřížka: vlevo nadpis, vpravo obsah. Všechny sekce lícují na stejné hrany. */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.layout__aside h2 { margin-bottom: .25rem; }
.layout__aside { position: sticky; top: 6rem; }
.layout__meta { margin-bottom: 1rem; color: var(--ink-soft); font-family: var(--serif); font-size: 1.1rem; }
/* Dělicí čára jen v šířce obsahu (ne přes vnitřní okraje .wrap). */
.layout--ruled {
  padding-block: 2.5rem;
  background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
}
.layout--ruled:first-child { background: none; }
.layout--ruled .layout__aside h2 { font-size: 1.6rem; }
.layout--ruled.is-today .layout__aside h2 { color: var(--terracotta); }

@media (max-width: 52rem) {
  .layout { grid-template-columns: 1fr; }
  .layout__aside { position: static; }
  .layout--ruled { padding-block: 2rem; }
}

.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; }
.page-head__meta { margin: .4rem 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: 1.15rem; }
.page-head + .section--tight { padding-top: 0; }

.notice { margin: 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--facade); background: var(--card); }

.badge {
  padding: .1rem .5rem;
  border-radius: 3px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  vertical-align: .15em;
}

.jump-nav { margin-top: 1.25rem; }
.jump-nav ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.jump-nav a {
  display: inline-block;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.jump-nav a:hover { border-color: var(--ink); }
.jump-nav a[aria-current="date"] { border-color: var(--terracotta); background: var(--terracotta); color: #fff; }

/* ---------- Jídla: pevné sloupce, aby gramáž i ceny lícovaly pod sebou ---------- */

.dish-group {
  margin: 2rem 0 .25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--ink);
  font-size: 1.15rem;
}
.dish-group:first-child { margin-top: 0; }
.dishes { margin: 0; padding: 0; list-style: none; }
.dish {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem 6.5rem;
  column-gap: 1rem;
  align-items: baseline;
  padding-block: .85rem;
  border-bottom: 1px solid var(--line);
}
.dish__name { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.dish__weight { color: var(--ink-soft); text-align: right; white-space: nowrap; }
.dish__price { font-weight: 600; text-align: right; white-space: nowrap; }
.dish__desc { grid-column: 1 / 2; margin-top: .15rem; color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 30rem) {
  .dish { grid-template-columns: minmax(0, 1fr) auto; }
  .dish__weight { grid-row: 2; grid-column: 1; text-align: left; font-size: .9rem; }
  .dish__desc { grid-column: 1 / -1; }
}

/* ---------- Akce ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature__text p { max-width: 28rem; font-size: 1.15rem; margin-bottom: 1.75rem; }
@media (max-width: 52rem) {
  .feature { grid-template-columns: 1fr; }
}

/* ---------- Galerie ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .75rem;
  margin: 0; padding: 0;
  list-style: none;
}
.tiles img, .gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity .2s;
}
.tiles a:hover img, .gallery a:hover img { opacity: .85; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: .75rem;
  margin: 0; padding: 0;
  list-style: none;
}
.gallery__item[hidden] { display: none; }

.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter__btn {
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.filter__btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(20, 14, 10, .94);
  color: #fff;
}
.lightbox::backdrop { background: rgba(20, 14, 10, .94); }
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 3.5rem 4rem;
}
.lightbox__img { max-width: 100%; max-height: calc(100% - 3rem); object-fit: contain; }
.lightbox__caption { margin-top: 1rem; text-align: center; }
.lightbox__btn {
  position: absolute;
  width: 3rem; height: 3rem;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__btn--prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__btn--next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__btn--close { right: 1rem; top: 1rem; }
@media (max-width: 40rem) {
  .lightbox__figure { padding: 4rem .5rem 5rem; }
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 1rem; translate: none; }
}

/* ---------- Otevírací doba, kontakt ---------- */

.hours { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th { padding: .2rem 1.5rem .2rem 0; text-align: left; font-weight: 400; }
.hours td { padding: .2rem 0; }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--terracotta); }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.contact .h3 { margin-top: 2rem; }
.details { margin: 0; }
.details dt { color: var(--ink-soft); font-size: .9rem; }
.details dd { margin: 0 0 1rem; font-size: 1.1rem; }
.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  border: 1px solid var(--line);
}
@media (max-width: 52rem) {
  .contact { grid-template-columns: 1fr; }
}

/* ---------- Patička ---------- */

.site-footer {
  padding-block: 3rem 1.5rem;
  background: var(--ink);
  color: #eadfce;
}
.site-footer a { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}
.site-footer__name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: #fff; margin-bottom: .5rem; }
.site-footer__label { font-weight: 700; color: #fff; margin-bottom: .5rem; }
.site-footer .hours .is-today th, .site-footer .hours .is-today td { color: #ffb4a6; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .9rem;
}
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li + li { margin-top: .25rem; }

/* ---------- Animace ----------
   Úvod se odhalí při načtení (čisté CSS), sekce níže při posunu (site.js přidá .is-pending
   jen prvkům mimo obrazovku). Uživatelé s omezením pohybu animace nevidí. */

@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: settle 1.8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__panel { animation: unveil .9s cubic-bezier(.65, 0, .25, 1) .15s both; }
  .hero__panel > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__panel > :nth-child(1) { animation-delay: .45s; }
  .hero__panel > :nth-child(2) { animation-delay: .55s; }
  .hero__panel > :nth-child(3) { animation-delay: .65s; }

  .reveal {
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .reveal.is-pending { opacity: 0; translate: 0 1.5rem; }
}

@keyframes rise {
  from { opacity: 0; translate: 0 1rem; }
}
@keyframes unveil {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes settle {
  from { scale: 1.08; }
}

@media print {
  .site-header, .site-footer, .jump-nav, .button-row { display: none; }
  body { background: #fff; }
}
