/* AdNa – Glass Header Menu (scoped) */
:root{
  --adna-gh-brand-rgb: 168, 28, 56; /* #A81C38 */
  --adna-gh-brand-700: #8F1830;
  --adna-gh-brand-600: #A81C38;
  --adna-gh-brand-500: #B1334C;

  --adna-gh-container: 1440px;
  --adna-gh-shadow-sm: 0 6px 20px rgba(var(--adna-gh-brand-rgb), .12);
  --adna-gh-shadow-lg: 0 14px 34px rgba(0,0,0,.12);
}

.adna-gh,
.adna-gh *{
  box-sizing: border-box;
}

.adna-gh{
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  padding-top: 1rem;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

.adna-gh.is-relative{
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}

.adna-gh a{
  text-decoration: none;
}

.adna-gh__container{
  width: min(100%, var(--adna-gh-container));
  margin-inline: auto;
  padding-inline: 1rem;
}

.adna-gh__nav-wrap{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 25px;
}

.adna-gh__brand{
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 0 0 auto;
  min-width: 0;
}

.adna-gh__brand-link{
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.adna-gh__logo{
  height: 100px;
  width: auto;
  display: block;
}

.adna-gh__logo-text{
  font-weight: 800;
  letter-spacing: .2px;
  color: #111827;
  padding: .2rem .4rem;
  border-radius: 10px;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.55);
}

/* Mobile CTA + hamburger holder */
.adna-gh__mobile-actions{
  display: none;
  align-items: center;
  gap: .65rem;
  margin-left: auto;
  flex: 0 0 auto;
}

/* Main nav glass panel */
.adna-gh__nav{
  display: flex;
  align-items: center;
  gap: .65rem;
  flex: 1 1 auto;
  min-width: 0;

  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);

  border-radius: 20px;
  padding: .55rem .7rem .55rem .55rem;
}

/* WP menu output */
.adna-gh__menu{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  flex: 1 1 auto;
  min-width: 0;

  margin: 0;
  padding: 0;
  list-style: none;

  white-space: nowrap;
  overflow: visible;

  font-weight: 600;
}

.adna-gh__menu > li,
.adna-gh__menu .sub-menu li{
  position: relative;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

/* Force dark text in menu */
.adna-gh__menu a,
.adna-gh__menu a:visited,
.adna-gh__menu a:hover,
.adna-gh__menu a:focus,
.adna-gh__menu a:active{
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
}

.adna-gh__menu a *,
.adna-gh__menu a:hover *,
.adna-gh__menu a:focus *,
.adna-gh__menu a:active *{
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

.adna-gh__menu > li > a{
  display: block;
  padding: .48rem .68rem;
  border-radius: 10px;
  line-height: 1.2;
  background: transparent;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
  font-size: 15px;
}

.adna-gh__menu > li:hover > a,
.adna-gh__menu > li:focus-within > a{
  background: rgba(255,255,255,.6);
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
}

/* Active item */
.adna-gh__menu > li.current-menu-item > a,
.adna-gh__menu > li.current_page_item > a,
.adna-gh__menu > li.current-menu-ancestor > a,
.adna-gh__menu > li.current_page_ancestor > a{
  background: rgba(255,255,255,.65);
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
}

/* Arrow for top-level item with dropdown */
.adna-gh__menu > li.menu-item-has-children > a{
  display: flex;
  align-items: center;
  gap: .35rem;
}

.adna-gh__menu > li.menu-item-has-children > a::after{
  content: "▾";
  font-size: .8em;
  line-height: 1;
  opacity: .75;
}

/* Submenu toggle button (injected by JS on mobile only) */
.adna-gh__submenu-toggle{
  display: none;
}

/* Dropdown */
.adna-gh__menu .sub-menu{
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;

  margin: 0;
  padding: .45rem;
  list-style: none;
  white-space: normal;

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 16px;
  box-shadow: var(--adna-gh-shadow-lg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 40;
}

/* 3rd level and deeper */
.adna-gh__menu .sub-menu .sub-menu{
  top: 0;
  left: 100%;
  transform: translateX(8px);
}

/* Show dropdown */
.adna-gh__menu li:hover > .sub-menu,
.adna-gh__menu li:focus-within > .sub-menu{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, 0);
}

.adna-gh__menu .sub-menu a{
  display: block;
  padding: .7rem .85rem;
  border-radius: 12px;
  line-height: 1.25;
  background: transparent;
  transition: background-color .18s ease, color .18s ease;
  font-size: 14px;
}

.adna-gh__menu .sub-menu a:hover,
.adna-gh__menu .sub-menu a:focus,
.adna-gh__menu .sub-menu li.current-menu-item > a,
.adna-gh__menu .sub-menu li.current_page_item > a,
.adna-gh__menu .sub-menu li.current-menu-ancestor > a,
.adna-gh__menu .sub-menu li.current_page_ancestor > a{
  background: rgba(255,255,255,.75);
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
}

/* Arrow in nested submenu */
.adna-gh__menu .sub-menu li.menu-item-has-children > a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.adna-gh__menu .sub-menu li.menu-item-has-children > a::after{
  content: "›";
  font-size: 1em;
  line-height: 1;
  opacity: .75;
}

/* CTA button */
.adna-gh__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  font-weight: 800;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;

  background: linear-gradient(180deg, var(--adna-gh-brand-500), var(--adna-gh-brand-600));
  border-radius: 999px;
  padding: .72rem .98rem;

  box-shadow: var(--adna-gh-shadow-sm);
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.adna-gh__cta:hover,
.adna-gh__cta:focus,
.adna-gh__cta:active,
.adna-gh__cta:visited{
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.adna-gh__cta:hover,
.adna-gh__cta:focus-visible{
  transform: translateY(-1px);
}

.adna-gh__cta--mobile{
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adna-gh__cta--desktop{
  display: inline-flex;
}

/* Language switcher */
.adna-gh__lang-switcher{
  display:flex;
  align-items:center;
  gap:.35rem;
  flex:0 0 auto;
  margin-left:.1rem;
}

.adna-gh__lang-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:48px;
  padding:.62rem .85rem;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.08);
  background:rgba(255,255,255,.72);
  color:#1f2937 !important;
  -webkit-text-fill-color:#1f2937 !important;
  font-weight:800;
  font-size:.88rem;
  line-height:1;
  transition:transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.adna-gh__lang-link:hover,
.adna-gh__lang-link:focus-visible,
.adna-gh__lang-link:visited{
  color:#1f2937 !important;
  -webkit-text-fill-color:#1f2937 !important;
}

.adna-gh__lang-link:hover,
.adna-gh__lang-link:focus-visible{
  transform:translateY(-1px);
}

/* Hamburger button */
.adna-gh__toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 16px;
  background: rgba(255,255,255,.5);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.adna-gh__toggle:hover,
.adna-gh__toggle:focus-visible{
  transform: translateY(-1px);
}

.adna-gh__toggle-lines{
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.adna-gh__toggle-lines span{
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #1f2937;
  transition: top .18s ease, transform .18s ease, opacity .18s ease;
}

.adna-gh__toggle-lines span:nth-child(1){ top: 0; }
.adna-gh__toggle-lines span:nth-child(2){ top: 6px; }
.adna-gh__toggle-lines span:nth-child(3){ top: 12px; }

.adna-gh.is-open .adna-gh__toggle-lines span:nth-child(1){
  top: 6px;
  transform: rotate(45deg);
}

.adna-gh.is-open .adna-gh__toggle-lines span:nth-child(2){
  opacity: 0;
}

.adna-gh.is-open .adna-gh__toggle-lines span:nth-child(3){
  top: 6px;
  transform: rotate(-45deg);
}

/* Focus styles */
.adna-gh__toggle:focus-visible,
.adna-gh__submenu-toggle:focus-visible,
.adna-gh__cta:focus-visible,
.adna-gh__menu a:focus-visible{
  outline: 2px solid rgba(var(--adna-gh-brand-rgb), .45);
  outline-offset: 2px;
}

/* WordPress admin bar */
.admin-bar .adna-gh.is-absolute{
  top: 32px;
}

@media (max-width: 782px){
  .admin-bar .adna-gh.is-absolute{
    top: 46px;
  }
}

/* Mobile only */
@media (max-width: 1200px){
  .adna-gh,
  .adna-gh.is-relative,
  .adna-gh.is-absolute{
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: auto;
    z-index: 50;
    padding-top: .75rem;
  }

  .admin-bar .adna-gh,
  .admin-bar .adna-gh.is-relative,
  .admin-bar .adna-gh.is-absolute{
    top: 32px;
  }

  .adna-gh__container{
    padding-inline: 1rem;
  }

  .adna-gh__nav-wrap{
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 0;
  }

  .adna-gh__brand{
    flex: 1 1 auto;
    min-width: 0;
  }

  .adna-gh__brand-link{
    min-width: 0;
  }

  .adna-gh__logo{
    height: 54px;
    max-width: clamp(120px, 36vw, 170px);
    width: auto;
    object-fit: contain;
  }

  .adna-gh__mobile-actions{
    display: flex;
    align-items: center;
    gap: .5rem;
  }

  .adna-gh__toggle{
    display: inline-flex;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(17,24,39,.08);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .adna-gh__cta--mobile{
    display: inline-flex;
    max-width: min(52vw, 220px);
    font-size: .9rem;
    padding: .72rem .95rem;
  }

  .adna-gh__nav{
    display: none;
    width: 100%;
    flex: 0 0 100%;
    margin-top: .15rem;
    padding: 0;

    background: #ffffff;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15,23,42,.10);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    max-height: min(68vh, 560px);
    max-height: min(68dvh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .adna-gh.is-open .adna-gh__nav{
    display: block;
  }

  .adna-gh__menu{
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    white-space: normal;
    overflow: visible;
  }

  .adna-gh__menu > li{
    display: block;
    width: 100%;
    flex: none;
    border-top: 1px solid #eef2f7;
  }

  .adna-gh__menu > li:first-child{
    border-top: 0;
  }

  .adna-gh__menu > li > a,
  .adna-gh__menu .sub-menu a{
    display: block;
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
  }

  .adna-gh__menu > li > a,
  .adna-gh__menu > li.menu-item-has-children > a{
    display: block;
    padding: 1rem 3rem 1rem 1rem;
    border-radius: 0;
    background: transparent;
  }

  .adna-gh__menu > li:hover > a,
  .adna-gh__menu > li:focus-within > a,
  .adna-gh__menu > li.current-menu-item > a,
  .adna-gh__menu > li.current_page_item > a,
  .adna-gh__menu > li.current-menu-ancestor > a,
  .adna-gh__menu > li.current_page_ancestor > a{
    background: #f8fafc;
  }

  .adna-gh__menu > li.menu-item-has-children > a::after,
  .adna-gh__menu .sub-menu li.menu-item-has-children > a::after{
    display: none;
  }

  .adna-gh__submenu-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: .85rem;
    right: .75rem;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1f2937;
    cursor: pointer;
    box-shadow: none;
  }

  .adna-gh__submenu-toggle::before{
    content: "▾";
    font-size: .95rem;
    line-height: 1;
    transition: transform .18s ease;
  }

  .adna-gh__menu li.submenu-open > .adna-gh__submenu-toggle::before{
    transform: rotate(180deg);
  }

  .adna-gh__menu .sub-menu{
    position: static;
    top: auto;
    left: auto;
    min-width: 0;

    display: none;
    margin: 0 .95rem .95rem .95rem;
    padding: .15rem 0 .1rem .9rem;

    background: transparent;
    border: 0;
    border-left: 2px solid #eef2f7;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    white-space: normal;
  }

  .adna-gh__menu li.submenu-open > .sub-menu{
    display: block;
  }

  .adna-gh__menu .sub-menu .sub-menu{
    top: auto;
    left: auto;
    transform: none;
    margin: .35rem 0 .1rem 0;
    padding-left: .9rem;
    border-left: 2px solid #eef2f7;
  }

  .adna-gh__menu .sub-menu li{
    display: block;
    width: 100%;
    flex: none;
  }

  .adna-gh__menu .sub-menu a,
  .adna-gh__menu .sub-menu li.menu-item-has-children > a{
    display: block;
    padding: .68rem 0;
    border-radius: 0;
    background: transparent;
    font-size: .95rem;
  }

  .adna-gh__menu .sub-menu a:hover,
  .adna-gh__menu .sub-menu a:focus,
  .adna-gh__menu .sub-menu li.current-menu-item > a,
  .adna-gh__menu .sub-menu li.current_page_item > a,
  .adna-gh__menu .sub-menu li.current-menu-ancestor > a,
  .adna-gh__menu .sub-menu li.current_page_ancestor > a{
    background: transparent;
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
  }

  .adna-gh__cta--desktop{
    display: none;
  }

  .adna-gh__lang-switcher{
    display:flex;
    justify-content:flex-start;
    gap:.45rem;
    margin:.2rem 1rem 1rem 1rem;
    padding-top:1rem;
    border-top:1px solid #eef2f7;
  }

  .adna-gh__lang-link{
    min-width:52px;
    padding:.78rem .9rem;
    background:#f8fafc;
  }
}

@media (max-width: 782px){
  .admin-bar .adna-gh,
  .admin-bar .adna-gh.is-relative,
  .admin-bar .adna-gh.is-absolute{
    top: 46px;
  }
}

@media (max-width: 480px){
  .adna-gh__container{
    padding-inline: .85rem;
  }

  .adna-gh__logo{
    height: 46px;
    max-width: 118px;
  }

  .adna-gh__mobile-actions{
    gap: .45rem;
  }

  .adna-gh__toggle{
    width: 44px;
    height: 44px;
  }

  .adna-gh__cta--mobile{
    max-width: 48vw;
    font-size: .82rem;
    padding: .66rem .8rem;
  }

  .adna-gh__menu > li > a,
  .adna-gh__menu > li.menu-item-has-children > a{
    padding: .92rem 2.8rem .92rem .92rem;
  }

  .adna-gh__submenu-toggle{
    top: .72rem;
    right: .62rem;
  }

  .adna-gh__menu .sub-menu{
    margin: 0 .92rem .82rem .92rem;
    padding-left: .8rem;
  }
}

@media (max-width: 360px){
  .adna-gh__logo{
    height: 42px;
    max-width: 100px;
  }

  .adna-gh__cta--mobile{
    max-width: 44vw;
    font-size: .76rem;
    padding: .6rem .72rem;
  }
}

/* Mobile: zruš sticky/fixed wrapper témy pre header s naším menu */
@media (max-width: 1200px){
  .l-header.adna-gh-parent,
  .l-header.adna-gh-parent.sticky,
  .l-header.adna-gh-parent.pos_fixed,
  .l-header.adna-gh-parent.sticky_auto_hide,
  .l-header.adna-gh-parent.down,
  .l-header.adna-gh-parent.up{
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .l-header.adna-gh-parent .l-subheader{
    position: static !important;
    top: auto !important;
    transform: none !important;
  }

  .admin-bar .l-header.adna-gh-parent,
  .admin-bar .l-header.adna-gh-parent.sticky,
  .admin-bar .l-header.adna-gh-parent.pos_fixed,
  .admin-bar .l-header.adna-gh-parent.sticky_auto_hide,
  .admin-bar .l-header.adna-gh-parent.down,
  .admin-bar .l-header.adna-gh-parent.up{
    top: 32px !important;
  }
}

@media (max-width: 782px){
  .admin-bar .l-header.adna-gh-parent,
  .admin-bar .l-header.adna-gh-parent.sticky,
  .admin-bar .l-header.adna-gh-parent.pos_fixed,
  .admin-bar .l-header.adna-gh-parent.sticky_auto_hide,
  .admin-bar .l-header.adna-gh-parent.down,
  .admin-bar .l-header.adna-gh-parent.up{
    top: 46px !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .adna-gh__menu > li > a,
  .adna-gh__menu .sub-menu a,
  .adna-gh__cta,
  .adna-gh__lang-link,
  .adna-gh__menu .sub-menu,
  .adna-gh__toggle,
  .adna-gh__toggle-lines span,
  .adna-gh__submenu-toggle::before{
    transition: none !important;
  }
}

/* Theme overrides */
.no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-cart-link:hover,
.no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-text a:hover,
.no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-html a:hover,
.no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-nav>a:hover,
.no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-menu a:hover,
.no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-search>a:hover,
.no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-socials.shape_none.color_text a:hover,
.no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-socials.shape_none.color_link a:hover,
.no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-dropdown a:hover,
.no-touch .l-header.bg_transparent:not(.sticky) .at_middle .type_desktop .menu-item.level_1.opened>a,
.no-touch .l-header.bg_transparent:not(.sticky) .at_middle .type_desktop .menu-item.level_1:hover>a{
  color: #000000;
}
