:root {
  --candwag-header-teal: #073f43;
  --candwag-header-programme: #087a78;
  --candwag-header-coral: #de5c3d;
  --candwag-header-cream: #fbf5e9;
  --candwag-header-paper: #fffdf8;
  --candwag-header-ink: #17202d;
  --candwag-header-line: rgba(7, 63, 67, 0.16);
}

#candwag-site-header,
#candwag-site-header * {
  box-sizing: border-box;
}

#candwag-site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  border-bottom: 1px solid var(--candwag-header-line);
  background: rgba(255, 253, 248, 0.97);
  color: var(--candwag-header-ink);
  box-shadow: 0 8px 26px rgba(7, 63, 67, 0.06);
  font-family: Lato, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.2;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#candwag-site-header a,
#candwag-site-header button {
  font: inherit;
}

#candwag-site-header a {
  color: inherit;
  text-decoration: none;
}

.candwag-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, 1280px);
  min-height: 76px;
  margin: 0 auto;
  gap: 20px;
}

.candwag-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 48px;
  border-radius: 12px;
  gap: 11px;
  color: var(--candwag-header-teal);
}

.candwag-brand img {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  object-fit: cover;
}

.candwag-brand-copy {
  display: grid;
  gap: 2px;
}

.candwag-brand-name {
  color: var(--candwag-header-teal);
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.candwag-brand-full {
  color: #526068;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.candwag-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 2px;
}

.candwag-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  color: var(--candwag-header-ink);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.candwag-nav-link:hover {
  background: rgba(8, 122, 120, 0.08);
  color: var(--candwag-header-teal);
}

.candwag-nav-link.is-current:not(.candwag-nav-cta) {
  background: rgba(8, 122, 120, 0.1);
  color: var(--candwag-header-teal);
}

.candwag-nav-link.is-current:not(.candwag-nav-cta)::after {
  position: absolute;
  right: 9px;
  bottom: 4px;
  left: 9px;
  height: 3px;
  border-radius: 999px;
  background: var(--candwag-header-coral);
  content: "";
}

#candwag-site-header .candwag-nav-cta {
  min-height: 44px;
  margin-left: 7px;
  padding: 0 15px;
  background: var(--candwag-header-coral);
  color: #111827;
  box-shadow: 0 8px 18px rgba(222, 92, 61, 0.2);
}

#candwag-site-header .candwag-nav-cta:hover,
#candwag-site-header .candwag-nav-cta.is-current {
  background: var(--candwag-header-teal);
  color: #fff;
}

.candwag-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(7, 63, 67, 0.26);
  border-radius: 12px;
  appearance: none;
  background: var(--candwag-header-paper);
  color: var(--candwag-header-teal);
  cursor: pointer;
  font-weight: 900;
  gap: 8px;
}

.candwag-menu-icon {
  position: relative;
  display: inline-block;
  width: 19px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.candwag-menu-icon::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  border-top: 2px solid currentColor;
  content: "";
  transform: translateY(-50%);
}

.candwag-skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--candwag-header-teal);
  color: #fff;
  font-family: Lato, Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-160%);
}

.candwag-skip-link:focus {
  transform: translateY(0);
}

#candwag-site-header a:focus-visible,
#candwag-site-header button:focus-visible,
.candwag-skip-link:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .candwag-brand-full {
    display: none;
  }
}

@media (max-width: 1080px) {
  .candwag-header-inner {
    position: relative;
    min-height: 70px;
  }

  .candwag-brand img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .candwag-brand-name {
    font-size: 1.28rem;
  }

  .candwag-menu-button {
    display: inline-flex;
  }

  .candwag-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    overflow-y: auto;
    max-height: calc(100vh - 82px);
    padding: 12px;
    border: 1px solid var(--candwag-header-line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: var(--candwag-header-paper);
    box-shadow: 0 18px 34px rgba(7, 63, 67, 0.14);
    justify-content: stretch;
  }

  .candwag-nav.is-open {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .candwag-nav-link {
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    font-size: 0.96rem;
  }

  .candwag-nav-link.is-current:not(.candwag-nav-cta)::after {
    top: 9px;
    right: auto;
    bottom: 9px;
    left: 4px;
    width: 3px;
    height: auto;
  }

  .candwag-nav-cta {
    justify-content: center;
    margin: 5px 0 0;
  }
}

@media (max-width: 440px) {
  .candwag-header-inner {
    width: min(100% - 20px, 1280px);
  }

  .candwag-brand {
    gap: 8px;
  }

  .candwag-brand img {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .candwag-brand-name {
    font-size: 1.14rem;
  }

  .candwag-menu-button {
    min-width: 80px;
    padding: 0 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .candwag-skip-link {
    transition: none;
  }
}

@media print {
  #candwag-site-header,
  .candwag-skip-link {
    display: none !important;
  }
}
