/* Catalisa: tokens, base e componentes compartilhados.
   Valores extraídos do Figma (arquivo Catalisa, página Protótipo). */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../fonts/nunito-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 500; font-display: swap; src: url("../fonts/nunito-500.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("../fonts/nunito-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../fonts/nunito-700.woff2") format("woff2"); }

:root {
  /* Marca */
  --rosa: #BB297A;
  --rosa-escuro: #A53D6E;
  --vinho: #673653;
  --azul: #025AA3;
  --gradiente: linear-gradient(90deg, var(--rosa) 42%, var(--azul) 100%);
  --gradiente-diag: linear-gradient(120deg, var(--rosa) 42%, var(--azul) 100%);

  /* Neutros */
  --fundo: #F5F5F5;
  --fundo-lilas: #F2EDF4;
  --branco: #FFFFFF;
  --texto: #383838;
  --texto-2: #555555;
  --texto-3: #737373;
  --cinza-borda: #E5E5E5;
  --cinza-linha: #959595;
  --cinza-claro: #AAAAAA;

  /* Setores */
  --s1: #025AA3; --s1-fundo: #F0F8FF; --s1-borda: #558DC2;
  --s2: #4B9D4A; --s2-fundo: #EFFFEF; --s2-borda: #7FC27F;
  --s3: #F7AF35; --s3-fundo: #FFFAEF; --s3-borda: #FFCA71; --s3-texto: #D98E0F;

  /* Tipografia */
  --f-titulo: "Poppins", system-ui, sans-serif;
  --f-texto: "Nunito", system-ui, sans-serif;

  /* Sombras */
  --sombra-sm: 0 1px 2px rgba(0, 0, 0, .10);
  --sombra-botao: 0 8px 10px -6px rgba(0, 0, 0, .10), 0 20px 25px -5px rgba(0, 0, 0, .10);
  --sombra-rosa: 0 4px 6px -4px rgba(165, 61, 110, .10), 0 10px 15px -3px rgba(165, 61, 110, .30);

  /* Layout */
  --largura: 1240px;
  --largura-estreita: 1080px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.destaque { color: var(--rosa); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2 * var(--gutter), var(--largura)); margin-inline: auto; }
.container--estreito { width: min(100% - 2 * var(--gutter), var(--largura-estreita)); margin-inline: auto; }

.icone { width: 1em; height: 1em; fill: currentColor; flex: none; }

:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }

/* ---------- Cabeçalho ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: var(--branco);
  height: 84px;
}
.topo__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.topo__logo img { width: 332px; height: auto; }
.menu { display: flex; align-items: center; }
.menu a {
  font-family: var(--f-titulo); font-size: 20px; line-height: 30px;
  color: var(--texto); text-decoration: none;
  padding: 0 24px; position: relative;
}
.menu li + li a::before {
  content: ""; position: absolute; left: 0; top: 8px; height: 14px;
  border-left: 1px solid rgba(0, 0, 0, .5);
}
.menu li:last-child a { padding-right: 10px; }
.menu a:hover { color: var(--rosa); }
.menu a[aria-current="page"] {
  color: var(--rosa-escuro); font-weight: 600;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.topo__burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--texto); }
.topo__burger .icone { width: 26px; height: 26px; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
  font-family: var(--f-titulo); font-weight: 600;
  transition: transform .15s ease, filter .15s ease;
}
.botao:hover { transform: translateY(-1px); filter: brightness(1.06); }
.botao--gradiente {
  background: var(--gradiente); color: var(--branco);
  font-weight: 700; font-size: 24px; line-height: 36px; letter-spacing: 1.2px;
  padding: 20px 20px; box-shadow: var(--sombra-botao);
}
.botao--rosa {
  background: var(--rosa); color: var(--branco);
  font-size: 16px; line-height: 24px; letter-spacing: .96px;
  padding: 12px 24px; box-shadow: var(--sombra-botao);
}
.botao--rosa .icone { width: 24px; height: 24px; }

/* Botão flutuante "Iniciar Diagnóstico" */
.flutuante {
  position: fixed; right: 0; top: 50%; z-index: 40; transform: translateY(-50%);
  width: 114px; height: 114px; border-radius: 10px 0 0 10px;
  background: var(--rosa); color: var(--branco); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-weight: 700; font-size: 18px; line-height: 25px; text-align: center;
  box-shadow: var(--sombra-botao);
}
.flutuante .icone { width: 44px; height: 44px; }
.flutuante:hover { background: var(--rosa-escuro); }

/* ---------- Títulos de seção ---------- */
.titulo-secao {
  font-family: var(--f-titulo); font-weight: 600; font-size: 28px; line-height: 34px;
  text-align: center; color: var(--texto);
}
.divisor { border: 0; border-top: 1px solid var(--cinza-linha); width: min(100% - 2 * var(--gutter), 954px); margin: 0 auto; }

/* ---------- Cartão com borda em gradiente rosa → azul (eixos, missão/visão/valores) ---------- */
.cartao-gradiente {
  position: relative; border-radius: 5px; background: var(--fundo);
  box-shadow: var(--sombra-rosa);
}
.cartao-gradiente::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: linear-gradient(135deg, var(--rosa) 42%, var(--azul));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* ---------- Realização / correalização / parceiros ---------- */
.apoio { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; padding-inline: var(--gutter); }
.apoio__caixa {
  background: var(--branco); border: 1px solid var(--cinza-borda); border-radius: 20px;
  width: 160px; min-height: 181px; padding: 10px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.apoio__caixa h3 { font-family: var(--f-titulo); font-weight: 500; font-size: 16px; line-height: 24px; letter-spacing: .8px; color: var(--texto); }
.apoio__caixa > img { margin: auto 0; max-height: 117px; width: auto; }
.apoio__caixa--larga { width: 660px; }
.apoio__logos { flex: 1; display: flex; align-items: center; justify-content: space-around; width: 100%; padding: 0 30px; gap: 20px; }
.apoio__logos img { max-height: 100px; width: auto; }
.apoio__logos li:first-child img { max-height: 64px; }
.apoio__logos li:last-child img { max-height: 46px; }

/* ---------- Formulários ---------- */
.campo { display: flex; flex-direction: column; gap: 7px; }
.campo label {
  font-family: var(--f-titulo); font-weight: 500; font-size: 16px; line-height: 19px;
  color: var(--texto-2); text-transform: uppercase;
}
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 8px 12px;
  background: var(--branco); border: 1px solid var(--cinza-borda); border-radius: 8px;
  box-shadow: var(--sombra-sm); font-family: var(--f-texto); font-size: 18px; color: var(--texto);
}
.campo textarea { min-height: 110px; resize: vertical; }
.campo ::placeholder { color: var(--texto-3); }
.campo select { appearance: none; padding-right: 40px; color: var(--texto-3); background: var(--branco) url("../img/chevron.svg") no-repeat right 16px center / 12px; }
.campo select:valid { color: var(--texto); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 2px solid var(--rosa); outline-offset: 0; border-color: transparent; }

/* ---------- Chamada final (CTA) ---------- */
.cta {
  background: var(--gradiente-diag); color: var(--branco); text-align: center;
  padding: 180px var(--gutter) 175px;
}
.cta h2 { font-family: var(--f-titulo); font-weight: 500; font-size: 56px; line-height: 67px; max-width: 840px; margin: 0 auto 30px; }
.cta p { font-size: 20px; line-height: 24px; max-width: 860px; margin: 0 auto 45px; }
.cta__botao {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--branco); color: var(--rosa); text-decoration: none;
  border: 2px solid var(--rosa); border-radius: 50px; padding: 10px 30px 10px 34px;
  font-size: 24px; line-height: 33px; font-weight: 500;
  box-shadow: 0 8px 15px -2px rgba(187, 41, 122, .6);
  transition: transform .15s ease;
}
.cta__botao:hover { transform: translateY(-2px); }
.cta__botao .icone { width: 30px; height: 30px; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--branco); padding: 68px 0 24px; color: var(--texto-2); }
.rodape__grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 40px; width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }
.rodape__logo { width: 342px; margin-bottom: 36px; }
.rodape p, .rodape a { font-size: 16px; line-height: 22px; }
.rodape h3 { font-family: var(--f-texto); font-weight: 500; font-size: 18px; line-height: 24px; color: var(--texto); margin-bottom: 18px; }
.rodape__links li + li { margin-top: 8px; }
.rodape__links a { text-decoration: none; }
.rodape__links a:hover, .rodape__links a[aria-current="page"] { color: var(--rosa); }
.rodape__links a[aria-current="page"] { font-weight: 700; }
.rodape__copy { width: min(100% - 2 * var(--gutter), 1180px); margin: 56px auto 0; padding-top: 22px; border-top: 1px solid var(--cinza-claro); text-align: center; }

.redes { display: flex; gap: 11px; margin-top: 12px; }
.redes a {
  width: 36px; height: 36px; border-radius: 8px; background: var(--rosa); color: var(--branco);
  display: grid; place-items: center;
}
.redes a:hover { background: var(--rosa-escuro); }
.redes .icone { width: 22px; height: 22px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .menu a { padding: 0 14px; font-size: 18px; }
  .topo__logo img { width: 240px; }
}

@media (max-width: 860px) {
  :root { --gutter: 18px; }
  .topo { height: 54px; box-shadow: var(--sombra-sm); }
  .topo__logo img { width: 228px; }
  .topo__burger { display: block; }
  .topo__nav {
    position: absolute; inset: 54px 0 auto 0; background: var(--branco);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, .2);
    display: none;
  }
  .topo__nav.aberto { display: block; }
  .menu { flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .menu a { display: block; padding: 12px var(--gutter); font-size: 18px; }
  .menu li + li a::before { display: none; }

  .flutuante { display: none; }

  .titulo-secao { font-size: 24px; line-height: 30px; }

  .cta { padding: 64px var(--gutter); }
  .cta h2 { font-size: 22px; line-height: 26px; margin-bottom: 26px; }
  .cta p { font-size: 15px; line-height: 19px; margin-bottom: 26px; }
  .cta__botao { font-size: 17px; line-height: 24px; padding: 6px 18px 6px 20px; }
  .cta__botao .icone { width: 22px; height: 22px; }

  .rodape { padding-top: 48px; }
  .rodape__grid { grid-template-columns: 1fr; gap: 0; }
  .rodape__marca { padding-bottom: 20px; border-bottom: 1px solid var(--cinza-claro); margin-bottom: 20px; }
  .rodape__logo { width: 100%; max-width: 360px; margin: 0 auto 40px; }
  .rodape__col { margin-bottom: 20px; }
  .rodape h3 { margin-bottom: 12px; }
  .rodape__col--contato .redes { justify-content: center; margin-top: 20px; }
  .rodape__copy { border-top: 0; margin-top: 12px; padding-top: 0; }
}

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