//* ===============================
   RWC KIDS PAGE (Fun, Colorful + Animated)
   =============================== */

/* Ensure template applies correctly */
body.page-template-page-rwc-kids {
  font-family: 'Poppins', sans-serif;
  color: #111;
  background: #fff;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ===============================
   HERO SECTION
   =============================== */
.rwc-kids-hero {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 85vh;
  background: linear-gradient(135deg, #ff8b3d, #ffda4a, #3bc8b4, #4a90e2, #a569ff);
  background-size: 400% 400%;
  animation: rainbowShift 15s ease infinite;
  overflow: hidden;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 2;
}

/* Animate the gradient background */
@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animated RWC KIDS Text */
.rwc-kids-logo {
  font-size: 14rem;
  font-weight: 900;
  letter-spacing: 8px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Rainbow-colored letters */
.rwc-kids-logo span:nth-child(1) { color: #ff8b3d; }  /* R */
.rwc-kids-logo span:nth-child(2) { color: #ffda4a; }  /* W */
.rwc-kids-logo span:nth-child(3) { color: #3bc8b4; }  /* C */
.rwc-kids-logo span:nth-child(4) { color: #4a90e2; }  /* K */
.rwc-kids-logo span:nth-child(5) { color: #ff6fa5; }  /* I */
.rwc-kids-logo span:nth-child(6) { color: #60c657; }  /* D */
.rwc-kids-logo span:nth-child(7) { color: #a569ff; }  /* S */

/* Each letter hops individually */
.rwc-kids-logo span {
  display: inline-block;
  animation: letterHop 1.8s ease-in-out infinite;
}

/* Hop motion */
@keyframes letterHop {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-25px); }
  60% { transform: translateY(-10px); }
}

/* Stagger animation timing for letters */
.rwc-kids-logo span:nth-child(1) { animation-delay: 0s; }
.rwc-kids-logo span:nth-child(2) { animation-delay: 0.1s; }
.rwc-kids-logo span:nth-child(3) { animation-delay: 0.2s; }
.rwc-kids-logo span:nth-child(4) { animation-delay: 0.3s; }
.rwc-kids-logo span:nth-child(5) { animation-delay: 0.4s; }
.rwc-kids-logo span:nth-child(6) { animation-delay: 0.5s; }
.rwc-kids-logo span:nth-child(7) { animation-delay: 0.6s; }

/* Responsiveness */
@media (min-width: 1600px) {
  .rwc-kids-logo { font-size: 18rem; }
}

@media (max-width: 992px) {
  .rwc-kids-logo { font-size: 9rem; }
}

@media (max-width: 768px) {
  .rwc-kids-hero {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    margin-top: 80px; /* prevents hiding behind sticky nav */
  }
  .rwc-kids-logo {
    font-size: 5rem;
    line-height: 1.1;
  }
}

@media (max-width: 480px) {
  .rwc-kids-logo {
    font-size: 3.8rem;
    letter-spacing: 3px;
  }
}

/* ===============================
   INTRO SECTION
   =============================== */
.rwc-kids-intro {
  padding: 80px 20px;
  text-align: center;
  background: #fff;
}

.rwc-kids-intro p {
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===============================
   OUR VALUES
   =============================== */
.rwc-kids-values {
  padding: 100px 20px;
  text-align: center;
  background: #fefefe;
}

.rwc-kids-values h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-transform: uppercase;
  color: #111;
  letter-spacing: 1px;
}

.rwc-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-content: center;
}

.value-box {
  padding: 40px 25px;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: softFloat 5s ease-in-out infinite;
}

.value-box h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.value-box p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Soft floating motion */
@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.value-box:hover {
  transform: scale(1.05);
  animation: bounce 1s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* Color Themes */
.value-box.orange { background: #ff8b3d; }
.value-box.teal { background: #3bc8b4; }
.value-box.yellow { background: #f8d34a; color: #111; }
.value-box.green { background: #60c657; }
.value-box.purple { background: #a569ff; }

/* ===============================
   WHO WE SERVE
   =============================== */
.rwc-kids-serve {
  padding: 100px 20px;
  text-align: center;
  background: #fff;
}

.rwc-kids-serve h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-transform: uppercase;
  color: #111;
}

.rwc-serve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.serve-box {
  border-radius: 20px;
  padding: 50px 30px;
  color: #fff;
  font-weight: 500;
  animation: softFloat 6s ease-in-out infinite;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.serve-box h3 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.serve-box.blue { background: #4a90e2; }
.serve-box.pink { background: #ff6fa5; }

.serve-box:hover {
  transform: scale(1.05);
  animation: glow 1.2s ease-in-out infinite;
}

@keyframes glow {
  0% { box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { box-shadow: 0 0 25px rgba(255,255,255,0.5); }
  100% { box-shadow: 0 0 0 rgba(0,0,0,0); }
}

/* ===============================
   WHAT TO EXPECT
   =============================== */
.rwc-kids-expect {
  background: #fafafa;
  padding: 100px 20px;
  text-align: center;
}

.rwc-kids-expect h2 {
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #111;
}

.rwc-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.step {
  max-width: 250px;
  color: #fff;
  border-radius: 20px;
  padding: 40px 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.step span {
  background: rgba(255,255,255,0.2);
  display: inline-block;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  line-height: 45px;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step.orange { background: #ff8b3d; }
.step.teal { background: #3bc8b4; }
.step.yellow { background: #f8d34a; color: #111; }

.step:hover {
  transform: scale(1.05) rotate(1deg);
  animation: bounce 0.9s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */
@media (max-width: 768px) {
  .rwc-kids-intro p { font-size: 1.2rem; }
  .rwc-steps { flex-direction: column; align-items: center; }
  .value-box, .serve-box, .step { max-width: 90%; margin: 0 auto; }
}
