/* ==========================================================================
   Zaglavlje v2 (referenca: „Zunic Law Header standalone")
   Jedna komponenta za sve jezike: 70px traka #07050D, 7 stavki menija,
   jedan dropdown („Data, AI & IT law"), pretraga, prekidač jezika, CTA.
   Fajl se učitava POSLE zl-core.css, pa gasi stara .site-header pravila.
   ========================================================================== */

:root {
  --zlnav-h: 70px;
  --header-h: 70px;              /* body padding-top u zl-core.css */
  --zlnav-bar: #07050D;
  --zlnav-teal-dark: #238882;    /* na belim površinama */
  --zlnav-teal-light: #59BBB2;   /* na tamnoj traci */
}

.zl-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--zlnav-h);
  background: var(--zlnav-bar);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.zl-nav__inner {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Wordmark */
/* Identično podnožju (.zlf .zmark): tanak rez, široka slova, „ZUNIC" u teal. */
.zl-nav__mark {
  flex: 0 0 auto;
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: .11em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.zl-nav__mark b { font-weight: 300; color: var(--zlnav-teal-light); }
/* Boja wordmark-a je fiksna: nikad se ne menja (hover, fokus, aktivna ruta, tema) */
.zl-nav .zl-nav__mark,
.zl-nav .zl-nav__mark:link,
.zl-nav .zl-nav__mark:visited,
.zl-nav .zl-nav__mark:hover,
.zl-nav .zl-nav__mark:active,
.zl-nav .zl-nav__mark:focus,
.zl-nav .zl-nav__mark:focus-visible,
.zl-nav .zl-nav__mark[aria-current],
.zl-nav .zl-nav__mark.active,
.zl-nav .zl-nav__mark.is-active { color: #fff !important; }
.zl-nav .zl-nav__mark b,
.zl-nav .zl-nav__mark:hover b,
.zl-nav .zl-nav__mark:active b,
.zl-nav .zl-nav__mark:focus b,
.zl-nav .zl-nav__mark:focus-visible b,
.zl-nav .zl-nav__mark[aria-current] b,
.zl-nav .zl-nav__mark.active b,
.zl-nav .zl-nav__mark.is-active b { color: var(--zlnav-teal-light) !important; }


/* Meni */
.zl-nav__menu {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
}

.zl-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s ease;
}
.zl-nav__link:hover,
.zl-nav__link:focus-visible,
.zl-nav__link.is-active { color: var(--zlnav-teal-light); }
.zl-nav__caret { fill: currentColor; flex: 0 0 auto; }

/* Dropdown: trigger pokriva celu visinu trake, panel „visi" o njegovu levu ivicu */
.zl-nav__drop { position: relative; display: flex; align-items: stretch; }
.zl-nav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: max-content;
  min-width: 460px;
  padding: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.zl-nav__drop:hover .zl-nav__panel,
.zl-nav__drop:focus-within .zl-nav__panel,
.zl-nav__drop.is-open .zl-nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.zl-nav__card {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--zlnav-teal-dark);
  border-radius: 12px;
  color: var(--zlnav-teal-dark);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.zl-nav__card:hover,
.zl-nav__card:focus-visible,
.zl-nav__card.is-active { background: #E6F4F2; color: var(--zlnav-teal-dark); }

/* Pretraga (ikonica u traci) */
.zl-nav__search-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  transition: color .18s ease;
}
.zl-nav__search-btn:hover,
.zl-nav__search-btn:focus-visible { color: var(--zlnav-teal-light); }

/* Prekidač jezika */
.zl-nav__langs { position: relative; flex: 0 0 auto; margin: 0 4px; }
.zl-nav__lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
}
.zl-nav__lang-btn:hover,
.zl-nav__lang-btn:focus-visible { color: var(--zlnav-teal-light); border-color: var(--zlnav-teal-light); }
.zl-nav__lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 92px;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .2);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.zl-nav__langs.is-open .zl-nav__lang-menu,
.zl-nav__langs:focus-within .zl-nav__lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.zl-nav__lang-menu a {
  padding: 8px 10px;
  border-radius: 7px;
  color: #0E0A1B;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.zl-nav__lang-menu a:hover,
.zl-nav__lang-menu a.is-active { background: #E6F4F2; color: var(--zlnav-teal-dark); }

/* CTA — jedini obojeni element u zaglavlju */
.zl-nav__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--zlnav-teal-dark);
  border-radius: 8px;
  background: var(--zlnav-teal-dark);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease;
}
.zl-nav__cta svg { fill: currentColor; }
.zl-nav__cta:hover,
.zl-nav__cta:focus-visible { background: #186F69; border-color: #186F69; color: #fff; }

.zl-nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.zl-nav__burger svg { width: 20px; height: 20px; fill: currentColor; }

.zl-nav__mobile-foot { display: none; }

/* Overlay pretrage */
.zl-search {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(7, 5, 13, .55);
  padding-top: var(--zlnav-h);
}
.zl-search form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .25);
}
.zl-search__ic { color: var(--zlnav-teal-dark); flex: 0 0 auto; }
.zl-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  color: #0E0A1B;
  font-family: inherit;
  font-size: 17px;
}
.zl-search__x {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E3E6E8;
  border-radius: 8px;
  background: none;
  color: #0E0A1B;
  cursor: pointer;
}
.zl-search__x svg { fill: currentColor; }
.zl-search__x:hover { border-color: var(--zlnav-teal-dark); color: var(--zlnav-teal-dark); }

/* Tablet: gušći meni */
@media (max-width: 1240px) and (min-width: 1025px) {
  .zl-nav__link { padding: 0 8px; font-size: 12.5px; }
  .zl-nav__cta { padding: 10px 14px; font-size: 12px; }
}

/* Mobilni / tablet panel */
@media (max-width: 1024px) {
  .zl-nav__burger { display: inline-flex; }
  .zl-nav__inner { gap: 6px; }
  .zl-nav__cta--bar { display: none; }
  .zl-nav__langs { display: none; }
  .zl-nav__menu {
    position: fixed;
    top: var(--zlnav-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 12px 20px 32px;
    background: var(--zlnav-bar);
    overflow-y: auto;
  }
  .zl-nav__menu.is-open { display: flex; }
  .zl-nav__link {
    height: auto;
    justify-content: flex-start;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 15px;
    text-align: left;
    width: 100%;
  }
  .zl-nav__link br { display: none; }
  .zl-nav__drop { display: block; }
  .zl-nav__panel {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
    margin: 10px 0 4px;
    box-shadow: none;
  }
  .zl-nav__drop.is-open .zl-nav__panel { display: grid; opacity: 1; visibility: visible; transform: none; }
  .zl-nav__drop:hover .zl-nav__panel:not(.is-open) { opacity: 1; }
  .zl-nav__mobile-foot { display: block; margin-top: 20px; }
  .zl-nav__mobile-langs { display: flex; gap: 8px; margin-bottom: 16px; }
  .zl-nav__mobile-langs a {
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
  }
  .zl-nav__mobile-langs a.is-active { border-color: var(--zlnav-teal-light); color: var(--zlnav-teal-light); }
  .zl-nav__mobile-foot .zl-nav__cta { display: inline-flex; width: 100%; justify-content: center; }
}

body.nav-locked { overflow: hidden; }

/* ==========================================================================
   Zaštita od tema koje se učitavaju POSLE ovog fajla (Elementor/hello reset
   postavlja `button { border:1px solid; display:inline-block; padding:.5rem 1rem;
   font-size:1rem }`, što je lomilo zaglavlje na Elementor stranicama).
   Ista pravila, ali sa većom specifičnošću — vizuelno ništa se ne menja.
   ========================================================================== */
.zl-nav .zl-nav__link {
  display: inline-flex;
  width: auto;
  color: #fff;
  padding: 0 12px;
  border: 0;
  background: none;
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 500;
}
.zl-nav .zl-nav__link:hover,
.zl-nav .zl-nav__link:focus-visible,
.zl-nav .zl-nav__link.is-active { color: var(--zlnav-teal-light); }
.zl-nav .zl-nav__search-btn {
  display: inline-flex;
  color: #fff;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}
.zl-nav .zl-nav__lang-btn {
  display: inline-flex;
  color: #fff;
  width: auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: none;
  font-size: 12px;
}
.zl-nav .zl-nav__burger {
  display: none;
  color: #fff;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}
.zl-search .zl-search__x {
  display: inline-flex;
  color: #0E0A1B;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #E3E6E8;
  background: none;
  font-size: inherit;
}
@media (max-width: 1024px) {
  .zl-nav .zl-nav__burger { display: inline-flex; }
  .zl-nav .zl-nav__link {
    height: auto;
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 15px;
  }
}
