/* ─── Header — transparent over the page, frosted once scrolled ─────────── */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background-color .3s, box-shadow .3s;
}

.hdr.is-scrolled,
body.is-locked .hdr {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.admin-bar .hdr {
  top: var(--wp-admin--admin-bar--height, 0px);
}

.hdr__in {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: none;
}

.logo img {
  width: auto;
  max-height: 48px;
}

.logo__mark svg {
  width: 30px;
  height: 30px;
  display: block;
}

.logo__mark circle {
  fill: var(--g);
}

.logo__leaf {
  fill: var(--lime);
}

.logo__vein {
  fill: none;
  stroke: var(--g);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.logo--light {
  color: var(--on-dark);
}

/* Navigation — slide-in panel below 1200px */
.nav {
  position: fixed;
  inset: 68px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 18px 40px;
  background: var(--bg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .4s var(--ease), visibility .4s;
  overflow-y: auto;
}

.nav.is-open {
  transform: none;
  visibility: visible;
}

.nav__list,
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.nav__list a,
.nav ul a {
  display: block;
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.nav__cta {
  align-self: flex-start;
}

.burger {
  display: grid;
  place-content: center;
  gap: 5px;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

@media (min-width: 640px) {
  .hdr__in {
    height: 80px;
  }

  .nav {
    inset: 80px 0 0;
    padding: 20px 28px 40px;
  }

  .logo {
    font-size: 21px;
  }

  .logo__mark svg {
    width: 34px;
    height: 34px;
  }
}

@media (min-width: 1200px) {
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    padding: 0;
    background: none;
    transform: none;
    visibility: visible;
    overflow: visible;
  }

  .nav__list,
  .nav ul {
    flex-direction: row;
    gap: 4px;
  }

  .nav__list a,
  .nav ul a {
    font-family: var(--font-text);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    transition: background-color .2s;
  }

  .nav__list a:hover,
  .nav ul a:hover,
  .nav a[aria-current] {
    background: var(--paper);
  }

  .nav__cta {
    align-self: auto;
  }

  .burger {
    display: none;
  }
}
