/* ====== Základ ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', sans-serif;
  color: black;
  font-size: 1.1em;
  font-weight: 500; 
  background: #fdfcf9;
}

/* ====== Navigace ====== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e6e4df;
  transition: 0.3s ease;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo-img {
  height: 55px;
  width: auto;
}
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.0em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
nav a {
  text-decoration: none;
  font-weight: 400;
  font-size: 1.1em;
  transition: 0.3s;
}
a, a:visited, a:hover, a:active {
  color: #000;
  text-decoration: none;
}
nav a:hover {
  opacity: 0.6;
}

/* ====== Hamburger menu ikona ====== */
.hamburger {
  display: none; /* Schovaný na desktopu */
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.hamburger .lines, .hamburger .lines::before, .hamburger .lines::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  position: absolute;
  transition: 0.3s ease;
  left: 8px;
}
.hamburger .lines { top: 19px; }
.hamburger .lines::before { top: -8px; left: 0; }
.hamburger .lines::after { top: 8px; left: 0; }

/* Animace hamburgeru při otevření */
.hamburger[aria-expanded="true"] .lines { background: transparent; }
.hamburger[aria-expanded="true"] .lines::before { transform: rotate(45deg); top: 0; }
.hamburger[aria-expanded="true"] .lines::after { transform: rotate(-45deg); top: 0; }

/* ====== Hero sekce ====== */
.hero {
  position: relative;
  background: url('img/hero.jpg') center/cover no-repeat;
  height: 65vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 85px;
  overflow: hidden;
  min-height: 400px;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
.hero-text {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding-inline: 20px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.hero h2 {
  font-size: 2.5em;
  font-weight: 600;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 10px;
}
.btn {
  display: inline-block;
  background: #ffffff;
  color: #000 !important;
  padding: 14px 35px;
  margin-top: 25px;
  border-radius: 30px;
  font-weight: 700;
  transition: 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ====== Všechny Sekce ====== */
.section { 
  padding: 60px 10%; 
  text-align: center; 
}
section {
  scroll-margin-top: 90px;
}
.section h2 {
  font-size: 2.2em;
  font-weight: 600;
  margin-bottom: 35px;
  position: relative;
}

/* ====== O nás (Obrázky) ====== */
.about-item {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}
.about img {
  width: calc(25% - 12px);
  min-width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

/* ====== Týdenní menu ====== */
.menu img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ====== Víkendová nabídka ====== */
.vikend img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ====== Speciální akce ====== */
.special {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 40px;
}
.special-item {
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left;
}
.special img {
  width: 40%;
  max-width: 350px;
  height: auto;
  border-radius: 12px;
}
.special figcaption p {
  margin-bottom: 15px;
  line-height: 1.6;
}
.special:last-of-type {
  margin-bottom: 0;
}

/* ====== Kontakt & Footer ====== */
#contact p {
  margin-bottom: 12px;
}
footer {
  padding: 30px;
  text-align: center;
  background: #f4f2ec;
  border-top: 1px solid #e6e4df;
  font-size: 0.9em;
}

#contact .ig-odkaz {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E1306C !important;
  font-weight: 600;
  text-decoration: none !important;
  vertical-align: bottom;
}

#contact .ig-odkaz span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#contact .ig-odkaz:hover {
  color: #C13584 !important;
}

#contact .ig-odkaz:hover span {
  text-decoration: none;
}

#contact .ig-ikona {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex-shrink: 0;
}


/* =======================================================
   ====== RESPONSIVE BREAKPOINTS (Media Queries) ======
   ======================================================= */

/* 📱 TABLETY A MOBILY (Šířka pod 992px) */
@media (max-width: 992px) {
  .logo-text { font-size: 1.4em; }
  .hero h2 { font-size: 1.8em; }
  
  /* Transformace menu na vysouvací mobilní verzi */
  .hamburger { display: inline-grid; }
  
  .desktop-menu {
    position: fixed;
    top: 85px; left: 0;
    width: 100%; height: calc(100vh - 85px);
    background: #fdfcf9;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    gap: 35px;
    transform: translateX(100%); /* Schová menu vpravo mimo obrazovku */
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  }
  
  /* Třída, kterou JavaScriptem přidáme pro otevření menu */
  .desktop-menu.open {
    transform: translateX(0);
  }
  
  .desktop-menu a { font-size: 1.4em; }

  /* Speciální akce pod sebe */
  .special-item {
    flex-direction: column;
    text-align: center;
  }
  .special img {
    width: 80%;
    max-width: 100%;
  }
}

/* 📱 ČISTĚ MOBILY (Šířka pod 600px) */
@media (max-width: 600px) {
  .section { padding: 40px 5%; }
  .logo-text { 
    display: block !important;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal !important;
    text-align: center;
  }

  /* 🌟 Tato nová podmínka zajistí odskočení textu "u Hastrmana" na druhý řádek */
  .logo-text span {
    display: block; 
    font-weight: 600; /* Druhý řádek může být o kousíček tenčí, vypadá to elegantněji */
    font-size: 1.1em; /* Mírně menší písmo pro druhý řádek */
    text-align: center;
  }
  
  .logo-img {
    height: 45px;
  }
  
  .hero { height: 50vh; }
  .hero h2 { font-size: 1.4em; }
  
  .about img {
    width: 100%;
  }
}