/* ============================================================
   Solution page — "What We Do"
   Premium healthcare storytelling slide. Builds on css/style.css.
   Shares the warm visual language of the Problem page, but shifts
   the tone from worry to support, companionship and practical help.
   ============================================================ */
:root {
  /* warm accents (mirrors problem.css so the page is self-contained) */
  --orange: #ef8c43;
  --orange-deep: #d9762e;
  --orange-soft: #fbe0cc;
  --orange-mist: #fff0e2;

  /* channel accents for the four ways we help */
  --blue: #3f7fd0;
  --blue-deep: #2c63ac;
  --blue-soft: #dce9f8;
  --violet: #8268d6;
  --violet-deep: #6a51c0;
  --violet-soft: #e9e3f9;

  --soft: #f6f8fb;
}

/* Soft, hopeful gradient backdrop */
.page {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fb 44%, #eef5fb 100%);
}
.panel {
  background: transparent;
}

.solution {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
  padding-block: 8px 72px;
}

/* active nav state */
.nav__link--active {
  color: var(--teal-deep);
  font-weight: 600;
}

/* ============================================================
   TOP — copy + hero illustration
   ============================================================ */
.sol-hero {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 26px 0 8px;
}

.sol-hero__title {
  margin: 12px 0 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-ink);
  text-wrap: balance;
}
.sol-hero__title .accent {
  color: var(--orange-deep);
}
.sol-hero__lead {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---- the illustrated stage ---- */
.sol-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-3xl);
  background: linear-gradient(160deg, #eaf3f2 0%, #f3eee6 60%, #fdf3e9 100%);
  box-shadow: var(--shadow-card);
}
.sol-stage__art {
  display: block;
  width: 100%;
  height: auto;
}

/* floating glass chips over the stage */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(2, 43, 91, 0.05), var(--shadow-float);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: chip-float 4.6s var(--ease-spring) infinite;
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  width: 30px;
  flex-shrink: 0;
  border-radius: 9px;
}
.chip__icon svg { height: 17px; width: 17px; }
.chip__icon--teal  { background: var(--teal-card); color: var(--teal-deep); }
.chip__icon--orange{ background: var(--orange-soft); color: var(--orange-deep); }
.chip__num {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy-ink);
}
.chip__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.chip--calls { top: 9%; left: 5%; animation-delay: 0ms; }
.chip--time  { bottom: 12%; left: 8%; animation-delay: 0.7s; }
.chip--phone { top: 40%; right: 6%; animation-delay: 1.3s; }

/* small round task chips */
.task-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: chip-float 5.2s var(--ease-spring) infinite;
}
.task-chip__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  width: 38px;
  border-radius: var(--r-full);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(2, 43, 91, 0.05), var(--shadow-float);
  color: var(--teal-deep);
}
.task-chip__dot svg { height: 19px; width: 19px; }
.task-chip__txt {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--navy-ink);
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--r-full);
  padding: 1px 7px;
}
.task-chip--1 { top: 8%;  right: 30%; animation-delay: 0.2s; }
.task-chip--2 { top: 7%;  right: 12%; animation-delay: 0.9s; }
.task-chip--3 { bottom: 10%; right: 30%; animation-delay: 1.5s; }
.task-chip--4 { bottom: 9%;  right: 13%; animation-delay: 0.5s; }
.task-chip__dot--orange { color: var(--orange-deep); }

/* ============================================================
   LEGEND BAR
   ============================================================ */
.legend {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  border-radius: var(--r-full);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(2, 43, 91, 0.05), var(--shadow-float);
  padding: 16px 22px;
}

/* ============================================================
   CHANNEL BADGE  (used in legend + every card)
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-full);
  padding: 6px 13px 6px 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  width: 24px;
  flex-shrink: 0;
  border-radius: var(--r-full);
  color: #fff;
}
.badge__icon svg { height: 14px; width: 14px; }

.badge--call     { background: var(--teal-card);   color: var(--teal-deep); }
.badge--call .badge__icon     { background: var(--teal); }
.badge--booked   { background: var(--orange-soft); color: var(--orange-deep); }
.badge--booked .badge__icon   { background: var(--orange); }
.badge--arranged { background: var(--blue-soft);   color: var(--blue-deep); }
.badge--arranged .badge__icon { background: var(--blue); }
.badge--person   { background: var(--violet-soft); color: var(--violet-deep); }
.badge--person .badge__icon   { background: var(--violet); }

/* legend variant: bigger tap target, transparent pill */
.legend .badge {
  background: transparent;
  font-size: 14px;
  padding: 4px 6px;
}
.legend .badge__icon { height: 30px; width: 30px; }
.legend .badge__icon svg { height: 16px; width: 16px; }

/* ============================================================
   SECTIONS + DIVIDERS
   ============================================================ */
.sol-section { margin-top: 40px; }
.sol-section:first-of-type { margin-top: 34px; }

.sol-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.sol-divider__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  width: 30px;
  flex-shrink: 0;
}
.sol-divider__icon svg { height: 24px; width: 24px; }
.sol-divider__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-ink);
  white-space: nowrap;
}
.sol-divider__rule {
  flex: 1;
  height: 2px;
  border-radius: var(--r-full);
  background: linear-gradient(to right, currentColor, transparent);
  opacity: 0.5;
}
.sol-divider--teal   { color: var(--teal-deep); }
.sol-divider--orange { color: var(--orange-deep); }
.sol-divider--navy   { color: var(--navy); }

/* ============================================================
   CARD GRID + CARDS
   ============================================================ */
.sol-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.sol-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-3xl);
  background: #fff;
  box-shadow: 0 1px 0 rgba(2, 43, 91, 0.05), var(--shadow-float);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.sol-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1px 0 rgba(2, 43, 91, 0.05), var(--shadow-card);
}

/* OVERLAY TILE: the illustration fills .sol-card__art and the caption
   (title + badge + text) is overlaid on a dark scrim at the bottom.
   Swap the <svg> for a real <img> later — same .sol-card__art box. */
.sol-card__art {
  position: relative;
  flex: 1;
  min-height: 252px;
  overflow: hidden;
  background: var(--teal-card);
}
/* only the direct-child illustration fills the tile — not the badge <svg>
   that now lives inside the overlaid caption */
.sol-card__art > svg,
.sol-card__art > img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
/* real photos: bias the crop upward so faces stay above the caption scrim */
.sol-card__art > img { object-position: center 26%; }
/* scrim keeps the white caption legible over any illustration */
.sol-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(8, 22, 45, 0.95) 0%,
    rgba(8, 22, 45, 0.82) 24%,
    rgba(8, 22, 45, 0.34) 50%,
    rgba(8, 22, 45, 0) 74%
  );
}
.sol-card__num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  width: 30px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.94);
  color: var(--teal-deep);
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-float);
}

.sol-card__cap {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 18px 18px 16px;
}
.sol-card__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
}
.sol-card__text {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.sol-card__badges { display: flex; }
.sol-card__cap .badge { box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22); }

/* mini-visual flow strip sits on a light bar beneath the tile */
.mflow {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  background: var(--soft);
  border-top: 1px solid var(--frame-soft);
  padding: 13px 11px;
}
.mflow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 52px;
}
.mflow__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  width: 34px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(2, 43, 91, 0.05);
  color: var(--teal-deep);
}
.mflow__icon svg { height: 18px; width: 18px; }
.mflow__icon--orange { color: var(--orange-deep); }
.mflow__icon--blue   { color: var(--blue-deep); }
.mflow__icon--violet { color: var(--violet-deep); }
.mflow__label {
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  color: var(--navy-ink);
}
.mflow__sep {
  flex-shrink: 0;
  color: var(--hair);
  font-size: 13px;
  align-self: flex-start;
  margin-top: 8px;
}

/* ============================================================
   CLOSING BAND
   ============================================================ */
.closing-band {
  margin-top: 48px;
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: var(--r-3xl);
  background: linear-gradient(135deg, #ffffff 0%, #f6faf9 100%);
  box-shadow: 0 1px 0 rgba(2, 43, 91, 0.05), var(--shadow-card);
}
.closing-band__media {
  position: relative;
  min-height: 220px;
  background: linear-gradient(160deg, #e7f1f0, #fdf3e9);
}
.closing-band__media svg,
.closing-band__media img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.closing-band__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 34px 28px 36px;
}
.closing-band__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy-ink);
  text-wrap: balance;
}
.closing-band__title .accent { color: var(--orange-deep); }
.closing-band__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 54ch;
}
.closing-band__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 560px) {
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) {
  .sol-hero__title { font-size: 38px; }
  .sol-hero__lead { font-size: 15px; }
  .sol-divider__title { font-size: 22px; }
  .closing-band__title { font-size: 28px; }
}

@media (min-width: 1024px) {
  .solution { padding-bottom: 96px; }

  /* copy left, illustration right */
  .sol-hero {
    grid-template-columns: 1fr 1.05fr;
    gap: 44px;
  }
  .sol-hero__title { font-size: 42px; }

  /* Daily Chores + Fun Activities: 3 across.  Wellbeing: 4 across. */
  .sol-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .sol-grid--4 { grid-template-columns: repeat(4, 1fr); }

  .closing-band {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .closing-band__title { font-size: 30px; }
  .closing-band__body { padding: 44px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .chip, .task-chip { animation: none; }
}

/* ============================================================
   ORBIT — all ten services circling one companion
   ============================================================ */
.orbit-section {
  margin-top: 44px;
  border-radius: var(--r-3xl);
  background: radial-gradient(circle at 50% 26%, #ffffff, #eef4fa 80%);
  box-shadow: 0 1px 0 rgba(2, 43, 91, 0.05), var(--shadow-card);
  padding: 42px 20px 34px;
  text-align: center;
  overflow: hidden;
}
.orbit-head {
  max-width: 44rem;
  margin-inline: auto;
}
.orbit-title {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-ink);
  text-wrap: balance;
}
.orbit-title .accent { color: var(--orange-deep); }
.orbit-sub {
  margin: 14px auto 0;
  max-width: 52ch;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* the stage — a square the ring spins inside */
.orbit {
  --radius: 124px;
  position: relative;
  width: 340px;
  height: 340px;
  margin: 22px auto 4px;
}

/* central companion hub */
.orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 132px;
  height: 132px;
  margin: -66px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: var(--r-full);
  background: radial-gradient(circle at 50% 36%, #1c4a7e, var(--navy-deep) 72%);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(45, 140, 140, 0.1),
    0 0 60px -6px rgba(45, 140, 140, 0.5),
    0 24px 50px -18px rgba(2, 43, 91, 0.5);
  animation: orbit-pulse 3.4s var(--ease-out) infinite;
}
@keyframes orbit-pulse {
  0%, 100% {
    box-shadow: 0 0 0 10px rgba(45, 140, 140, 0.1),
      0 0 50px -8px rgba(45, 140, 140, 0.42),
      0 24px 50px -18px rgba(2, 43, 91, 0.5);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(45, 140, 140, 0.14),
      0 0 78px -4px rgba(45, 140, 140, 0.62),
      0 24px 50px -18px rgba(2, 43, 91, 0.5);
  }
}
.orbit__core-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.orbit__core-icon svg { height: 28px; width: 28px; }
.orbit__core-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.orbit__core-sub {
  font-size: 8.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.82;
}

/* the rotating ring (path + spokes + nodes all spin together) */
.orbit__ring {
  position: absolute;
  inset: 0;
  animation: orbit-spin 48s linear infinite;
}
.orbit:hover .orbit__ring,
.orbit:hover .orbit__node-inner {
  animation-play-state: paused;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-rev { to { transform: rotate(-360deg); } }

/* dashed orbit path, exactly on the node radius */
.orbit__path {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(2 * var(--radius));
  height: calc(2 * var(--radius));
  margin: calc(-1 * var(--radius));
  border-radius: var(--r-full);
  border: 2px dashed rgba(239, 140, 67, 0.4);
}
.orbit__spokes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

/* each service node, placed around the circle then kept upright */
.orbit__node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 78px;
  margin: -39px;
  transform: rotate(calc(var(--i) * 36deg)) translateY(calc(-1 * var(--radius)))
    rotate(calc(var(--i) * -36deg));
}
.orbit__node-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: orbit-spin-rev 48s linear infinite;
}
.orbit__tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 48px;
  flex-shrink: 0;
  border-radius: var(--r-full);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(2, 43, 91, 0.05), var(--shadow-float);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.orbit__tile svg { height: 22px; width: 22px; }
.orbit__node:hover .orbit__tile {
  transform: scale(1.14);
  box-shadow: 0 0 0 1px rgba(2, 43, 91, 0.05), var(--shadow-card);
}
.orbit__label {
  max-width: 92px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy-ink);
}
/* tone the tiles by section, echoing the dividers */
.orbit__node[data-tone="teal"] .orbit__tile {
  background: linear-gradient(135deg, #ffffff, var(--teal-card));
  color: var(--teal-deep);
}
.orbit__node[data-tone="orange"] .orbit__tile {
  background: linear-gradient(135deg, #ffffff, var(--orange-soft));
  color: var(--orange-deep);
}
.orbit__node[data-tone="navy"] .orbit__tile {
  background: linear-gradient(135deg, #ffffff, var(--blue-soft));
  color: var(--blue-deep);
}

@media (min-width: 640px) {
  .orbit-title { font-size: 28px; }
  .orbit-sub { font-size: 14.5px; }
  .orbit {
    --radius: 178px;
    width: 470px;
    height: 470px;
  }
  .orbit__node { width: 86px; height: 86px; margin: -43px; }
  .orbit__label { font-size: 10.5px; max-width: 100px; }
}
@media (min-width: 1024px) {
  .orbit-title { font-size: 30px; }
  .orbit {
    --radius: 206px;
    width: 540px;
    height: 540px;
  }
  .orbit__core { width: 150px; height: 150px; margin: -75px; }
  .orbit__core-icon svg { height: 32px; width: 32px; }
  .orbit__core-title { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit__ring,
  .orbit__node-inner,
  .orbit__core { animation: none; }
}

/* ============================================================
   MARQUEE — services glide past in two looping rows
   ============================================================ */
.marquee-section { margin-top: 40px; }

.marquee {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 22px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right, transparent, #000 6%, #000 94%, transparent
  );
  mask-image: linear-gradient(
    to right, transparent, #000 6%, #000 94%, transparent
  );
}
.marquee__row {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee__row--left { animation: marquee-left 46s linear infinite; }
.marquee__row--right { animation: marquee-right 54s linear infinite; }
.marquee__row:hover { animation-play-state: paused; }
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* simple tiles in motion: illustration + title + badge only */
.marquee .sol-card {
  flex: 0 0 300px;
  width: 300px;
  margin-right: 20px;
}
.marquee .sol-card__art { min-height: 220px; }
.marquee .sol-card__text,
.marquee .mflow { display: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee__row--left,
  .marquee__row--right { animation: none; }
  .marquee { overflow-x: auto; }
}
