*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #1B2B45;
  --cream:  #FBF6EC;
  --gold:   #D8862E;
  --brown:  #22324F;
  --muted:  #7C8AA0;
  --white:  #FFFFFF;
  --accent-yellow: #E8B33D;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(26,26,26,0.92);
  backdrop-filter: blur(10px);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* HERO - PRE POSÚVANIE BANNEROV Z BOKU */
/* HERO - KONTROLA POSUNU BANNEROV */
/* ÚPRAVA PRE HERO SEKCIU */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Ak nie je banner, použijeme prémiovú tmavomodrú ako základ */
  background: var(--ink); 
}

/* Predvolené pozadie, ak zlyhá JSON - kombinácia gradientu a tvojej kresby */
.hero-bg.fallback-style {
  background-image: 
    linear-gradient(to bottom, rgba(27, 43, 69, 0.75) 0%, rgba(27, 43, 69, 0.9) 100%), 
    url('kresba.jpg'); /* Tvoja dodaná ilustrácia */
  background-position: center;
  background-size: contain; /* Umelecká kresba sa pekne prispôsobí a neožerie sa */
  background-repeat: no-repeat;
  opacity: 0.15; /* Jemný, luxusný podmaz na pozadí */
  animation: heroZoom 20s ease-in-out infinite alternate;
}

/* Keď JS načíta DYNAMICKÝ BANNER, prekryje celé pozadie fotografiou */
.hero-bg.dynamic-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Animácia jemného priblíženia pre statické aj dynamické pozadie */
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* Obal pre pozadia - drží ich presne na celej ploche */
#heroBgContainer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ZÁKLADNÉ NASTAVENIE POZADIA */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  
  /* Plynulý prechod pre posun (transform) */
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* STAVY PRE SLIDE EFEKT OBRÁZKOV: */

/* 1. Nový obrázok, ktorý ešte len čaká vpravo mimo obrazovky */
.hero-bg.next {
  transform: translateX(100%);
}

/* 2. Aktuálny obrázok, ktorý práve vidíme na strede */
.hero-bg.active {
  transform: translateX(0);
}

/* 3. Starý obrázok, ktorý práve odchádza smerom doľava von */
.hero-bg.exit {
  transform: translateX(-100%);
}

/* TEXT - Plynulý nábeh z boku */
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
  z-index: 2; /* Aby bol text vždy nad posúvajúcimi sa obrázkami */
  
  opacity: 0;
  transform: translateX(100px);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.hero-content.active {
  opacity: 1;
  transform: translateX(0);
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.10); }
}
.steam {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 80%, rgba(200,169,126,0.08) 0%, transparent 70%);
  animation: steamPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes steamPulse {
  from { opacity: 0.4; transform: translateY(0); }
  to   { opacity: 1;   transform: translateY(-18px); }
}

/* Hlavný kontajner textu - predvolený stav: schovaný vpravo mimo obrazovky */
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
  
  /* Východisková pozícia banneru: posunuté o 150px doprava a neviditeľné */
  opacity: 0;
  transform: translateX(150px);
  
  /* Plynulý prechod pre pohyb (transform) aj viditeľnosť (opacity) */
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

/* Keď JS pridá triedu .active, text plynule pribehne na stred (translateX 0) */
.hero-content.active {
  opacity: 1;
  transform: translateX(0);
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 400;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  max-width: 360px;
  margin: 0 auto 2.5rem;
  letter-spacing: 0.02em;
}
.hero-cta {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  padding: 0.85rem 2.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.hero-cta:hover {
  background: var(--gold);
  color: var(--ink);
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(200,169,126,0.7), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(1); opacity:1; }
  50%      { transform: scaleY(0.5); opacity:0.4; }
}

/* SECTIONS */
section { padding: 7rem 4rem; }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--brown);
}

/* O NÁS */
#o-nas { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text p {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}
.about-stat-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(200,169,126,0.3);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--brown);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}
.about-image::before {
  content: '';
  position: absolute;
  top: -1.5rem; left: -1.5rem;
  right: 1.5rem; bottom: 1.5rem;
  border: 1px solid rgba(200,169,126,0.35);
  pointer-events: none;
  z-index: 0;
}
.about-image img { position: relative; z-index: 1; }

/* MENU */
#napojovy-listok { background: var(--ink); }
#napojovy-listok .section-title { color: var(--cream); }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3.5rem;
}
.menu-category {
  border-top: 1px solid rgba(200,169,126,0.3);
  padding-top: 2rem;
}
.menu-cat-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 1.8rem;
  font-style: italic;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.menu-item:last-child { border-bottom: none; }
.item-name {
  color: rgba(247,242,232,0.85);
  font-size: 0.92rem;
  font-weight: 300;
}
.item-desc {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.item-price {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 1rem;
}

/* GALÉRIA */
#galeria { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 260px 260px;
  gap: 1rem;
  margin-top: 3rem;
}
.gal-item { overflow: hidden; }
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.25,.46,.45,.94), filter 0.4s;
  filter: saturate(0.85);
}
.gal-item:hover img { transform: scale(1.06); filter: saturate(1.1); }
.gal-item:nth-child(1) { grid-column: span 5; }
.gal-item:nth-child(2) { grid-column: span 4; }
.gal-item:nth-child(3) { grid-column: span 3; }
.gal-item:nth-child(4) { grid-column: span 3; }
.gal-item:nth-child(5) { grid-column: span 5; }
.gal-item:nth-child(6) { grid-column: span 4; }

/* KONTAKT */
#kontakt { background: var(--brown); }
#kontakt .section-title { color: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  margin-top: 3.5rem;
}
.contact-info { color: rgba(247,242,232,0.75); }
.contact-block { margin-bottom: 2.5rem; }
.contact-block-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.contact-block p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
}
.contact-block a {
  color: rgba(247,242,232,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-block a:hover { color: var(--gold); }
.map-wrapper {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: saturate(0.6) contrast(1.05);
  display: block;
}
.map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(200,169,126,0.3);
}

/* FOOTER */
footer {
  background: var(--ink);
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(200,169,126,0.15);
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  color: rgba(247,242,232,0.4);
  font-size: 1rem;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(247,242,232,0.25);
  letter-spacing: 0.06em;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 1.2rem 2rem; }
  section { padding: 5rem 2rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .menu-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gal-item { grid-column: span 1 !important; height: 200px; }
  footer { flex-direction: column; gap: 0.8rem; text-align: center; }
  .nav-links { gap: 1.2rem; }
  .menu-tabs { display: none !important; }
}

/* MENU TABS */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2.5rem 0 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(200,169,126,0.2);
}
.menu-tab {
  background: transparent;
  border: 1px solid rgba(200,169,126,0.35);
  color: rgba(247,242,232,0.55);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.3rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.menu-tab:hover { border-color: var(--gold); color: var(--gold); }
.menu-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.menu-loading, .gallery-loading {
  color: rgba(247,242,232,0.35);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 3rem 0;
  text-align: center;
  grid-column: 1/-1;
}
.gallery-loading { color: var(--muted); }

/* GALLERY TABS */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 2.5rem;
}
.gallery-tab {
  background: transparent;
  border: 1px solid rgba(200,169,126,0.4);
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.3rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.gallery-tab:hover { border-color: var(--gold); color: var(--brown); }
.gallery-tab.active {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10,6,4,0.94);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(200,169,126,0.2);
}
.lb-caption {
  color: rgba(247,242,232,0.5);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-top: 1rem;
  text-align: center;
}
.lb-close {
  position: fixed;
  top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: rgba(247,242,232,0.55);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1000;
}
.lb-close:hover { color: var(--gold); }
.lb-prev, .lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: rgba(247,242,232,0.45);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1000;
  padding: 1rem;
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .steam, .hero-scroll-line { animation: none; }
  .gal-item img { transition: none; }
}
/* --- MOBILNÉ HAMBURGER MENU STYLY --- */

/* Skryjeme tlačidlo na desktope */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* Úpravy pre mobily a tablety */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex; /* Zobrazíme hamburger na mobile */
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Predvolene vysunuté mimo obrazovky doprava */
    width: 100%;
    height: 100vh;
    background: rgba(27, 43, 69, 0.98); /* Tvoja tmavá modrá var(--ink) */
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem !important; /* Väčšie medzery pod sebou */
    transition: right 0.4s ease;
    z-index: 105;
  }

  /* Keď je menu aktívne, zasunie sa na plochu */
  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem; /* Väčší text, aby sa na mobile dobre klikal */
    letter-spacing: 0.15em;
  }

  /* Animácia hamburgeru na X, keď je menu otvorené */
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}