.nav{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--brand);
  isolation: isolate;
  transform: translateZ(0);
}
.nav__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding: 6px 6px;   /* ovo daje zrak gore/dolje */
  min-height: 104px;    /* fallback ako nešto pođe krivo */
}

/* Brand */
.nav__brand{
  display:flex;
  align-items:center;
  padding-left: 8px;    /* malo prema sredini */
}

/* Logo (bez !important) */
.nav__logo{
  width: 96px;
  height: 96px;
  display:block;
  object-fit: contain;

  /* Cropped logo: gotovo bez pomaka */
  transform: translateY(0);

  /* suptilan glow */
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.12));
}

/* Desktop nav */
.nav__desktop{
  display: none;
  align-items: center;
  gap: 50px;
}

.nav__link{
  display: inline-flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  padding: 10px 0;
  font-size: 1.2rem
}
.nav__link:hover{ opacity: .85; }

/* MOBILE ACTIONS */
.nav__mobile{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* CTA */
.nav__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  line-height: 1;
  font-size: 1.2rem;
  background: var(--wood-cta);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
.nav__cta{
  background-image: linear-gradient(
    to bottom,
    rgba(255,255,255,0.08),
    rgba(0,0,0,0.12)
  );
}
.nav__cta:hover{
  background: var(--wood-cta-hover);
  transform: translateY(-1px);
}

/* HAMBURGER – samo tri crte */
.nav__toggle{
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav__hamburger{
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
}
.nav__hamburger::before,
.nav__hamburger::after{
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
}
.nav__hamburger::before{ top: -7px; }
.nav__hamburger::after{ top: 7px; }

/* WOOD LINE */
.nav__wood{
  width: 100%;
  height: 24px;
  background-color: var(--wood);
  background-image: url("/assets/img/ui/wood-ui.webp");
  background-repeat: repeat-x;
  background-size: auto 100%;
}

.nav__panel{
  display: none;
  padding: 20px 16px 24px;

  /* GLASS EFFECT */
  background: rgba(40,40,40,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.nav__panel.is-open{
  display: block;
}

.nav__panelLink{
  display: block;
  width: 100%;
  padding: 16px 0;

  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .3px;

  border-bottom: 1px solid rgba(255,255,255,.18);

  transition: background .15s ease, transform .1s ease;
}

/* hover (desktop / pointer devices) */
.nav__panelLink:hover{
  background: rgba(255,255,255,0.08);
}

/* active (mobile tap feedback – VAŽNO) */
.nav__panelLink:active{
  background: rgba(255,255,255,0.14);
  transform: scale(0.98);
}

.nav__panelLink:last-child{
  border-bottom: 0;
}

.nav__panel{
  animation: navPanelFade .18s ease-out;
}

@keyframes navPanelFade{
  from{
    opacity: 0;
    transform: translateY(-4px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* DESKTOP */
@media (min-width: 900px){
  .nav__inner{ padding: 12px 24px; }

  .nav__logo{
    width: 112px;
    height: 112px;
    transform: translateY(0); /* ostaje centrirano */
    .nav__link{
    font-size: 1.1rem; /* ~17.6px */
  }
  }

  .nav__desktop{ display: flex; }
  .nav__mobile{ display: none; }
  .nav__panel{ display: none !important; }
}

@media (prefers-reduced-motion: reduce){
  .nav__logo{ filter: none; }
}