/* ==========================================================================
   02-HEADER — Navbar
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(238, 244, 251, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transform: translateZ(0);
  will-change: transform;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--fs-base);
  box-shadow: var(--clay-pill);
}

.header__logo img {
  border-radius: var(--radius-sm);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__nav-link {
  font-size: var(--fs-base);
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  display: inline-block;
}

.header__nav-link:hover,
.header__nav-link.is-active {
  color: var(--primary-color);
}

.header__nav-link.is-active {
  font-weight: 600;
}

.header__nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: var(--radius-pill);
}

.header__cta {
  padding: 10px 20px;
}

/* ---- Mobile nav toggle ---- */
.header__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  box-shadow: var(--clay-pill);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.header__toggle span {
  width: 18px;
  height: 2px;
  background: var(--primary-color);
  border-radius: var(--radius-pill);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header__toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
