

:root {
    --main-green: #3F8230;
    --white-bg: #ffffff;
    --dark-bg: #0a0a0a;
}

@font-face {
  font-family: "Alkia";
  src: url("../fonts/alkia.woff2") format("woff2"),
       url("../fonts/alkia.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

.logo-green path{
  fill: var(--main-green);
}

.static-nav {
  position: absolute;
  top: 0px;
  left: 0;
  right: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 2rem;
  z-index: 999;
  color: black;
  background-color: var(--white-bg);
  border-radius: 0px;
  backdrop-filter: blur(1px);     /* rozmazanie pozadia */
  -webkit-backdrop-filter: blur(1px);
}

.static-nav img{
  max-width: 40px; 
  height: auto;
}

.nav-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-left {
  justify-self: start;
}
.nav-right {
  justify-self: center; /* presne do stredu */
}

.nav-left ul,
.nav-right ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  margin: 0;
  padding: 0;
  /*padding-right: 8rem;*/
  align-items: center;
}

.nav-left ul{
  gap: 0.5rem;
}

.static-nav li a {
  color: var(--main-green);
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}



.static-nav li a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--main-green);
  transition: width 0.3s ease, left 0.3s ease;
}

.static-nav li a:hover::after {
  width: 100%;
  left: 0;
}

.no-underline a::after{
  height: 0 !important;
}


.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--main-green);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobilná verzia */
@media (max-width: 1000px) {
  .nav-wrapper {
    grid-template-columns: 1fr auto; /* len ľavá + pravá (hamburger) */
  }

  .nav-left {
    justify-self: start;
  }

  .hamburger {
    display: flex;
    justify-self: end; /* <== toto je kľúčové */
  }

  .nav-right {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white-bg);
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    display: none;
  }

  .nav-right.active {
    display: flex;
  }

  .nav-right ul {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
  }

  /* ak nechceš textové logo */
  #nav-header {
    display: none;
  }

  /* prázdny div netreba na mobile */
  .nav-right-hidden {
    display: none;
  }
}


/* -----  sticky nav -----------*/

.sticky-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgb(249, 249, 249);
  padding: 1rem 2rem;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
  z-index: 999;
}

.sticky-nav.show {
  transform: translateY(0);
}


.sticky-nav .nav-left ul,
.sticky-nav .nav-right ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3rem;
  margin: 0;
  padding: 0;
}

.sticky-nav .nav-left ul {
  gap: 0.5rem;
}

.sticky-nav li a {
  color: var(--main-green);
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.sticky-nav li a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--main-green);
  transition: width 0.3s ease, left 0.3s ease;
}

.sticky-nav li a:hover::after {
  width: 100%;
  left: 0;
}

#nav-header a {
  margin-left: 5px;
  font-family: "Alkia", sans-serif;
  letter-spacing: 2px; 
  font-size: 2rem;
  line-height: 1;
}

.sticky-nav img {
  max-width: 40px;
  height: auto;
}

