/* Cloud Nine shared header */
.c9-header {
  --row-height: 136px;
  --cloud-depth: 70px;
  position: fixed;
  z-index: 9999;
  inset: 0 0 auto;
  padding-bottom: var(--cloud-depth);
  background: url("/wp-content/uploads/2025/10/header-white.png") left bottom / cover no-repeat;
  pointer-events: none;
  color: #222;
  font-family: CerebriSansPro-Regular, Arial, sans-serif;
}
.c9-header-row {
  width: 90%;
  max-width: 1600px;
  margin-inline: auto;
  height: var(--row-height);
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.5vw, 50px);
}
.c9-header-row > * {pointer-events: auto}
.c9-brand {display: block; margin-right: auto; flex-shrink: 0}
.c9-brand img {display: block; width: 120px; height: auto}
#c9-primary-menu {display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px)}
#c9-primary-menu a, .c9-header-shop, .c9-compact-shop {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; font-size: 15px; font-weight: 700; line-height: 1.2;
  white-space: nowrap; color: #222; text-transform: uppercase;
}
#c9-primary-menu a[aria-current], #c9-primary-menu a:hover {
  text-decoration: underline; text-underline-offset: .32em; text-decoration-thickness: 2px;
}
.c9-header-shop, .c9-compact-shop, #c9-primary-menu .c9-menu-shop {
  background: #67deeb; border-radius: 30px; color: #111; font-weight: 700;
  box-shadow: 6px 6px 18px rgba(0,0,0,.17);
}
.c9-header-shop {padding: 0 2.5em; height: 64px; min-width: 210px; font-size: 20px}
.c9-header-shop:hover, .c9-compact-shop:hover, #c9-primary-menu .c9-menu-shop:hover {background: #55d7e6}
.c9-compact-shop, .c9-menu-toggle, #c9-primary-menu .c9-menu-shop {display: none}
.c9-header a:focus-visible, .c9-menu-toggle:focus-visible {outline: 3px solid #07545d; outline-offset: 3px}
.c9-header.is-scrolled {--row-height: 100px}
:is(#about,#rewards,#events,#contact) {scroll-margin-top: 115px}

@media (max-width:1100px) {
  .c9-header {--row-height: 102px}
  .c9-brand img {width: 111px}
  .c9-header.is-scrolled {--row-height: 90px}
  .c9-header-shop {display: none}
  .c9-compact-shop {display: inline-flex; padding-inline: 2em; height: 48px; font-size: 16px}
  .c9-menu-toggle {
    display: grid; place-items: center; flex: 0 0 44px; height: 44px;
    padding: 0; border: 0; background: transparent; color: #222; cursor: pointer;
  }
  .c9-menu-toggle span, .c9-menu-toggle span::before, .c9-menu-toggle span::after {
    display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
  }
  .c9-menu-toggle span {position: relative}
  .c9-menu-toggle span::before, .c9-menu-toggle span::after {position: absolute; content: ""; left: 0}
  .c9-menu-toggle span::before {top: -6px}
  .c9-menu-toggle span::after {top: 6px}
  .c9-menu-toggle[aria-expanded="true"] span {background: transparent}
  .c9-menu-toggle[aria-expanded="true"] span::before {top: 0; transform: rotate(45deg)}
  .c9-menu-toggle[aria-expanded="true"] span::after {top: 0; transform: rotate(-45deg)}
  #c9-primary-menu {
    display: none; position: absolute; inset: var(--row-height) 0 auto;
    max-height: calc(100dvh - var(--row-height)); overflow-y: auto;
    padding: 8px max(5vw, calc((100vw - 520px)/2)) 20px; background: white;
    box-shadow: 0 9px 16px rgba(0,0,0,.12);
  }
  .c9-menu-toggle[aria-expanded="true"] ~ #c9-primary-menu {display: grid; gap: 0}
  #c9-primary-menu a {justify-content: flex-start; min-height: 48px; padding-inline: 12px}
  #c9-primary-menu a:focus-visible {outline-offset: -3px}
}
@media (max-width:767px) {
  .c9-header, .c9-header.is-scrolled {--row-height: 86px; --cloud-depth: 39px}
  .c9-header-row {width: 95%; padding-right: 5px}
  .c9-brand img {width: 88px}
  .c9-compact-shop {display: none}
  #c9-primary-menu .c9-menu-shop {display: inline-flex; justify-content: center; margin: 8px 12px 0}
  :is(#about,#rewards,#events,#contact) {scroll-margin-top: 95px}
}
/* End Cloud Nine shared header */
