body.menu-open {
  overflow: hidden;
}

.header {
  background-color: #f7ebd7;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  position: relative;
}

.menulogo img {
  height: 2.5rem;
  width: auto;
}

@media (max-width: 1300px) {
  .menulogo img {
    height: 1.5rem;
  }
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.nav-links li a {
  position: relative;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: #a68063;
}

/* Animace podtržení při najetí myší */
.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 2px;
    background: #a68063;
    transition: width 0.3s ease-in-out;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* kontakt tlačítko */
.nav-links li a.btn::after {
  display: none;
}

.nav-links li a.btn {
  background-color: #a68063;
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background-color 0.3s ease;
}
.nav-links li a.btn:hover {
  background-color: #8a6a4f;
}


.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 102;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100vh;
  background: #f7ebd7;
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 80px 20px;
  gap: 20px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 101;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav li a {
  text-decoration: none;
  font-size: 16px;
  color: #333;
}

.mobile-nav li a:focus,
.mobile-nav li a:active {
  color: #a68063;
}

.mobile-nav li a:active {
  background-color: rgba(166, 128, 99, 0.1); /* jemné zvýraznění */
  border-radius: 8px;
}


/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Hamburger on mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }
}
