/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  min-height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
  z-index: 2;
}
.brand img { width: 34px; height: auto; }
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}
.desktop-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.desktop-nav a:hover,
.desktop-nav a.is-active { color: var(--text); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.icon-btn {
  width: 2.65rem;
  height: 2.65rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  position: relative;
}
.icon-btn .badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.desktop-cta { display: none; }

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .desktop-cta { display: inline-flex; }
  .menu-open-btn { display: none; }
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 95;
  width: min(100%, 340px);
  background: var(--surface);
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}
.drawer.is-open { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.drawer-nav { display: flex; flex-direction: column; gap: 0.15rem; overflow: auto; flex: 1; }
.drawer-nav a,
.drawer-nav button.linkish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-align: left;
  width: 100%;
}
.drawer-nav a:hover,
.drawer-nav a.is-active,
.drawer-nav button.linkish:hover {
  background: color-mix(in srgb, var(--pink) 14%, transparent);
}
.drawer-foot {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  margin-top: 0.75rem;
  display: grid;
  gap: 0.6rem;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 85;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  background: var(--bottom-nav-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.4rem;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  position: relative;
}
.bottom-nav a i, .bottom-nav a svg { width: 1.25rem; height: 1.25rem; }
.bottom-nav a.is-active {
  color: var(--pink);
  background: color-mix(in srgb, var(--pink) 12%, transparent);
}
.bottom-nav .badge {
  position: absolute;
  top: 0.25rem; right: 18%;
  min-width: 1rem; height: 1rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.62rem;
  display: grid; place-items: center;
}
@media (min-width: 1024px) {
  .bottom-nav { display: none; }
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.75rem 0 1.5rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.footer-grid h3 {
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-grid li + li { margin-top: 0.4rem; }
.copyright {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: space-between;
}
.copyright a { color: var(--pink); font-weight: 700; }
