/* =============================================================
   LAYOUT MODERNO DAS PÁGINAS INTERNAS
   Traz para as demais páginas a linguagem da home: entrada animada
   do topo, botões em pílula, cartões que reagem ao mouse, faixa de
   chamada arredondada e fundos suaves.
   Carregado depois de style.css, subpaginas.css e padrao.css.
   Cores de cada página (roxo, azul, verde, laranja) são preservadas.
   ============================================================= */

/* ---------- Topo da página: entrada animada ---------- */
.about-hero.fx-hero .about-hero-body > *,
.blog-hero.fx-hero .blog-hero-body > *,
.page-hero.fx-hero .container > *,
.plans-hero.fx-hero .plans-hero-intro > * {
  animation: hmRise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.about-hero.fx-hero .about-hero-body > *:nth-child(2),
.blog-hero.fx-hero .blog-hero-body > *:nth-child(2),
.page-hero.fx-hero .container > *:nth-child(2),
.plans-hero.fx-hero .plans-hero-intro > *:nth-child(2) { animation-delay: 0.1s; }
.about-hero.fx-hero .about-hero-body > *:nth-child(3),
.blog-hero.fx-hero .blog-hero-body > *:nth-child(3),
.page-hero.fx-hero .container > *:nth-child(3),
.plans-hero.fx-hero .plans-hero-intro > *:nth-child(3) { animation-delay: 0.2s; }
.about-hero.fx-hero .about-hero-body > *:nth-child(n+4),
.blog-hero.fx-hero .blog-hero-body > *:nth-child(n+4),
.page-hero.fx-hero .container > *:nth-child(n+4),
.plans-hero.fx-hero .plans-hero-intro > *:nth-child(n+4) { animation-delay: 0.3s; }

/* imagem do topo entra e flutua devagar */
.about-hero.fx-hero .about-hero-media img {
  animation: hmHeroIn 1s ease 0.2s both, hmFloat 7s ease-in-out 1.2s infinite;
}

/* ---------- Botões em pílula, com elevação ---------- */
main .btn,
footer .btn {
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
main .btn:hover,
footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
main .btn:active { transform: translateY(0); }

/* ---------- Cartões que reagem ao mouse ---------- */
.step,
.blog-card,
.escola-card,
.cards-grid > * {
  border-radius: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.step:hover,
.blog-card:hover,
.escola-card:hover,
.cards-grid > *:hover,
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}
.plan-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }

/* imagens dos posts dão um leve zoom */
.blog-card .blog-thumb { overflow: hidden; }
.blog-card .blog-thumb img { transition: transform 0.6s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }

/* ---------- Faixa de chamada (CTA) ---------- */
main .cta-band {
  border-radius: 28px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

/* ---------- Perguntas frequentes ---------- */
.accordion-item { transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.accordion-item:hover { border-color: var(--pg-accent, var(--teal)); }
.accordion-item.open { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); }

/* ---------- Fundo suave nas seções alternadas (só páginas sem cor própria) ---------- */
main:not(.multi-page):not(.odonto-page):not(.psi-page):not(.redes-page):not(.aba-page):not(.central-page):not(.beneficios-page):not(.contato-page):not(.escola-page) .section-alt {
  background: linear-gradient(120deg, #f6f6f6 0%, #e9f4f3 100%);
}

/* ---------- Links de seção ---------- */
.read-more { display: inline-block; transition: transform 0.25s ease, color 0.25s ease; }
.blog-card:hover .read-more { transform: translateX(6px); }

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-hero *, main .btn, .step, .blog-card, .escola-card, .cards-grid > *, .plan-card { animation: none !important; transition: none !important; }
}
