/* Inspire Behavior Services — shared sections: heroes, star photos, services orbit, promise, constellation, FAQ */

/* ---------- star-shaped photo ---------- */
.star-photo { position: relative; aspect-ratio: 1; }
.star-photo__back,
.star-photo__img {
  position: absolute; inset: 0;
  -webkit-clip-path: url(#clip-star); clip-path: url(#clip-star);
}
.star-photo__back { background: var(--grad-gold); transform: rotate(14deg) scale(1.05); }
.star-photo__back--cool { background: var(--grad); transform: rotate(-12deg) scale(1.05); opacity: 0.9; }
.star-photo__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- logo-style swooshes ---------- */
.swoosh { position: absolute; left: 0; width: 100%; height: clamp(40px, 7vw, 110px); pointer-events: none; }
.swoosh path { fill: none; stroke-linecap: round; }
.swoosh--bottom { bottom: -2px; }

/* ---------- home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(36px, 6vw, 80px)) 0 clamp(80px, 10vw, 140px);
  background:
    radial-gradient(55% 60% at 88% 18%, rgba(25, 181, 168, 0.16), transparent 70%),
    radial-gradient(45% 55% at 4% 96%, rgba(254, 197, 68, 0.2), transparent 70%),
    radial-gradient(40% 40% at 50% 0%, rgba(42, 127, 192, 0.08), transparent 70%),
    var(--bg);
}
.hero__grid { display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
.hero__chip { margin-bottom: 1.4rem; background: #fff; box-shadow: var(--shadow-s); color: var(--ink); }
.hero__chip .i { color: var(--star-deep); }
.hero__title { max-width: 12ch; }
.hero__title .w { display: inline-block; }
.shine { position: relative; display: inline-block; font-style: normal; }
.shine__text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.05em; }
.shine__spark {
  position: absolute; top: -0.12em; right: -0.42em; width: 0.5em; height: 0.5em; fill: var(--star-deep);
  animation: twinkle 2.8s ease-in-out infinite;
}
.hero .lead { margin-top: 1.4rem; }
.hero__actions { margin-top: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2rem; font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust .i { color: var(--teal); width: 1.1em; height: 1.1em; }

.hero__art { position: relative; width: min(100%, 580px); margin-inline: auto; aspect-ratio: 1; }
.hero__arcs { position: absolute; left: -8%; right: -8%; bottom: -6%; width: 116%; overflow: visible; }
.hero__arcs path { fill: none; stroke-linecap: round; }
.hero__photo { position: absolute; inset: 3% 7% 11% 7%; }
.hero__kid {
  position: absolute; width: clamp(64px, 17%, 108px); aspect-ratio: 1; border-radius: 50%;
  border: 5px solid #fff; box-shadow: var(--shadow-m); object-fit: cover;
  animation: bob 6s ease-in-out infinite;
}
.hero__kid--1 { left: -1%; top: 22%; animation-delay: -1s; }
.hero__kid--2 { right: -2%; top: 6%; animation-delay: -3s; }
.hero__kid--3 { right: 1%; bottom: 16%; animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.hero__badge {
  position: absolute; left: -3%; bottom: 7%;
  display: flex; align-items: center; gap: 12px; max-width: 260px;
  padding: 12px 16px 12px 12px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-l);
}
.hero__badge-icon {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px;
  background: var(--grad-gold);
}
.hero__badge-icon svg { width: 24px; height: 24px; fill: #fff; }
.hero__badge small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-700); }
.hero__badge strong { display: block; font-size: 0.95rem; line-height: 1.3; color: var(--ink); }
.hero__art .twinkle { z-index: 2; }
.sparkle-dot {
  position: fixed; z-index: 40; width: 14px; height: 14px; pointer-events: none; fill: var(--star);
  margin: -7px 0 0 -7px;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
}
@media (max-width: 520px) {
  .hero__badge { max-width: 210px; padding: 10px 12px 10px 10px; }
  .hero__badge strong { font-size: 0.85rem; }
}

/* ---------- facts ---------- */
.facts { position: relative; margin-top: clamp(-60px, -5vw, -30px); z-index: 2; }
.facts__grid { display: grid; gap: 16px; }
.fact {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow-m);
  transition: transform 0.35s var(--ease);
}
.fact:hover { transform: translateY(-4px); }
.fact__icon {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px;
  background: var(--grad); color: #fff;
}
.fact:nth-child(2) .fact__icon { background: var(--grad-gold); color: var(--ink); }
.fact:nth-child(3) .fact__icon { background: linear-gradient(135deg, #e1538b, #f28c28); }
.fact:nth-child(4) .fact__icon { background: linear-gradient(135deg, #7cc242, #19b5a8); }
.fact__icon .i { width: 26px; height: 26px; }
.fact h3 { font-size: 1.15rem; }
.fact p { margin-top: 4px; font-size: 0.95rem; color: var(--muted); }
@media (min-width: 640px) { .facts__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .facts__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- belief split ---------- */
.belief { padding: var(--section) 0; overflow-x: clip; }
.belief__grid { display: grid; gap: clamp(48px, 7vw, 96px); align-items: center; }
.belief__media { position: relative; width: min(100%, 480px); margin-inline: auto; }
.belief__img { border-radius: 260px 260px var(--r-l) var(--r-l); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-l); }
.belief__img img { width: 100%; height: 115%; object-fit: cover; }
.belief__ring { isolation: isolate; position: absolute; right: -8%; top: 6%; width: clamp(120px, 30%, 160px); aspect-ratio: 1; }
.belief__ring-text { width: 100%; height: 100%; animation: slow-spin 22s linear infinite; }
.belief__ring-text text { font-family: var(--f-brand); font-weight: 800; font-size: 8.4px; letter-spacing: 0; fill: var(--ink); }
.belief__ring-star { position: absolute; inset: 27%; fill: var(--star); filter: drop-shadow(0 6px 10px rgba(242, 168, 29, 0.5)); }
.belief__ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow-m); z-index: -1; }
.belief__copy .text-link { margin-top: 2rem; }
@media (min-width: 1024px) { .belief__grid { grid-template-columns: 0.9fr 1.1fr; } }

/* ---------- services orbit (horizontal) ---------- */
.orbit { position: relative; padding: var(--section) 0; background: linear-gradient(180deg, var(--mist), #f6f8fd); overflow: hidden; }
.orbit__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.orbit__head .section-head { margin-bottom: 0; }
.orbit__hint { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--muted); font-size: 0.9rem; }
.orbit__hint .i { color: var(--star-deep); }
.orbit__hint-desk { display: none; }
@media (min-width: 1024px) { .orbit__hint-desk { display: inline; } .orbit__hint-touch { display: none; } }
.orbit__viewport {
  margin-top: clamp(36px, 5vw, 56px); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 12px 0 28px;
}
.orbit__viewport::-webkit-scrollbar { display: none; }
.orbit__track { display: flex; gap: 20px; width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.orbit.is-pinned .orbit__viewport { overflow: visible; scroll-snap-type: none; }
.svc-card { width: min(80vw, 360px); scroll-snap-align: center; flex: none; }
.svc-card > a {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: var(--r-l); background: #fff; overflow: hidden; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-s); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.svc-card > a:hover { transform: translateY(-8px); box-shadow: var(--shadow-l); }
.svc-card figure { aspect-ratio: 4 / 3; overflow: hidden; }
.svc-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.svc-card > a:hover figure img { transform: scale(1.06); }
.svc-card__badge {
  position: absolute; left: 20px; top: calc((min(80vw, 360px)) * 0.75 - 30px);
  display: grid; place-items: center; width: 60px; height: 60px;
}
.svc-card__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--star); filter: drop-shadow(0 6px 10px rgba(27, 37, 89, 0.2)); transition: transform 0.6s var(--ease); }
.svc-card > a:hover .svc-card__badge svg { transform: rotate(72deg); }
.svc-card__badge b { position: relative; font-family: var(--f-display); font-size: 0.95rem; color: var(--ink); margin-top: 3px; }
.svc-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 40px 26px 28px; }
.svc-card__body p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.svc-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--teal-700); }
.svc-card--end > a {
  justify-content: center; gap: 20px; padding: 40px 32px; background: var(--grad-deep); color: #dce8ff; min-height: 100%;
}
.svc-card--end h3 { color: #fff; font-size: 1.9rem; }
.svc-card--end .svc-card__more { color: var(--star); font-size: 1.1rem; }
.svc-card--end svg.svc-card__big { width: 90px; height: 90px; fill: var(--star); animation: slow-spin 18s linear infinite; }

/* ---------- 5-star promise ---------- */
.promise { padding: var(--section) 0; }
.promise__grid { display: grid; gap: 48px; }
.promise__stars { display: flex; gap: 10px; margin-top: 32px; }
.pstar { width: clamp(42px, 5vw, 62px); height: clamp(42px, 5vw, 62px); fill: transparent; stroke: var(--star-deep); stroke-width: 1.2; opacity: 0.55; transition: fill 0.4s, opacity 0.4s, filter 0.4s; }
.pstar.is-lit { fill: var(--star); opacity: 1; filter: drop-shadow(0 6px 14px rgba(242, 168, 29, 0.55)); animation: star-pop 0.7s var(--ease); }
@keyframes star-pop { 0% { transform: scale(0.6) rotate(-72deg); } 60% { transform: scale(1.2) rotate(10deg); } 100% { transform: none; } }
.promise__count { margin-top: 14px; font-weight: 800; color: var(--muted); }
.promise__count b { font-family: var(--f-display); font-size: 1.6rem; color: var(--ink); }
.promise__list { display: grid; gap: 18px; counter-reset: promise; }
.promise__item {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  padding: clamp(22px, 3vw, 34px); border-radius: var(--r-l); background: #fff;
  box-shadow: var(--shadow-s); border: 1px solid var(--line);
  transition: box-shadow 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.promise__item.is-active { box-shadow: var(--shadow-m); border-color: rgba(254, 197, 68, 0.7); }
.promise__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--cream); color: var(--star-deep); }
.promise__icon .i { width: 28px; height: 28px; }
.promise__item h3 { font-size: 1.35rem; }
.promise__item p { margin-top: 6px; color: var(--muted); }
@media (max-width: 1023px) {
  .promise__grid { gap: 0; }
  .promise__aside { display: contents; }
  .promise__stars {
    position: sticky; top: 88px; z-index: 5; width: max-content; margin: 28px auto 6px; padding: 10px 16px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-m);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .pstar { width: 34px; height: 34px; }
  .promise__count { text-align: center; margin-bottom: 28px; }
}
@media (min-width: 1024px) {
  .promise__grid { grid-template-columns: 0.85fr 1.15fr; gap: 80px; }
  .promise__aside { position: sticky; top: 130px; align-self: start; }
}

/* ---------- night sky + constellation ---------- */
.night {
  position: relative; isolation: isolate; overflow: hidden; color: #c9d3f5;
  padding: calc(var(--section) + 30px) 0 var(--section);
  background:
    radial-gradient(70% 50% at 15% 0%, rgba(42, 127, 192, 0.45), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(25, 181, 168, 0.25), transparent 70%),
    linear-gradient(180deg, var(--night-2), var(--night));
}
.night .h2, .night h3 { color: #fff; }
.night .lead { color: #c9d3f5; }
.night__sky { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.night__edge { position: absolute; left: 0; top: -1px; width: 100%; height: clamp(40px, 6vw, 90px); fill: var(--bg); }
.night__foot { margin-top: 56px; text-align: center; }

.constellation { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.constellation__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.constellation__guide { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; }
.constellation__path { fill: none; stroke: var(--star); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(254, 197, 68, 0.7)); }
.constellation__steps { position: relative; display: grid; gap: 40px; }
.cstep { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; }
.cstep__star { position: relative; grid-row: span 2; display: grid; place-items: center; width: 64px; height: 64px; }
.cstep__star svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: rgba(255, 255, 255, 0.12); stroke: rgba(255, 255, 255, 0.45); stroke-width: 0.6;
  transition: fill 0.5s, stroke 0.5s, filter 0.5s, transform 0.8s var(--ease);
}
.cstep__star b { position: relative; margin-top: 4px; font-family: var(--f-display); font-size: 1.1rem; color: #fff; transition: color 0.4s; }
.cstep.is-lit .cstep__star svg { fill: var(--star); stroke: var(--star); filter: drop-shadow(0 0 16px rgba(254, 197, 68, 0.85)); transform: rotate(72deg); }
.cstep.is-lit .cstep__star b { color: var(--ink); }
.cstep h3 { font-size: 1.3rem; align-self: end; }
.cstep p { margin-top: 6px; font-size: 0.98rem; }
@media (min-width: 1024px) {
  .constellation:not(.constellation--vertical) .constellation__steps { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .constellation:not(.constellation--vertical) .cstep { grid-template-columns: 1fr; text-align: left; }
  .constellation:not(.constellation--vertical) .cstep__star { grid-row: auto; margin-top: var(--y, 0); margin-bottom: 20px; width: 72px; height: 72px; }
}

/* ---------- FAQ ---------- */
.faq-section { padding: var(--section) 0; }
.faq-grid { display: grid; gap: 40px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-s);
  transition: box-shadow 0.3s, border-color 0.3s;
  interpolate-size: allow-keywords;
}
.faq details[open] { box-shadow: var(--shadow-m); border-color: rgba(25, 181, 168, 0.4); }
.faq details::details-content { height: 0; overflow: clip; transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px 20px 24px; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--mist); transition: transform 0.6s var(--ease), background 0.3s;
}
.faq__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.faq details[open] .faq__icon { transform: rotate(144deg); background: var(--star); }
.faq details[open] .faq__icon svg { fill: var(--ink); }
.faq__body { padding: 0 24px 22px; color: var(--text); max-width: 68ch; }
.faq-aside {
  position: relative; overflow: hidden; padding: 32px; border-radius: var(--r-l);
  background: linear-gradient(160deg, var(--sky), #fff 70%); border: 1px solid rgba(25, 181, 168, 0.25);
}
.faq-aside h3 { font-size: 1.6rem; }
.faq-aside p { margin: 10px 0 22px; }
.faq-aside .btn-row { flex-direction: column; align-items: stretch; }
.faq-aside__star { position: absolute; right: -40px; bottom: -40px; width: 170px; height: 170px; fill: rgba(254, 197, 68, 0.25); }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 1.5fr 0.8fr; gap: 56px; }
  .faq-aside { position: sticky; top: 130px; }
}

/* ---------- inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(44px, 7vw, 90px)) 0 clamp(70px, 9vw, 120px);
  background:
    radial-gradient(60% 70% at 92% 8%, rgba(42, 127, 192, 0.14), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(254, 197, 68, 0.2), transparent 70%),
    var(--bg);
}
.page-hero__grid { display: grid; gap: 48px; align-items: center; }
.page-hero .lead { margin-top: 1.3rem; }
.page-hero .btn-row { margin-top: 2rem; }
.page-hero__art { position: relative; width: min(100%, 440px); margin-inline: auto; }
.page-hero__art .twinkle { z-index: 2; }
@media (min-width: 1024px) { .page-hero__grid { grid-template-columns: 1.2fr 0.8fr; } }
