/* ============================================================
   HEADER
============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(135,206,235,0.18);
  transition: box-shadow 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark { display: flex; align-items: center; }

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.logo-accent { color: var(--teal-dark); }

/* Desktop Nav */
.nav { margin-left: auto; }

.nav-list {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav-link {
  display: block;
  text-decoration: none;
  color: var(--gray-500);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  background: var(--teal);
  border-radius: var(--r-full);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--dark);
  background: rgba(64,224,208,0.08);
}

.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

/* Header CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-header-cta {
  background: var(--dark);
  color: white;
  padding: 9px 20px;
  font-size: 0.85rem;
  border-radius: var(--r-full);
  box-shadow: none;
}

.btn-header-cta:hover {
  background: var(--dark-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 6px;
  transition: border-color 0.2s;
}

.hamburger:hover { border-color: var(--teal); }

.ham-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--dark);
  border-radius: var(--r-full);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.hamburger.open .ham-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 24px;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid var(--gray-200);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.mobile-drawer.open {
  display: flex;
  max-height: 400px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-link {
  display: block;
  text-decoration: none;
  color: var(--gray-700);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
  background: rgba(64,224,208,0.08);
  color: var(--dark);
}

.mobile-cta {
  margin-top: 12px;
  text-align: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 860px) {
  .nav { display: none; }
  .btn-header-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .header { padding: 16px 20px; }
  .logo-wordmark { font-size: 1rem; }
  .logo-img { width: 36px; height: 36px; }
  .mobile-drawer { padding: 80px 20px 20px; }
  .mobile-nav-link { font-size: 1.1rem; }
}
