/* Header Styles - Healthcare Theme */
.header-container {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-nav {
  max-width: 1200px;
 margin:0 ,0,0,0;
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  ;
  padding: 0 1rem;
}

.header-content {
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Small gap for breathing room and better wrapping on narrower viewports */
.header-content {
  gap: 1rem;
}

/* Brand Section */
.header-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
   text-decoration: none; /* removes underline */
    color: inherit; /* keeps the text color same as surrounding */
}

.header-logo-icon {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--primary);
}

.header-brand-text {
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1;
}

.header-tagline {
  margin-left: 20%;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: -0.25rem;
  font-weight: 500;
}

/* Mobile-friendly adjustments and responsive behavior */
@media (max-width: 900px) {
  .header-content {
    height: auto;
    padding: 0.4rem 0;
    gap: 0.65rem;
  }

  .header-brand {
    flex-direction: row;
    align-items: center;
  }

  .header-brand-text {
    font-size: 1.125rem;
  }

  /* hide the tagline on smaller screens to save vertical space */
  .header-tagline {
    display: none;
  }

  .header-logo-icon {
    width: 2rem;
    height: 2rem;
  }
}

/* Smooth mobile menu collapse/expand */
.header-mobile-menu {
  display: none;
  padding: 0 1rem;
  border-top: 1px solid var(--border);
  background-color: var(--background);
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease, opacity 200ms ease;
  opacity: 0;
}

.header-mobile-menu.active {
  display: block;
  max-height: 480px; /* enough for menu content */
  opacity: 1;
}

/* Desktop Navigation */
.header-nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.header-nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  position: relative;
}

.header-nav-link:hover {
  color: var(--primary);
}

.header-nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.header-nav-link:hover::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.header-btn-secondary {
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-btn-secondary:hover {
  background-color: var(--muted);
  color: var(--foreground);
  transform: translateY(-1px);
}

.header-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-btn-primary:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-btn-icon {
  width: 1rem;
  height: 1rem;
}

/* Mobile Menu Toggle */
.header-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background-color: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.header-mobile-toggle:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.header-mobile-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Menu */
.header-mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  background-color: var(--background);
}

.header-mobile-menu.active {
  display: block;
}

.header-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.header-mobile-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.header-mobile-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.header-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.header-mobile-btn-secondary {
  padding: 0.75rem 1rem;
  background-color: transparent;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-mobile-btn-secondary:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.header-mobile-btn-primary {
  padding: 0.75rem 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-mobile-btn-primary:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (min-width: 768px) {
  .header-nav-desktop {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .header-mobile-toggle {
    display: none;
  }
}

/* Dark mode support */
.dark .header-container {
  background-color: rgba(20, 20, 20, 0.95);
  border-bottom-color: var(--border);
}

/* Focus states for accessibility */
.header-nav-link:focus-visible,
.header-btn-secondary:focus-visible,
.header-btn-primary:focus-visible,
.header-mobile-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
