/* ==========================================================================
   Wonders Kids — Services page
   1. Jump menu   2. School Patron app (phone + program cards)   3. Books band
   4. Training rows   5. Franchise card   6. Research centre + admissions
   7. Responsive
   Loaded after style.css, header.css and pages.css (banner).
   ========================================================================== */

/* anchors land below the sticky header + jump menu */
#ser-app, #ser-book, #ser-ttp, #ser-ti, #ser-fo, #research { scroll-margin-top: 150px; }

.badge--light { background: rgba(255,255,255,.18); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; border-radius: 50px; }
.btn--ghost-light:hover { background: #fff; color: var(--heading); border-color: #fff; }

/* 1. JUMP MENU ============================================================= */
.svc-jump { position: sticky; top: var(--header-h-scrolled, 72px); z-index: 50; margin-top: -26px; pointer-events: none; }
.svc-jump .container { display: flex; justify-content: center; }
.svc-jump__list {
  pointer-events: auto; display: flex; gap: 4px; padding: 6px; border-radius: 50px; max-width: 100%; overflow-x: auto;
  background: rgba(255,255,255,.92); border: 1px solid #ECECF3; box-shadow: 0 14px 34px -18px rgba(22, 20, 57, .35);
  scrollbar-width: none;
}
@supports (backdrop-filter: blur(10px)) { .svc-jump__list { background: rgba(255,255,255,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.svc-jump__list::-webkit-scrollbar { display: none; }
.svc-jump__link {
  display: block; padding: 9px 16px; border-radius: 50px; white-space: nowrap;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--heading);
  transition: background .25s, color .25s;
}
.svc-jump__link:hover { color: var(--primary); background: var(--primary-soft); }
.svc-jump__link.is-active { background: var(--primary); color: #fff; }

/* 2. SCHOOL PATRON APP ===================================================== */
.svc-app { padding-top: 90px; }
.svc-app__star { width: 54px; top: 70px; left: max(20px, calc(50% - 640px)); animation: float 7s ease-in-out infinite; }
.svc-app__zigzag { width: 90px; top: 420px; right: max(20px, calc(50% - 650px)); }
.svc-app__head { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; margin-bottom: 60px; }
.svc-app__intro .section-title { font-size: 42px; max-width: 520px; }
.svc-app__intro .section-text { max-width: 480px; font-size: 17px; margin-bottom: 24px; }
.svc-app__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-app__chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 50px;
  background: #fff; border: 1px solid #ECECF3; font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--heading);
}
.svc-app__chips .wk-icon { width: 17px; height: 17px; color: var(--primary); }

/* phone mock-up */
.phone-mock { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone-mock::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, #FFE29A, #FFC224 60%); box-shadow: 0 0 0 26px #FFF6DC;
}
.phone-mock__device {
  position: relative; width: 250px; padding: 12px; border-radius: 38px; background: var(--heading);
  box-shadow: 0 40px 70px -30px rgba(22, 20, 57, .7); transform: rotate(-6deg); animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat { 50% { transform: rotate(-6deg) translateY(-12px); } }
.phone-mock__notch { position: absolute; top: 12px; left: 50%; width: 90px; height: 20px; margin-left: -45px; border-radius: 0 0 14px 14px; background: var(--heading); z-index: 1; }
.phone-mock__screen { border-radius: 28px; background: #F7F7FC; padding: 38px 16px 18px; min-height: 420px; }
.phone-mock__hello { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--heading); }
.phone-mock__sub { font-size: 12px; color: var(--body); margin-bottom: 14px; }
.phone-mock__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone-mock__tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 16px; }
.phone-mock__tile .wk-icon { width: 22px; height: 22px; }
.phone-mock__tile small { font-family: var(--font-heading); font-weight: 700; font-size: 12px; color: var(--heading); }
.phone-mock__bar { display: block; height: 8px; margin-top: 16px; border-radius: 8px; background: #E6E6F0; overflow: hidden; }
.phone-mock__bar span { display: block; width: 68%; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--primary), #A855F7); }
.phone-mock__badge {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 50px; background: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--heading); box-shadow: 0 16px 30px -14px rgba(22, 20, 57, .45);
  animation: float 6s ease-in-out infinite;
}
.phone-mock__badge .wk-icon { width: 18px; height: 18px; color: var(--primary); }
.phone-mock__badge--1 { top: 150px; left: calc(50% - 270px); }
.phone-mock__badge--2 { bottom: 70px; right: calc(50% - 250px); animation-delay: -3s; }
.phone-mock__badge--2 .wk-icon { color: #E0479A; }

/* program cards */
.program-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.program-card {
  --tone: var(--c-purple);
  position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; border-radius: 26px; background: #fff; overflow: hidden;
  border: 1px solid #EEEEF4; box-shadow: 0 18px 44px -30px rgba(22, 20, 57, .45);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.program-card--yellow { --tone: #E8A93A; } .program-card--green { --tone: var(--c-green); }
.program-card--pink { --tone: #D9579F; } .program-card--blue { --tone: #1C9BD1; }
.program-card::before { /* colour wash that grows on hover */
  content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%;
  background: var(--tone); opacity: .08; transition: transform .6s var(--ease), opacity .4s;
}
.program-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: 0 30px 60px -30px rgba(87, 81, 225, .5); }
.program-card:hover::before { transform: scale(2.4); opacity: .1; }
.program-card__num { position: absolute; top: 22px; right: 26px; font-family: var(--font-heading); font-weight: 800; font-size: 40px; line-height: 1; color: var(--tone); opacity: .18; }
.program-card__icon { position: relative; width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 20px; transition: transform .45s var(--ease); }
.program-card__icon .wk-icon { width: 30px; height: 30px; }
.program-card:hover .program-card__icon { transform: rotate(-10deg) scale(1.08); }
.program-card__title { position: relative; font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.program-card__text { position: relative; font-size: 15.5px; line-height: 1.65; margin-bottom: 22px; }
.program-card__more {
  position: relative; margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--tone);
}
.program-card__more .wk-icon { width: 17px; height: 17px; transition: transform .25s; }
.program-card:hover .program-card__more .wk-icon { transform: translateX(5px); }

/* 3. BOOKS BAND ============================================================ */
.svc-books { padding: 10px 0 30px; }
.books-band {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 200px 1fr auto; gap: 40px; align-items: center;
  padding: 44px 50px; border-radius: 32px; color: #fff;
  background: linear-gradient(120deg, #E0479A 0%, #A855F7 55%, #5751E1 100%);
  box-shadow: 0 30px 60px -30px rgba(168, 85, 247, .7);
}
.books-band__swirl { position: absolute; right: -60px; top: -40px; width: 520px; color: rgba(255,255,255,.14); pointer-events: none; }
.books-band__stack { position: relative; height: 150px; }
.book { position: absolute; width: 96px; height: 128px; border-radius: 8px 16px 16px 8px; box-shadow: 0 18px 30px -12px rgba(0,0,0,.35); }
.book::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 4px; background: rgba(0,0,0,.12); }
.book--3 { left: 0; top: 18px; background: #86C04C; transform: rotate(-14deg); }
.book--2 { left: 46px; top: 6px; background: #1C9BD1; transform: rotate(8deg); }
.book--1 { left: 22px; top: 12px; z-index: 1; background: var(--yellow); color: var(--heading); display: grid; place-items: center; transform: rotate(-3deg); animation: float 6s ease-in-out infinite; }
.book--1 .wk-icon { width: 38px; height: 38px; }
.books-band__content { position: relative; }
.books-band__title { color: #fff; font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 10px; }
.books-band__text { color: #F5EEFF; font-size: 16.5px; max-width: 560px; }
.books-band__btn { position: relative; height: 54px; padding: 0 30px; font-size: 16px; }

/* 4. TRAINING ROWS ========================================================= */
.svc-train { padding-top: 90px; overflow: hidden; }
.train-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.train-row + .train-row { margin-top: 110px; }
.train-row--flip .train-row__media { order: 2; }
.train-row__media { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.train-row__img {
  aspect-ratio: 5 / 4.2; overflow: hidden; border-radius: 40% 46% 38% 44% / 40% 44% 46% 40%;
  box-shadow: 0 30px 60px -30px rgba(22, 20, 57, .45);
}
.train-row--flip .train-row__img { border-radius: 46% 38% 44% 40% / 44% 40% 40% 46%; }
.train-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.train-row__media:hover .train-row__img img { transform: scale(1.06); }
.train-row__float {
  position: absolute; bottom: 24px; right: 10px; width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center;
  border: 6px solid #fff; box-shadow: 0 16px 30px -12px rgba(22, 20, 57, .4); animation: float 6s ease-in-out infinite;
}
.train-row--flip .train-row__float { right: auto; left: 10px; }
.train-row__float .wk-icon { width: 36px; height: 36px; }
.train-row__dots {
  position: absolute; top: -18px; left: -18px; width: 90px; height: 90px; z-index: -1;
  background: radial-gradient(#C9C7F2 2px, transparent 2.5px) 0 0 / 16px 16px;
}
.train-row--flip .train-row__dots { left: auto; right: -18px; }
.train-row__content .section-title { font-size: 38px; }
.train-row__content .section-text { font-size: 17px; margin-bottom: 26px; max-width: 520px; }
.train-row__content .check-list { margin-bottom: 34px; }

/* 5. FRANCHISE ============================================================= */
.svc-franchise { padding: 20px 0 30px; }
.franchise-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center;
  padding: 60px; border-radius: 34px; color: #fff; background: var(--navy);
}
.franchise-card::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.4px) 0 0 / 18px 18px;
}
.franchise-card::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -200px; border-radius: 50%;
  border: 56px solid var(--primary); opacity: .55; pointer-events: none;
}
.franchise-card__swirl { position: absolute; left: -80px; top: -60px; width: 520px; color: rgba(255,255,255,.08); pointer-events: none; }
.franchise-card__content { position: relative; z-index: 1; }
.franchise-card__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--yellow); color: var(--heading); margin-bottom: 20px; box-shadow: 5px 6px 0 rgba(255,255,255,.12); }
.franchise-card__icon .wk-icon { width: 30px; height: 30px; }
.franchise-card__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 10px; }
.franchise-card__title { color: #fff; font-size: 38px; font-weight: 700; line-height: 1.18; letter-spacing: -.02em; margin-bottom: 16px; }
.franchise-card__text { color: #C9CBE6; font-size: 17px; line-height: 1.75; margin-bottom: 30px; max-width: 520px; }
.franchise-card .btn--yellow { height: 54px; padding: 0 30px; }
.franchise-card__list { position: relative; z-index: 1; display: grid; gap: 12px; }
.franchise-card__list li {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 18px;
  background: #15134A; border: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-heading); font-weight: 600; font-size: 16px;
  transition: background .25s, transform .3s var(--ease);
}
.franchise-card__list li:hover { background: #1E1B5C; transform: translateX(6px); }
.franchise-card__list li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); flex-shrink: 0; }
.franchise-card__list li:nth-child(2) span { background: #E0479A; }
.franchise-card__list li:nth-child(3) span { background: #1C9BD1; }
.franchise-card__list li:nth-child(4) span { background: #6FB33A; }
.franchise-card__list li:nth-child(5) span { background: #E8A93A; }
.franchise-card__list .wk-icon { width: 16px; height: 16px; stroke-width: 3; }

/* 6. RESEARCH CENTRE ======================================================= */
.svc-research { padding-top: 110px; }
.svc-research__flower { width: 58px; top: 80px; right: max(20px, calc(50% - 620px)); animation: spin 22s linear infinite; }
.svc-research .section-head { max-width: 760px; }
.research-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; align-items: stretch; }
.research-side { display: grid; gap: 26px; }
.research-card {
  position: relative; padding: 32px; border-radius: 26px; background: #fff;
  border: 1px solid #EEEEF4; box-shadow: 0 18px 44px -30px rgba(22, 20, 57, .45);
}
.research-card h3 { font-size: 22px; font-weight: 700; }
.research-card p { font-size: 16px; line-height: 1.7; }
.research-card strong { color: var(--heading); }
.research-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.research-card__icon { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; flex-shrink: 0; }
.research-card__icon .wk-icon { width: 26px; height: 26px; }
.research-card--result .research-card__icon, .research-card--offer .research-card__icon { margin-bottom: 16px; }
.research-card--result h3, .research-card--offer h3 { margin-bottom: 8px; }
.research-card--how { background: linear-gradient(180deg, #fff 0%, #FBFAFF 100%); }
.research-card__lead { margin-bottom: 18px; }
.research-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.research-step {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px;
  background: #fff; border: 1px solid #ECECF3; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.research-step:hover { border-color: var(--primary); transform: translateX(6px); box-shadow: 0 14px 30px -20px rgba(87, 81, 225, .6); }
.research-step__num { font-family: var(--font-heading); font-weight: 800; font-size: 14px; color: #B5B3D6; width: 16px; }
.research-step__icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.research-step__icon .wk-icon { width: 21px; height: 21px; }
.research-step__title { flex: 1; font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--heading); }
.research-step__tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #EAF6E0; color: #4E9A21; flex-shrink: 0; }
.research-step__tick .wk-icon { width: 14px; height: 14px; stroke-width: 3; }
.research-card__note {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: 16px; background: #FFF8E5; color: #5B4A1A;
  font-size: 15px !important;
}
.research-card__note .wk-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: #C98A00; stroke-width: 3; }

.admissions {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 40px; padding: 30px 36px 30px 76px; border-radius: 26px; background: var(--grad-brand, var(--primary)); color: #fff;
  box-shadow: 0 24px 50px -26px rgba(87, 81, 225, .8);
}
.admissions__pulse { position: absolute; left: 32px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--yellow); }
.admissions__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }
.admissions__eyebrow { font-family: var(--font-heading); font-weight: 800; font-size: 24px; color: var(--yellow); line-height: 1.2; }
.admissions__title { color: #E5E3FF; font-size: 16.5px; }
.admissions__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.admissions__actions .btn { height: 52px; padding: 0 24px; }
.admissions__actions .btn .wk-icon { width: 18px; height: 18px; }

/* 7. RESPONSIVE ============================================================ */
@media (max-width: 1199px) {
  .svc-app__intro .section-title { font-size: 36px; }
  .program-grid { gap: 20px; }
  .books-band { grid-template-columns: 170px 1fr; }
  .books-band__btn { grid-column: 2; justify-self: start; }
  .franchise-card { padding: 50px 44px; }
}
@media (max-width: 991px) {
  .svc-jump { margin-top: -22px; }
  .svc-jump .container { justify-content: flex-start; }
  .svc-app__head { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .svc-app__intro .section-title, .svc-app__intro .section-text { margin-inline: auto; }
  .svc-app__chips { justify-content: center; }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .train-row, .train-row--flip { grid-template-columns: 1fr; gap: 44px; }
  .train-row--flip .train-row__media { order: 0; }
  .train-row + .train-row { margin-top: 80px; }
  .franchise-card { grid-template-columns: 1fr; gap: 34px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  #ser-app, #ser-book, #ser-ttp, #ser-ti, #ser-fo, #research { scroll-margin-top: 130px; }
  .svc-jump__link { padding: 8px 13px; font-size: 13px; }
  .svc-app { padding-top: 70px; }
  .svc-app__intro .section-title { font-size: 30px; }
  .svc-app__zigzag, .svc-app__star { display: none; }
  .phone-mock::before { width: 280px; height: 280px; box-shadow: 0 0 0 18px #FFF6DC; }
  .phone-mock__device { width: 220px; }
  .phone-mock__screen { min-height: 360px; }
  .phone-mock__badge { display: none; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card { padding: 26px 22px; }
  .books-band { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; gap: 24px; border-radius: 26px; }
  .books-band__stack { width: 150px; height: 140px; margin: 0 auto; }
  .books-band__title { font-size: 26px; }
  .books-band__btn { grid-column: auto; justify-self: center; }
  .svc-train { padding-top: 70px; }
  .train-row__content .section-title { font-size: 30px; }
  .train-row__float { width: 68px; height: 68px; border-radius: 20px; }
  .franchise-card { padding: 38px 22px; border-radius: 26px; }
  .franchise-card__title { font-size: 28px; }
  .svc-research { padding-top: 80px; }
  .research-side { grid-template-columns: 1fr; }
  .research-card { padding: 24px 20px; }
  .research-step__num { display: none; }
  .admissions { padding: 64px 22px 26px; text-align: center; justify-content: center; }
  .admissions__pulse { left: 50%; top: 32px; margin: 0 0 0 -9px; }
  .admissions__actions { justify-content: center; width: 100%; }
  .admissions__actions .btn { flex: 1 1 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-mock__device, .admissions__pulse::after { animation: none; }
}