/* nav.css: quiet top bar that gains a background after scrolling; mobile drawer */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.is-scrolled {
  background: rgba(247, 244, 240, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.nav__logo img { width: 128px; height: auto; }
.nav__links { display: flex; gap: 1.8rem; font-weight: 400; }
.nav__links a { text-decoration: none; color: var(--plum); padding-block: .4rem; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transition: transform .35s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__ig { margin-inline-start: auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--plum); transition: background-color .3s; }
.nav__ig:hover { background: rgba(78, 58, 107, .08); }
.nav__ig svg { width: 22px; height: 22px; }
.nav__cta { min-height: 44px; padding: .6em 1.4em; }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__inner { gap: .8rem; }
  .nav__logo img { width: 104px; }
  .nav__cta { font-size: .9rem; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: var(--white); cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--plum); transition: transform .3s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); padding: 1rem var(--gutter) 2rem;
    box-shadow: 0 20px 30px -20px rgba(78, 58, 107, .3);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: .9rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
}

@media (max-width: 520px) { .nav__ig { display: none; } .nav__cta { margin-inline-start: auto; } } /* phones: Instagram lives in the menu */
.nav__menu-ig, .nav__menu-talk { display: none; }
@media (max-width: 900px) { .nav__menu-ig, .nav__menu-talk { display: block; } }
