@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/exo-2/exo-2-regular.41c7b6175cef4ee5.woff2") format('woff2');
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/exo-2/exo-2-medium.9a5e86035c769432.woff2") format('woff2');
}

/* Reserve the scrollbar gutter on short and long pages alike. */
html {
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}

.site-header,
.site-header * {
  box-sizing: border-box;
}

site-header {
  display: block;
  flex-shrink: 0;
  min-height: 106px;
}

.site-header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 106px;
  gap: 22px;
  margin: 0 5%;
  padding: 0;
  border: 0;
  font-family: 'Exo 2', Arial, sans-serif;
  line-height: 1.4;
  color: var(--brand-primary);
}

.site-header .brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 14px;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  letter-spacing: 0;
}

.site-header .brand-mark {
  position: relative;
  display: block;
  flex-shrink: 0;
  isolation: isolate;
  border: 0;
  border-radius: 20%;
  text-decoration: none;
}

.site-header .brand-mark::before {
  content: '';
  position: absolute;
  inset: 2%;
  z-index: -1;
  border-radius: 20%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease;
  animation: logo-glow 1800ms ease-in-out infinite paused;
}

.site-header .brand-mark:hover::before,
.site-header .brand-mark:focus-visible::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes logo-glow {
  0%, 100% {
    box-shadow: 0 0 8px 2px color-mix(in srgb, var(--brand-accent) 28%, transparent);
  }
  50% {
    box-shadow: 0 0 20px 6px color-mix(in srgb, var(--brand-accent) 55%, transparent);
  }
}

.site-header .doctor-logo {
  display: block;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.site-header .brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  text-align: left;
}

.site-header .brand-mobile {
  display: none;
}

.site-header .brand-kicker {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 1.1px;
  color: #53796c;
  white-space: nowrap;
}

.site-header .brand-name {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: var(--brand-primary);
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  font-size: 16px;
}

.site-header .site-menu-toggle {
  display: none;
}

.site-header .nav-link {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 24px 0 24px 0;
  background: transparent;
  color: var(--brand-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 220ms ease;
}

.site-header .nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--brand-accent);
  pointer-events: none;
  transform-origin: left bottom;
  transform: scale(0);
  opacity: 0;
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 180ms ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible,
.site-header .nav-link.is-current {
  color: var(--brand-white);
  opacity: 1;
}

.site-header .nav-link:hover::before,
.site-header .nav-link:focus-visible::before,
.site-header .nav-link.is-current::before {
  transform: scale(1);
  opacity: 1;
}

.site-header .nav-link.is-current {
  cursor: default;
}

.site-header a.nav-link.is-current {
  cursor: pointer;
}

@media (max-width: 1250px) {
  site-header { min-height: 156px; }
  .site-header {
    height: auto;
    min-height: 106px;
    flex-wrap: wrap;
    padding: 16px 0 0;
    gap: 12px 20px;
  }
  .site-header nav {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    justify-content: space-between;
    padding: 7px 7px 10px;
  }
}

@media (max-width: 700px) {
  site-header { min-height: 137px; }
  .site-header { min-height: 0; padding-top: 14px; gap: 10px; }
  .site-header .brand { gap: 10px; }
  .site-header .doctor-logo { width: 55px; height: 55px; }
  .site-header .brand-copy { gap: 5px; }
  .site-header .brand-kicker { font-size: 9px; letter-spacing: 0.4px; }
  .site-header .brand-name { font-size: 15px; }
  .site-header nav { font-size: 14px; }
}

@media (max-width: 380px) {
  site-header { min-height: 130px; }
  .site-header .doctor-logo { width: 47.5px; height: 47.5px; }
  .site-header .brand-kicker { font-size: 8px; }
  .site-header .brand-name { font-size: 13px; }
}

@media (max-width: 430px) {
  .site-header {
    --mobile-name-size: 18px;
    --mobile-kicker-size: 13px;
    --mobile-brand-height: calc(var(--mobile-name-size) * 2.4 + var(--mobile-kicker-size) * 1.3 + 4px);
  }
  site-header { min-height: 104px; }
  .site-header.menu-ready {
    position: relative;
    z-index: 50;
    min-height: 104px;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px 0;
  }
  .site-header .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }
  .site-header .doctor-logo {
    width: var(--mobile-brand-height);
    height: var(--mobile-brand-height);
  }
  .site-header .brand-copy { min-width: 0; gap: 4px; }
  .site-header .brand-desktop { display: none; }
  .site-header .brand-mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .site-header .brand-kicker {
    font-size: var(--mobile-kicker-size);
    line-height: 1.3;
    letter-spacing: 0.2px;
    white-space: normal;
  }
  .site-header .brand-name {
    font-size: var(--mobile-name-size);
    line-height: 1.2;
    white-space: normal;
  }
  .site-header .brand-line {
    display: block;
    white-space: nowrap;
  }
  .site-header.menu-ready .site-menu-toggle {
    display: flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 11px;
    margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #08766530;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    color: var(--brand-primary) !important;
    cursor: pointer;
  }
  .site-header.menu-ready .site-menu-toggle:hover {
    color: var(--brand-accent) !important;
    background: #08ab6510;
  }
  .site-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    flex-shrink: 0;
    border-radius: 2px;
    background: currentColor;
    transition: transform 220ms ease, opacity 160ms ease;
  }
  .is-menu-open .site-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .is-menu-open .site-menu-toggle span:nth-child(2) { opacity: 0; }
  .is-menu-open .site-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header .site-menu-toggle:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 3px;
  }
  .site-header.menu-ready nav {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 12px;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    border: 1px solid #08766520;
    border-radius: 18px;
    background: var(--brand-white);
    box-shadow: 0 14px 32px #04382f24;
    font-size: 16px;
    justify-content: stretch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }
  .site-header.menu-ready.is-menu-open nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .site-header.menu-ready .nav-link {
    min-height: 44px;
    justify-content: flex-start;
    padding: 10px 16px;
  }
}

/* Keep the explicitly requested navigation animation with reduced motion enabled. */
@media (prefers-reduced-motion: reduce) {
  .site-header .brand-mark::before { transition: opacity 240ms ease !important; }
  .site-header .nav-link { transition: color 220ms ease !important; }
  .site-header .nav-link::before {
    transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 180ms ease !important;
  }
}
