*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }


.header {
    background: #161a1d;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
    z-index: 2000;
    /* jedan jedini z-index */
}


.header .container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo {
    font-size: 26px;
    font-weight: bold;
    color: #000;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo span {
    color: #e6b800;
}

.logo img {
    height: 100px;
    width: auto;
}






/* DESKTOP NAVIGACIJA */
.nav {
    display: flex;
    gap: 25px;
    align-items: center;
}


.desktop-nav a {
    position: relative;
    margin-left: 24px;
    font-weight: 500;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 2px;
    width: 0;
    background: #111;
    transition: width .25s;
}

.desktop-nav a:hover::after {
    width: 100%;
}


.nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #e6b800;
}

/* HAMBURGER */
/* .hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
  } */

.hamburger {
    display: none;
    width: 42px;
    height: 40px;
    border: none;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .08);
    /* background: #fff; */
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    padding: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2300;
    background-color: gray;
}



.hamburger span {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    transform: translateY(-6px);
}

.hamburger span:nth-child(2) {
    transform: translateY(0);
}

.hamburger span:nth-child(3) {
    transform: translateY(6px);
}


/* otvoreno stanje */
.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg);
}


.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(2px);
    z-index: 1900;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.backdrop.show {
    opacity: 1;
    pointer-events: auto;
}



.mobile-menu {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 16px;
    right: 16px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 14px;
    display: grid;
    /* default layout */
    gap: 6px;
    transform: translateY(-10px) scale(.98);
    opacity: 0;
    pointer-events: none;
    z-index: 2100;
    /* iznad headera/backdropa */
    transition: transform .25s ease, opacity .25s ease;
    top: calc(var(--header-h) + 16px);
}

/* stanje otvoreno */
.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    /* display: grid; */
    flex-direction: column;
    /* osiguraj da Q u mediji ne pregazi */
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
    background: #f5f5f7;
}


.mobile-menu a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center;
    display: block;
    padding: 12px 10px;
    color: #111;
    font-size: 17px;
    font-weight: 600;
    border-radius: 10px;
}


.mobile-menu a {
    display: block;
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    border-radius: 10px;
}

.mobile-menu a:hover {
    background: #f5f5f7;
}

.hamburger:active {
    transform: scale(.96);
}

body.no-scroll {
    overflow: hidden;
}


/* RESPONSIVE */
@media (max-width: 900px) {
    .desktop-nav {
      display: none!important;
    }

    .header{
        background-color: #161a1d36!important;
    }
  
    .hamburger {
      display: flex;
      position: absolute;
      top: 25px;
      right: 20px;
    }
  
  
    .mobile-menu a {
      font-size: 17px;
    }
  
    .logo {
      font-size: 22px;
    }
  
    .header .container {
      flex-direction: column;
      gap: 15px;
    }
  
    /* .logo img {
      height: 56px !important;
    } */
  }