/* BEATS visual system — tokens sampled from the logo (navy silhouette,
   brand blue wordmark, gold heart, cyan/teal hair). Blue is the default
   surface; gold is the accent. Body text uses ink on paper so contrast
   stays at or above WCAG 2.2 AA 4.5:1. */

:root {
  --paper: #e8eefc;
  --paper-2: #f5f8ff;
  --ink: #161b38;
  --navy: #182460;
  --brand: #4b5ef0;
  --brand-dark: #2a3aa8;
  --gold: #e8c43c;
  --gold-deep: #7a5d00;
  --cyan: #3cb4fc;
  --teal: #1aa8a8;
  --wash: #d4e0f8;
  --line: #b8c7ea;
  --focus: #182460;
  --error: #8b1e2d;
  --radius: 1.15rem;
  --shadow: 0 12px 32px rgba(24, 36, 96, 0.14);
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --max: 68rem;
  --header-h: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 0.65rem 1rem;
  min-height: 44px;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  min-height: var(--header-h);
}

.site-logo {
  flex: 0 1 auto;
  min-width: 0;
  display: block;
  line-height: 0;
}

.site-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 56px;
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list > li {
  flex: 0 0 auto;
}

.site-nav a,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  white-space: nowrap;
  color: var(--navy);
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0.5rem;
}

.nav-toggle svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}

.nav-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.site-nav a[aria-current="page"],
.nav-toggle[aria-current="true"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.has-sub {
  position: relative;
}

.subnav {
  position: absolute;
  top: calc(100% - 0.15rem);
  left: 0;
  min-width: 16rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  z-index: 50;
}

.subnav a {
  display: flex;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--gold-deep);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  border: 2px solid var(--gold-deep);
}

.btn:hover,
.btn:focus-visible {
  color: #fff;
  background: #6f5600;
  border-color: #6f5600;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--navy);
  background: var(--paper-2);
}

.btn--header {
  flex: 0 0 auto;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 0.5rem;
  cursor: pointer;
}

.menu-button__bars,
.menu-button__bars::before,
.menu-button__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}

.menu-button__bars::before,
.menu-button__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-button__bars::before {
  top: -6px;
}

.menu-button__bars::after {
  top: 6px;
}

.hero,
.section,
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

article.page-hero {
  padding-bottom: 3.5rem;
}

.kicker {
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 650;
  text-transform: none;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.lede {
  font-size: 1.2rem;
  max-width: 42rem;
}

.hero__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.section {
  border-top: 1px solid var(--line);
}

.section--wash {
  background: var(--wash);
  border-top: 0;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section--wash > .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.services {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.services a {
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  box-shadow: 0 1px 0 rgba(24, 36, 96, 0.04);
}

.services a:hover {
  border-color: var(--brand);
}

.services h3 {
  color: var(--brand-dark);
}

.split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}

.faces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.faces figure {
  margin: 0;
  text-align: center;
}

.faces img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}

.faces figcaption {
  margin-top: 0.6rem;
  font-weight: 650;
  color: var(--navy);
}

.team-grid {
  display: grid;
  gap: 2rem;
}

.person {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.person img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}

.prose {
  max-width: 42rem;
}

.prose p,
.prose li {
  max-width: 42rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.page-hero--center {
  text-align: center;
}

.page-hero--center .lede {
  margin-inline: auto;
}

.section--center .form-embed {
  margin-inline: auto;
}

.form-embed {
  max-width: 42rem;
}

.form-embed iframe {
  display: block;
  width: 100%;
  height: 240rem;
  border: 0;
}

.form {
  max-width: 38rem;
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 650;
  color: var(--navy);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink);
}

.form textarea {
  min-height: 8rem;
}

.form .hint {
  font-weight: 400;
  color: var(--ink);
  font-size: 0.95rem;
}

.form-status {
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  background: var(--wash);
  border: 1px solid var(--line);
}

.form-status[hidden] {
  display: none;
}

.form-status.is-error {
  background: #fdecee;
  border-color: var(--error);
  color: var(--error);
}

.site-footer {
  background: var(--navy);
  color: #f4f6ff;
  padding: 2.5rem 1.25rem 1.5rem;
}

.site-footer a {
  color: #fff;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.site-footer address {
  font-style: normal;
}

.site-footer__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.site-footer__nav {
  display: grid;
  gap: 1.25rem;
}

.site-footer h2 {
  color: var(--gold);
  font-size: 0.95rem;
  font-family: var(--font);
  letter-spacing: 0.04em;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.35rem 0;
}

.site-footer__legal {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #d5dcf5;
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  gap: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.studio-map iframe {
  display: block;
  width: 100%;
  height: 28rem;
  border: 0;
  border-radius: var(--radius);
}

#expressive-arts-and-movement-workshops,
#support-groups-and-parent-education,
#events {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.community-feature {
  display: grid;
  gap: 1.5rem 2rem;
  align-items: center;
}

.community-feature--image-start {
  align-items: start;
}

.community-feature figure {
  margin: 0;
}

.community-feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.event-list__heading {
  margin-top: 0;
}

.event-list {
  display: grid;
  gap: 2.5rem;
}

.event-list__status {
  margin: 0;
  max-width: 40rem;
}

.event-card {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.event-card__poster {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.event-card__poster img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.event-card__title {
  margin-bottom: 0.35rem;
}

.event-card__when {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-weight: 650;
}

.event-card__description {
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.event-card__register {
  width: 100%;
}

@media (min-width: 800px) {
  :root {
    --header-h: 5.75rem;
  }

  .site-logo img {
    max-height: 72px;
  }

  .services {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .person {
    grid-template-columns: 180px 1fr;
  }

  .person--no-photo {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1.1fr 1.4fr;
  }

  .site-footer__nav {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .community-feature {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .event-card {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 1.5rem 2rem;
    align-items: center;
  }

  .event-card__poster img {
    max-height: 28rem;
  }

  .event-card__register {
    width: auto;
  }

  .community-feature--image-start {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  }

  .community-feature--image-start figure {
    order: -1;
  }
}

@media (min-width: 1160px) {
  .nav-backdrop {
    display: none !important;
  }
}

@media (max-width: 1159px) {
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
  }

  .btn--header {
    margin-left: auto;
    order: 2;
  }

  .site-logo {
    order: 1;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    z-index: 30;
    background: rgba(22, 27, 56, 0.48);
  }

  .nav-backdrop[hidden] {
    display: none;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 41;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    margin: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .subnav {
    position: static;
    box-shadow: none;
    border: 0;
    padding-left: 1rem;
    margin: 0.15rem 0 0.35rem;
    min-width: 0;
    background: var(--wash);
    border-radius: 0.6rem;
  }
}

@media (max-width: 799px) {
  .faces {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  h1 {
    overflow-wrap: break-word;
  }
}

.insurers-page__heading {
  margin-top: 2rem;
}

.prose .insurers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0.25rem 0 1.25rem;
  padding: 0;
  max-width: none;
}

.insurers__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  height: 100%;
  padding: 0.85rem 0.7rem 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(24, 36, 96, 0.04);
  text-align: center;
}

.insurers__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 4.75rem;
}

.insurers__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.insurers__name {
  display: block;
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--navy);
}

@media (min-width: 800px) {
  .prose .insurers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
