/* TYPO-02 — full-height lime header navigation; active link is a location marker. */
.site-header {
  padding-block: 0;
  min-height: 84px;
  gap: clamp(16px, 2.2vw, 42px);
}
.site-header .wordmark,
.site-footer .wordmark {
  font-family: var(--display);
  font-size: clamp(52px, 4.9vw, 72px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .9;
  white-space: nowrap;
}
.site-header .wordmark { align-self: center; }
.site-header .wordmark span, .site-footer .wordmark span {
  color: var(--signal);
}
.desktop-nav {
  align-self: stretch;
  align-items: stretch;
  gap: 0;
}
.desktop-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding-inline: clamp(12px, 1.3vw, 24px);
  background: transparent;
  color: var(--chalk);
  font-family: var(--display);
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .22s ease, color .22s ease;
}
.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a[aria-current="page"],
.desktop-nav a[aria-current="location"] {
  background-color: var(--signal);
  color: var(--ink);
  text-decoration: none;
}
.desktop-nav a:focus-visible { outline-offset: -4px; }
html.hb-mot-06 .desktop-nav a::after { display: none; }
.header-actions { align-self: stretch; align-items: center; }
.hb-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: clamp(20px, 1.65vw, 25px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .005em;
}
.hb-cart-link span {
  font: 900 clamp(16px, 1.25vw, 21px)/1 var(--display);
  min-width: 34px;
  height: 34px;
  padding: 3px 5px;
  border-radius: 3px;
}
.hb-cart-link[aria-current="page"] { color: var(--signal); }
.mobile-menu nav a {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 9vw, 49px);
  padding: 8px 12px;
  margin-inline: -12px;
  transition: background-color .2s ease, color .2s ease;
}
.mobile-menu nav a:hover,
.mobile-menu nav a:focus-visible,
.mobile-menu nav a[aria-current="page"],
.mobile-menu nav a[aria-current="location"] {
  background: var(--signal);
  color: var(--ink);
}
@media(max-width: 1100px){
  .site-header { gap: clamp(10px, 1.5vw, 20px); }
  .desktop-nav a { padding-inline: clamp(9px, 1.05vw, 16px); }
}
@media(max-width: 768px){
  .site-header { padding-block: 12px; min-height: 74px; }
  .site-header .wordmark { font-size: 66px; }
  .desktop-nav { align-self: auto; }
  .desktop-nav a { min-height: 44px; padding-inline: 5px; }
  .hb-cart-link { font-size: 23px; }
  .hb-cart-link span { min-width: 30px; height: 30px; font-size: 17px; }
  .header-actions { align-self: center; }
}
@media(max-width: 390px){
  .site-header .wordmark { font-size: 60px; }
  .hb-cart-link { font-size: 20px; }
  .header-actions { gap: 7px; }
}
@media(prefers-reduced-motion:reduce) {
  .desktop-nav a,.mobile-menu nav a { transition:none; }
}


/* NAV-07 — persistent site navigation while browsing.
   The environment warning remains in normal flow; only the actual nav sticks. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 35;
  background: var(--ink);
}
html { scroll-padding-top: 100px; }

/* Logged-in WordPress toolbar must not overlap the sticky navigation. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
@media (max-width: 768px) {
  html { scroll-padding-top: 90px; }
}

/* The cart/checkout preview already provides a fixed bottom summary on phones.
   Where that bottom bar exists, the top navigation scrolls naturally instead. */
@media (max-width: 767px) {
  body.woocommerce-cart:has(.hb-mobile-order-bar) .site-header,
  body.woocommerce-checkout:has(.hb-mobile-order-bar) .site-header {
    position: relative;
    top: auto;
  }
  body.woocommerce-cart:has(.hb-mobile-order-bar),
  body.woocommerce-checkout:has(.hb-mobile-order-bar) {
    scroll-padding-top: 18px;
  }
}
