/* Site header (components/header-doctors.html). Was an inline <style> on every page that has the header. */
/* ========================================
   Header Base Styles
   ======================================== */
#site-header {
  background: #FFFFFFED;
  box-shadow: 5px 10px 48px 0px rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  margin: 1rem auto;
  max-width: 1140px;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Header hidden on scroll */
#site-header.header-hidden {
  transform: translateX(-50%) translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Logo */
#site-header .header-logo {
  flex-shrink: 0;
}

#site-header .header-logo img {
  height: 50px;
}

/* Navigation */
#site-header .header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

#site-header .nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #243352;
  text-decoration: none;
  padding: 14px 20px;
  transition: background-color 0.2s;
  border-radius: 8px;
  line-height: 34px;
  white-space: nowrap;
}

/* Home has six links: tighter padding keeps them on one line. */
#site-header .header-nav:has(> .nav-link:nth-child(6)) .nav-link {
  padding-inline: 12px;
}

@media (max-width: 1180px) {
  #site-header .nav-link {
    padding-inline: 12px;
  }

  #site-header .header-nav:has(> .nav-link:nth-child(6)) .nav-link {
    padding-inline: 8px;
    font-size: 1.25rem;
  }
}

#site-header .nav-link:hover {
  background-color: rgba(27, 31, 10, 0.06);
}

#site-header .nav-link.active {
  color: #0A6EFF;
}

#site-header .nav-link-launch {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  background-color: #6592E6;
  border-radius: 100px;
  box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.5);
  border: 2px solid #6592E6;
  line-height: 34px;
  transition: background-color 0.2s, border-color 0.2s;
}

#site-header .nav-link-launch:hover {
  background-color: #2260D2;
  border-color: #2260D2;
}

/* Mobile Menu Toggle - Hidden on desktop */
#site-header .header-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

#site-header .hamburger-line {
  width: 24px;
  height: 3px;
  background-color: #243352;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation when open */
#site-header.mobile-menu-open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

#site-header.mobile-menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

#site-header.mobile-menu-open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* ========================================
   Mobile Styles
   ======================================== */
@media (max-width: 1024px) {
  #site-header {
    border-radius: 20px;
    padding: 12px 20px;
    min-height: auto;
    flex-wrap: wrap;
  }

  #site-header .header-mobile-toggle {
    display: flex;
    order: 1;
    margin-left: auto;
  }

  #site-header .header-nav {
    display: none;
    order: 3;
    flex-direction: column;
    width: 100%;
    padding-top: 16px;
    gap: 4px;
  }

  #site-header.mobile-menu-open .header-nav {
    display: flex;
  }

  #site-header .nav-link {
    font-size: 1.2rem;
    padding: 12px 16px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  /* The call to action shows at the end of the open menu... */
  #site-header .nav-link-launch {
    display: none;
    order: 4;
    flex-basis: 100%;
    box-sizing: border-box;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 8px;
  }

  #site-header.mobile-menu-open .nav-link-launch {
    display: block;
  }
}

/* ...except on --cta headers, which keep it beside the menu button at tablet width. */
@media (min-width: 768px) and (max-width: 1024px) {
  #site-header.site-header--cta .nav-link-launch {
    display: inline-block;
    order: 2;
    flex-basis: auto;
    margin: 0 0 0 12px;
  }
}

/* The redesign landing pages' old header took this much page flow (--tall, --short). */
.site-header-space--tall { height: 116px; }
.site-header-space--short { height: 110px; }

@media (max-width: 1024px) {
  .site-header-space--tall { height: 122px; }
}

@media (max-width: 900px) {
  .site-header-space--short { height: 88px; }
}

@media (max-width: 480px) {
  #site-header {
    margin: 0.5rem;
    width: calc(100% - 1rem);
  }

  #site-header .header-logo img {
    height: 40px;
  }

  #site-header .nav-link {
    font-size: 1.1rem;
  }

  #site-header .nav-link-launch {
    font-size: 1.1rem;
  }
}
