/* ==========================================================================
   Kids Who Code — scoped styles (Teens Code Africa page only)
   All rules are namespaced under .wvk so the rest of the Wayvarn site keeps
   its professional typography and design language.
   ========================================================================== */

.wvk {
  --wvk-orange: #f97316;
  --wvk-orange-soft: #fb923c;
  --wvk-amber: #fbbf24;
  --wvk-teal: #14b8a6;
  --wvk-blue: #2563eb;
  --wvk-navy: #12305c;
  --wvk-ink: #14213d;
  --wvk-muted: #56637a;
  --wvk-card: rgba(255, 255, 255, 0.86);
  --wvk-radius: 2rem;
  font-family: var(--wv-font-body);
  color: var(--wvk-ink);
  position: relative;
  overflow-x: clip;
}

.wvk h1,
.wvk h2,
.wvk h3,
.wvk h4 {
  font-family: var(--wv-font-display);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--wvk-navy);
}

.wvk p {
  line-height: 1.7;
  color: var(--wvk-muted);
}

.wvk-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .wvk-container { padding-inline: 2rem; }
}

.wvk-section { padding-block: 4rem; position: relative; }

@media (min-width: 768px) {
  .wvk-section { padding-block: 6rem; }
}

.wvk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wvk-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  margin-top: 1rem;
}

.wvk-lead {
  font-size: 1.05rem;
  max-width: 44rem;
  margin-top: 1rem;
}

/* --------------------------------------------------------------- Hero ---- */
.wvk-hero {
  position: relative;
  isolation: isolate;
  padding-block: 4rem 4.5rem;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(249, 115, 22, 0.22), transparent 62%),
    radial-gradient(900px 520px at 92% 8%, rgba(20, 184, 166, 0.2), transparent 60%),
    linear-gradient(180deg, #fffaf3 0%, #f6f9ff 100%);
  overflow: hidden;
}

@media (min-width: 900px) {
  .wvk-hero { padding-block: 5.5rem 6rem; }
}

.wvk-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .wvk-hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
}

.wvk-hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 800;
}

.wvk-hero h1 .wvk-gradient {
  background: linear-gradient(100deg, var(--wvk-orange), var(--wvk-amber) 55%, var(--wvk-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wvk-hero-text { font-size: 1.08rem; max-width: 36rem; margin-top: 1.25rem; }

.wvk-btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.wvk-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.wvk-btn-primary {
  background: linear-gradient(100deg, var(--wvk-orange), #ea580c);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(249, 115, 22, 0.75);
}

.wvk-btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 38px -12px rgba(249, 115, 22, 0.8); }

.wvk-btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--wvk-navy);
  border: 2px solid rgba(18, 48, 92, 0.12);
}

.wvk-btn-ghost:hover { transform: translateY(-3px); border-color: var(--wvk-orange); color: #c2410c; }

.wvk-hero-media { position: relative; }

.wvk-hero-media img {
  width: 100%;
  height: auto;
  border-radius: 2.25rem;
  box-shadow: 0 40px 70px -35px rgba(18, 48, 92, 0.55);
  border: 6px solid rgba(255, 255, 255, 0.9);
}

.wvk-hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 34px -20px rgba(18, 48, 92, 0.6);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--wvk-navy);
  backdrop-filter: blur(8px);
}

.wvk-hero-badge-a { left: -0.5rem; bottom: 1.75rem; animation: wvk-float 6s ease-in-out infinite; }
.wvk-hero-badge-b { right: -0.5rem; top: 1.5rem; animation: wvk-float 7.5s ease-in-out infinite 0.6s; }

.wvk-hero-badge span.wvk-dot {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
  font-size: 0.95rem;
}

/* ------------------------------------------------- Floating decorations -- */
.wvk-floaters { position: absolute; inset: 0; pointer-events: none; z-index: -1; }

.wvk-float {
  position: absolute;
  font-family: var(--wv-font-body);
  font-weight: 700;
  color: rgba(249, 115, 22, 0.35);
  animation: wvk-float 9s ease-in-out infinite;
  user-select: none;
}

.wvk-float.is-teal { color: rgba(20, 184, 166, 0.35); }
.wvk-float.is-blue { color: rgba(37, 99, 235, 0.28); }

.wvk-f1 { top: 12%; left: 6%; font-size: 2.4rem; animation-delay: 0s; }
.wvk-f2 { top: 26%; right: 10%; font-size: 2rem; animation-delay: 1.1s; }
.wvk-f3 { bottom: 16%; left: 14%; font-size: 1.7rem; animation-delay: 2s; }
.wvk-f4 { top: 58%; right: 5%; font-size: 2.2rem; animation-delay: 0.6s; }
.wvk-f5 { top: 8%; left: 46%; font-size: 1.5rem; animation-delay: 1.6s; }

.wvk-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.35;
  animation: wvk-float 11s ease-in-out infinite;
}

.wvk-blob-a { width: 120px; height: 120px; background: rgba(251, 191, 36, 0.5); top: 40%; left: 2%; }
.wvk-blob-b { width: 90px; height: 90px; background: rgba(20, 184, 166, 0.45); bottom: 8%; right: 12%; animation-delay: 1.4s; }
.wvk-blob-c { width: 60px; height: 60px; background: rgba(37, 99, 235, 0.35); top: 14%; right: 34%; animation-delay: 2.2s; }

@keyframes wvk-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -18px, 0) rotate(6deg); }
}

/* --------------------------------------------------------- Curriculum ---- */
.wvk-curriculum {
  background:
    radial-gradient(700px 420px at 85% 0%, rgba(251, 191, 36, 0.18), transparent 60%),
    linear-gradient(180deg, #f6f9ff 0%, #fffdf9 100%);
  position: relative;
  overflow: hidden;
}

.wvk-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 860px) {
  .wvk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

.wvk-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--wvk-radius);
  background: var(--wvk-card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 26px 55px -34px rgba(18, 48, 92, 0.45);
  backdrop-filter: blur(14px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  overflow: hidden;
  cursor: pointer;
}

@media (min-width: 768px) {
  .wvk-card { padding: 2.25rem; }
}

.wvk-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(140deg, rgba(249, 115, 22, 0.14), rgba(20, 184, 166, 0.12) 70%, transparent);
  transition: opacity 0.35s ease;
}

.wvk-card:hover,
.wvk-card:focus-visible,
.wvk-card.is-open {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 40px 70px -34px rgba(249, 115, 22, 0.5);
}

.wvk-card:hover::before,
.wvk-card:focus-visible::before,
.wvk-card.is-open::before { opacity: 1; }

.wvk-card-icon {
  display: grid;
  place-items: center;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 1.5rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(249, 115, 22, 0.12));
  box-shadow: inset 0 0 0 1px rgba(18, 48, 92, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), rotate 0.4s ease;
}

.wvk-card-icon img { width: 3.6rem; height: 3.6rem; object-fit: contain; }

.wvk-card:hover .wvk-card-icon,
.wvk-card.is-open .wvk-card-icon { transform: translateY(-4px) scale(1.08) rotate(-4deg); }

.wvk-card h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 800; }

.wvk-card-desc { font-size: 1rem; }

.wvk-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.wvk-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.13);
  color: #c2410c;
  font-weight: 700;
  font-size: 0.82rem;
}

.wvk-accent-line {
  height: 4px;
  width: 3rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wvk-orange), var(--wvk-amber));
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.wvk-card:hover .wvk-accent-line,
.wvk-card.is-open .wvk-accent-line { width: 7rem; }

/* Extra detail revealed on hover (desktop) / tap (mobile) */
.wvk-card-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s ease, opacity 0.3s ease;
}

.wvk-card-more > div { overflow: hidden; }

.wvk-card:hover .wvk-card-more,
.wvk-card:focus-within .wvk-card-more,
.wvk-card.is-open .wvk-card-more { grid-template-rows: 1fr; opacity: 1; }

.wvk-card-more ul { display: grid; gap: 0.4rem; margin-top: 0.75rem; }

.wvk-card-more li {
  display: flex;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--wvk-muted);
  line-height: 1.5;
}

.wvk-card-more li::before { content: "▹"; color: var(--wvk-orange); font-weight: 700; }

.wvk-card-hint {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c2410c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 860px) { .wvk-card-hint { display: none; } }

/* -------------------------------------------------------------- About ---- */
.wvk-about { background: linear-gradient(180deg, #fffdf9 0%, #f4f8ff 100%); }

.wvk-about-card {
  position: relative;
  overflow: hidden;
  border-radius: 2.5rem;
  padding: 2rem;
  background: linear-gradient(150deg, #12305c 0%, #1b4b8f 55%, #0f766e 100%);
  color: #fff;
  box-shadow: 0 45px 80px -40px rgba(18, 48, 92, 0.7);
}

@media (min-width: 768px) { .wvk-about-card { padding: 3.25rem; } }

.wvk-about-card h2,
.wvk-about-card h3 { color: #fff; }

.wvk-about-card p { color: rgba(255, 255, 255, 0.85); }

.wvk-about-grid { display: grid; gap: 2.25rem; position: relative; }

@media (min-width: 900px) { .wvk-about-grid { grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; } }

.wvk-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.5);
}

.wvk-logo-plate img { max-width: 210px; width: 100%; height: auto; object-fit: contain; }

.wvk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.wvk-stat {
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.wvk-stat:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.18); }

.wvk-stat-value {
  font-family: var(--wv-font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  color: var(--wvk-amber);
  line-height: 1.1;
}

.wvk-stat-label { margin-top: 0.35rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); line-height: 1.45; }

/* ---------------------------------------------------------------- CTA ---- */
.wvk-cta { padding-bottom: 5rem; }

.wvk-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 2.5rem;
  padding: 3rem 1.75rem;
  text-align: center;
  background: linear-gradient(120deg, #f97316 0%, #fb923c 45%, #fbbf24 100%);
  box-shadow: 0 45px 80px -40px rgba(249, 115, 22, 0.75);
}

@media (min-width: 768px) { .wvk-cta-card { padding: 4.5rem 3rem; } }

.wvk-cta-card h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; }
.wvk-cta-card p { color: rgba(255, 255, 255, 0.94); margin-inline: auto; max-width: 42rem; margin-top: 1rem; font-size: 1.05rem; }

.wvk-cta-card .wvk-btn-row { justify-content: center; }

.wvk-cta-card .wvk-btn-primary { background: #12305c; box-shadow: 0 16px 32px -14px rgba(18, 48, 92, 0.7); }
.wvk-cta-card .wvk-btn-ghost { background: rgba(255, 255, 255, 0.95); border-color: transparent; }

/* ------------------------------------------------------------ Reveals ---- */
.wvk-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.wvk-reveal.is-visible { opacity: 1; transform: none; }
.wvk-reveal[data-wvk-delay="1"] { transition-delay: 0.08s; }
.wvk-reveal[data-wvk-delay="2"] { transition-delay: 0.16s; }
.wvk-reveal[data-wvk-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .wvk *,
  .wvk *::before { animation: none !important; transition-duration: 0.01ms !important; }
  .wvk-reveal { opacity: 1; transform: none; }
}
