/* Shared navigation styles */
nav {
  position: fixed; top: 18px; left: 50%; z-index: 100;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 32px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 20px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(17,17,16,0.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

nav.is-top {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111110;
  text-decoration: none;
}

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-links {
  display: flex; gap: 28px; list-style: none; margin:0; padding:0;
}
.nav-links a {
  font-size: 14px; font-weight: 400; color: #6b6b6b;
  text-decoration: none; letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #111110; }

.nav-cta {
  font-size: 13px; font-weight: 500; color: #111110;
  text-decoration: none;
  border: 1.5px solid #111110;
  border-radius: 999px;
  padding: 9px 18px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: #111110; color: #ffffff; }

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(17,17,16,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.32);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  width: 16px;
  height: 1.5px;
  background: #111110;
  border-radius: 999px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

@media (max-width: 768px) {
  nav {
    top: 14px;
    width: calc(100vw - 24px);
    padding: 10px 12px 10px 16px;
    align-items: center;
    flex-wrap: wrap;
  }
  .nav-right {
    display: contents;
  }
  .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }

  /* Open state */
  nav.is-open {
    border-radius: 24px;
    align-items: flex-start;
  }
  nav.is-open .nav-toggle span:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }
  nav.is-open .nav-toggle span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
  }
  nav.is-open .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(17,17,16,0.08);
  }
  nav.is-open .nav-links a {
    font-size: 16px;
    font-weight: 400;
    color: #111110;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-radius: 12px;
    transition: background 0.2s;
  }
  nav.is-open .nav-links a:hover {
    background: rgba(17,17,16,0.05);
  }
  nav.is-open .nav-cta {
    order: 4;
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 4px;
    padding: 12px 0;
    border-radius: 12px;
    border: none;
    background: #111110;
    color: #ffffff;
    font-size: 14px;
  }
}
