/* ==========================================================================
   TALL BIRCH — HERO ANIMATION + PROGRAMS SECTION (wave 2026-09-10, Agent A)
   Owner: Agent A (hero + Smarty-Programs-style section ONLY)
   RULES: no font declarations (Carlito type system is frozen elsewhere).
          Namespace: .tb-hero-* , .tb-prog-*
   ========================================================================== */

/* --------------------------------------------------------------------------
   TASK 1 — HERO ENTRANCE (staggered fade-up) + KEN-BURNS BACKGROUND ZOOM
   All motion is gated behind prefers-reduced-motion: no-preference, so
   reduced-motion users get a fully static, legible hero.
   -------------------------------------------------------------------------- */
@keyframes tbHeroUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tbHeroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

@media (prefers-reduced-motion: no-preference) {
  .tb-hero-anim--badge,
  .tb-hero-anim--title,
  .tb-hero-anim--text,
  .tb-hero-anim--btn {
    /* Template RevSlider: y:50px -> y:0, e:power2.inOut (~cubic-bezier below) */
    animation: tbHeroUp 0.95s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
  }
  /* badge -> title -> text -> CTA, ~0.6s apart (mirrors st:2300/3000/3700) */
  .tb-hero-anim--badge { animation-delay: 0s; }
  .tb-hero-anim--title { animation-delay: 0.6s; }
  .tb-hero-anim--text  { animation-delay: 1.2s; }
  .tb-hero-anim--btn   { animation-delay: 1.8s; }

  /* Ken-Burns lives on a dedicated background layer (the slide's ::before),
     NOT on the slide box itself, so the copy never scales and the fixed
     540px hero band geometry is untouched (transform: scale only). */
  .stm-hero__slide.tb-hero-zoom::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    transform-origin: center;
    animation: tbHeroZoom 12s ease-out forwards;
    will-change: transform;
  }
}

/* --------------------------------------------------------------------------
   TASK 2 — "OUR PROGRAMS" (reference Smarty Programs idiom)
   White .tb-sec band; content contained by a Bootstrap 3 .container.
   -------------------------------------------------------------------------- */
.tb-programs-row { margin-top: 6px; }
.tb-prog-box { margin-bottom: 6px; }
.stm-icon-box_style-4 .tb-prog-ic { font-size: 62px; }
/* positional reference palette: green / blue / orange / green */
div.stm-icon-box__ic-container.tb-prog-ic--1 { color: #95cc47; }
div.stm-icon-box__ic-container.tb-prog-ic--2 { color: #62abf5; }
div.stm-icon-box__ic-container.tb-prog-ic--3 { color: #ffaf40; }
div.stm-icon-box__ic-container.tb-prog-ic--4 { color: #95cc47; }

/* --------------------------------------------------------------------------
   TASK 3 — PROGRAM CARDS SCROLL-IN (fade-up stagger)
   Cards are visible by default; JS only ADDS .tb-prog-anim (offset start) and
   .tb-prog-in (settled) once the section enters the viewport. With JS off or
   reduced motion, neither class is applied and the cards simply show.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .tb-prog-item.tb-prog-anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  }
  .tb-prog-item.tb-prog-anim.tb-prog-in {
    opacity: 1;
    transform: translateY(0);
  }
  .tb-prog-anim:nth-child(1) { transition-delay: 0s; }
  .tb-prog-anim:nth-child(2) { transition-delay: 0.12s; }
  .tb-prog-anim:nth-child(3) { transition-delay: 0.24s; }
  .tb-prog-anim:nth-child(4) { transition-delay: 0.36s; }
}
