@charset "UTF-8";
/* ==========================================================================
   Cesarsko Mesto — kitajska restavracija, Ljubljana
   Single stylesheet. No framework, no icon fonts.
   Prefix: .cm-  |  Sections are ordered; see the table of contents.

   01 Tokens          07 Hero slider        13 Gallery
   02 Reset / base    08 Page header        14 Video
   03 Layout          09 Cards / grid       15 Contact
   04 Typography      10 About              16 Footer
   05 Buttons         11 Counter            17 Reveal / motion
   06 Header / nav    12 Menu               18 Print
   ========================================================================== */

/* -------------------------------------------------------------- 01 Tokens -- */
:root {
  /* brand */
  --cm-gold: #f5c542;
  --cm-gold-dark: #d9a91f;
  --cm-red: #a11212;
  --cm-red-bright: #c81e1e;
  --cm-ink: #111111;
  --cm-body: #666666;
  --cm-cream: #f6f1e9;
  --cm-grey: #f8f8f8;
  --cm-line: rgba(0, 0, 0, 0.14);
  --cm-white: #ffffff;

  /* type */
  --cm-font: "Roboto Slab", Georgia, "Times New Roman", serif;
  /* Bold engraved-caps serif — matches "KITAJSKA-RESTAVRACIJA" on the logo.
     Its lowercase glyphs are small-caps, so it is only ever used together
     with text-transform: uppercase, on short headings/labels — never on
     paragraphs or the 189-dish menu, where it would hurt readability. */
  --cm-font-heading: "Cinzel", Georgia, serif;
  /* Bold, flourished brush script — the closest Google Font match to the
     "Cesarsko Mesto" lettering on the logo itself (thick strokes, looping
     swash caps), and it fully covers Slovenian č/š/ž unlike every other
     "Chinese-style" font tried before it. */
  --cm-font-script: "Kaushan Script", "Segoe Script", cursive;
  --cm-text: 1.0625rem;          /* 17px */
  --cm-lh: 1.9;

  /* rhythm */
  --cm-section-y: clamp(3.5rem, 8vw, 7rem);
  --cm-gap: clamp(1rem, 2.5vw, 1.875rem);
  --cm-container: 1140px;
  --cm-container-wide: 1560px;

  /* effects */
  --cm-radius: 3px;
  --cm-radius-lg: 12px;
  --cm-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  --cm-shadow-lg: 0 18px 44px -12px rgba(0, 0, 0, 0.28);
  --cm-ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* chrome heights, used to offset anchors + the hero */
  --cm-topbar-h: 46px;
  --cm-nav-h: 118px;

  /* Section backdrop: warm rice-paper cream with gold clouds, waves and plum
     blossom pinned to the four corners (assets/img/ozadje-*.webp, cut from one
     banner). The paper colour is sampled from the banner's calm centre, so the
     faded edges of the corner pieces melt into it without a seam. */
  --cm-paper: #faeedb;
  --cm-deco-w: clamp(110px, 27vw, 500px);   /* width of each corner piece */
}

/* --------------------------------------------------------- 02 Reset / base -- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--cm-nav-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--cm-font);
  font-size: var(--cm-text);
  line-height: var(--cm-lh);
  font-weight: 400;
  color: var(--cm-body);
  background: var(--cm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.cm-no-scroll { overflow: hidden; }

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

a {
  color: var(--cm-gold-dark);
  text-decoration: none;
  transition: color var(--cm-ease);
}
a:hover { color: var(--cm-red); }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cm-ink);
}

strong, b { font-weight: 600; color: var(--cm-ink); }

address { font-style: normal; }

/* one icon system: 24x24 stroke icons that inherit `color` */
.cm-icon {
  flex: none;
  /* An inline <svg> with only a viewBox resolves to width:100%, which lets an
     icon stretch its container. Default to the current text size; components
     that need a fixed size override below. */
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cm-icon--fill { fill: currentColor; stroke: none; }
/* the sprite itself must never take up space */
.cm-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible {
  outline: 3px solid var(--cm-gold);
  outline-offset: 3px;
}

/* skip link — first tab stop */
.cm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--cm-red);
  color: #fff;
  font-weight: 600;
}
.cm-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  color: #fff;
}

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

/* -------------------------------------------------------------- 03 Layout -- */
.cm-container {
  width: 100%;
  max-width: var(--cm-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.875rem);
}
.cm-container--wide { max-width: var(--cm-container-wide); }
.cm-container--narrow { max-width: 820px; }

.cm-section {
  padding-block: var(--cm-section-y);
  position: relative;
  /* four corner pieces over flat paper — one banner stretched behind a section
     only fits sections that share its proportions; corners fit any height */
  background:
    url("../img/ozadje-zgoraj-levo.webp")   left  top    / var(--cm-deco-w) auto no-repeat,
    url("../img/ozadje-spodaj-levo.webp")   left  bottom / var(--cm-deco-w) auto no-repeat,
    url("../img/ozadje-zgoraj-desno.webp")  right top    / var(--cm-deco-w) auto no-repeat,
    url("../img/ozadje-spodaj-desno.webp")  right bottom / var(--cm-deco-w) auto no-repeat,
    var(--cm-paper);
}
.cm-section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.cm-section--flush-top { padding-top: 0; }

/* full-bleed photographic band with a dark scrim */
.cm-band {
  position: relative;
  background: var(--cm-ink) center/cover no-repeat;
  color: #fff;
  isolation: isolate;
}
.cm-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

/* ---------------------------------------------------------- 04 Typography -- */
/* Script kicker + slab heading. The kicker sits behind and above the h2,
   exactly as in the original design. */
.cm-heading {
  position: relative;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.cm-heading--center { text-align: center; }

.cm-kicker {
  display: block;
  font-family: var(--cm-font-script);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6.25rem);
  line-height: 1;
  color: var(--cm-gold);
  /* Caveat's loopy descenders (the "j" in "Kje nas najdete") sit lower than
     Great Vibes' did, so the old -0.35em overlap now clips into the heading
     below it. */
  margin-bottom: -0.05em;
  position: relative;
  z-index: 0;
}

.cm-heading h1,
.cm-heading h2 {
  position: relative;
  z-index: 1;
  font-family: var(--cm-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.75rem, 4.6vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--cm-ink);
  margin: 0;
}

.cm-heading p {
  margin-top: 1rem;
  max-width: 60ch;
}
.cm-heading--center p { margin-inline: auto; }

.cm-band .cm-heading h2,
.cm-band .cm-heading h1 { color: #fff; }
.cm-band .cm-heading p { color: rgba(255, 255, 255, 0.9); }

.cm-lead { font-size: 1.125rem; }

/* ------------------------------------------------------------- 05 Buttons -- */
.cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border: 1px solid var(--cm-gold);
  border-radius: var(--cm-radius);
  background: var(--cm-gold);
  color: #3a2a00;
  font-family: var(--cm-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.35);
  transition: background var(--cm-ease), color var(--cm-ease),
              border-color var(--cm-ease), transform var(--cm-ease);
}
.cm-btn:hover,
.cm-btn:focus-visible {
  background: transparent;
  color: var(--cm-gold-dark);
  transform: translateY(-2px);
}

.cm-btn--red {
  background: var(--cm-red);
  border-color: var(--cm-red);
  color: #fff;
}
.cm-btn--red:hover,
.cm-btn--red:focus-visible {
  background: transparent;
  color: var(--cm-red);
}

.cm-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  box-shadow: none;
}
.cm-btn--ghost:hover,
.cm-btn--ghost:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--cm-ink);
}

.cm-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}
.cm-heading--center + .cm-btn-row,
.cm-btn-row--center { justify-content: center; }

/* --------------------------------------------------------- 06 Header / nav -- */
/* Lies transparently over the hero photograph, as in the original design —
   the red behind the phone number is the photo, not a painted bar. */
.cm-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  background: rgba(255, 255, 255, 0.05);
  color: #ffff00;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
}
@media (max-width: 991px) {
  .cm-topbar { display: none; }
}
.cm-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: var(--cm-topbar-h);
  padding-block: 0.35rem;
}
.cm-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.cm-topbar a { color: #ffff00; font-weight: 700; }
.cm-topbar a:hover { color: #fff; }
.cm-topbar svg { width: 15px; height: 15px; color: #ffff00; }

.cm-header {
  position: absolute;
  top: var(--cm-topbar-h);
  left: 0;
  right: 0;
  z-index: 7;
  background: #fff;
}
/* drops back in as a fixed bar after the hero has scrolled past */
.cm-header.is-stuck {
  position: fixed;
  top: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  animation: cm-drop 0.3s ease-out both;
}
@keyframes cm-drop {
  from { transform: translateY(-100%); }
  to { transform: none; }
}
@media (max-width: 991px) {
  /* no top bar on phones, so the header sits in the flow and sticks */
  .cm-header {
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: 0 1px 0 var(--cm-line);
  }
  .cm-header.is-stuck { animation: none; }
}

.cm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--cm-nav-h);
  padding-block: 0.5rem;
}

.cm-logo { display: inline-flex; align-items: center; }
.cm-logo img {
  height: clamp(68px, 11vw, 100px);
  width: auto;
}

/* burger */
.cm-burger {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
  background: none;
  font: 700 0.8125rem/1 var(--cm-font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cm-ink);
  cursor: pointer;
}
.cm-burger__bars {
  position: relative;
  width: 20px;
  height: 14px;
  flex: none;
}
.cm-burger__bars span,
.cm-burger__bars::before,
.cm-burger__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cm-ink);
  transition: transform var(--cm-ease), opacity var(--cm-ease);
}
.cm-burger__bars::before { top: 0; }
.cm-burger__bars span { top: 6px; }
.cm-burger__bars::after { bottom: 0; }
.cm-burger[aria-expanded="true"] .cm-burger__bars::before {
  transform: translateY(6px) rotate(45deg);
}
.cm-burger[aria-expanded="true"] .cm-burger__bars span { opacity: 0; }
.cm-burger[aria-expanded="true"] .cm-burger__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.cm-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
/* Same engraved-caps serif as the "KITAJSKA-RESTAVRACIJA" lettering under
   the script name on the logo. */
.cm-nav__link {
  display: block;
  padding: 0.8rem 1.15rem;
  font-family: var(--cm-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cm-ink);
  position: relative;
}
.cm-nav__link::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 0.5rem;
  height: 2px;
  background: var(--cm-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--cm-ease);
}
.cm-nav__link:hover,
.cm-nav__link[aria-current="page"] { color: var(--cm-gold-dark); }
.cm-nav__link:hover::after,
.cm-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.cm-nav__cta { margin-left: 0.75rem; }
.cm-nav__cta .cm-btn { padding: 0.7rem 1.4rem; }

/* plum-blossom branch beside the call button, growing in from the right edge */
@media (min-width: 1200px) {
  .cm-nav__cta { display: flex; align-items: center; }
  .cm-nav__cta::after {
    content: "";
    flex: none;
    width: 104px;
    height: 90px;
    margin: -1rem -0.6rem -1rem 0.25rem;
    background: url("../img/ozadje-cvet.webp?v=2") center / contain no-repeat;
    transform: scaleX(-1);
    pointer-events: none;
  }
}

@media (max-width: 991px) {
  .cm-burger { display: inline-flex; }
  .cm-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid var(--cm-line);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.14);
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows var(--cm-ease), visibility 0s linear 0.3s;
  }
  .cm-nav > * { overflow: hidden; }
  .cm-nav.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows var(--cm-ease), visibility 0s;
  }
  .cm-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1rem, 4vw, 1.875rem) 1.25rem;
  }
  .cm-nav__link {
    padding: 0.95rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--cm-line);
  }
  .cm-nav__link::after { display: none; }
  .cm-nav__cta {
    margin: 1rem 0 0;
    padding-inline: 0;
  }
  .cm-nav__cta .cm-btn { width: 100%; }
}

/* -------------------------------------------------------- 07 Hero slider -- */
.cm-hero {
  position: relative;
  min-height: min(88vh, 750px);
  display: grid;
  isolation: isolate;
  background: var(--cm-ink);
  /* the ken-burns zoom scales the image past the viewport — clip it here so it
     never creates a horizontal scrollbar */
  overflow: hidden;
}

.cm-hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}
.cm-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}
/* keep the first slide in flow so the section has intrinsic height */
.cm-hero__slide:first-child { position: relative; }

.cm-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: cm-kenburns 18s ease-out both;
}
.cm-hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
              rgba(0, 0, 0, 0.55) 0%,
              rgba(0, 0, 0, 0.35) 45%,
              rgba(0, 0, 0, 0.65) 100%);
}

@keyframes cm-kenburns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.cm-hero__inner {
  width: 100%;
  max-width: var(--cm-container);
  margin-inline: auto;
  padding: clamp(4rem, 12vw, 7rem) clamp(1rem, 4vw, 1.875rem);
  color: #fff;
  text-align: left;
}
.cm-hero__kicker {
  display: block;
  font-family: var(--cm-font-script);
  font-size: clamp(2.75rem, 10vw, 5rem);
  line-height: 1.15;
  color: var(--cm-gold);
  margin-bottom: 0.15em;
}
.cm-hero h1,
.cm-hero__title {
  font-size: clamp(1.5rem, 4.6vw, 2.875rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.25rem;
  max-width: 24ch;
  text-wrap: balance;
}
.cm-hero__lead {
  font-size: clamp(1.125rem, 2.8vw, 1.625rem);
  letter-spacing: 0.04em;
  color: #fff;
  margin: -0.5rem 0 1.25rem;
}
.cm-hero__note {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
}

/* slider controls */
.cm-hero__nav {
  position: absolute;
  inset: auto 0 clamp(1rem, 3vw, 2.25rem);
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}
.cm-hero__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background var(--cm-ease), transform var(--cm-ease);
}
.cm-hero__dot[aria-selected="true"] {
  background: var(--cm-gold);
  border-color: var(--cm-gold);
  transform: scale(1.25);
}

.cm-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--cm-ease), background var(--cm-ease);
}
.cm-hero:hover .cm-hero__arrow,
.cm-hero__arrow:focus-visible { opacity: 1; }
.cm-hero__arrow:hover { background: var(--cm-red); }
.cm-hero__arrow svg { width: 22px; height: 22px; }
.cm-hero__arrow--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.cm-hero__arrow--next { right: clamp(0.5rem, 2vw, 1.5rem); }

@media (hover: none) {
  .cm-hero__arrow { display: none; }
}

/* -------------------------------------------------------- 08 Page header -- */
.cm-pagehead {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: clamp(260px, 40vw, 450px);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--cm-ink) center/cover no-repeat;
  text-align: center;
  isolation: isolate;
}
.cm-pagehead { background-image: url("../img/page-header-1280.jpg"); }
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .cm-pagehead {
    background-image: image-set(url("../img/page-header-1280.webp") type("image/webp"),
                                url("../img/page-header-1280.jpg") type("image/jpeg"));
  }
}
.cm-pagehead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
}
@media (min-width: 992px) {
  /* the top bar and nav float above this band — keep the title below them */
  .cm-pagehead { padding-top: calc(var(--cm-topbar-h) + var(--cm-nav-h) + 1.5rem); }
}
.cm-pagehead h1 {
  font-family: var(--cm-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(1.875rem, 5.5vw, 2.75rem);
  font-weight: 900;
  color: var(--cm-gold);
  margin: 0 0 0.5rem;
}
.cm-crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--cm-font-heading);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.cm-crumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--cm-gold);
}
.cm-crumbs a { color: #fff; }
.cm-crumbs a:hover { color: var(--cm-gold); }

/* -------------------------------------------------------- 09 Cards / grid -- */
.cm-grid {
  display: grid;
  gap: var(--cm-gap);
}
.cm-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cm-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cm-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

/* Category tiles: flex, not grid. Grid's columns are shared across every row,
   so an incomplete last row (5 tiles = a row of 3 + a row of 2) always sits
   flush left with an empty track beside it. Flex recalculates each row on
   its own, so the last row's 2 tiles centre as a pair instead. */
.cm-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--cm-gap);
}
.cm-tiles .cm-tile {
  flex: 1 1 280px;
  max-width: 340px;
}

/* category tile — white card, image, gold rule, name */
/* The dish photo is a cut-out on a white card that is deliberately 80px
   narrower than the tile, so the photo overhangs it — the original look. */
.cm-tile {
  position: relative;
  z-index: 1;
  display: block;
  padding: 50px 50px 30px;
  color: inherit;
  transition: transform 0.5s var(--cm-ease);
}
.cm-tile::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: calc(100% - 80px);
  height: 100%;
  background: #fff;
  border-radius: 2px;
  box-shadow: var(--cm-shadow);
  transition: box-shadow 0.5s var(--cm-ease);
}
.cm-tile:hover::after,
.cm-tile:focus-visible::after { box-shadow: var(--cm-shadow-lg); }
.cm-tile__img {
  width: 100%;
  height: auto;
}
.cm-tile__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.cm-tile__name {
  flex: 0 0 60%;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--cm-body);
  transition: color 0.5s var(--cm-ease);
}
.cm-tile:hover .cm-tile__name { color: #ff0000; }
@media (max-width: 575px) {
  .cm-tile { padding: 30px 30px 20px; }
  .cm-tile::after { width: calc(100% - 45px); }
}

/* ---------------------------------------------------------------- 10 About -- */
.cm-about {
  display: grid;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cm-about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
/* single wide photo now, not the old two-up staggered pair */
.cm-about__figures img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow);
}
.cm-about__body p { text-align: justify; text-wrap: pretty; }

/* -------------------------------------------------------------- 11 Counter -- */
/* flex, not grid: with only two stat blocks, auto-fit grid tracks were
   collapsing to one column and stacking "30+" above "200" instead of
   sitting beside it. Flex-wrap keeps them side by side until there's
   genuinely no room, then wraps on narrow phones. */
.cm-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2.5rem, 8vw, 6rem);
  margin-inline: auto;
  text-align: center;
}
.cm-stat__num {
  display: inline-block;
  font-size: clamp(2.25rem, 6vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cm-gold);
  font-variant-numeric: tabular-nums;
}
/* static "+" beside a counted number (e.g. "30+") — never touched by the
   count-up animation, which only targets [data-count] elements */
.cm-stat__suffix {
  display: inline-block;
  font-size: clamp(2.25rem, 6vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cm-gold);
}
.cm-stat__label {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--cm-font-heading);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cm-body);
}
.cm-band .cm-stat__label { color: #fff; }

/* stats row + closing line beside it, as in the original counter block */
.cm-counter {
  display: grid;
  gap: var(--cm-gap);
  align-items: center;
}
@media (min-width: 768px) {
  .cm-counter { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
}
.cm-counter__note { margin: 0; }

/* Photographic band with NO dark scrim — the original take-away section shows
   the food photo at full brightness behind a white panel. */
.cm-photoband {
  background: var(--cm-ink) center/cover no-repeat;
}
.cm-photoband { background-image: url("../img/takeaway-ozadje-1280.jpg"); }
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .cm-photoband {
    background-image: image-set(url("../img/takeaway-ozadje-1280.webp") type("image/webp"),
                                url("../img/takeaway-ozadje-1280.jpg") type("image/jpeg"));
  }
}

/* info panel used for take-away, on top of a photo band */
.cm-panel {
  background: #fff;
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow-lg);
  padding: clamp(1.5rem, 5vw, 3rem);
  max-width: 720px;
}
.cm-panel--center { text-align: center; }
.cm-panel .cm-heading { margin-bottom: 1.5rem; }
.cm-facts { display: grid; gap: 0.9rem; }
.cm-facts li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.85rem;
  align-items: start;
  line-height: 1.6;
}
.cm-facts svg {
  width: 22px;
  height: 22px;
  margin-top: 0.35rem;
  color: var(--cm-red);
}
.cm-facts b { display: block; color: var(--cm-ink); }

/* ----------------------------------------------------------------- 12 Menu -- */
/* category tablist */
.cm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.cm-tab {
  flex: 1 1 150px;
  position: relative;
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
  background: #fff;
  font: 600 clamp(0.9375rem, 2vw, 1.125rem)/1.3 var(--cm-font);
  color: var(--cm-ink);
  cursor: pointer;
  transition: background var(--cm-ease), color var(--cm-ease),
              border-color var(--cm-ease);
}
.cm-tab:hover {
  background: var(--cm-cream);
  border-color: var(--cm-gold);
}
.cm-tab[aria-selected="true"] {
  background: var(--cm-gold);
  border-color: var(--cm-gold);
  color: #3a2a00;
}
.cm-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  translate: -50% 0;
  border: 9px solid transparent;
  border-top-color: var(--cm-gold);
}
@media (max-width: 767px) {
  .cm-tab { flex-basis: calc(50% - 4px); }
  .cm-tab[aria-selected="true"]::after { display: none; }
}

.cm-tabpanel[hidden] { display: none; }
.cm-tabpanel__intro {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--cm-gold);
  font-size: 0.9375rem;
}

/* collapsible sub-group */
.cm-group + .cm-group { margin-top: 0.5rem; }
.cm-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 1px solid var(--cm-line);
  background: none;
  font-family: var(--cm-font-script);
  font-size: clamp(1.6rem, 4.5vw, 2.125rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cm-red);
  text-align: left;
  cursor: pointer;
  transition: color var(--cm-ease);
}
.cm-group__toggle:hover { color: var(--cm-gold-dark); }
.cm-group__toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--cm-ease);
}
.cm-group__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.cm-group__body[hidden] { display: none; }
.cm-group__body { padding-block: 0.5rem 1.5rem; }

/* dish list */
.cm-dishes { display: grid; gap: 0; }
@media (min-width: 992px) {
  .cm-dishes { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 3.5rem); }
}
.cm-dish {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--cm-line);
}
.cm-dish__no {
  min-width: 2.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cm-gold-dark);
  font-variant-numeric: tabular-nums;
}
.cm-dish__name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--cm-ink);
}
.cm-dish__desc {
  grid-column: 2;
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}
.cm-dish--noindex { grid-template-columns: 1fr; }
.cm-dish--noindex .cm-dish__desc { grid-column: 1; }

/* small caption inside a group, e.g. "Bela buteljčna vina 0.7 l" */
.cm-dishes__caption {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cm-red);
}
.cm-dishes__caption:first-child { margin-top: 0; }

.cm-note {
  margin-top: 2.5rem;
  padding: 1.15rem 1.35rem;
  background: var(--cm-cream);
  border-left: 4px solid var(--cm-gold);
  border-radius: var(--cm-radius);
  font-size: 0.9375rem;
}

/* dish photo strip on the menu page */
.cm-shots {
  display: grid;
  gap: var(--cm-gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.cm-shot { margin: 0; }
.cm-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow);
}
.cm-shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cm-ink);
  text-align: center;
}
/* the dish's number on the menu, so the photo can be ordered by number */
.cm-shot__no {
  color: var(--cm-gold-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cm-shot__no::after {
  content: " ·";
  color: var(--cm-line);
}

/* -------------------------------------------------------------- 13 Gallery -- */
/* photo grid — small thumbnails, several per row (matches chang.si/galerija:
   ~165px tiles, tight gap), rather than a few oversized cards */
.cm-gallery {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}
.cm-gallery__item {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: var(--cm-radius);
  background: var(--cm-ink);
  cursor: zoom-in;
}
.cm-gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease, opacity var(--cm-ease);
}
.cm-gallery__item:hover img,
.cm-gallery__item:focus-visible img {
  transform: scale(1.06);
  opacity: 0.85;
}
.cm-gallery__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.75rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* lightbox */
.cm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.5rem;
  padding: clamp(0.5rem, 2vw, 1.25rem);
  background: rgba(9, 9, 9, 0.94);
  opacity: 0;
  visibility: hidden;
  /* visibility must flip instantly on open (so the close button is focusable
     right away) but wait for the fade-out on close — hence the 0s/delay pair
     rather than transitioning visibility itself. */
  transition: opacity var(--cm-ease), visibility 0s linear 0.3s;
}
.cm-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--cm-ease), visibility 0s;
}
.cm-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}
/* flex, not grid: with display:grid + place-items:center, the <img>'s
   percentage max-height didn't resolve against the stage's own (definite)
   height in testing — the photo overflowed past the bottom of the stage
   instead of shrinking to fit. Flex's align-items:center handles a
   percentage max-height on a replaced element correctly. */
.cm-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}
.cm-lightbox__stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--cm-radius);
}
.cm-lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  text-align: center;
  min-height: 1.5em;
}
.cm-lightbox__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background var(--cm-ease);
}
.cm-lightbox__btn:hover { background: var(--cm-red); }
.cm-lightbox__btn svg { width: 22px; height: 22px; }
.cm-lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
}
.cm-lightbox__nav--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.cm-lightbox__nav--next { right: clamp(0.5rem, 2vw, 1.5rem); }

/* ---------------------------------------------------------------- 14 Video -- */
/* One featured clip across the top, two side by side beneath it. All three
   clips are 16:9, so nothing gets letterboxed. */
.cm-videos {
  display: grid;
  gap: var(--cm-gap);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cm-videos { grid-template-columns: 1fr 1fr; }
  .cm-video--featured { grid-column: 1 / -1; }
}
.cm-video {
  position: relative;
  margin: 0;
  border-radius: var(--cm-radius);
  overflow: hidden;
  background: var(--cm-ink);
  box-shadow: var(--cm-shadow);
}
.cm-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--cm-ink);
}
/* caption sits over the picture, matching the photo grid */
.cm-video figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem 1.15rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  pointer-events: none;
  transition: opacity var(--cm-ease);
}
.cm-video.is-playing figcaption { opacity: 0; }
.cm-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: rgba(200, 30, 30, 0.94);
  color: #fff;
  cursor: pointer;
  transition: transform var(--cm-ease), background var(--cm-ease),
              opacity var(--cm-ease);
}
.cm-video__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.cm-video__play svg { width: 26px; height: 26px; }
.cm-video.is-playing .cm-video__play { opacity: 0; pointer-events: none; }

/* -------------------------------------------------------------- 15 Contact -- */
.cm-split {
  display: grid;
  gap: 0;
  background: #fff;
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow);
  overflow: hidden;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 768px) {
  .cm-split { grid-template-columns: 1fr 1fr; }
}
.cm-split__text { padding: clamp(1.5rem, 5vw, 3.5rem); }
.cm-split__map { min-height: 340px; }
.cm-split__map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

.cm-infocards {
  display: grid;
  gap: var(--cm-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.cm-infocard {
  padding: 1.5rem;
  background: #fff;
  border-top: 3px solid var(--cm-gold);
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow);
}
.cm-infocard svg {
  width: 26px;
  height: 26px;
  color: var(--cm-red);
  margin-bottom: 0.6rem;
}
.cm-infocard h3 {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cm-body);
}
.cm-infocard p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cm-ink);
}
.cm-infocard a { color: var(--cm-ink); font-weight: 500; }
.cm-infocard a:hover { color: var(--cm-red); }

.cm-hours {
  display: grid;
  gap: 0.5rem;
  max-width: 420px;
}
.cm-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--cm-line);
}
.cm-hours b { color: var(--cm-ink); }

/* --------------------------------------------------------------- 16 Footer -- */
.cm-footer {
  background: var(--cm-red);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  padding-block: clamp(2.75rem, 7vw, 5rem) 0;
}
.cm-footer__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.cm-footer h2 {
  margin: 0 0 1.25rem;
  font-family: var(--cm-font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cm-gold);
}
.cm-footer a { color: rgba(255, 255, 255, 0.85); }
.cm-footer a:hover { color: var(--cm-gold); }
/* the logo PNG is transparent — it must sit straight on the red */
.cm-footer__logo img {
  height: auto;
  width: clamp(170px, 24vw, 230px);
}
.cm-footer__list { display: grid; gap: 0.7rem; }
.cm-footer__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.7rem;
  align-items: start;
  line-height: 1.6;
}
.cm-footer__list svg {
  width: 18px;
  height: 18px;
  margin-top: 0.4rem;
  color: var(--cm-gold);
}

.cm-social {
  display: flex;
  gap: 0.6rem;
}
.cm-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background var(--cm-ease), transform var(--cm-ease);
}
.cm-social a:hover {
  background: var(--cm-gold);
  transform: translateY(-3px);
}
.cm-social svg { width: 19px; height: 19px; color: #fff; }
.cm-social a:hover svg { color: var(--cm-red); }

.cm-footer__bottom {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8125rem;
  text-align: center;
}
.cm-footer__bottom p { margin: 0; }
.cm-footer__credit { margin-top: 0.35rem !important; font-size: 0.8125rem; opacity: 0.7; }

/* cookie notice — built by cesarsko.js, shown until the visitor decides */
.cm-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 130;
  max-width: 460px;
  padding: 1.25rem 1.35rem 1.35rem;
  background: #fff;
  color: var(--cm-ink);
  border-top: 4px solid var(--cm-gold);
  border-radius: var(--cm-radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.cm-consent[hidden] { display: none; }
.cm-consent h2 {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cm-consent p { margin: 0 0 1rem; font-size: 0.9375rem; line-height: 1.55; }
.cm-consent__btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cm-consent .cm-btn { flex: 1 1 8rem; padding: 0.75rem 1rem; }

/* footer: privacy link + "reopen the cookie choice" */
.cm-footer__legal { margin-top: 0.35rem !important; }
.cm-linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.cm-linkbtn:hover,
.cm-linkbtn:focus-visible { color: var(--cm-gold); }

/* plain text pages (cookies / privacy) */
.cm-prose { max-width: 760px; margin-inline: auto; }
.cm-prose h2 { margin: 2rem 0 0.6rem; font-size: 1.375rem; }
.cm-prose h2:first-child { margin-top: 0; }
.cm-prose table { width: 100%; border-collapse: collapse; margin: 0.75rem 0 1rem; font-size: 0.9375rem; }
.cm-prose th, .cm-prose td { padding: 0.55rem 0.7rem; border: 1px solid var(--cm-line); text-align: left; vertical-align: top; }
.cm-prose th { background: rgba(0, 0, 0, 0.04); }
.cm-prose .cm-btn-row { margin-top: 1rem; }

/* floating call button — thumb-reachable on phones */
.cm-call {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 55;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: var(--cm-red);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.cm-call:hover { color: #fff; background: var(--cm-red-bright); }
.cm-call svg { width: 18px; height: 18px; }
@media (max-width: 767px) {
  .cm-call { display: inline-flex; }
  body { padding-bottom: 0; }
}

/* ------------------------------------------------------- 17 Reveal / motion -- */
/* Scoped to .cm-js (set by an inline script in <head>) so that with JavaScript
   disabled every section stays visible instead of fading to nothing. */
.cm-js .cm-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.cm-js .cm-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .cm-js .cm-reveal { opacity: 1; transform: none; }
  .cm-hero__media { animation: none; }
}

/* ---------------------------------------------------------------- 18 Print -- */
@media print {
  .cm-topbar, .cm-header, .cm-hero, .cm-pagehead, .cm-call,
  .cm-lightbox, .cm-videos, .cm-footer__bottom, .cm-consent { display: none !important; }
  body { color: #000; font-size: 11pt; line-height: 1.45; }
  .cm-section { padding-block: 1rem; }
  .cm-group__body[hidden] { display: block !important; }
  .cm-tabpanel[hidden] { display: block !important; }
  .cm-dishes { grid-template-columns: 1fr 1fr; }
  a::after { content: ""; }
}
