/* Matrículas Abertas (CTA) — painel premium sobre degradê do tema (--site-global-color) */
#cta-root {
  --cta-c: var(--site-global-color, #2fa4e7);
  --cta-rgb: var(--site-global-rgb, 47, 164, 231);
}

#cta-root section.cta-premium {
  /* as pontas (cima/baixo) voltam à cor lisa do tema: encaixam sem emenda nas ondas vizinhas */
  background-image:
    linear-gradient(180deg, var(--cta-c) 0, transparent 130px),
    /* cor lisa nos últimos 90px (a onda do rodapé cobre ~70px) e depois dissolve para o degradê */
    linear-gradient(0deg, var(--cta-c) 0, var(--cta-c) 90px, transparent 230px),
    radial-gradient(900px 420px at 88% 0%, rgba(255, 255, 255, 0.22), transparent 62%),
    radial-gradient(700px 380px at 0% 100%, rgba(0, 0, 0, 0.22), transparent 65%),
    linear-gradient(115deg,
      color-mix(in srgb, var(--cta-c) 68%, #021a08) 0%,
      var(--cta-c) 46%,
      color-mix(in srgb, var(--cta-c) 72%, #ffffff) 100%);
}

/* a onda do rodapé sobe ~70px sobre o fim desta seção: o painel termina acima dela, com a borda inteira visível */
#cta-root section.cta-premium {
  padding-bottom: 9.75rem;
}

/* brilho antigo (regra do index.php) era cortado em linha reta no topo; o degradê acima já faz esse brilho */
#cta-root section.cta-premium::after {
  display: none;
}

/* ── Ícones flutuantes (a escola é cheia de brincadeira) ───────────── */
#cta-root .cta-floats {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

#cta-root .cta-float {
  position: absolute;
  color: #ffffff;
  opacity: 0.16;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
  animation: ctaFloat 11s ease-in-out infinite;
}

#cta-root .cta-f1 { left: 4%;  top: 14%; font-size: 4.2rem; transform: rotate(-14deg); animation-duration: 12s; }
#cta-root .cta-f2 { left: 38%; top: 8%;  font-size: 3rem;   transform: rotate(10deg);  animation-duration: 9s;  animation-delay: -3s; }
#cta-root .cta-f3 { right: 30%; bottom: 26%; font-size: 3.4rem; transform: rotate(-8deg); animation-duration: 13s; animation-delay: -6s; }
#cta-root .cta-f4 { right: 6%;  top: 12%; font-size: 3.2rem; color: #fde68a; opacity: 0.38; animation-duration: 10s; animation-delay: -2s; }
#cta-root .cta-f5 { left: 22%; bottom: 24%; font-size: 2.6rem; transform: rotate(18deg); animation-duration: 14s; animation-delay: -8s; }

#cta-root .cta-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

#cta-root .cta-r1 { width: 22rem; height: 22rem; right: -7rem; bottom: -10rem; }
#cta-root .cta-r2 { width: 13rem; height: 13rem; left: -4rem; top: -5rem; border-color: rgba(253, 230, 138, 0.28); }

@keyframes ctaFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -16px; }
}

/* ── Painel de vidro ───────────────────────────────────────────────── */
#cta-root .cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.6rem, 3.2vw, 2.9rem) clamp(1.5rem, 4vw, 3.6rem);
  border-radius: 2.4rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
  border: 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    0 34px 60px -34px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* contorno com as cores da marca: acompanha a curvatura do painel em todos os lados */
#cta-root .cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #2ecc71 0%, #f1c40f 34%, #e74c3c 66%, #3498db 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.9;
  pointer-events: none;
}

#cta-root .cta-copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

/* ── Selo "Matrículas abertas" ─────────────────────────────────────── */
#cta-root .cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1.15rem 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cta-c) 70%, #0f172a);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.55);
}

#cta-root .cta-dot {
  position: relative;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #22c55e;
}

#cta-root .cta-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.55);
  animation: ctaPing 1.8s ease-out infinite;
}

@keyframes ctaPing {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ── Título e texto ────────────────────────────────────────────────── */
#cta-root .cta-title {
  margin: 0 0 0.9rem;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.005em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

#cta-root .cta-hl {
  position: relative;
  display: inline-block;
  color: #fde68a;
  white-space: nowrap;
}

#cta-root .cta-hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 0.16em;
  border-radius: 99px;
  background: linear-gradient(90deg, #facc15, #fb923c);
  opacity: 0.9;
}

#cta-root .cta-desc {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

/* ── Ação: selo + botão ────────────────────────────────────────────── */
#cta-root .cta-action {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

#cta-root .cta-seal {
  position: relative;
  width: 5.6rem;
  height: 5.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#cta-root .cta-seal::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px dashed rgba(253, 230, 138, 0.7);
  animation: ctaSpin 26s linear infinite;
}

#cta-root .cta-seal .material-icons {
  font-size: 2.7rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes ctaSpin {
  to { transform: rotate(360deg); }
}

#cta-root .cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 0.55rem 0.5rem 0.55rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  color: #0f172a;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  box-shadow:
    0 26px 40px -18px rgba(2, 6, 23, 0.7),
    0 0 0 0 rgba(255, 255, 255, 0.6),
    inset 0 1px 0 #fff;
  animation: ctaPulse 2.8s ease-out infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

#cta-root .cta-btn-ico {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cta-c), color-mix(in srgb, var(--cta-c) 55%, #022c14));
  box-shadow: 0 12px 20px -10px rgba(var(--cta-rgb), 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#cta-root .cta-btn-ico .material-icons {
  font-size: 1.7rem;
}

#cta-root .cta-btn-txt {
  padding-inline: 0.15rem 0.2rem;
}

#cta-root .cta-btn-arrow {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--cta-rgb), 0.12);
  color: var(--cta-c);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

#cta-root .cta-btn-arrow .material-icons {
  font-size: 1.4rem;
}

#cta-root .cta-btn:hover,
#cta-root .cta-btn:focus-visible {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 34px 48px -18px rgba(2, 6, 23, 0.75),
    0 0 0 0 rgba(255, 255, 255, 0),
    inset 0 1px 0 #fff;
  animation-play-state: paused;
}

#cta-root .cta-btn:hover .cta-btn-arrow,
#cta-root .cta-btn:focus-visible .cta-btn-arrow {
  background: var(--cta-c);
  color: #fff;
  transform: translateX(4px);
}

#cta-root .cta-btn:focus-visible {
  outline: 3px solid #fde68a;
  outline-offset: 4px;
}

@keyframes ctaPulse {
  0%   { box-shadow: 0 26px 40px -18px rgba(2, 6, 23, 0.7), 0 0 0 0 rgba(255, 255, 255, 0.55), inset 0 1px 0 #fff; }
  70%  { box-shadow: 0 26px 40px -18px rgba(2, 6, 23, 0.7), 0 0 0 16px rgba(255, 255, 255, 0), inset 0 1px 0 #fff; }
  100% { box-shadow: 0 26px 40px -18px rgba(2, 6, 23, 0.7), 0 0 0 0 rgba(255, 255, 255, 0), inset 0 1px 0 #fff; }
}

/* ── Responsivo ────────────────────────────────────────────────────── */
@media (max-width: 63.98rem) {
  #cta-root .cta-panel {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  #cta-root .cta-copy {
    text-align: center;
  }

  #cta-root .cta-desc {
    margin-inline: auto;
  }

  #cta-root .cta-action {
    flex-direction: row;
    justify-content: center;
    gap: 1.25rem;
  }

  #cta-root .cta-f2,
  #cta-root .cta-f5 {
    display: none;
  }
}

@media (max-width: 40rem) {
  #cta-root .cta-panel {
    border-radius: 1.9rem;
    padding: 1.6rem 1.15rem 1.5rem;
  }

  #cta-root .cta-seal {
    display: none;
  }

  #cta-root .cta-btn {
    width: 100%;
    justify-content: space-between;
    font-size: 1.15rem;
  }

  #cta-root .cta-f1,
  #cta-root .cta-f3 {
    opacity: 0.1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cta-root .cta-float,
  #cta-root .cta-dot::after,
  #cta-root .cta-seal::before,
  #cta-root .cta-btn {
    animation: none;
  }
}
