/* === STICKY MENU - VHV SPEED ===
   Profesionální header s glassmorphism efektem při scrollu.
*/

/* --- Top bar --- */
.site-top-header-wrap {
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  transform-origin: top;
}

/* --- Hlavní navigace - výchozí stav (na vrchu) --- */
#masthead .site-main-header-wrap {
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

/* --- Při scrollu - header fixed --- */
#masthead.header-scrolled {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
}

/* Při scrollu - glassmorphism pozadí */
#masthead.header-scrolled .site-main-header-wrap {
  box-shadow: 0 4px 30px rgba(3,39,75,0.25);
}
#masthead.header-scrolled .site-main-header-wrap .site-header-row-container-inner {
  background: rgba(3,39,75,0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}

/* Při scrollu - top bar schovat */
#masthead.header-scrolled .site-top-header-wrap {
  max-height: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: translateY(-100%);
}

/* --- Schovat CTA tlačítko "Objednat internet" z hlavního menu --- */
#primary-menu > li.vhv-menu-cta {
  display: none !important;
}

/* --- Navigační položky --- */
#primary-menu {
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem;
}
#primary-menu > li > a {
  position: relative;
  padding: 0.6rem 0.85rem !important;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* Hover - jemný glow pozadí */
#primary-menu > li > a::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 8px;
  background: rgba(255,255,255,0);
  transition: background 0.3s ease;
  z-index: -1;
}
#primary-menu > li > a:hover::before {
  background: rgba(255,255,255,0.1);
}

/* Hover - jemný bílý spodní pruh */
#primary-menu > li:not(.current-menu-item):not(.current_page_item) > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1), left 0.3s cubic-bezier(0.4,0,0.2,1);
}
#primary-menu > li:not(.current-menu-item):not(.current_page_item) > a:hover::after {
  width: 60%;
  left: 20%;
}

/* Aktivní stránka */
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current_page_item > a {
  color: #fff !important;
}
#primary-menu > li.current-menu-item > a::before,
#primary-menu > li.current_page_item > a::before {
  background: rgba(255,255,255,0.12);
}
#primary-menu > li.current-menu-item > a::after,
#primary-menu > li.current_page_item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  background: #f76a0c;
  border-radius: 2px;
}

/* --- Dropdown menu (Podpora) --- */
#primary-menu > li.menu-item-has-children {
  position: relative;
}
/* Neviditelný bridge - zabrání ztrátě hoveru při přesunu myši */
#primary-menu > li.menu-item-has-children::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}
#primary-menu .sub-menu {
  background: rgba(3,39,75,0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
  padding: 0.4rem 0 !important;
  overflow: hidden;
  margin-top: 0 !important;
  min-width: 260px !important;
  white-space: nowrap;
  right: 0 !important;
  left: auto !important;
}
#primary-menu .sub-menu li a {
  padding: 0.55rem 1.2rem !important;
  transition: background 0.2s ease, color 0.2s ease !important;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8) !important;
}
#primary-menu .sub-menu li a:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
}

/* --- HERO CTA TLAČÍTKO --- */
.hero-cta-btn {
  display: block;
  width: fit-content;
  margin: 1.5rem auto 0;
  padding: 1rem 2.5rem;
  background-color: var(--global-palette2, #da251d);
  color: #fff !important;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 50px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
  box-shadow: 0 4px 15px rgba(218, 37, 29, 0.4);
  letter-spacing: 0.02em;
  text-align: center;
}
.hero-cta-btn:hover {
  background-color: #e84740;
  box-shadow: 0 6px 25px rgba(218, 37, 29, 0.55);
  transform: translateY(-2px);
  color: #fff !important;
  text-decoration: none !important;
}
@media (max-width: 767px) {
  .hero-cta-btn {
    font-size: 1.1rem;
    padding: 0.85rem 2rem;
  }
}
