/* Global navigation — Apple HIG: translucent, blurred, hairline separator */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid #edf3f4;
  box-shadow: 0 2px 8px rgba(18, 75, 83, 0.07);
}

.header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 72px 0 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.header__mark {
  height: 64px;
  width: auto;
  flex-shrink: 0;
}

.header__wordmark {
  height: 48px;
  width: auto;
}

/* Hamburger — 44pt tap target per HIG */
.header__toggle {
  width: 52px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f3fbfc;
  border: 1px solid #ccebef;
  cursor: pointer;
  padding: 0;
  border-radius: 17px;
}

.header__toggle span {
  display: block;
  width: 20px;
  height: 1px;
  border-radius: 1px;
  background: #3aaec0;
  transition: transform var(--duration-fast) var(--ease-standard),
              opacity var(--duration-fast) var(--ease-standard);
}

.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Drawer — slides in from the right
   ========================================================================== */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 88vw);
  background: #fff;
  border-left: 1px solid var(--color-border-subtle);
  z-index: var(--z-overlay);
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease-emphasized);
  overflow-y: auto;
  padding: 64px 24px var(--space-8);
}

.drawer[data-open="true"] { transform: translateX(0); }

.drawer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid #ccebef;
  border-radius: 14px;
  background: #f3fbfc;
  color: #3aaec0;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.drawer__close:hover { background: #e5f7f9; color: var(--color-accent-hover); }

.drawer__nav { display: flex; flex-direction: column; }

@media (min-width: 769px) {
  .drawer {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.drawer__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  gap: 12px;
  padding: 0;
  border: 0;
  font-family: "Nunito Sans", var(--font-base);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #313a4b;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.drawer__link:hover { color: var(--color-accent); }

.drawer__number {
  width: 34px;
  color: #54baca;
  font-family: "Snell Roundhand", "Apple Chancery", cursive;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.drawer__cta {
  display: block;
  margin-top: var(--space-4);
  padding: 14px 28px;
  text-align: center;
  background: var(--color-accent);
  color: var(--color-text-primary);
  border-radius: var(--radius-pill);
  font-size: var(--text-callout);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-standard);
}

.drawer__cta:hover { background: var(--color-accent-hover); }

.drawer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.drawer__social a {
  font-size: var(--text-footnote);
  color: var(--color-text-secondary);
  text-decoration: none;
}

.drawer__social a:hover { color: var(--color-accent); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-standard),
              visibility var(--duration-base) var(--ease-standard);
}

.drawer-overlay[data-open="true"] { opacity: 1; visibility: visible; }

@media (max-width: 768px) {
  :root { --header-height: 76px; }
  .header__inner { padding: 0 24px; }
  .header__brand { gap: 14px; }
  .header__mark { height: 48px; }
  .header__wordmark { height: 30px; }
  .header__toggle { width: 48px; height: 44px; }
  .drawer { width: min(360px, 92vw); padding: 64px 18px var(--space-6); }
  .drawer__close { top: 16px; right: 14px; }
  .drawer__link { font-size: 17px; min-height: 56px; }
}
