.nav-toggle {
  display: none;
}

.header-contact {
  flex: 0 0 auto;
}

@media (width <= 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .site-header .header-contact {
    margin-left: auto;
  }

  .is-nav-enhanced .site-header {
    isolation: isolate;
  }

  .is-nav-enhanced .site-header .logo {
    margin-right: auto;
  }

  .is-nav-enhanced .nav-toggle {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 76px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid rgb(59 46 39 / 16%);
    border-radius: 99px;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
  }

  .is-nav-enhanced .nav-toggle::before {
    content: '≡';
    font-size: 20px;
    font-weight: 400;
    line-height: 0.7;
    transform: translateY(-1px);
  }

  .is-nav-enhanced .site-header[data-nav-open='true'] .nav-toggle::before {
    content: '×';
    font-size: 22px;
  }

  .is-nav-enhanced .nav-toggle:hover {
    background: rgb(239 198 165 / 32%);
  }

  .is-nav-enhanced .nav-toggle:focus-visible {
    outline-offset: 3px;
  }

  .is-nav-enhanced .site-header .header-contact {
    order: 2;
    margin-left: 0;
  }

  .is-nav-enhanced .site-header nav#site-navigation {
    position: absolute;
    z-index: -1;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    order: 4;
    display: none;
    width: 100%;
    padding: 12px;
    border: 1px solid rgb(59 46 39 / 10%);
    border-radius: 14px 30px 30px;
    background: #fff5e8;
    box-shadow: 0 18px 50px rgb(59 46 39 / 14%);
  }

  .is-nav-enhanced .site-header[data-nav-open='true'] nav#site-navigation {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .is-nav-enhanced .site-header nav#site-navigation a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 12px 22px 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }

  .is-nav-enhanced .site-header nav#site-navigation a:hover {
    background: rgb(239 198 165 / 28%);
    text-decoration: none;
  }
}

@media (width <= 420px) {
  .is-nav-enhanced .site-header {
    gap: 8px;
  }

  .is-nav-enhanced .site-header .logo {
    font-size: 22px;
  }

  .is-nav-enhanced .site-header .header-contact {
    min-height: 42px;
    padding: 8px 12px;
  }

  .is-nav-enhanced .site-header .header-contact span[aria-hidden='true'] {
    display: none;
  }

  .is-nav-enhanced .nav-toggle {
    min-width: 44px;
    width: 44px;
    padding-inline: 0;
  }

  .is-nav-enhanced .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .is-nav-enhanced .site-header nav#site-navigation {
    transform-origin: top center;
  }

  .is-nav-enhanced .site-header[data-nav-open='true'] nav#site-navigation {
    animation: navigation-reveal 160ms ease-out both;
  }
}

@keyframes navigation-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
