/* Scrollbar premium - Alquemet */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #ede9e2;
  border-left: 1px solid rgba(0,0,0,0.06);
}

::-webkit-scrollbar-thumb {
  background: #C8963E;
  border-radius: 100px;
  border: 2px solid #ede9e2;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25),
              0 0 6px rgba(200,150,62,0.4);
}

::-webkit-scrollbar-thumb:hover {
  background: #d9a84a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35),
              0 0 10px rgba(200,150,62,0.6);
}

::-webkit-scrollbar-thumb:active {
  background: #a87a2e;
}

::-webkit-scrollbar-corner {
  background: #ede9e2;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #C8963E #ede9e2;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f6f2;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 72px;
  padding: 0.6rem 2rem;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(248,246,242,0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

.navbar .nav-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: 0 0 auto;
}

.navbar .nav-logo img {
  width: 170px;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.navbar .nav-links {
  display: flex;
  align-items: center;
}

.navbar .nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #3a3a3a;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 0.9rem;
  position: relative;
  transition: color 0.3s;
}

.navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #C8963E;
  transition: width 0.3s ease;
}

.navbar .nav-links a:hover,
.navbar .nav-links a:focus-visible {
  color: #C8963E;
}

.navbar .nav-links a:hover::after,
.navbar .nav-links a:focus-visible::after {
  width: 60%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.58);
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #3a3a3a;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(10,8,6,0.48);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-backdrop.visible {
  opacity: 1;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .navbar {
    min-height: 68px;
    padding: 0.7rem 5vw;
  }

  .navbar .nav-logo img {
    width: 118px;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
  }

  .navbar.nav-open .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar.nav-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .navbar.nav-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .navbar .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001;
    width: min(82vw, 320px);
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 5.4rem 1.25rem 1.5rem;
    background: #f8f6f2;
    border-left: 1px solid rgba(0,0,0,0.08);
    box-shadow: -24px 0 48px rgba(0,0,0,0.16);
    transform: translateX(105%);
    transition: transform 0.28s ease;
  }

  .navbar.nav-open .nav-links {
    transform: translateX(0);
  }

  .navbar .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
  }

  .navbar .nav-links a::after {
    display: none;
  }
}
