/* ==========================================================================
   Therapy Connections — main stylesheet
   1. Fonts        2. Tokens       3. Base          4. Layout
   5. Buttons      6. Header/nav   7. Heroes        8. Components
   9. Sections    10. Footer      11. Motion       12. Responsive
   ========================================================================== */

/* Homepage announcements */
.home-announcement {
  padding: 18px 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
}
.home-announcement p {
  margin-block: 0;
}
.home-announcement--hiring {
  background: var(--sun-100);
  color: var(--navy-900);
}
.home-announcement--hiring strong {
  margin-right: 0.3em;
}
.home-announcement--openings {
  background: var(--teal-700);
  color: #fff;
}
.home-announcement a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-soft.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-soft-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #0e2a3d;
  --navy-800: #153a52;
  --navy-700: #1d4a68;
  --blue-700: #0f5a91;
  --blue-600: #156cab;
  --blue-500: #2a8ccf;
  --blue-100: #e3f0fa;
  --blue-50: #f2f8fd;
  --teal-700: #2c756d;
  --teal-500: #4e9a92;
  --teal-300: #8fcac2;
  --mint-100: #e4f3ee;
  --mint-50: #f1f9f6;
  --cream: #fbf8f2;
  --sand: #f4ecdf;
  --coral: #e3795b;
  --coral-100: #fbe8e1;
  --sun: #f2b84b;
  --sun-100: #fdf1d8;

  /* Text & lines */
  --ink: #1d2c37;
  --ink-2: #3c505e;
  --muted: #5f707c;
  --line: #dce6ea;
  --line-2: #ebf0f2;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape & depth */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --shadow-sm: 0 1px 2px rgb(18 50 72 / 0.06), 0 4px 12px -2px rgb(18 50 72 / 0.06);
  --shadow: 0 2px 4px rgb(18 50 72 / 0.04), 0 14px 32px -8px rgb(18 50 72 / 0.14);
  --shadow-lg: 0 4px 8px rgb(18 50 72 / 0.04), 0 28px 60px -16px rgb(18 50 72 / 0.24);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;
  --section-y: clamp(64px, 9vw, 116px);
}

/* 3. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 560;
  color: var(--navy-800);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
}
h2 {
  font-size: clamp(2rem, 3.8vw, 3.05rem);
  letter-spacing: -0.022em;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
}
h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 480;
  color: var(--blue-600);
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: var(--blue-600);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--blue-700);
}

strong {
  font-weight: 700;
  color: var(--navy-800);
}

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--blue-100);
  color: var(--navy-900);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* 4. Layout --------------------------------------------------------------- */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container--narrow {
  width: min(820px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}
.section--cream {
  background: var(--cream);
}
.section--mint {
  background: var(--mint-50);
}
.section--sky {
  background: var(--blue-50);
}
.section--navy {
  background: var(--navy-800);
  color: #d6e4ec;
}
.section--navy h2,
.section--navy h3,
.section--navy strong {
  color: #fff;
}
.section--navy .eyebrow {
  color: var(--teal-300);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head--center {
  text-align: center;
  margin-inline: auto;
}
.section-head p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split--wide-left {
  grid-template-columns: 1.15fr 0.85fr;
}
.split--wide-right {
  grid-template-columns: 0.85fr 1.15fr;
}
.split--top {
  align-items: start;
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.stack > * + * {
  margin-top: 1rem;
}

.center {
  text-align: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.actions--center {
  justify-content: center;
}

/* 5. Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  border: 1.5px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1rem/1.1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn .icon--arrow {
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn--primary {
  box-shadow: 0 8px 20px -8px rgb(21 108 171 / 0.6);
}
.btn--primary:hover {
  --btn-bg: var(--blue-700);
  box-shadow: 0 14px 28px -10px rgb(21 108 171 / 0.65);
}
.btn--secondary {
  --btn-bg: #fff;
  --btn-fg: var(--navy-800);
  --btn-border: #c6d8e2;
}
.btn--secondary:hover {
  --btn-border: var(--blue-500);
  box-shadow: var(--shadow-sm);
}
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--navy-800);
}
.btn--light:hover {
  box-shadow: 0 14px 28px -10px rgb(0 0 0 / 0.35);
}
.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-border: rgb(255 255 255 / 0.45);
}
.btn--outline-light:hover {
  --btn-bg: rgb(255 255 255 / 0.1);
  --btn-border: #fff;
}
.btn--teal {
  --btn-bg: var(--teal-500);
}
.btn--teal:hover {
  --btn-bg: var(--teal-700);
}
.btn--sm {
  padding: 0.75em 1.2em;
  font-size: 0.95rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
}
.text-link .icon {
  transition: transform 0.3s var(--ease-out);
}
.text-link:hover .icon,
a:hover > .text-link .icon,
.card-link:hover .text-link .icon {
  transform: translateX(4px);
}

/* 6. Header & navigation -------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: #c9dbe6;
  font-size: 0.875rem;
  view-transition-name: topbar;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.topbar__links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.topbar a:hover {
  color: var(--teal-300);
}
.topbar .icon {
  width: 15px;
  height: 15px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.97);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  view-transition-name: site-header;
}
.site-header.is-scrolled {
  border-color: var(--line-2);
  box-shadow: 0 10px 30px -18px rgb(18 50 72 / 0.35);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 50px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__item {
  position: relative;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 650;
  color: var(--ink-2);
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}
.nav__link:hover {
  color: var(--navy-800);
  background: var(--blue-50);
}
.nav__link[aria-current="page"],
.nav__link.is-active {
  color: var(--blue-600);
}
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--coral);
}

.subnav-toggle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  vertical-align: middle;
}
.subnav-toggle .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}
.nav__item--has-sub:hover .subnav-toggle .icon,
.nav__item--has-sub[data-open] .subnav-toggle .icon {
  transform: rotate(180deg);
}

.subnav {
  position: absolute;
  top: calc(100% + 10px);
  left: -18px;
  width: 330px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 0.25s ease,
    transform 0.3s var(--ease-out),
    visibility 0s linear 0.3s;
}
/* hover bridge so the menu doesn't close in the gap */
.subnav::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
}
.nav__item--has-sub:hover .subnav,
.nav__item--has-sub:focus-within .subnav,
.nav__item--has-sub[data-open] .subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.subnav a {
  display: block;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--navy-800);
  font-weight: 700;
  line-height: 1.3;
  transition: background-color 0.2s ease;
}
.subnav a span {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}
.subnav a:hover,
.subnav a[aria-current="page"] {
  background: var(--blue-50);
}

.nav__cta {
  margin-left: 12px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-800);
  font: 700 0.95rem/1 var(--font-body);
  cursor: pointer;
}
.menu-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}
.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.35s var(--ease-out),
    opacity 0.2s ease,
    top 0.35s var(--ease-out);
}
.menu-toggle__bars span:nth-child(1) {
  top: 0;
}
.menu-toggle__bars span:nth-child(2) {
  top: 5px;
}
.menu-toggle__bars span:nth-child(3) {
  top: 10px;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* Scroll progress (bottom edge of the pinned header) */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--blue-500) 60%, var(--coral));
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  pointer-events: none;
}

/* Scroll-spy: current section on the home page's desktop menu */
.nav__link.is-current {
  color: var(--blue-600);
  background: var(--blue-50);
}
.nav__link.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--coral);
}

/* "On this page" strip — overlays just below the header (so it never shifts the page)
   and slides in once the first section scrolls into view. */
.section-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgb(255 255 255 / 0.97);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 12px 24px -20px rgb(18 50 72 / 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.45s var(--ease-out),
    visibility 0s linear 0.45s;
}
.site-header.show-strip .section-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.section-nav__clip {
  overflow: hidden;
}
.section-nav__list {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 8px 0 9px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%);
}
.section-nav__list::-webkit-scrollbar {
  display: none;
}
.section-nav__list li {
  flex-shrink: 0;
}
.section-nav__list li:first-child {
  margin-left: 4px;
}
.section-nav__list a {
  display: block;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}
.section-nav__list a:hover {
  background: var(--blue-50);
  color: var(--navy-800);
}
.section-nav__list a.is-current {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgb(21 108 171 / 0.8);
}
html.has-section-nav {
  scroll-padding-top: calc(var(--header-h) + 72px);
}

/* Up next — continue through the site without the menu */
.up-next {
  padding-block: clamp(32px, 5vw, 56px);
  background: #fff;
  border-top: 1px solid var(--line-2);
}
.up-next__grid {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.up-next__card {
  flex: 0 1 640px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px 14px 14px;
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  border: 1px solid #d6e7f4;
  color: var(--navy-800);
  text-decoration: none;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    background-color 0.3s ease;
}
.up-next__card:hover {
  color: var(--navy-800);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.up-next__thumb {
  flex-shrink: 0;
  width: 112px;
  height: 88px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--blue-100);
}
.up-next__thumb picture,
.up-next__thumb img {
  width: 100%;
  height: 100%;
}
.up-next__thumb img {
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.up-next__card:hover .up-next__thumb img {
  transform: scale(1.08);
}
.up-next__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.up-next__label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.up-next__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.15;
}
.up-next__blurb {
  font-size: 0.95rem;
  color: var(--muted);
}
.up-next__arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  transition: transform 0.4s var(--ease-out);
}
.up-next__card:hover .up-next__arrow {
  transform: translateX(4px);
}
.up-next__prev {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: none;
}
.up-next__prev small {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.up-next__prev-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  transform: rotate(180deg);
  transition: transform 0.4s var(--ease-out), border-color 0.2s ease;
}
.up-next__prev:hover .up-next__prev-arrow {
  transform: rotate(180deg) translateX(4px);
  border-color: var(--blue-500);
}

/* 7. Heroes --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 128px);
  background:
    radial-gradient(900px 500px at 88% 8%, rgb(143 202 194 / 0.28), transparent 60%),
    radial-gradient(700px 420px at 4% 96%, rgb(227 121 91 / 0.1), transparent 60%),
    linear-gradient(165deg, #f3f9fd 0%, #eff8f4 58%, var(--cream) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero h1 {
  margin-bottom: 22px;
}
.hero .lead {
  max-width: 600px;
}

.squiggle {
  position: relative;
  white-space: nowrap;
}
.squiggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 0.28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c12-6 22-6 34 0s22 6 34 0 22-6 34 0 10 3 14 2' fill='none' stroke='%23e3795b' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  opacity: 0.9;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink-2);
}
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-list .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--teal-700);
  stroke-width: 3;
}

.hero__media {
  position: relative;
  isolation: isolate;
  max-width: 520px;
  justify-self: center;
  width: 100%;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: 999px 999px 40px 40px;
  background: linear-gradient(170deg, rgb(143 202 194 / 0.55), rgb(42 140 207 / 0.25));
}
.hero__media::after {
  content: "";
  position: absolute;
  width: 132px;
  height: 132px;
  left: -34px;
  top: 18%;
  z-index: -1;
  background: radial-gradient(circle, var(--coral) 0 1.8px, transparent 2.4px) 0 0 / 15px 15px;
  opacity: 0.4;
}
.arch {
  position: relative;
  border-radius: 999px 999px 40px 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--blue-100);
}
.arch picture,
.arch img {
  width: 100%;
  height: 100%;
}
.arch img {
  object-fit: cover;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.25;
  animation: float 7s var(--ease-in-out) infinite;
}
.float-card small {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}
.float-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--coral-100);
  color: var(--coral);
  flex-shrink: 0;
}
.float-card--a {
  left: -36px;
  bottom: 44px;
}
.float-card--b {
  right: -22px;
  top: 12%;
  animation-delay: -3.5s;
  padding: 10px 16px;
  font-size: 0.9rem;
}
.float-card--b .dots {
  display: flex;
  gap: 4px;
}
.float-card--b .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(28px, 4vw, 56px);
  color: #fff;
  pointer-events: none;
}

/* Interior page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 104px);
  background:
    radial-gradient(700px 380px at 92% 0%, rgb(143 202 194 / 0.28), transparent 60%),
    linear-gradient(170deg, #f3f9fd 0%, #f0f8f5 70%, #fff 100%);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.page-hero--simple .page-hero__grid {
  grid-template-columns: 1fr;
  max-width: 820px;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
}
.page-hero__media {
  position: relative;
  isolation: isolate;
}
.page-hero__media .photo {
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 120px;
  aspect-ratio: 5 / 4;
}
.page-hero__media::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -18px;
  top: -18px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0 1.6px, transparent 2.2px) 0 0 / 14px 14px;
  opacity: 0.55;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: #a9b7bf;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--blue-600);
}

/* 8. Components ----------------------------------------------------------- */

/* Photo wrapper */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--blue-100);
  box-shadow: var(--shadow);
}
.photo picture,
.photo img {
  width: 100%;
  height: 100%;
}
.photo img {
  object-fit: cover;
}

/* Service cards */
.service-card {
  --accent: var(--blue-600);
  --accent-bg: var(--blue-100);
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.service-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--accent-bg);
}
.service-card__media picture,
.service-card__media img {
  width: 100%;
  height: 100%;
}
.service-card__media img {
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.service-card:hover .service-card__media img {
  transform: scale(1.06);
}
.service-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 34px 24px 26px;
}
.service-card__badge {
  position: absolute;
  top: -26px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px -8px var(--accent);
  border: 4px solid #fff;
  box-sizing: content-box;
}
.service-card__badge .icon {
  width: 24px;
  height: 24px;
}
.service-card h3 {
  margin-bottom: 8px;
}
.service-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 18px;
}
.service-card .text-link {
  margin-top: auto;
  color: var(--accent);
}
.service-card:hover .text-link .icon {
  transform: translateX(4px);
}
.accent--speech {
  --accent: #156cab;
  --accent-bg: #e3f0fa;
}
.accent--ot {
  --accent: #2c7d74;
  --accent-bg: #e4f3ee;
}
.accent--pt {
  --accent: #c8603f;
  --accent-bg: #fbe8e1;
}
.accent--feeding {
  --accent: #b7802a;
  --accent-bg: #fdf1d8;
}

/* Feature (reason) cards */
.feature {
  padding: 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--blue-100);
  color: var(--blue-600);
}
.feature__icon .icon {
  width: 24px;
  height: 24px;
}
.feature:nth-child(3n + 2) .feature__icon {
  background: var(--mint-100);
  color: var(--teal-700);
}
.feature:nth-child(3n + 3) .feature__icon {
  background: var(--coral-100);
  color: #c8603f;
}
.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Callout (dark, rounded) */
.callout {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--navy-800);
  color: #d4e3ec;
}
.callout::before,
.callout::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.callout::before {
  width: 320px;
  height: 320px;
  right: -80px;
  top: -160px;
  background: radial-gradient(circle, rgb(78 154 146 / 0.45), transparent 70%);
}
.callout::after {
  width: 220px;
  height: 220px;
  left: 30%;
  bottom: -150px;
  background: radial-gradient(circle, rgb(42 140 207 / 0.35), transparent 70%);
}
.callout > * {
  position: relative;
  z-index: 1;
}
.callout h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: 6px;
}
.callout p {
  margin: 0;
  max-width: 620px;
}
.callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* Collage of team photos */
.collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, minmax(40px, 1fr));
  gap: 14px;
  aspect-ratio: 1 / 0.92;
}
.collage .photo:nth-child(1) {
  grid-column: 1 / 7;
  grid-row: 1 / 5;
}
.collage .photo:nth-child(2) {
  grid-column: 1 / 4;
  grid-row: 5 / 7;
}
.collage .photo:nth-child(3),
.collage .photo:nth-child(2):last-child {
  grid-column: 4 / 7;
  grid-row: 4 / 7;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
}

/* Stats */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin: 28px 0 30px;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--blue-600);
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* Quote */
.quote {
  position: relative;
  margin: 0 0 24px;
  padding: 0;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-style: italic;
  font-weight: 420;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  color: var(--navy-800);
}
.quote::before {
  content: "“";
  display: block;
  height: 0.5em;
  margin-bottom: 0.15em;
  font-size: 3.2em;
  line-height: 1;
  color: var(--coral);
  opacity: 0.55;
  font-style: normal;
}
.quote-cite {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-weight: 700;
  color: var(--navy-800);
}
.quote-cite small {
  display: block;
  font-weight: 500;
  color: var(--muted);
}
.quote-cite::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

.photo--arch {
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
}
.photo--blob {
  border-radius: 46% 54% 40% 60% / 52% 44% 56% 48%;
}
.photo-frame {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  border: 2px dashed var(--teal-300);
  z-index: 0;
}
.photo-frame .photo {
  position: relative;
  z-index: 1;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  border-top: 2px dashed #c3d6df;
}
.step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  box-shadow:
    0 0 0 8px #fff,
    0 10px 22px -8px rgb(21 108 171 / 0.6);
}
.section--cream .step__num {
  box-shadow:
    0 0 0 8px var(--cream),
    0 10px 22px -8px rgb(21 108 171 / 0.6);
}
.step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

/* Info card / soft panel */
.panel {
  padding: clamp(26px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--mint-50);
  border: 1px solid #d8ece5;
}
.panel--sky {
  background: var(--blue-50);
  border-color: #d6e7f4;
}
.panel--cream {
  background: var(--cream);
  border-color: #eee4d3;
}
.panel--white {
  background: #fff;
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.panel h3 .icon {
  color: var(--coral);
}
.panel > :last-child {
  margin-bottom: 0;
}

/* Check list */
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.check-list--2 {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 28px;
}
.check-list--3 {
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 16px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  line-height: 1.45;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c756d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}
.check-list--muted li::before {
  background: #f0f2f3
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8a93' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--navy-800);
}
.chip--soft {
  background: var(--blue-50);
  border-color: #d3e5f3;
}
.section--navy .chip {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.18);
  color: #fff;
}

/* Specialty cards (illustrated) */
.specialty {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}
.specialty:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.specialty__art {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  overflow: hidden;
}
.specialty__art picture,
.specialty__art img {
  width: 100%;
  height: 100%;
}
.specialty__art img {
  object-fit: cover;
}
.specialty h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}
.specialty p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Focus-area cards */
.focus-card {
  padding: 26px 28px;
  border-radius: var(--radius);
  background: #fff;
  border-top: 4px solid var(--accent, var(--blue-600));
  box-shadow: var(--shadow-sm);
}
.focus-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.focus-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Team */
.team-group + .team-group {
  margin-top: clamp(56px, 7vw, 88px);
}
.team-group__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.team-group__head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0;
}
.team-group__head p {
  margin: 0;
  max-width: 460px;
  color: var(--muted);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.person {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  overflow: hidden;
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}
.person:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.person__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
}
.person__photo picture,
.person__photo img {
  width: 100%;
  height: 100%;
}
.person__photo img {
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.person:hover .person__photo img {
  transform: scale(1.04);
}
.person__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}
.person__name {
  font-size: 1.3rem;
  margin: 0 0 2px;
}
.person__role {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--teal-700);
  margin: 0 0 12px;
}
.person__since {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sun-100);
  color: #8a5d12;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.person__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 16px;
}
.person__more {
  margin-top: auto;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font: 700 0.95rem/1.2 var(--font-body);
  color: var(--blue-600);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.person__more .icon {
  transition: transform 0.3s var(--ease-out);
}
.person__more:hover .icon {
  transform: translateX(4px);
}

/* Bio dialog */
.bio-dialog {
  width: min(880px, 100% - 32px);
  max-height: min(88vh, 760px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 120px -20px rgb(8 30 45 / 0.55);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition:
    opacity 0.3s ease,
    transform 0.45s var(--ease-out),
    overlay 0.45s allow-discrete,
    display 0.45s allow-discrete;
}
.bio-dialog[open] {
  opacity: 1;
  transform: none;
}
@starting-style {
  .bio-dialog[open] {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}
.bio-dialog::backdrop {
  background: rgb(12 34 50 / 0);
  backdrop-filter: blur(0);
  transition:
    background-color 0.35s ease,
    backdrop-filter 0.35s ease,
    overlay 0.35s allow-discrete,
    display 0.35s allow-discrete;
}
.bio-dialog[open]::backdrop {
  background: rgb(12 34 50 / 0.55);
  backdrop-filter: blur(4px);
}
@starting-style {
  .bio-dialog[open]::backdrop {
    background: rgb(12 34 50 / 0);
    backdrop-filter: blur(0);
  }
}
.bio-dialog__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  max-height: inherit;
}
.bio-dialog__photo {
  background: var(--sand);
  min-height: 100%;
}
.bio-dialog__photo picture,
.bio-dialog__photo img {
  width: 100%;
  height: 100%;
}
.bio-dialog__photo img {
  object-fit: cover;
}
.bio-dialog__content {
  padding: clamp(28px, 4vw, 44px);
  overflow-y: auto;
  max-height: min(88vh, 760px);
}
.bio-dialog__content h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 4px;
}
.bio-dialog__content .person__role {
  margin-bottom: 22px;
}
.bio-dialog__content p {
  color: var(--ink-2);
}
.bio-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out);
}
.bio-dialog__close:hover {
  transform: rotate(90deg);
}

/* Discipline team strip (service pages) */
.team-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.team-strip li {
  text-align: center;
  width: 96px;
}
.team-strip a {
  text-decoration: none;
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.92rem;
}
.team-strip .avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 8px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out);
}
.team-strip .avatar picture,
.team-strip .avatar img {
  width: 100%;
  height: 100%;
}
.team-strip .avatar img {
  object-fit: cover;
}
.team-strip a:hover .avatar {
  transform: translateY(-4px) rotate(-2deg);
}

/* Forms list */
.form-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.2s ease;
}
.form-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d3e5f3;
}
.form-row__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.form-row h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
}
.form-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.form-row .tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sun-100);
  color: #8a5d12;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 750;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* Insurance logos */
.logo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.logo-tile {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  aspect-ratio: 5 / 3;
}
.logo-tile picture,
.logo-tile img {
  max-height: 88px;
  width: auto;
  object-fit: contain;
}

/* FAQ / accordion */
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.faq details[open] {
  box-shadow: var(--shadow);
  border-color: #d3e5f3;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-800);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  transition: transform 0.35s var(--ease-out);
}
.faq details[open] summary .icon {
  transform: rotate(45deg);
}
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.4s var(--ease-out),
    content-visibility 0.4s allow-discrete;
}
.faq details[open]::details-content {
  block-size: auto;
}
.faq__body {
  padding: 0 24px 22px;
  color: var(--ink-2);
}
.faq__body > :last-child {
  margin-bottom: 0;
}

/* Contact info list */
.info-list {
  display: grid;
  gap: 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.info-list li {
  display: flex;
  gap: 16px;
}
.info-list__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.1);
  color: var(--teal-300);
}
.info-list strong {
  display: block;
  margin-bottom: 2px;
}
.info-list a {
  color: inherit;
}
.panel .info-list__icon,
.info-list--light .info-list__icon {
  background: var(--blue-50);
  color: var(--blue-600);
}

/* Contact cards */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink-2);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}
a.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--ink-2);
}
.contact-card .feature__icon {
  margin-bottom: 12px;
}
.contact-card h2 {
  font-size: 1.35rem;
  margin: 0;
}
.contact-card__big {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue-600);
}

.map-link {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.map-link picture,
.map-link img {
  width: 100%;
  height: 100%;
}
.map-link img {
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.map-link:hover img {
  transform: scale(1.03);
}
.map-link__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-800);
  font-weight: 700;
  box-shadow: var(--shadow);
}

/* Prose */
.prose {
  max-width: 68ch;
}
.prose p {
  color: var(--ink-2);
}
.prose h2 {
  margin-top: 1.6em;
}
.prose .eyebrow {
  color: var(--teal-700);
}
.prose .eyebrow + h2,
.prose > h2:first-child {
  margin-top: 0;
}
.placeholder-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sun-100);
  color: #8a5d12;
  font-size: 0.8rem;
  font-weight: 750;
}

.sticky-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

/* Location band */
.location__photo {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 120px;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(600px 300px at 10% 110%, rgb(143 202 194 / 0.35), transparent 65%),
    radial-gradient(500px 300px at 95% -10%, rgb(242 184 75 / 0.18), transparent 65%),
    linear-gradient(160deg, #f1f8fc, #eff8f3);
}
.cta-band .lead {
  max-width: 680px;
  margin-inline: auto;
}
.cta-band__mark {
  position: absolute;
  width: 220px;
  right: 4%;
  bottom: -40px;
  opacity: 0.08;
  transform: rotate(-12deg);
  pointer-events: none;
}

/* Service overview rows */
.discipline + .discipline {
  margin-top: clamp(56px, 8vw, 104px);
}
.discipline:nth-child(even) .discipline__media {
  order: 2;
}
.discipline__media .photo {
  aspect-ratio: 5 / 4;
}
.discipline:nth-child(odd) .discipline__media .photo {
  border-radius: var(--radius-xl) var(--radius-xl) 120px var(--radius-xl);
}
.discipline:nth-child(even) .discipline__media .photo {
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 120px;
}
.discipline h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.discipline .chips {
  margin: 22px 0 26px;
}

/* 10. Footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--navy-900);
  color: #b9cddb;
  padding-top: clamp(56px, 7vw, 88px);
  font-size: 0.97rem;
}
.site-footer a {
  color: #dbe8f0;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 0.9fr;
  gap: 40px;
}
.footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-brand p {
  max-width: 330px;
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 16px;
}
.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-contact li {
  display: flex;
  gap: 10px;
}
.footer-contact .icon {
  margin-top: 4px;
  color: var(--teal-300);
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.2);
  font-weight: 600;
}
.site-footer .social-link:hover {
  text-decoration: none;
  background: rgb(255 255 255 / 0.08);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-block: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.87rem;
  color: #8fa7b8;
}

/* Mobile call bar */
.mobile-bar {
  display: none;
}

/* 11. Motion -------------------------------------------------------------- */

/* Cross-document page transitions (progressive enhancement). */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: 200ms ease-in both vt-fade-out;
}
::view-transition-new(root) {
  animation: 420ms var(--ease-out) both vt-fade-in;
}
::view-transition-group(site-header),
::view-transition-group(topbar),
::view-transition-group(mobile-bar) {
  animation-duration: 0s;
}
@keyframes vt-fade-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes vt-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Scroll reveal: only hides content when JS is running. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="fade"] {
  transform: none;
}
.js [data-reveal="scale"] {
  transform: scale(0.96);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* 12. Responsive ---------------------------------------------------------- */
@media (min-width: 1025px) {
  .section-nav--mobile-only {
    display: none;
  }
  html.has-section-nav--mobile-only {
    scroll-padding-top: calc(var(--header-h) + 16px);
  }
}

@media (max-width: 1100px) {
  .nav__link {
    padding: 10px 9px;
    font-size: 0.93rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .brand img {
    height: 42px;
  }

  /* Anchored to the sticky header (its backdrop-filter makes it the containing block). */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--nav-top, 112px));
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px var(--gutter) 40px;
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--line-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity 0.3s ease,
      transform 0.4s var(--ease-out),
      visibility 0s linear 0.4s;
  }
  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .nav-open {
    overflow: hidden;
  }
  .nav-open .section-nav {
    display: none;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__item {
    border-bottom: 1px solid var(--line-2);
  }
  .nav__link {
    display: flex;
    padding: 16px 4px;
    font-size: 1.15rem;
    border-radius: 0;
  }
  .nav__link:hover {
    background: none;
  }
  .nav__link.is-active::after {
    left: auto;
    right: 4px;
    top: 50%;
    bottom: auto;
    margin-top: -3px;
  }
  .subnav-toggle {
    display: none;
  }
  .subnav {
    position: static;
    width: auto;
    padding: 0 0 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .subnav li:first-child {
    display: none;
  }
  .subnav a {
    padding: 10px 14px;
  }
  .subnav a span {
    display: none;
  }
  .nav__cta {
    margin: 24px 0 0;
    padding: 1.05em;
    font-size: 1.05rem;
  }

  .hero__grid,
  .page-hero__grid,
  .split,
  .split--wide-left,
  .split--wide-right {
    grid-template-columns: 1fr;
  }
  .hero__media {
    max-width: 440px;
  }
  .page-hero__media {
    max-width: 620px;
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
  .steps::before {
    display: none;
  }
  .check-list--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .discipline:nth-child(even) .discipline__media {
    order: 0;
  }
  .callout {
    flex-direction: column;
    align-items: flex-start;
  }
  .collage {
    max-width: 620px;
  }
  .sticky-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 1rem;
    padding-bottom: 84px;
  }
  .topbar__tagline {
    display: none;
  }
  .topbar__inner {
    justify-content: center;
  }
  .grid--2,
  .grid--3,
  .grid--4,
  .steps,
  .check-list--2,
  .check-list--3,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .person__body {
    padding: 16px;
  }
  .person__excerpt {
    display: none;
  }
  .person__name {
    font-size: 1.15rem;
  }
  .team-group__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .float-card--a {
    left: -8px;
    bottom: 24px;
  }
  .float-card--b {
    right: -8px;
  }
  .hero__media::before {
    inset: 8% -3% -3% 8%;
  }
  .form-row {
    grid-template-columns: auto 1fr;
  }
  .form-row .btn {
    grid-column: 1 / -1;
  }
  .logo-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .logo-tile {
    padding: 10px;
  }
  .bio-dialog__inner {
    grid-template-columns: 1fr;
  }
  .bio-dialog__photo {
    height: 260px;
    min-height: 0;
  }
  .bio-dialog__photo img {
    object-position: center 20%;
  }
  .bio-dialog__content {
    max-height: none;
  }
  .bio-dialog {
    overflow-y: auto;
  }
  .actions .btn {
    flex: 1 1 auto;
  }
  .mobile-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
    background: rgb(255 255 255 / 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px -12px rgb(8 30 45 / 0.35);
    view-transition-name: mobile-bar;
  }
  .mobile-bar .btn {
    min-width: 0;
    padding: 0.9em 0.95em;
    font-size: 0.92rem;
  }
  .nav-open .mobile-bar {
    display: none;
  }
  .section-nav__list a {
    padding: 7px 13px;
    font-size: 0.87rem;
  }
  .up-next__grid {
    flex-direction: column;
    align-items: stretch;
  }
  .up-next__card {
    flex-basis: auto;
    gap: 14px;
  }
  .up-next__thumb {
    width: 76px;
    height: 76px;
  }
  .up-next__blurb {
    display: none;
  }
  .up-next__arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .person__role {
    font-size: 0.8rem;
  }
  .float-card--b {
    display: none;
  }
}
