/* Header-specific styles */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

/* Brand */
.nav-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--color-text);
}

.nav-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2a79b, #24436f);
  box-shadow: 0 10px 24px rgba(38, 67, 111, 0.18);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nav-brand-title {
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.02em;
  color: black !important;
}

.nav-brand-subtitle {
  font-size: 0.72rem;
  color: var(--color-text-soft);
  white-space: nowrap;
}

/* Desktop nav */
.nav-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.86rem;
  line-height: 1.25;
  color: var(--color-text-soft);
  text-decoration: none;
  white-space: normal;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  background: rgba(242, 156, 143, 0.16);
  color: var(--color-primary) !important;
  transform: translateY(-1px);
}

.nav-cta-wrap {
  flex: 0 0 auto;
  margin-left: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-coral));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(242, 156, 143, 0.28);
}

.nav-cta:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* Burger */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
}

/* Mobile drawer navigation */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.32);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer-inner {
  width: min(340px, 100%);
  height: 100%;
  background: linear-gradient(155deg, #ffffff, var(--color-primary-soft));
  box-shadow: var(--shadow-medium);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-drawer-title {
  font-weight: 700;
  font-size: var(--text-base);
}

.nav-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-drawer-close-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.nav-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  background: white;
}

.nav-drawer-link {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  text-decoration: none;
}

.nav-drawer-link:hover {
  background: linear-gradient(90deg, rgba(242, 156, 143, 0.18), rgba(38, 67, 111, 0.08));
}

.nav-drawer-link--cta {
  margin-top: 0.75rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-coral));
  color: #fff;
  text-align: center;
  font-weight: 600;
}

.nav-drawer-link--cta:hover {
  color: #fff;
}

.nav-drawer.is-open {
  animation: navDrawerIn var(--transition-normal);
}

@keyframes navDrawerIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 1180px) {
  .nav-link {
    padding-inline: 0.58rem;
    font-size: 0.8rem;
  }

  .nav-cta {
    padding-inline: 0.9rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 1080px) {
  .nav-cta-wrap {
    display: none;
  }

  .nav-main {
    justify-content: flex-end;
  }
}

@media (max-width: 920px) {
  .site-header-inner {
    min-height: 68px;
  }

  .nav-main {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 520px) {
  .site-header-inner {
    padding-block: 0.45rem;
  }

  .nav-brand-title {
    font-size: 0.9rem;
  }

  .nav-brand-subtitle {
    font-size: 0.65rem;
  }

  .nav-brand-mark {
    width: 31px;
    height: 31px;
  }
}