/* ==========================================================================
   CLASSES PAGE - STYLES
   ========================================================================== */

/* ---- HERO ---- */
.cls-hero {
  position: relative;
  background: linear-gradient(135deg, #FFF9EE 0%, #E1F1F6 50%, #FFF9EE 100%);
  padding: 160px 0 110px;
  text-align: center;
  overflow: hidden;
}

.cls-hero-inner {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeInDown 0.7s ease forwards 0.2s;
}
.breadcrumb-trail a { color: var(--color-primary); text-decoration: none; }
.breadcrumb-trail i { font-size: 10px; color: var(--color-accent-teal); }

.cls-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.1;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.35s;
}

.cls-hero-sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.55s;
}

.cls-float {
  position: absolute;
  z-index: 1;
  opacity: 0.55;
}
.cls-float-1 { top: 18%; left: 7%; animation: floatA 5s ease-in-out infinite; }
.cls-float-2 { top: 28%; right: 9%; animation: floatB 6s ease-in-out infinite 0.4s; }
.cls-float-3 { bottom: 28%; left: 14%; animation: floatA 4.5s ease-in-out infinite 0.8s; }
.cls-float-4 { bottom: 20%; right: 12%; animation: floatB 5s ease-in-out infinite 1.2s; }

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-6deg); }
}

.cls-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}
.cls-hero-wave svg { display: block; width: 100%; }


/* ---- SHARED ---- */
.cls-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.section-label i { font-size: 12px; }

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.accent { color: var(--color-primary); position: relative; }
.accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  opacity: 0.3;
}
.section-subtext {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 50px; }


/* ---- TIMELINE ---- */
.cls-timeline-section {
  padding: 100px 0;
  background: #fff;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(43, 78, 91, 0.08);
  border-radius: 4px;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-line-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent-teal));
  border-radius: 4px;
  transition: height 0.1s linear;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  width: 50%;
  z-index: 1;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-left {
  padding-right: 50px;
  justify-content: flex-end;
  text-align: right;
}

.timeline-right {
  margin-left: 50%;
  padding-left: 50px;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dot-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-left .timeline-dot {
  right: -24px;
}

.timeline-right .timeline-dot {
  left: -24px;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

.timeline-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(43, 78, 91, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.timeline-item:hover .timeline-card {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(43, 78, 91, 0.13);
}

.tc-ribbon {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.tc-age {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-left .tc-age { justify-content: flex-end; }

.tc-age i { color: var(--color-primary); font-size: 12px; }

.tc-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.tc-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-teal);
  letter-spacing: 0.3px;
}


/* ---- INFANT PROGRAM ---- */
.cls-infant {
  padding: 100px 0;
  background: var(--color-bg-hero);
}

.infant-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.infant-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.infant-visual-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(43, 78, 91, 0.1);
  position: relative;
  z-index: 2;
}

.ivc-icon-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ivc-center-icon {
  position: absolute;
  font-size: 38px;
  color: var(--color-primary);
}

.ivc-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 10px;
}

.ivc-age-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 20px;
}

/* Stat bubbles */
.stat-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 30px;
  padding: 10px 18px;
  box-shadow: 0 6px 20px rgba(43, 78, 91, 0.1);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-dark);
  z-index: 3;
  white-space: nowrap;
}

.stat-bubble i {
  font-size: 16px;
  color: var(--color-primary);
}

.sb-1 { top: 10%; right: 0; animation: bubbleFloat 4s ease-in-out infinite; }
.sb-2 { bottom: 20%; left: -10px; animation: bubbleFloat 5s ease-in-out infinite 1s; }
.sb-3 { bottom: 5%; right: 5%; animation: bubbleFloat 4.5s ease-in-out infinite 2s; }

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Infant Content */
.infant-lead {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-dark);
  line-height: 1.75;
  margin-bottom: 28px;
}

.infant-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.infant-feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.infant-feat:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(43, 78, 91, 0.1);
}

.feat-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: transform 0.3s ease;
}

.infant-feat:hover .feat-icon {
  transform: rotate(10deg) scale(1.1);
}

.feat-text h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.feat-text p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ---- AGE PROGRESS BAR ---- */
.cls-progress {
  padding: 80px 0 100px;
  background: #fff;
}

.progress-track {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.progress-bar-bg {
  height: 8px;
  background: rgba(43, 78, 91, 0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-teal), #7B68EE);
  border-radius: 8px;
  transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.progress-stops {
  display: flex;
  justify-content: space-between;
}

.progress-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.ps-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(43, 78, 91, 0.12);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(43, 78, 91, 0.08);
  transition: all 0.5s ease;
  position: relative;
  top: -8px;
}

.progress-stop.active .ps-dot {
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(242, 140, 83, 0.2);
  transform: scale(1.3);
}

.ps-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ps-name {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-dark);
  opacity: 0.5;
  transition: opacity 0.5s ease, color 0.5s ease;
}

.progress-stop.active .ps-name {
  opacity: 1;
  color: var(--color-primary);
}


/* ---- CTA ---- */
.cls-cta {
  padding: 80px 0;
  background: var(--color-bg-hero);
}

.cta-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-secondary), #1e3842);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
}

.cta-doodle {
  position: absolute;
  opacity: 0.5;
  animation: floatA 5s ease-in-out infinite;
}
.cd-1 { top: 20px; left: 30px; }
.cd-2 { bottom: 20px; right: 40px; animation-delay: 1s; }

.cta-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-card p {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 2;
}

.btn-cta {
  font-size: 16px;
  padding: 14px 36px;
  position: relative;
  z-index: 2;
}


/* ---- FOOTER ---- */
.cls-footer {
  background: var(--color-secondary);
  padding: 50px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-brand .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-tagline { font-family: var(--font-body); font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-primary); }
.footer-copy { font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 8px; }


/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.anim-el { opacity: 0; }

.anim-el.is-visible[data-anim="fadeUp"] {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}
.anim-el.is-visible[data-anim="slideLeft"] {
  animation: slideInLeft 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}
.anim-el.is-visible[data-anim="slideRight"] {
  animation: slideInRight 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}
.anim-el.is-visible[data-anim="scaleIn"] {
  animation: scaleIn 0.6s ease forwards;
  animation-delay: var(--delay, 0s);
}


/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .timeline-item {
    width: 100%;
    padding-left: 70px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  .timeline-right { margin-left: 0; }
  .timeline-line { left: 24px; }
  .timeline-left .timeline-dot,
  .timeline-right .timeline-dot {
    left: 0 !important;
    right: auto !important;
  }
  .timeline-left .tc-age { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .cls-hero { padding: 140px 0 80px; }
  .infant-grid { grid-template-columns: 1fr; gap: 40px; }
  .infant-visual { min-height: 280px; }
  .stat-bubble { display: none; }
  .progress-stops { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .progress-bar-bg { display: none; }
  .cls-float { display: none; }
  .cta-card { padding: 40px 24px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
