/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(0);
  transition: transform 0.3s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: #fff;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-logo-img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-base);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--color-accent);
}

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

/* ── CTA button ────────────────────────────────────────────── */
.nav-cta-mobile {
  display: none;
}

.nav-cta {
  flex-shrink: 0;
  padding: 0.65rem 1.6rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: background var(--transition-base);
}

.nav-cta:hover {
  background: var(--color-primary);
}

/* ── Hamburger button ──────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

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

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

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

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 950px) {
  .nav-cta {
    display: none;
  }

  .nav-links .nav-cta-mobile {
    display: block;
    padding: 1rem 5%;
  }

  .nav-links .nav-cta-mobile a {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: background var(--transition-base);
  }

  .nav-links .nav-cta-mobile a:hover {
    background: var(--color-primary);
  }

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

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-links.open {
    max-height: 400px;
  }

  .nav-links li {
    border-top: 1px solid #f0ede8;
  }

  .nav-links a {
    display: block;
    padding: 1rem 5%;
    font-size: 0.85rem;
  }

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