﻿:root {
  --health-blue-900: #242d66;
  --health-blue-700: #3a4388;
  --health-cyan-600: #5a67b8;
  --health-bg: #f2f7fd;
  --health-text: #0f172a;
  --health-muted: #4b5563;
}

.app-shell {
  font-family: "Nunito Sans", sans-serif;
  background:
    radial-gradient(1300px 520px at 90% -20%, rgba(17, 88, 168, 0.08), transparent 50%),
    radial-gradient(900px 450px at -10% -20%, rgba(21, 154, 199, 0.1), transparent 50%),
    var(--health-bg);
  color: var(--health-text);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
}

.app-shell h1,
.app-shell h2,
.app-shell h3,
.app-shell h4,
.app-shell h5 {
  font-family: "Lexend", sans-serif;
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 60;
}

.appbar-top {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--health-blue-900), var(--health-blue-700), var(--health-cyan-600));
  background-size: 200% 200%;
  animation: appbar-gradient 12s ease infinite;
}

.appbar-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.14) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: appbar-shine 7s linear infinite;
  pointer-events: none;
}

.appbar-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.appbar-top-inner {
  min-height: 2.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #e8f2ff;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.appbar-chip {
  margin: 0;
  border: 1px solid rgba(232, 242, 255, 0.45);
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.09);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appbar-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.appbar-meta a {
  color: inherit;
  text-decoration: none;
}

.appbar-meta a:hover {
  text-decoration: underline;
}

.appbar-phone,
.appbar-hours {
  color: inherit;
}

.appbar-hours-short {
  display: none;
}

.appbar-sep {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(232, 242, 255, 0.75);
}

.appbar-main-wrap {
  border-bottom: 1px solid #d8e3f0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px -28px rgba(42, 52, 114, 0.65);
  backdrop-filter: blur(12px);
}

.appbar-main {
  min-height: 5rem;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.reveal-down {
  animation: reveal-down 0.55s cubic-bezier(0.18, 0.9, 0.34, 1) both;
}

.brand-card {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  border-radius: 1rem;
  border: 1px solid #d4e2f2;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 10px 24px -22px rgba(12, 65, 121, 0.8);
  padding: 0.46rem 0.62rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-card:hover {
  transform: translateY(-1px);
  border-color: #b9d2ee;
  box-shadow: 0 18px 30px -24px rgba(12, 65, 121, 0.9);
}

.brand-logo {
  width: auto;
  height: 2.65rem;
}

.brand-copy {
  line-height: 1.05;
  color: #2e3775;
}

.brand-copy strong {
  display: block;
  font-family: "Lexend", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.brand-copy span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6673b0;
}

.menu-toggle {
  height: 2.65rem;
  min-width: 6.35rem;
  border: 1px solid #c7d7ea;
  border-radius: 0.82rem;
  background: #ffffff;
  color: #323c7d;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.46rem;
  padding: 0 0.76rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: #a5c0df;
  background: #f7fbff;
}

.menu-toggle[aria-expanded="true"] {
  border-color: #e09e22;
  background: #fffaf0;
}

.menu-toggle span {
  display: none;
}

.menu-toggle .menu-label {
  display: inline;
  font-size: 0.86rem;
  line-height: 1;
}

.menu-toggle::before {
  content: "";
  width: 1rem;
  height: 0.68rem;
  flex: 0 0 auto;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
}

.menu-toggle[aria-expanded="true"]::before {
  width: 0.9rem;
  height: 0.9rem;
  background:
    linear-gradient(currentColor, currentColor) 50% 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 50% / 2px 100% no-repeat;
  transform: rotate(45deg);
}

.site-nav {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.33s ease, opacity 0.28s ease, transform 0.28s ease;
}

.site-nav.is-open {
  max-height: 560px;
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 0.9rem;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-link {
  position: relative;
  display: block;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  color: #303a7a;
  border-radius: 0.78rem;
  padding: 0.58rem 0.9rem;
  transition: color 0.22s ease, background-color 0.22s ease, transform 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.38rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3a4388, #5b69be);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-link:hover {
  background: #eef5fd;
  color: #262f6a;
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  background: linear-gradient(135deg, #e9ecfb 0%, #f4f6ff 100%);
  border: 1px solid #c6cdee;
  color: #242d66;
  box-shadow: 0 10px 20px -20px rgba(47, 58, 131, 0.95);
}

.nav-link.nav-pill {
  background: linear-gradient(130deg, #3a4388, #4f5eb6);
  color: #ffffff;
  box-shadow: 0 15px 24px -18px rgba(45, 55, 125, 0.95);
}

.nav-link.nav-pill:hover {
  background: linear-gradient(130deg, #343d7d, #46539f);
  color: #ffffff;
}

.nav-link.nav-pill::after {
  display: none;
}

@media (max-width: 1023px) {
  .brand-copy {
    display: none;
  }

  .appbar-meta {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.55rem;
    font-size: 0.76rem;
    line-height: 1.3;
  }
}

@media (max-width: 639px) {
  .appbar-container {
    padding: 0 0.75rem;
  }

  .appbar-top-inner {
    min-height: auto;
    font-size: 0.71rem;
    padding: 0.36rem 0 0.42rem;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    align-items: start;
    gap: 0.35rem;
  }

  .appbar-chip {
    font-size: 0.66rem;
    padding: 0.14rem 0.48rem;
    justify-self: start;
  }

  .appbar-meta {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.65rem;
    line-height: 1.25;
    gap: 0.3rem 0.38rem;
  }

  .appbar-phone,
  .appbar-hours {
    display: inline-flex;
    align-items: center;
    min-height: 1.28rem;
    border-radius: 999px;
    border: 1px solid rgba(232, 242, 255, 0.42);
    background: rgba(255, 255, 255, 0.11);
    padding: 0.11rem 0.45rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .appbar-hours-full {
    display: none;
  }

  .appbar-hours-short {
    display: inline-flex;
  }

  .appbar-sep {
    display: none;
  }

  .appbar-main {
    min-height: 4.55rem;
    gap: 0.55rem;
  }

  .brand-card {
    border-radius: 0.86rem;
    padding: 0.38rem 0.52rem;
  }

  .brand-logo {
    height: 2.25rem;
  }

  .menu-toggle {
    height: 2.45rem;
    min-width: 5.8rem;
    font-size: 0.84rem;
  }

  .site-nav.is-open {
    padding-bottom: 0.72rem;
  }

  .nav-link {
    font-size: 0.92rem;
    padding: 0.56rem 0.84rem;
  }
}

@media (min-width: 1024px) {
  .appbar-main {
    min-height: 5.3rem;
    display: flex;
    gap: 1.2rem;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    max-height: none;
    opacity: 1;
    transform: none;
    overflow: visible;
    margin-left: auto;
    display: block;
  }

  .site-nav.is-open {
    padding-bottom: 0;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.32rem;
  }

  .nav-link {
    padding: 0.62rem 0.92rem;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .appbar-main {
    gap: 0.82rem;
  }

  .brand-logo {
    height: 2.4rem;
  }

  .nav-list {
    gap: 0.18rem;
  }

  .nav-link {
    font-size: 0.82rem;
    padding: 0.56rem 0.7rem;
  }
}

@keyframes appbar-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes appbar-shine {
  0%, 65% { transform: translateX(-100%); }
  100% { transform: translateX(130%); }
}

@keyframes reveal-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .appbar-top,
  .appbar-top::after,
  .reveal-down {
    animation: none;
  }

  .site-nav,
  .nav-link,
  .brand-card,
  .menu-toggle {
    transition: none;
  }
}

