/* A gentle, child-friendly layer over the clinical layout. */
:root {
  --child-mint: #e8f5ee;
  --child-peach: #fff0e7;
  --child-sky: #eaf4fc;
  --child-lavender: #f2eefb;
}
body {
  --page-wash: #fffdf9;
  --page-soft: #edf6f2;
  --page-accent: #daeaf4;
}
.theme-conditions {
  --page-soft: #f2eefb;
  --page-accent: #e6e0f2;
}
.theme-services {
  --page-soft: #eaf4fc;
  --page-accent: #dbeaf6;
}
.theme-education {
  --page-soft: #fff0e7;
  --page-accent: #f7e4d8;
}
.hero-premium {
  background:
    radial-gradient(ellipse at 85% 18%, #dceef4 0, transparent 50%),
    linear-gradient(135deg, #fff7ed, #edf7f1 65%, #eaf4fc);
}
.tm-hero {
  background:
    radial-gradient(circle at 90% 10%, #e3ddf4, transparent 45%),
    linear-gradient(130deg, #fff7ee, #edf7f2);
}
.card,
.concern-card,
.consult-card,
.tm-card,
.journey-node,
.faq-item {
  border-radius: 24px;
}
.tm-card:nth-child(4n + 1) .icon-box,
.concern-card:nth-child(4n + 1) .concern-symbol {
  background: var(--child-mint);
  color: #286e61;
}
.tm-card:nth-child(4n + 2) .icon-box,
.concern-card:nth-child(4n + 2) .concern-symbol {
  background: var(--child-peach);
  color: #98583b;
}
.tm-card:nth-child(4n + 3) .icon-box,
.concern-card:nth-child(4n + 3) .concern-symbol {
  background: var(--child-sky);
  color: #3c6d8f;
}
.tm-card:nth-child(4n + 4) .icon-box,
.concern-card:nth-child(4n + 4) .concern-symbol {
  background: var(--child-lavender);
  color: #725b94;
}
.child-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 475px;
  padding: 12px 18px 12px 8px;
  margin-top: 26px;
  border: 1px solid #d9e7df;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
}
.child-mascot {
  display: block;
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  animation: child-bob 5s ease-in-out infinite;
  transform-origin: 50% 85%;
}
.child-welcome strong {
  display: block;
  font-size: 0.86rem;
  color: #123f4b;
  margin-bottom: 4px;
}
.child-welcome p {
  margin: 0;
  color: #546d73;
  font-size: 0.76rem;
  line-height: 1.7;
}
.journey-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.journey-section:after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#bed8ce 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  opacity: 0.23;
  mask-image: linear-gradient(to right, transparent, #000);
}
.journey-welcome {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px 26px;
  background: #fff;
  border: 1px solid #d9e7df;
  border-radius: 24px;
  max-width: 700px;
}
.journey-welcome img {
  width: 95px;
  height: 95px;
  flex-shrink: 0;
}
.journey-welcome h3 {
  font-size: 1.35rem;
  color: #123f4b;
  margin-bottom: 8px;
}
.journey-welcome p {
  font-size: 0.85rem;
  color: #546d73;
  margin: 0;
}
.journey-line .journey-node {
  position: relative;
  padding-top: 26px;
  border: 1px solid #d9e7df;
}
.journey-node:nth-child(5n + 1) {
  background: var(--child-mint);
}
.journey-node:nth-child(5n + 2) {
  background: var(--child-sky);
}
.journey-node:nth-child(5n + 3) {
  background: var(--child-lavender);
}
.journey-node:nth-child(5n + 4) {
  background: var(--child-peach);
}
.journey-node:nth-child(5n + 5) {
  background: #f5f5e6;
}
.journey-illustration {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: #ffffffbd;
  border: 1px solid #ffffff;
  border-radius: 20px;
  color: #315f68;
  font-size: 1.5rem;
  margin: 0 0 18px;
}
.journey-node.journey-reached .journey-illustration {
  animation: child-pop 0.45s ease-out;
}
.journey-node > span {
  font-size: 0.72rem;
}
@keyframes child-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-4px) rotate(2deg);
  }
}
@keyframes child-pop {
  0% {
    transform: scale(0.9);
  }
  65% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 620px) {
  .child-welcome {
    gap: 10px;
    padding: 10px;
  }
  .child-mascot {
    width: 70px;
    height: 70px;
  }
  .journey-welcome {
    padding: 18px;
    gap: 14px;
  }
  .journey-welcome img {
    width: 70px;
    height: 70px;
  }
  .journey-welcome h3 {
    font-size: 1.12rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .child-mascot,
  .journey-node.journey-reached .journey-illustration {
    animation: none;
  }
}

/* Uniform expertise cards: six balanced cards with a clear reading order. */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
}
.expertise-card {
  --expertise-tint: #e8f5ee;
  --expertise-ink: #286e61;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 310px;
  padding: 28px;
  border: 1px solid #dce7e3;
  border-radius: 24px;
  background: linear-gradient(160deg, #fff 60%, var(--expertise-tint));
  box-shadow: 0 6px 22px rgba(18, 63, 75, 0.035);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.expertise-card:nth-child(3n + 2) {
  --expertise-tint: #eaf4fc;
  --expertise-ink: #3c6d8f;
}
.expertise-card:nth-child(3n + 3) {
  --expertise-tint: #f2eefb;
  --expertise-ink: #725b94;
}
.expertise-card:nth-child(4) {
  --expertise-tint: #fff0e7;
  --expertise-ink: #98583b;
}
.expertise-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.expertise-icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: var(--expertise-tint);
  color: var(--expertise-ink);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}
.expertise-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #768f96;
}
.expertise-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.22rem;
  letter-spacing: -0.035em;
  line-height: 1.35;
  color: #123f4b;
  min-height: 2.7em;
  margin: 0 0 13px;
  overflow-wrap: anywhere;
}
.expertise-card p {
  font-size: 0.83rem;
  line-height: 1.85;
  color: #5b747b;
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}
.expertise-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #dce7e3;
  color: var(--expertise-ink);
  font-size: 0.76rem;
  font-weight: 700;
}
.expertise-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--expertise-ink);
  border: 1px solid #dce7e3;
}
.expertise-arrow i {
  transition: transform 0.25s ease;
}
.expertise-card:focus-visible {
  outline: 3px solid #268573;
  outline-offset: 5px;
}
@media (hover: hover) and (pointer: fine) {
  .expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(18, 63, 75, 0.09);
    border-color: #a8c8bd;
  }
  .expertise-card:hover .expertise-arrow i {
    transform: translateX(3px);
  }
}
@media (max-width: 1000px) {
  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    grid-auto-rows: auto;
  }
  .expertise-card {
    min-height: 0;
    padding: 24px;
  }
  .expertise-card h3 {
    min-height: 0;
    font-size: 1.2rem;
  }
  .expertise-card-top {
    margin-bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .expertise-card,
  .expertise-arrow i {
    transition: none;
  }
  .expertise-card:hover,
  .expertise-card:hover .expertise-arrow i {
    transform: none;
  }
}

/* Compact appointment form above the footer. */
.footer-appointment {
  padding: 48px 0;
}
.footer-appointment > .container {
  max-width: 1000px;
  margin-inline: auto;
}
.footer-appointment .form-card {
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(11, 42, 67, 0.06);
}
.footer-appointment .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
}
.footer-appointment .form-grid label {
  min-width: 0;
  font-size: 0.82rem;
}
.footer-appointment .form-grid input,
.footer-appointment .form-grid select,
.footer-appointment .form-grid textarea {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 16px;
}
.footer-appointment .form-grid input,
.footer-appointment .form-grid select {
  min-height: 44px;
}
.footer-appointment .form-grid .full {
  grid-column: span 2;
}
.footer-appointment .form-grid .full:first-of-type,
.footer-appointment .form-grid label:nth-child(9) {
  grid-column: 1 / -1;
}
.footer-appointment .form-grid textarea {
  height: 76px;
  min-height: 76px;
  resize: vertical;
}
.footer-appointment .appointment-form > .btn {
  margin-top: 20px;
}
.footer-appointment .form-note {
  margin: 12px 0 0;
}
@media (max-width: 1000px) {
  .footer-appointment .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-appointment .form-grid .full {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .footer-appointment {
    padding: 28px 0;
  }
  .footer-appointment .form-card {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .footer-appointment .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .footer-appointment .appointment-form > .btn {
    width: 100%;
    justify-content: center;
  }
}
/* Square location map above the footer appointment button. */
.appointment-location-map {
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 0 auto 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #eaf5ff;
}
.appointment-location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}



/* Footer actions below the introduction, with a square map beside them. */
.footer-invitation-copy .footer-invitation-actions {
  margin-top: 24px;
  gap: 16px;
}
.footer-invitation-copy .footer-invitation-actions > small {
  max-width: 380px;
  line-height: 1.7;
}
.footer-invitation-map {
  min-width: 0;
  width: 100%;
  justify-self: end;
}
.footer-invitation-map .appointment-location-map {
  width: min(100%, 380px);
  margin: 0 0 0 auto;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}
@media (max-width: 760px) {
  .footer-invitation-map {
    justify-self: center;
  }
  .footer-invitation-map .appointment-location-map {
    margin-inline: auto;
  }
}
/* Sources and relevant next steps for clinical topic pages. */
.content-references {
  padding: 32px 0;
}
.reference-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f5faf8;
}
.reference-card h2,
.reference-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}
.reference-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.reference-card ul {
  padding-left: 20px;
  margin: 12px 0;
}
.reference-card li {
  margin-bottom: 10px;
}
.reference-card a {
  color: #17665c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 700px) {
  .reference-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
    gap: 20px;
  }
}
/* Show the home hero immediately, before reveal JavaScript runs. */
.page-home .hero [data-reveal],
.page-home .hero [data-stagger] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
}
@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .page-home .neural-field > span,
  .page-home .trust-track,
  .page-home .hero-orb,
  .page-home .hero-ring {
    animation: none;
  }
}
.page-home .hero [data-stagger] > * {
  opacity: 1;
  transform: none;
  animation: none;
}/* Render sections near the viewport while preserving native links and find-in-page. */
.page-home main > .section {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}
@media (max-width: 700px) {
  .page-home *, .page-home *::before, .page-home *::after {
    animation: none !important;
  }
  .page-home [data-reveal], .page-home [data-stagger],
  .page-home [data-stagger] > *, .page-home .motion-pending,
  .page-home .reveal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
  }
}.page-home.home-static [data-reveal],
.page-home.home-static [data-stagger],
.page-home.home-static [data-stagger] > *,
.page-home.home-static .reveal {
  opacity: 1; visibility: visible; transform: none; animation: none;
}
