/* ============================================================
   MOKAFE — výběrová kavárna v Milovicích
   Světlý, vzdušný, přírodní design. Olivová + krém + espresso.
   ============================================================ */

:root {
  /* Barvy */
  --cream:        #f7f3ea;
  --cream-2:      #fbf8f1;
  --paper:        #fffefa;
  --olive:        #4f5e37;
  --olive-600:    #45522f;
  --olive-700:    #38421f;
  --olive-tint:   #eaecdc;
  --olive-tint-2: #e2e6d0;
  --espresso:     #2a241c;
  --espresso-soft:#6c6457;
  --line:         #e6dfce;
  --line-strong:  #d9d0bb;
  --caramel:      #b07a45;

  /* Typografie */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing rytmus (8px) */
  --section-y: clamp(4.5rem, 9vw, 8rem);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-xl: 36px;

  /* Stíny — měkké, přírodní */
  --sh-sm: 0 2px 10px rgba(56, 50, 34, 0.06);
  --sh-md: 0 14px 40px rgba(56, 50, 34, 0.10);
  --sh-lg: 0 30px 70px rgba(48, 44, 24, 0.16);

  --ease: cubic-bezier(.22, .61, .36, 1);          /* back-compat (měkký) */

  /* Motion token systém */
  --ease-expo: cubic-bezier(.16, 1, .3, 1);        /* vstupy, reveal, hero */
  --ease-ui:   cubic-bezier(.4, 0, .2, 1);         /* hovery, header, nav */
  --ease-soft: cubic-bezier(.34, 1.28, .52, 1);    /* jemný overshoot — návrat, razítko */
  --dur-1: .12s; --dur-2: .2s; --dur-3: .32s; --dur-4: .52s; --dur-5: .72s; --dur-6: .9s;
  --dur-exit: .2s;                                  /* ~0.6× vstupu — rychlejší odchod */
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

::selection { background: var(--olive); color: var(--cream); }

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

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--olive); color: var(--cream); padding: .6rem 1.1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm); z-index: 1000; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.75rem); }

/* ---------- Typografie ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--espresso);
}
.section-title-center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--olive); margin-bottom: 1.1rem;
}
.eyebrow-center { display: flex; justify-content: center; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--caramel); display: inline-block; }

.section-sub {
  color: var(--espresso-soft);
  font-size: 1.075rem;
  max-width: 46ch;
}
.section-title-center + .section-sub,
.section-head .section-sub { margin-inline: auto; text-align: center; }

.section { padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn-ico { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--olive); color: var(--cream-2); box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--olive-600); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-ghost { color: var(--espresso); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--olive); color: var(--olive); transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: .65rem;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              padding .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(247, 243, 234, 0.9); /* fallback pro starší engine bez color-mix */
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  box-shadow: var(--sh-sm);
  border-bottom-color: var(--line);
}
/* Hlavička je asymetrická: vlevo drží linku 1200px gridu (logo zůstává zarovnané
   s obsahem stránky), vpravo jde až ke kraji okna, aby CTA nevisela uprostřed. */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: none;
  padding-left: max(clamp(1.25rem, 4vw, 2.75rem), calc((100% - 1200px) / 2 + clamp(1.25rem, 4vw, 2.75rem)));
  padding-right: clamp(1.25rem, 4vw, 3.25rem); }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { width: 40px; height: 40px; flex: none; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-word {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  letter-spacing: -0.01em; color: var(--espresso);
}
.brand-logo { height: 50px; width: auto; transition: transform .4s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-footer .brand-logo { height: 60px; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav a { font-weight: 500; font-size: .98rem; color: var(--espresso); position: relative; padding: .25rem 0; }
.nav a:not(.nav-cta):not(.nav-shop)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--olive); transition: width .3s var(--ease);
}
.nav a:not(.nav-cta):not(.nav-shop):hover::after,
.nav a:not(.nav-cta):not(.nav-shop).active::after { width: 100%; }
.nav a:not(.nav-cta):not(.nav-shop):hover { color: var(--olive); }
/* Skupina akcí — vlastní, těsnější rozestup než mezi odkazy navigace */
.nav-actions { display: inline-flex; align-items: center; gap: .5rem; }
/* Odkaz do e-shopu jako ghost pilulka — zrcadlí .nav-cafe v hlavičce e-shopu */
.nav-shop {
  padding: .5rem 1.1rem !important; border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--olive) 28%, transparent);
  color: var(--olive) !important; font-weight: 600;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.nav-shop:hover { background: var(--olive); border-color: var(--olive); color: var(--cream-2) !important; }
.nav-cta {
  background: var(--olive); color: var(--cream-2) !important; padding: .55rem 1.15rem !important;
  border-radius: 999px; transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.nav-cta:hover { background: var(--olive-600); transform: translateY(-1px); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--espresso); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(7.5rem, 13vw, 10rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: 0; inset: auto auto 0 0;
  width: min(70vw, 720px); aspect-ratio: 1; transform: translate(-30%, 28%);
  background: radial-gradient(circle, var(--olive-tint) 0%, transparent 68%);
  opacity: .8; pointer-events: none;
}
.hero-grain { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.9rem, 7.2vw, 5.6rem); line-height: .98; letter-spacing: -0.025em;
  color: var(--espresso); margin-bottom: 1.4rem;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--olive); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--espresso-soft); max-width: 42ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.4rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3vw, 2.4rem);
  padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-meta li { font-size: .95rem; color: var(--espresso-soft); }
.hero-meta strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--espresso); }

.hero-media { position: relative; }
.hero-photo {
  position: relative; border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 80px;
  overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 1 / 1; rotate: 1.5deg;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -22px; bottom: -22px; z-index: 2;
  width: clamp(96px, 13vw, 128px); aspect-ratio: 1; border-radius: 50%;
  background: var(--cream-2); box-shadow: var(--sh-md);
  display: grid; place-content: center; place-items: center; gap: 2px; text-align: center;
  rotate: -6deg;
}
.hero-badge .badge-mark { width: 62%; height: auto; }
.hero-badge span { font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .04em; color: var(--olive); }

/* ============================================================
   O NÁS
   ============================================================ */
/* Hero navazuje rovnou na tuhle sekci — plný --section-y by se sečetl se spodním
   odsazením hera a udělal díru (dřív ji vyplňoval marquee). */
.about.section { padding-top: 0; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-md); aspect-ratio: 4/5; object-fit: cover; }
.about-media-tag {
  position: absolute; right: clamp(-10px, -1vw, -18px); bottom: 24px;
  background: var(--cream-2); color: var(--olive); box-shadow: var(--sh-md);
  font-family: var(--font-display); font-style: italic; font-size: .95rem;
  padding: .7rem 1.1rem; border-radius: 999px; max-width: 60%;
}
.about-copy p { color: var(--espresso-soft); margin-top: 1.1rem; max-width: 52ch; }
.about-copy p strong { color: var(--espresso); font-weight: 600; }
.about-stats { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3rem); margin-top: 2.4rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line); }
.stat-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--olive); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--espresso-soft); letter-spacing: .02em; }

/* ============================================================
   KÁVA vs MATCHA
   ============================================================ */
.choice { background: var(--cream-2); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); max-width: 880px; margin-inline: auto; }
.choice-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.choice-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: transparent; }
.choice-card-alt { background: var(--olive); color: var(--cream-2); border-color: transparent; }
.choice-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-content: center;
  background: var(--olive-tint); color: var(--olive); margin-bottom: 1.3rem; }
.choice-icon svg { width: 30px; height: 30px; }
.choice-card-alt .choice-icon { background: color-mix(in srgb, var(--cream-2) 18%, transparent); color: var(--cream-2); }
.choice-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; margin-bottom: .3rem; }
.choice-lead { color: var(--espresso-soft); margin-bottom: 1.3rem; }
.choice-card-alt .choice-lead { color: color-mix(in srgb, var(--cream-2) 80%, transparent); }
.choice-list li { padding: .65rem 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .7rem; font-weight: 500; }
.choice-card-alt .choice-list li { border-top-color: color-mix(in srgb, var(--cream-2) 22%, transparent); }
.choice-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--caramel); flex: none; }
.choice-card-alt .choice-list li::before { background: var(--cream-2); }

/* ============================================================
   MENU
   ============================================================ */
.menu-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.menu-block { margin-bottom: 2.6rem; }
.menu-cat { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--olive); margin-bottom: 1rem; }
.menu-items li {
  display: flex; align-items: baseline; gap: .65rem; padding: .7rem 0; border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.mi-name { font-weight: 600; font-size: 1.1rem; }
.mi-desc { color: var(--espresso-soft); font-size: .95rem; }
.mi-dots { flex: 1 1 30px; min-width: 18px; align-self: flex-end; margin-bottom: 5px; border-bottom: 2px dotted var(--line-strong); }
.mi-price { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--espresso); white-space: nowrap; }
.mi-price::after { content: " Kč"; font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--espresso-soft); }
.menu-note { margin-top: 1.5rem; color: var(--espresso-soft); font-style: italic;
  font-family: var(--font-display); font-size: 1.05rem; max-width: 50ch; }
.menu-photo img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-md); position: sticky; top: 6rem; }
/* Nápojový lístek (Sanity drinksMenuImage) — stejné vizuální zpracování jako .menu-photo,
   ale uvnitř .menu-lists a bez sticky; renderuje se jen s nahraným obrázkem */
.menu-drinks { margin-top: 2.6rem; }
.menu-drinks img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-md); }

/* ============================================================
   GALERIE
   ============================================================ */
.gallery { background: var(--cream-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: clamp(.75rem, 1.6vw, 1.1rem); }
.g-item { overflow: hidden; border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.gallery-cta { text-align: center; margin-top: 2.4rem; color: var(--espresso-soft); }
.gallery-cta a { color: var(--olive); font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.gallery-cta a:hover { color: var(--olive-600); }

/* ============================================================
   FAQ — časté dotazy (accordion, funguje i bez JS)
   ============================================================ */
.faq-list { max-width: 780px; margin-inline: auto; display: grid; gap: 1rem; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.faq-item[open] { box-shadow: var(--sh-sm); border-color: transparent; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--olive-700);
  transition: color .2s var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--olive); }
.faq-ico { width: 22px; height: 22px; flex: none; color: var(--olive); transition: transform .3s var(--ease); }
.faq-item[open] .faq-ico { transform: rotate(180deg); }
.faq-answer { padding: 0 1.4rem 1.25rem; }
.faq-answer p { color: var(--espresso-soft); margin: 0; max-width: 62ch; }

/* ============================================================
   NÁVŠTĚVA
   ============================================================ */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.visit-rows { margin: 2.2rem 0; display: grid; gap: 1.6rem; }
.visit-row h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .03em;
  text-transform: uppercase; color: var(--olive); margin-bottom: .5rem; }
.visit-row p { color: var(--espresso-soft); }
.visit-row a { color: var(--espresso); border-bottom: 1px solid var(--line-strong); transition: color .2s var(--ease), border-color .2s var(--ease); }
.visit-row a:hover { color: var(--olive); border-color: var(--olive); }
.hours { border-collapse: collapse; width: 100%; max-width: 360px; }
.hours th { text-align: left; font-weight: 500; color: var(--espresso-soft); padding: .35rem 1rem .35rem 0; }
.hours td { text-align: right; font-family: var(--font-display); font-weight: 600; color: var(--espresso); font-variant-numeric: tabular-nums; }
.visit-map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); min-height: 380px; border: 1px solid var(--line); }
.visit-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.25) saturate(.9); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--olive-700); color: color-mix(in srgb, var(--cream) 86%, transparent); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.brand-footer .brand-word { color: var(--cream); }
.footer-tag { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; margin-top: .9rem;
  color: color-mix(in srgb, var(--cream) 70%, transparent); }
.footer-nav { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a { color: color-mix(in srgb, var(--cream) 78%, transparent); width: fit-content; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--cream); }
.footer-contact p { margin-bottom: .5rem; color: color-mix(in srgb, var(--cream) 78%, transparent); }
.footer-contact a:hover { color: var(--cream); border-bottom: 1px solid currentColor; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.1rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-content: center;
  border: 1px solid color-mix(in srgb, var(--cream) 30%, transparent); color: var(--cream);
  transition: background-color .25s var(--ease), transform .25s var(--ease); }
.footer-social a:hover { background: color-mix(in srgb, var(--cream) 14%, transparent); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--cream) 16%, transparent); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.4rem; font-size: .88rem; color: color-mix(in srgb, var(--cream) 62%, transparent); }

.footer-powered { border-top: 1px solid color-mix(in srgb, var(--cream) 10%, transparent);
  background: color-mix(in srgb, #000 12%, transparent); }
.footer-powered .container { padding-block: .9rem; text-align: center;
  font-size: .8rem; letter-spacing: .01em; color: color-mix(in srgb, var(--cream) 48%, transparent); }
.footer-powered a { color: color-mix(in srgb, var(--cream) 72%, transparent); font-weight: 600;
  transition: color .2s var(--ease); }
.footer-powered a:hover { color: var(--cream); }

/* ============================================================
   MOTION — reveal, stagger, kinetika (pro-level)
   ============================================================ */
/* Skryto jen když běží JS (bez JS se vše ukáže) */
.js .reveal { opacity: 0; transform: translateY(24px); }
.reveal { transition: opacity var(--dur-5) var(--ease-expo), transform var(--dur-5) var(--ease-expo); }
.reveal.in { opacity: 1; transform: none; }

/* Stagger: kontejner zůstává, děti naskakují postupně (delay řídí JS přes --d) */
.js .reveal.stagger { opacity: 1; transform: none; }
.js .reveal.stagger > * { opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur-4) var(--ease-expo), transform var(--dur-4) var(--ease-expo);
  transition-delay: var(--d, 0ms); }
.reveal.stagger.in > * { opacity: 1; transform: none; }

/* Hero nadpis — odhalení po řádcích + blur-in */
.hero-title { display: block; }
.hero-title .t-line { display: block; overflow: hidden; padding: .02em 0 .14em; }
.hero-title .t-line > span { display: block; }
.js .hero-title .t-line > span { transform: translateY(115%); filter: blur(12px); opacity: 0;
  transition: transform var(--dur-6) var(--ease-expo), filter var(--dur-6) var(--ease-expo), opacity var(--dur-4) ease-out; }
.js .hero-copy.stagger > .hero-title { opacity: 1; transform: none; }   /* nadpis řeší vlastní animaci */
.hero.is-loaded .hero-title .t-line > span { transform: none; filter: blur(0); opacity: 1; }
.hero.is-loaded .hero-title .t-line:nth-child(2) > span { transition-delay: .1s; }

/* Hero fotka — vnitřní zoom-settle (Ken Burns), navázaný na reveal hero-media */
.js .hero-media .hero-photo img { transform: scale(1.16); }
.hero-media .hero-photo img { transition: transform 1.3s var(--ease-expo); transform-origin: center; }
.hero-media.in .hero-photo img { transform: none; }

/* Scroll progress bar — GPU scaleX, řídí rAF (bez transition) */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--olive), var(--caramel)); z-index: 200; }

/* Plovoucí razítko v hero */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-badge { animation: floatY 5.5s ease-in-out infinite; }

/* Shine na primárním tlačítku */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 62%);
  transform: translateX(-120%); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform var(--dur-6) var(--ease-ui); }

/* Magnetická tlačítka — pohyb řídí JS (rAF lerp), proto BEZ transform v transition.
   Vnitřní label laguje za skořápkou (hloubka). */
[data-magnetic] { transition: background-color var(--dur-2) var(--ease-ui), color var(--dur-2) var(--ease-ui),
  box-shadow var(--dur-2) var(--ease-ui), border-color var(--dur-2) var(--ease-ui); }
.btn-inner { display: inline-flex; align-items: center; gap: .55rem; }

/* 3D tilt — perspektiva v JS transformu, glare highlight; transform řídí JS */
.choice-card, .g-item { transition: box-shadow var(--dur-3) var(--ease-ui), border-color var(--dur-3) var(--ease-ui); }
[data-tilt] { position: relative; }
.tilt-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  opacity: 0; transition: opacity var(--dur-3) var(--ease-ui); mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.42), transparent 55%); }
[data-tilt].is-tilting .tilt-glare { opacity: 1; }

/* Custom kurzor — přesný bod + pružinově lagující kroužek */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none;
  z-index: 9999; opacity: 0; will-change: transform; transition: opacity var(--dur-3) var(--ease-ui); }
/* olivová + krémové halo → čitelné na světlých i olivových sekcích (bez mix-blend) */
.cursor-dot { width: 7px; height: 7px; background: var(--olive);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--cream) 70%, transparent); }
.cursor-ring { width: 36px; height: 36px;
  border: 1.5px solid color-mix(in srgb, var(--olive) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cream) 30%, transparent),
              inset 0 0 0 1px color-mix(in srgb, var(--cream) 22%, transparent);
  transition: width var(--dur-3) var(--ease-soft), height var(--dur-3) var(--ease-soft),
    background-color var(--dur-3) var(--ease-ui), border-color var(--dur-3) var(--ease-ui),
    opacity var(--dur-3) var(--ease-ui); }
.cursor-ring.is-hover { width: 58px; height: 58px;
  background: color-mix(in srgb, var(--olive) 14%, transparent); border-color: transparent; }
.cursor-ring.is-down { width: 28px; height: 28px; }
@media (hover: hover) and (pointer: fine) {
  body.cursor-on, body.cursor-on a, body.cursor-on button, body.cursor-on [data-tilt],
  body.cursor-on [data-magnetic], body.cursor-on .nav-toggle { cursor: none; }
}

/* Po dokončení reveal předáme transform JS-u (crisp tilt/magnet, bez rozmazání) */
.reveal.stagger.settled > * { transition: box-shadow var(--dur-3) var(--ease-ui), border-color var(--dur-3) var(--ease-ui); }

/* Lenis smooth scroll — povinné styly */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { max-width: 460px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 440px; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-photo { max-width: 460px; }
  .menu-photo img { position: static; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* Mobilní navigace */
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .4rem;
    background: var(--cream-2); padding: 6rem 2rem 2rem; box-shadow: var(--sh-lg);
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 90;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.15rem; padding: .6rem 0; width: 100%; }
  /* V mobilním panelu jsou odkazy pod sebou na plnou šířku — skupina akcí drží stejný rytmus */
  .nav-actions { flex-direction: column; align-items: stretch; width: 100%; margin-top: .8rem; }
  .nav-shop { padding: .7rem 1.1rem !important; text-align: center; }
  .nav-cta { text-align: center; padding: .7rem 1.15rem !important; }
  .nav-toggle { display: flex; z-index: 95; }
  body.nav-open { overflow: hidden; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(40,36,28,.4); opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s var(--ease); z-index: 80; }
  .nav-scrim.show { opacity: 1; visibility: visible; }

  .choice-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-meta strong { font-size: 1.05rem; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-auto-rows: 140px; }
  .hero-badge { left: -8px; bottom: -14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* cílené resety pohybu — hover/barvy ponecháme */
  .reveal, .reveal.stagger > *, .hero-title .t-line > span, .hero-media .hero-photo img {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .hero-badge { animation: none !important; transform: none !important; }
  .scroll-progress, .cursor-dot, .cursor-ring, .tilt-glare { display: none !important; }
}

/* Menu bez obrázku (Sanity menuImage nevyplněn) → seznam přes celou šířku */
.menu-grid--solo { grid-template-columns: 1fr; }
.menu-grid--solo .menu-lists { max-width: 760px; }
