/* ==========================================================================
   Header & Navigation Bar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: #ffffff;
  color: var(--stone-800);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--stone-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  padding: 0.625rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .brand-link {
    min-width: 0;
    max-width: calc(100% - 3.5rem);
  }
}

.brand-link img {
  height: 1.875rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

@media (min-width: 640px) {
  .brand-link img {
    height: 2rem;
  }
}

@media (min-width: 1440px) {
  .brand-link img {
    height: 2.25rem;
  }
}

.brand-link:hover img {
  transform: scale(1.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.025em;
  color: var(--stone-900);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .brand-title {
    font-size: 1.125rem;
  }
}

.brand-title .highlight {
  color: var(--teal-600);
  font-weight: 600;
}

.brand-subtitle {
  font-size: 0.6875rem;
  color: var(--stone-500);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Hide brand text on mobile (< 768px) since logo.svg already contains the full brand name and mark */
@media (max-width: 767px) {
  .brand-text {
    display: none;
  }
}

/* Hide brand subtitle below 1440px to prevent navigation crowding on laptops and standard desktops */
@media (max-width: 1439px) {
  .brand-subtitle {
    display: none;
  }
}

@media (min-width: 1440px) {
  .site-header .container {
    max-width: 88rem;
  }
}

/* Desktop Nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: clamp(0.625rem, 1.2vw, 1.25rem);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--stone-600);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.375rem 0.25rem;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .nav-link {
    font-size: 0.875rem;
    padding: 0.375rem 0.375rem;
  }
}

.nav-link:hover {
  color: var(--teal-700);
}

.nav-link.active {
  color: var(--teal-800);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--teal-600);
  border-radius: var(--radius-full);
}

.header-cta-group {
  display: none;
  align-items: center;
  gap: 1rem;
  margin-left: clamp(0.5rem, 1.2vw, 1.5rem);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .header-cta-group {
    display: flex;
  }
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border-radius: var(--radius-md);
  background-color: var(--teal-600);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(13, 148, 136, 0.2);
  transition: all 0.2s ease;
}

@media (min-width: 1280px) {
  .btn-header-cta {
    font-size: 0.875rem;
    padding: 0.5625rem 1.125rem;
  }
}

.btn-header-cta:hover {
  background-color: var(--teal-500);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}

.btn-header-cta:active {
  transform: translateY(0) scale(0.98);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  color: var(--stone-700);
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.mobile-menu-btn:hover {
  color: var(--stone-900);
  background-color: var(--stone-100);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background-color: #ffffff;
  border-bottom: 1px solid var(--stone-200);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1rem 1.5rem;
  margin-top: 0.5rem;
  animation: slideDown 0.2s ease forwards;
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--stone-700);
  transition: all 0.2s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: var(--teal-50);
  color: var(--teal-800);
}

.mobile-drawer-cta {
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--stone-200);
}

.mobile-drawer-cta .btn-header-cta {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  margin: 0;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}