.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(254, 250, 240, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-wrap { min-height: var(--nav-height); display: flex; align-items: center; gap: 24px; }
.brand {
  width: 500px; /* increase this */
  flex: 0 0 auto;
}
.brand picture,
.brand img { display: block; width: 100%; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 23px; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 23px; }
.primary-nav a { position: relative; font-size: 15px; font-weight: 650; letter-spacing: .01em; text-decoration: none; }
.nav-links > a { padding: 30px 0 27px; }
.nav-links > a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--cinnamon);
  transition: right .2s ease;
}
.nav-links > a:hover::after,
.nav-links > a:focus-visible::after,
.nav-links > a.active::after { right: 0; }

.menu-toggle,
.menu-close,
.mobile-nav-header,
.mobile-nav-cta,
.nav-backdrop { display: none; }
.menu-toggle { margin-left: auto; padding: 8px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 27px; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--espresso); }

@media (max-width: 1100px) {
  .brand { width: 400px; }
  .primary-nav, .nav-links { gap: 17px; }
}

@media (max-width: 980px) {
  .nav-cta { display: none; }
  .brand { width: 350px; }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 72px;
  }

  .site-header {
    background: rgba(254, 250, 240, 0.995);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-wrap {
    min-height: 72px;
    gap: 10px;
  }

  .brand {
    width: min(225px, calc(100vw - 82px));
  }

  .menu-toggle {
    display: block;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(74, 32, 28, 0.42);
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  .nav-backdrop[hidden] {
    display: none;
  }

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

  .primary-nav {
    display: flex;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1002;
    width: min(86vw, 340px);
    margin: 0;
    padding: 18px 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    background: var(--floral);
    box-shadow: -18px 0 45px rgba(74, 32, 28, 0.16);
    transform: translate3d(105%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.24s ease,
      visibility 0s linear 0.24s;
  }

  .primary-nav.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.24s ease;
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav-label {
    color: var(--espresso);
    font-family: var(--serif);
    font-size: 22px;
  }

  .menu-close {
    display: grid;
    position: relative;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-close span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--espresso);
  }

  .menu-close span:first-child {
    transform: rotate(45deg);
  }

  .menu-close span:last-child {
    transform: rotate(-45deg);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links > a {
    width: 100%;
    padding: 15px 2px;
    border-bottom: 1px solid rgba(113, 63, 40, 0.13);
    color: var(--espresso);
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
  }

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

  .nav-links > a:hover,
  .nav-links > a.active {
    color: var(--cinnamon);
  }

  .mobile-nav-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 20px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links > a, .primary-nav, .nav-backdrop { transition: none; }
}
