/* ===========================================================================
   Site header — Zibal-style floating capsule → full-width on scroll
   =========================================================================== */

.site-header {
  position: sticky;
  top: 1.5rem;
  z-index: 50;
  margin-inline: auto;
  width: calc(100% - 2rem);
  max-width: 69.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.06);
  font-family: var(--ht-font-sans);
  transition:
    top 0.3s ease-in-out,
    width 0.3s ease-in-out,
    max-width 0.3s ease-in-out,
    border-radius 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}

.site-header.is-scrolled {
  top: 0;
  width: 100%;
  max-width: none;
  border-radius: 0;
  border-inline: none;
  box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding-inline: 1.5rem;
}

.site-header__nav {
  font-size: 0.875rem;
  font-weight: 500;
  transition: font-size 0.3s ease-in-out;
}

.site-header.is-scrolled .site-header__nav {
  font-size: 0.8125rem;
}

.site-header.is-scrolled .site-header__nav a {
  padding-inline: 1rem;
}

@media (max-width: 767px) {
  .site-header {
    top: 0;
    width: 100%;
    max-width: none;
    border-radius: 0;
    border-inline: none;
  }

  .site-header__inner {
    padding-inline: 1rem;
  }
}
