/* Little Tyvy Montessori - "Begin Your Child's Montessori Journey" (How to Get Started) home section.
   Reuses .ty-sec/.ty-head/.ty-btn tokens from home.css and pages.css, which must load first. */

.ty-getstarted { background: var(--cream); padding: 72px 0 100px; }
.ty-getstarted .ty-head { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

.ty-gsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 52px; counter-reset: ty-gstep; }

.ty-page .ty-gstep {
  position: relative;
  overflow: hidden;
  padding: 34px 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  counter-increment: ty-gstep;
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1),
              box-shadow .3s ease, border-color .3s ease;
}

/* Coloured top border that draws in left-to-right as the card reveals. */
.ty-page .ty-gstep::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .9s cubic-bezier(.22,.61,.36,1);
  transition-delay: .25s;
}
.ty-page .ty-gstep.is-in::after { transform: scaleX(1); }

/* The step numeral (01 / 02 / 03), kept separate from ::after so the two animations don't collide. */
.ty-page .ty-gstep .ty-gstep__num {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  color: var(--green);
  margin-bottom: 14px;
  transition: color .3s ease;
}
.ty-page .ty-gstep h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 700; color: var(--ink); }
.ty-page .ty-gstep p { margin-top: 10px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

/* A gentle lift on hover/focus: shadow and border react instantly, the card itself doesn't
   re-trigger the slow reveal transform, so it stays snappy. */
.ty-page .ty-gstep:hover,
.ty-page .ty-gstep:focus-within {
  box-shadow: 0 18px 42px rgba(70, 60, 40, .10);
  border-color: var(--line-2);
}
.ty-page .ty-gstep:hover .ty-gstep__num,
.ty-page .ty-gstep:focus-within .ty-gstep__num { color: var(--gold); }

.ty-getstarted__actions { display: flex; justify-content: center; gap: 14px; margin-top: 44px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .ty-gsteps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ty-getstarted { padding: 48px 0 68px; }
  .ty-getstarted__actions { flex-direction: column; align-items: stretch; }
  .ty-getstarted__actions .ty-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ty-page .ty-gstep::after { transition: none; transform: scaleX(1); }
}
