/* ============================================
   NAVBAR — wax-seal brand + ribbon links
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(244, 236, 220, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.3s ease,
    box-shadow 0.3s ease;
}
.navbar.scrolled {
  padding: 11px 40px;
  box-shadow: 0 4px 24px rgba(74, 22, 32, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--maroon-deep);
  letter-spacing: 0.3px;
}
.brand .seal {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rose), var(--maroon) 65%);
  box-shadow:
    inset 0 -3px 5px rgba(0, 0, 0, 0.25),
    0 2px 5px rgba(74, 22, 32, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}
.brand:hover .seal {
  transform: rotate(-12deg) scale(1.08);
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--maroon);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}
.sidebar-close {
  display: none;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(74, 22, 32, 0.4);
  backdrop-filter: blur(3px);
  z-index: 998;
}
.mobile-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  .navbar {
    padding: 14px 20px;
  }
  .navbar.scrolled {
    padding: 9px 20px;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: var(--paper);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 90px 30px 30px;
    gap: 0;
    border-left: 1px solid var(--line);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    font-size: 1.08rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .sidebar-close {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--ink);
  }
  .sidebar-close svg {
    width: 16px;
    height: 16px;
  }
  .hamburger {
    display: flex;
  }
}
