/* ==========================================================================
   Header component (Figma node 26:94)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border-input);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

/* Toggled by animations.js once the page scrolls past a few pixels */
.site-header--scrolled {
  box-shadow: 0 4px 16px rgba(33, 36, 61, 0.08);
}

.site-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 20px;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  animation: header-slide-in-left 0.6s ease-out 0.1s forwards;
}

.site-header__logo {
  width: 56px;
  height: 56px;
}

.site-header__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--color-heading);
}

.site-header__actions {
  padding-right: 20px;
  opacity: 0;
  animation: header-slide-in-right 0.6s ease-out 0.1s forwards;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: var(--color-brand);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.14px;
  border: none;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-header__cta:hover {
  background-color: var(--color-brand-hover);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(3, 108, 66, 0.25);
}

.site-header__cta:active {
  transform: translateY(0) scale(1);
}

@keyframes header-slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes header-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
