/* === NAVBAR === */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: 84px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .25s ease, min-height .25s ease, box-shadow .25s ease;
}

#main-nav.scrolled {
  background: #fff;
  min-height: 70px;
  box-shadow: 0 2px 20px rgba(24,39,77,.10);
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: clamp(36px, 4vw, 48px);
  width: auto;
  display: block;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: color .18s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--lime); }

#main-nav.scrolled .nav-links a { color: var(--navy); }
#main-nav.scrolled .nav-links a:hover { color: var(--navy); }

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(24,39,77,.16);
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  transform: translateX(-50%) translateY(-8px);
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown__menu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown__menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--navy) !important;
  font-weight: 400;
  transition: background .15s;
}
.nav-dropdown__menu a:hover { background: var(--bg-warm); }
.nav-dropdown__menu a::after { display: none; }

/* CTA tlačítko v nav */
.nav-cta {
  background: var(--lime);
  color: var(--navy) !important;
  padding: 0 20px;
  height: 44px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  transition: background .18s, transform .18s !important;
  flex-shrink: 0;
}
.nav-cta:hover { background: #9dc428 !important; transform: translateY(-1px) !important; }
.nav-cta::after { display: none !important; }

/* Hamburger (mobil) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
#main-nav.scrolled .nav-hamburger span { background: var(--navy); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile a {
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.nav-mobile a:hover { color: var(--lime); }
.nav-mobile .btn {
  margin-top: 16px;
  height: 56px;
  font-size: 1rem;
}

/* Sticky mobile lišta (jen mobil) */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--navy);
  box-shadow: 0 -4px 16px rgba(24,39,77,.20);
}
.mobile-sticky a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.mobile-sticky a:first-child { background: var(--lime); color: var(--navy); }
.mobile-sticky a:last-child { background: var(--navy); }

@media (max-width: 767px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-sticky { display: flex; }
  #main-nav { min-height: 68px; }
  #main-nav.scrolled { min-height: 60px; }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 13px; }
}
