/* ─── Header — sticky pill bar with a sticker shadow ──────────────────────
   Mobile/tablet: logo + round butter burger; the nav drops down as a
   bordered card. Desktop (≥1100px): inline pill links + CTA.
   ────────────────────────────────────────────────────────────────────────── */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0;
}

.hdr__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--paper);
  border: var(--bw) solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shd);
  transition: box-shadow .3s;
}

.hdr.is-scrolled .hdr__bar {
  box-shadow: var(--shd-sm);
}

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

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

.logo__dot {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(var(--acc) 0 25%, var(--butter) 0 50%, var(--mint) 0 75%, var(--lilac) 0);
  border: var(--bw) solid var(--line);
  animation: ddm-rot 8s linear infinite;
}

.logo__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Burger */
.burger {
  display: grid;
  place-content: center;
  gap: 6px;
  flex: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: var(--bw) solid var(--line);
  background: var(--butter);
  cursor: pointer;
}

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

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

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

/* Nav — dropdown card below the bar */
.nav {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 86px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: var(--paper);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shd);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .3s, transform .3s, visibility .3s;
}

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

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__list a {
  display: block;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
  transition: background-color .2s;
}

.nav__list a:hover {
  background: var(--soft);
}

.nav__list a[aria-current] {
  background: var(--butter);
}

.nav__cta {
  padding: 12px 20px;
}

@media (min-width: 768px) {
  .logo {
    font-size: 20px;
  }
}

@media (min-width: 1100px) {
  .burger {
    display: none;
  }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav__list {
    flex-direction: row;
  }

  .nav__list a {
    padding: 9px 15px;
    font-family: var(--font-text);
    font-size: 15px;
  }

  .nav__cta {
    padding: 10px 20px;
    box-shadow: none;
  }
}
