/* =========================================================
   Viva Bem Saúde — folha de estilo
   Cores: roxos da logomarca + paleta de apoio do manual da marca
   Tipografia: Comfortaa (substitui a Chica Gogo, títulos)
               Nunito (substitui a Arial Rounded MT Bold, chamadas e textos)
   ========================================================= */

:root {
  /* Logomarca */
  --roxo-claro: #A97DC6;
  --roxo: #6B45A8;
  --roxo-escuro: #45287D;

  /* Manual da marca (cores de apoio) */
  --lilas: #DBBFE8;
  --azul: #A7C9D3;
  --coral: #F78170;
  --ambar: #F7A212;
  --cinza: #EDEDED;

  /* Versões com contraste para ícones e detalhes */
  --lilas-forte: #9B65B3;
  --lilas-medio: #B48BD0;
  --azul-forte: #5E9AAB;
  --ambar-forte: #E08E00;
  --rosa: #DE6FA0;

  --fundo: #FFFFFF;
  --fundo-suave: #F8F3FC;
  --texto: #2E2340;
  --texto-suave: #5F5670;
  --borda: #E7DDF0;

  --raio: 22px;
  --sombra: 0 10px 30px -12px rgba(69, 40, 125, .25);
  --fonte-titulo: "Comfortaa", "Arial Rounded MT Bold", system-ui, sans-serif;
  --fonte-texto: "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;

  /* Padrão de corações (inspirado no padrão do manual) */
  --padrao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23DBBFE8' stroke-width='5' stroke-linecap='round' opacity='.55'%3E%3Cpath d='M42 30c-5-7-15-8-21-4-9 6-8 18-2 25 5 6 13 13 21 19'/%3E%3Cpath d='M42 46c1-6 7-9 13-7 9 3 11 14 6 21-5 7-13 13-21 18'/%3E%3C/g%3E%3Ccircle cx='47' cy='18' r='4' fill='%23DBBFE8' opacity='.55'/%3E%3Cg fill='none' stroke='%23DBBFE8' stroke-width='5' stroke-linecap='round' opacity='.55' transform='translate(60 60)'%3E%3Cpath d='M42 30c-5-7-15-8-21-4-9 6-8 18-2 25 5 6 13 13 21 19'/%3E%3Cpath d='M42 46c1-6 7-9 13-7 9 3 11 14 6 21-5 7-13 13-21 18'/%3E%3C/g%3E%3Ccircle cx='107' cy='78' r='4' fill='%23DBBFE8' opacity='.55'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--fonte-titulo); color: var(--roxo-escuro); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--fonte-texto); font-weight: 800; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: transform .2s, background-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; }
.btn--primario { background: var(--roxo); color: #fff; box-shadow: var(--sombra); }
.btn--primario:hover { background: var(--roxo-escuro); }
.btn--contorno { border-color: var(--roxo-claro); color: var(--roxo); background: transparent; }
.btn--contorno:hover { background: var(--fundo-suave); }
.btn--branco { background: #fff; color: var(--roxo); }
.btn--pequeno { padding: .6em 1.2em; font-size: .95rem; }
.btn--largo { width: 100%; }

/* ---------- Cabeçalho ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.topo.rolou { border-color: var(--borda); box-shadow: 0 6px 20px -16px rgba(69, 40, 125, .5); }
.topo__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.topo__logo img { width: 170px; }

.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) {
  text-decoration: none; font-weight: 600; color: var(--texto-suave);
  position: relative; padding: 4px 0;
}
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 3px;
  border-radius: 3px; background: var(--roxo-claro); transition: right .25s;
}
.menu a:not(.btn):hover { color: var(--roxo); }
.menu a:not(.btn):hover::after { right: 0; }

.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 3px; margin: 5px 0; border-radius: 3px; background: var(--roxo); transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--fundo-suave) 100%);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 110px);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.selo {
  display: inline-block; margin-bottom: 1.2em;
  padding: .35em 1em; border-radius: 999px;
  background: var(--lilas); color: var(--roxo-escuro);
  font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; }
.destaque {
  background: linear-gradient(90deg, var(--roxo-claro), var(--roxo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: 1.15rem; color: var(--texto-suave); max-width: 34em; }
.hero__acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero__visual { position: relative; display: grid; place-items: center; }
.hero__circulo {
  width: min(440px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 54%, rgba(255, 255, 255, 0) 70%), var(--padrao), #fff;
  background-size: 100% 100%, 90px, auto;
  display: grid; place-items: center;
  box-shadow: 0 30px 60px -30px rgba(69, 40, 125, .45), inset 0 0 0 14px rgba(255, 255, 255, .85);
  animation: flutuar 7s ease-in-out infinite;
}
.hero__circulo img { width: 62%; filter: drop-shadow(0 6px 16px rgba(255, 255, 255, 1)); }
.bolha { position: absolute; border-radius: 50%; }
.bolha--azul { width: 90px; height: 90px; background: var(--azul); top: 4%; right: 2%; animation: flutuar 6s ease-in-out infinite reverse; }
.bolha--coral { width: 46px; height: 46px; background: var(--coral); bottom: 10%; left: 4%; animation: flutuar 5s ease-in-out infinite; }
.bolha--ambar { width: 24px; height: 24px; background: var(--ambar); bottom: 2%; right: 18%; animation: flutuar 8s ease-in-out infinite reverse; }
@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Faixa ---------- */
.faixa { background: var(--roxo); color: #fff; overflow: hidden; padding: 18px 0; }
.faixa__trilho {
  display: flex; align-items: center; gap: 28px; width: max-content;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.25rem; white-space: nowrap;
  animation: rolar 32s linear infinite;
}
.faixa__trilho i { width: 10px; height: 10px; border-radius: 50%; background: var(--lilas); flex: none; }
.faixa__trilho i:nth-of-type(3n+2) { background: var(--azul); }
.faixa__trilho i:nth-of-type(3n) { background: var(--coral); }
@keyframes rolar { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.secao { padding: clamp(64px, 9vw, 120px) 0; }
.secao--padrao {
  background: linear-gradient(rgba(248, 243, 252, .55), rgba(248, 243, 252, .55)), var(--padrao), var(--fundo-suave);
  background-size: auto, 120px, auto;
}
.secao__cabecalho { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.secao__cabecalho p { color: var(--texto-suave); font-size: 1.1rem; }

/* Sobre */
.sobre { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.sobre__titulo { position: relative; }
.sobre__titulo h2 { font-size: clamp(2.6rem, 6vw, 4rem); }
.sobre__simbolo { width: min(260px, 70%); margin-top: 24px; opacity: .95; }
.lead { font-family: var(--fonte-titulo); font-size: 1.45rem; font-weight: 600; color: var(--roxo); line-height: 1.45; }
.valores { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.valores li { display: flex; gap: 16px; align-items: flex-start; }
.valores strong { display: block; font-weight: 800; color: var(--roxo-escuro); }
.valores span:not(.valores__icone) { color: var(--texto-suave); }
.valores__icone {
  flex: none; width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
}
.valores__icone svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.valores__icone--lilas { background: var(--roxo-claro); }
.valores__icone--azul { background: var(--azul-forte); }
.valores__icone--coral { background: var(--coral); }

/* Cards de especialidades */
/* flex para centralizar a última linha quando sobra um card */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.card {
  flex: 0 1 calc((100% - 48px) / 3);
  position: relative; overflow: hidden;
  background: #fff; border-radius: var(--raio); padding: 32px 28px 28px;
  border: 1px solid var(--borda); box-shadow: var(--sombra);
  transition: transform .25s, box-shadow .25s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--cor);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -18px rgba(69, 40, 125, .4); }
.card__icone {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--cor) 16%, #fff);
}
.card__icone svg { width: 30px; height: 30px; fill: none; stroke: var(--cor); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--texto-suave); margin: 0; }

/* Passos */
.passos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: passo; }
.passos li { position: relative; padding: 0 8px; text-align: center; }
.passos li:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; left: calc(50% + 44px); right: calc(-50% + 44px);
  border-top: 3px dotted var(--lilas);
}
.passos__num {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--lilas); color: var(--roxo-escuro);
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.6rem;
}
.passos li:nth-child(2) .passos__num { background: var(--azul); }
.passos li:nth-child(3) .passos__num { background: #FBC6BD; }
.passos li:nth-child(4) .passos__num { background: #FBD58E; }
.passos p { color: var(--texto-suave); font-size: .98rem; }

/* Chamada */
.chamada {
  background: linear-gradient(120deg, var(--roxo-claro) 0%, var(--roxo) 55%, var(--roxo-escuro) 100%);
  color: #fff; padding: 56px 0; overflow: hidden;
}
.chamada__inner { display: flex; align-items: center; gap: 36px; position: relative; }
.chamada__inner > div { flex: 1; }
.chamada h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .2em; }
.chamada p { margin: 0; opacity: .9; font-size: 1.1rem; }
.chamada__simbolo { width: 88px; flex: none; }

/* Contato */
.contato { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contato__info > p { color: var(--texto-suave); font-size: 1.1rem; }
.contato__lista { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.contato__lista li { display: flex; gap: 14px; align-items: flex-start; }
.contato__lista svg {
  flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 14px;
  background: var(--fundo-suave); fill: none; stroke: var(--roxo); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.contato__lista strong { display: block; color: var(--roxo-escuro); }
.contato__lista span { color: var(--texto-suave); }
.contato__lista a { color: var(--roxo); font-weight: 600; text-decoration-color: var(--lilas); text-underline-offset: 3px; }
.contato__lista a:hover { color: var(--roxo-escuro); }

.form {
  background: #fff; border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 32px; box-shadow: var(--sombra); display: grid; gap: 16px;
}
.form h3 { font-size: 1.4rem; margin-bottom: 4px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--roxo-escuro); }
.opcional { font-weight: 400; color: var(--texto-suave); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--texto);
  padding: .75em 1em; border-radius: 14px; border: 1.5px solid var(--borda); background: var(--fundo-suave);
  transition: border-color .2s, background-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--roxo-claro); background: #fff; }
.form .invalido { border-color: var(--coral); }
.form__aviso { margin: 0; min-height: 1.4em; font-size: .92rem; color: #C2493A; }

/* Rodapé */
.rodape { background: var(--roxo-escuro); color: rgba(255, 255, 255, .85); padding: 56px 0 40px; }
.rodape__inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.rodape__logo { width: 150px; }
.rodape__links { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: flex-end; }
.rodape__links a { text-decoration: none; font-weight: 600; }
.rodape__links a:hover { color: var(--lilas); }
.rodape__legal { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; opacity: .8; }

/* WhatsApp flutuante */
.whats {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.whats:hover { transform: scale(1.08); }
.whats svg { width: 30px; height: 30px; fill: #fff; }

/* Animação ao rolar */
.revelar { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.revelar.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .card { flex-basis: calc((100% - 24px) / 2); }
  .passos { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .passos li::after { display: none; }
  .sobre { grid-template-columns: 1fr; gap: 24px; }
  .sobre__simbolo { display: none; }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 16px 20px; border-bottom: 1px solid var(--borda);
    box-shadow: 0 20px 30px -20px rgba(69, 40, 125, .4);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .menu.aberto { transform: none; opacity: 1; visibility: visible; }
  .menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--borda); }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 16px; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__acoes { justify-content: center; }
  .hero__visual { order: -1; max-width: 300px; margin-inline: auto; }
  .contato { grid-template-columns: 1fr; gap: 40px; }
  .chamada__inner { flex-direction: column; text-align: center; }
  .rodape__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rodape__links { justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .card { flex-basis: 100%; }
  .passos { grid-template-columns: 1fr; }
  .topo__logo img { width: 140px; }
  .form { padding: 24px 20px; }
  .hero__acoes .btn { width: 100%; }
}
