/* Site chrome — fixed header and footer. */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem clamp(1rem, 3vw, 1.75rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 280ms var(--ease-out), border-color 280ms var(--ease-out),
    backdrop-filter 280ms var(--ease-out);
}

.site-header.is-scrolled {
  background: var(--overlay-bg);
  backdrop-filter: var(--overlay-blur);
  border-bottom-color: var(--divider);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.brand-lockup img {
  width: 28px;
  height: 28px;
}

.brand-lockup span {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-cta {
  min-height: 36px;
  padding: 0.35rem 1.05rem;
  font-size: 0.83rem;
}

/* —— Footer —— */

.site-footer {
  border-top: 1px solid var(--divider);
  padding: clamp(2.5rem, 6vh, 4rem) 0 2.5rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
}

.footer-brand img {
  width: 40px;
  height: 40px;
}

.footer-tagline {
  margin: 0;
  max-width: 18rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-heading {
  margin: 0 0 0.7rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 0.8rem;
  opacity: 0.85;
}

.footer-legal p {
  margin: 0;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
