/* Slamena Buda - jedalny listok module.

   Additions only. Reuses the tokens and the .dish / .menu-grid rules already in
   slamenabuda.css, so a dish row looks identical on the homepage teaser and on
   the full menu page.

   Loaded after slamenabuda.css. No data-aos fade-left/fade-right anywhere
   (mobile horizontal overflow rule). */

/* ---------- LANGUAGE SWITCHER ---------- */
/* Loads after slamenabuda.css, so this overrides the subtle default active
   state with a clearly visible filled pill for the current language. */
.lang-switch {
  gap: 3px;
}

.lang-switch a {
  padding: 5px 9px;
  border-radius: 3px;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.lang-switch a.is-on {
  color: #fff;
  background: var(--brown);
}

.lang-switch a:not(.is-on):hover,
.lang-switch a:not(.is-on):focus-visible {
  color: var(--brown);
  background: rgba(61, 27, 13, .10);
}

/* ---------- FULL MENU PAGE ---------- */
.menu-full {
  padding: 120px 0 100px;
  background: var(--paper);
}

.menu-full .section-head h1,
.menu-full .section-head h2 {
  font-size: clamp(33px, 4vw, 52px);
  margin-top: 18px;
}

/* Heading row: title on the left, PDF download links on the right, same line. */

.menu-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.menu-head-row h1,
.menu-head-row h2 { margin-top: 0; }

.menu-pdfs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 8px;   /* sit the pills near the h2 baseline, not its descenders */
}
.menu-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--brown);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
  transition: color .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.menu-pdf:hover {
  color: var(--straw-text);
  border-color: var(--straw-deep);
  background: var(--paper-2);
}
.menu-pdf svg { width: 15px; height: 15px; flex: none; }

/* Category jump links. Wraps rather than scrolls sideways: a horizontally
   scrolling nav on a 14 category card hides most of it on a phone. */
.menu-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.menu-nav a {
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  background: var(--paper-2);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}

.menu-nav a:hover,
.menu-nav a:focus-visible {
  color: var(--brown);
  border-color: var(--straw-deep);
  background: var(--paper-3);
}

.menu-cat {
  margin-top: 62px;
  /* Offset for the fixed header so an anchor jump does not hide the title. */
  scroll-margin-top: 96px;
}

/* Link in the jump-nav pointing to the other menu (food <-> drinks). */
.menu-nav-drinks {
  font-weight: 700;
  color: var(--straw-text);
  border-color: var(--straw-deep);
}

/* Centred page footer with the legend and a light link to the other menu. */
.menu-page-foot {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.menu-page-foot .menu-legend {
  margin: 0;
  padding: 0;
  border: 0;
}

/* ---------- NAV DROPDOWN (Jedálny lístok -> Nápojový lístok) ---------- */
.navlink-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.navlink-parent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-caret {
  font-size: 9px;
  transition: transform .25s var(--ease);
}

.navlink-group:hover .nav-caret,
.navlink-group:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 200px;
  padding: 8px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 16px 40px rgba(44, 29, 17, .16);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 60;
}

/* Invisible bridge so the pointer can cross the gap without the menu closing. */
.nav-submenu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.navlink-group:hover .nav-submenu,
.navlink-group:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
}

.nav-submenu a {
  display: block;
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.nav-submenu a:hover {
  background: var(--paper-2);
  color: var(--straw-text);
}

/* On the mobile nav the submenu stacks inline under its parent, indented. */
@media (max-width: 1220px) {
  .navlink-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav-caret {
    display: none;
  }

  .nav-submenu {
    position: static;
    transform: none;
    opacity: 1;
    /* No visibility:visible here: it would override the collapsed .nav-links
       visibility:hidden and keep these links keyboard-focusable behind a closed
       menu. Inheriting is correct. */
    min-width: 0;
    padding: 0 0 4px 18px;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-submenu::before {
    display: none;
  }

  .nav-submenu a {
    padding: 10px 0;
    font-size: 15px;
    text-transform: none;
    letter-spacing: .02em;
    color: var(--ink-soft);
  }
}

/* ---------- DRINKS PAGE ---------- */
/* A drinks list is many small categories, some with a single item. Laying each
   one full width would leave big empty rows, so the categories flow into two
   masonry columns and pack together; items inside a category stack in one column. */
.drinks-full .drinks-columns {
  column-count: 2;
  column-gap: 64px;
  margin-top: 44px;
}

.drinks-columns .menu-cat {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 42px;
  scroll-margin-top: 96px;
}

.drinks-columns .menu-cat-title {
  font-size: clamp(21px, 2vw, 27px);
  padding-bottom: 11px;
  border-bottom: 2px solid var(--straw-deep);
}

.drink-list {
  margin-top: 10px;
}

.drink-row {
  padding: 11px 0;
  align-items: baseline;
}

@media (max-width: 900px) {
  .drinks-full .drinks-columns {
    column-count: 1;
  }
}

.menu-cat-title {
  font-size: clamp(24px, 2.6vw, 32px);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--straw-deep);
}

.menu-cat .menu-grid {
  margin-top: 26px;
}

/* Allergen and country-of-origin line. Legally meaningful, so it is always
   rendered when present, but visually quiet. */
.d-aller {
  color: var(--ink-soft);
  font-size: 12.5px;
  margin-top: 7px;
  letter-spacing: .02em;
}

.menu-legend {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- WEEKLY PRICES ---------- */
.weekly-prices {
  margin-top: 32px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--straw-text);
  font-variant-numeric: tabular-nums;
}

/* ---------- HOMEPAGE TEASER FOOT ---------- */
/* Two buttons now (full menu + PDF) where there used to be one. */
.menu-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 900px) {
  .menu-full {
    padding: 88px 0 72px;
  }

  .menu-cat {
    margin-top: 48px;
  }

  .menu-cat .menu-grid,
  .menu-full .menu-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 560px) {
  .menu-nav {
    gap: 6px;
  }

  .menu-nav a {
    font-size: 12px;
    padding: 6px 12px;
  }

  .menu-foot .btn {
    width: 100%;
    text-align: center;
  }
}
