/* Shared header: keep service choices available without crowding the top row. */
.brand-services {
  width: max-content;
  max-width: 100%;
}

.brand-services-primary,
.brand-herbal {
  display: block;
}

.brand-services-primary {
  white-space: nowrap;
}

.brand-herbal {
  margin-top: 0.1rem;
  text-align: center;
}

.site-header {
  column-gap: clamp(1.5rem, 3vw, 3.5rem);
  grid-template-columns: minmax(250px, 1fr) auto auto;
}

.site-header .brand-link {
  max-width: 310px;
  min-width: 0;
}

.site-header .brand-words small {
  line-height: 1.5;
  max-width: 220px;
}

.site-header .desktop-nav {
  align-items: center;
  display: flex;
  gap: clamp(1.5rem, 2.5vw, 2.75rem);
}

.site-header .desktop-nav > a,
.services-nav > summary {
  white-space: nowrap;
}

.site-header .header-action {
  display: inline-flex;
  white-space: nowrap;
}

.site-header .mobile-menu {
  display: none;
}

.services-nav {
  position: relative;
}

.services-nav > summary {
  align-items: center;
  color: #4a4d43;
  cursor: pointer;
  display: flex;
  font-size: 0.78rem;
  font-weight: 650;
  gap: 0.6rem;
  letter-spacing: 0.055em;
  list-style: none;
  min-height: 44px;
  padding: 0.7rem 0;
}

.services-nav > summary::-webkit-details-marker {
  display: none;
}

.services-nav > summary::after {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  height: 6px;
  margin-top: -3px;
  transform: rotate(45deg);
  width: 6px;
}

.services-nav[open] > summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.services-menu {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(41, 43, 37, 0.12);
  left: -1rem;
  min-width: 286px;
  padding: 0.8rem;
  position: absolute;
  top: calc(100% + 0.8rem);
  z-index: 30;
}

.nav-group-label {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  margin: 0;
  padding: 0.4rem 0.75rem;
  text-transform: uppercase;
}

.nav-group-divider {
  border-top: 1px solid var(--line);
  margin-top: 0.45rem;
  padding-top: 0.85rem;
}

.desktop-nav .services-menu a {
  border-radius: 8px;
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0;
  line-height: 1.5;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
}

.desktop-nav .services-menu a::after {
  display: none;
}

.desktop-nav .services-menu a:hover,
.desktop-nav .services-menu a:focus-visible {
  background: var(--cream-deep);
}

.desktop-nav .services-menu .nav-all-services {
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  color: var(--olive);
  font-size: 0.75rem;
  margin-top: 0.4rem;
  padding-top: 0.85rem;
}

.nav-all-services span {
  float: right;
}

.site-header a:focus-visible,
.site-header summary:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header {
    column-gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .site-header .desktop-nav {
    display: none;
  }

  .site-header .mobile-menu {
    display: block;
  }

  .site-header .mobile-menu summary {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 44px;
  }

  .site-header .mobile-menu nav {
    box-shadow: 0 16px 40px rgba(41, 43, 37, 0.12);
    max-height: 70vh;
    max-height: calc(100dvh - 144px);
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    width: min(300px, calc(100vw - 2.2rem));
    z-index: 30;
  }

  .site-header .mobile-menu nav a {
    min-height: 44px;
  }

  .site-header .mobile-menu nav a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 420px) {
  .site-header {
    column-gap: 0.4rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .site-header .brand-lockup {
    gap: 0.4rem;
  }

  .site-header .brand-emblem {
    height: 36px;
    width: 40px;
  }

  .site-header .brand-words strong {
    font-size: 1rem;
    white-space: nowrap;
  }

  .site-header .header-action {
    font-size: 0.59rem;
    letter-spacing: 0.07em;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
  }

  .site-header .mobile-menu summary {
    font-size: 0.59rem;
    letter-spacing: 0.07em;
    padding: 0.65rem 0.75rem;
  }
}
