:root {
  --container: 1000px;
  --container-padding: 20px;

  --gray-bg: #333333;
}

main {
  display: block;
  padding-top: 108px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-padding);

  &.section-full {
    width: 100%;
  }
}

.pt32 {
  padding-top: 32px;
}

.pb32 {
  padding-bottom: 32px;
}


.pt64 {
  padding-top: 64px;
}

.pb64 {
  padding-bottom: 64px;
}

.header {
  background-color: rgb(51 51 51 / 90%);
  border-bottom: 1px solid black;
  position: fixed;
  top: 0;
  width: 100%;
  transition: transform 0.3s ease;
  z-index: 16;
  height: 108px;
}

.header.hidden {
  transform: translateY(-100%);
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;

  a {
    position: relative;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;

    opacity: 0.6;
    transition: 0.2s;

    &:hover {
      opacity: 1;

      &::after {
        width: 100%;
      }
    }

    &::after {
      content: "";
      position: absolute;
      left: -10px;
      bottom: -6px;
      width: 0;
      height: 3px;
      background: #C2AA5C;
      transition: width 0.25s ease;
    }

    &.active {
      opacity: 1;

      &:after {
        width: 100%;
      }
    }
  }

  .logo img {
    width: 100px;
  }
}

/* --- HAMBURGER IKONA (Po defaultu skrivena na desktopu) --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: #C2AA5C; /* Zlatne crte */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- RESPONSIVE DIZAJN (Ispod 992px) --- */
@media (max-width: 992px) {
  .header {
    display: flex;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
  }

  .nav {
    justify-content: space-between;
    width: 100%;
  }

  /* Logo guramo skroz lijevo */
  .nav .logo {
    order: 1;
  }
  .nav .logo img {
    width: 70px; 
  }

  /* Hamburger guramo skroz desno na vrhu */
  .menu-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100; /* Uvijek iznad svega */
  }

  /* Sakrij linkove u normalnom stanju mobitela */
  .nav a:not(.logo a) {
    display: none; 
  }

  /* FULL-SCREEN IZBORNIK KAD SE OTVORI */
  .nav.open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(15, 15, 15, 0.98); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    z-index: 99;
  }

  /* Prikaži linkove vertikalno */
  .nav.open a:not(.logo a) {
    display: block;
    font-size: 1.5rem; 
    text-align: center;
  }

  /* Pozicija logotipa unutar otvorenog menija */
  .nav.open .logo {
    position: absolute;
    top: 25px;
    left: 20px;
  }

  /* --- ANIMACIJA HAMBURGERA U "X" KAD JE NAV OTVOREN --- 
     (Sada koristimo klasu .open na nav-u koja utječe na gumb odmah pored sebe) */
  .nav.open + .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav.open + .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.open + .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}