/* ValeCash — site institucional. Cores e fonte: design/identidade.md. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --amarelo: #ffd23f;
  --amarelo-claro: #fff0b8;
  --carvao: #15130c;
  --carvao-2: #211d10;
  --papel: #f5f3e8;
  --cartao: #ffffff;
  --borda: #e6e2d3;
  --tinta-2: #4f4b3e;
  --tinta-3: #6a6656;
  --sobre-escuro: #f7f5ea;
  --sobre-escuro-2: #d9d5c3;
  --link: #0b5cab;
  --raio-foto: 28px;
  --raio: 16px;
  --largura: 1160px;
  --margem: clamp(20px, 5vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--carvao);
  font-family:
    "Manrope",
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

.escuro :focus-visible {
  outline-color: var(--amarelo);
}

.envelope {
  width: 100%;
  max-width: calc(var(--largura) + 2 * var(--margem));
  margin-inline: auto;
  padding-inline: var(--margem);
}

.pular {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--amarelo);
  color: var(--carvao);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}

.pular:focus {
  top: 12px;
}

.so-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Títulos ---------- */

.titulo-1 {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.titulo-2 {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.titulo-3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.apoio {
  color: var(--tinta-2);
  font-size: 1.125rem;
  max-width: 34em;
}

.escuro .apoio {
  color: var(--sobre-escuro-2);
}

/* ---------- Botão e estado do atendimento ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}

.botao:active {
  transform: translateY(1px);
}

.botao--amarelo {
  background: var(--amarelo);
  color: var(--carvao);
}

.botao--amarelo:hover {
  background: #ffe27a;
}

.botao--carvao {
  background: var(--carvao);
  color: var(--amarelo);
}

.botao--carvao:hover {
  background: #2e2a1b;
}

.botao--pequeno {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.975rem;
}

.aviso-em-breve {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-weight: 700;
  line-height: 1.25;
}

.aviso-em-breve--pequeno {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.925rem;
}

.aviso-em-breve__ponto {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amarelo);
  box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.28);
}

.sobre-amarelo .aviso-em-breve__ponto {
  background: var(--carvao);
  box-shadow: 0 0 0 4px rgba(21, 19, 12, 0.16);
}

/* Textos que mudam quando o número do WhatsApp entra em config.js (ver site.js). */

[data-depois] {
  display: none;
}

.atendimento-ativo [data-antes] {
  display: none;
}

.atendimento-ativo [data-depois] {
  display: revert;
}

/* ---------- Topo ---------- */

.topo {
  padding-block: 22px;
}

.topo__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topo__marca img {
  width: 158px;
  height: auto;
}

.topo__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.975rem;
}

.topo__nav a {
  text-decoration: none;
}

.topo__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.topo__links {
  display: flex;
  gap: 28px;
}

/* ---------- Abertura ---------- */

.escuro {
  background: var(--carvao);
  color: var(--sobre-escuro);
}

.abertura__grade {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(28px, 5vw, 64px) clamp(64px, 9vw, 120px);
}

.abertura__texto > * + * {
  margin-top: 28px;
}

.abertura__nota {
  color: var(--sobre-escuro-2);
  font-size: 0.95rem;
}

.abertura__visual {
  position: relative;
}

.foto {
  border-radius: var(--raio-foto);
  overflow: hidden;
  background: var(--carvao-2);
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foto--retrato {
  aspect-ratio: 4 / 5;
}

.conversa {
  position: absolute;
  display: grid;
  gap: 10px;
}

.conversa--topo {
  top: 9%;
  left: clamp(-56px, -4.5vw, -16px);
  right: 38%;
}

.conversa--base {
  left: clamp(-72px, -6vw, -24px);
  right: 20%;
  bottom: -9%;
}

.balao {
  justify-self: start;
  max-width: 100%;
  padding: 12px 16px 13px;
  border-radius: 18px 18px 18px 6px;
  background: #ffffff;
  color: var(--carvao);
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 14px 34px rgba(0, 0, 0, 0.32);
}

.balao__quem {
  display: block;
  margin-bottom: 2px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--tinta-3);
}

.balao--cliente {
  border-radius: 18px 18px 6px 18px;
  background: var(--amarelo);
}

.balao--cliente .balao__quem {
  color: #4a3d0a;
}

.conversa__legenda {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(21, 19, 12, 0.72);
  color: var(--sobre-escuro);
  font-size: 0.76rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .balao {
    opacity: 0;
    transform: translateY(10px);
    animation: surgir 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }

  .balao--1 {
    animation-delay: 0.5s;
  }

  .balao--2 {
    animation-delay: 1.5s;
  }

  .balao--3 {
    animation-delay: 2.6s;
  }
}

@keyframes surgir {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Seções ---------- */

.secao {
  padding-block: clamp(64px, 9vw, 120px);
}

.secao--branca {
  background: var(--cartao);
}

.duas-colunas {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.duas-colunas--foto {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
}

.duas-colunas--foto-direita {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  align-items: center;
}

.bloco > * + * {
  margin-top: 20px;
}

.bloco > .titulo-2 + * {
  margin-top: 22px;
}

/* Como funciona */

.fixo {
  position: sticky;
  top: 40px;
}

.passos {
  counter-reset: passo;
}

.passo {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 44px;
}

.passo:last-child {
  padding-bottom: 0;
}

.passo::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 60px;
  bottom: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--amarelo);
}

.passo:last-child::before {
  display: none;
}

.passo__no {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--carvao);
  color: var(--sobre-escuro);
}

.passo__no svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.passo__no--pix {
  background: var(--amarelo);
  color: var(--carvao);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.passo__texto {
  padding-top: 6px;
}

.passo__texto p {
  margin-top: 8px;
  color: var(--tinta-2);
  max-width: 34em;
}

.passo__numero {
  color: var(--tinta-3);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Quem pode pedir */

.lista-ok li {
  position: relative;
  padding-left: 40px;
  font-weight: 600;
}

.lista-ok li + li {
  margin-top: 14px;
}

.lista-ok li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amarelo)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315130C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

.nota {
  color: var(--tinta-2);
  max-width: 34em;
}

/* Antes de aceitar */

.garantias > div {
  padding-block: 20px;
  border-top: 1px solid rgba(247, 245, 234, 0.2);
}

.garantias > div:last-child {
  padding-bottom: 0;
}

.garantias dt {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.garantias dd {
  margin-top: 6px;
  color: var(--sobre-escuro-2);
  max-width: 36em;
}

/* Dúvidas */

.duvidas {
  max-width: 820px;
}

.duvidas > .titulo-2 {
  margin-bottom: 28px;
}

.duvida {
  border-top: 1px solid var(--borda);
}

.duvida:last-of-type {
  border-bottom: 1px solid var(--borda);
}

.duvida summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  list-style: none;
}

.duvida summary::-webkit-details-marker {
  display: none;
}

.duvida summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--carvao)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD23F' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  transition: transform 0.2s ease;
}

.duvida[open] summary::after {
  transform: rotate(45deg);
}

.duvida__resposta {
  padding-bottom: 24px;
  color: var(--tinta-2);
  max-width: 40em;
}

.duvida__resposta p + p {
  margin-top: 12px;
}

.duvida__resposta a {
  color: var(--link);
}

/* Chamada final */

.sobre-amarelo {
  background: var(--amarelo);
  color: var(--carvao);
}

.chamada {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: end;
  gap: 32px;
}

.chamada p {
  margin-top: 16px;
  max-width: 32em;
  font-weight: 600;
}

/* ---------- Rodapé ---------- */

.rodape {
  padding-block: 56px 40px;
  font-size: 0.925rem;
  color: var(--sobre-escuro-2);
}

.rodape__grade {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 6vw, 88px);
}

.rodape__marca img {
  width: 148px;
  height: auto;
  margin-bottom: 20px;
}

.rodape p + p {
  margin-top: 12px;
}

.rodape strong {
  color: var(--sobre-escuro);
}

.rodape__links li + li {
  margin-top: 10px;
}

.rodape__links a {
  color: var(--sobre-escuro);
  font-weight: 600;
  text-underline-offset: 4px;
}

.rodape__fim {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 245, 234, 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.85rem;
}

/* ---------- Páginas de texto (Privacidade e Termos) ---------- */

.topo--claro {
  border-bottom: 1px solid var(--borda);
  background: var(--papel);
}

.texto-legal {
  max-width: 760px;
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px);
}

.texto-legal h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.texto-legal .versao {
  margin-top: 12px;
  color: var(--tinta-3);
  font-size: 0.95rem;
}

.texto-legal h2 {
  margin-top: 44px;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.texto-legal h3 {
  margin-top: 24px;
  font-size: 1.075rem;
  font-weight: 700;
}

.texto-legal p,
.texto-legal ul {
  margin-top: 14px;
  color: #2e2a1b;
}

.texto-legal ul {
  padding-left: 22px;
  list-style: disc;
}

.texto-legal li + li {
  margin-top: 8px;
}

.texto-legal a {
  color: var(--link);
}

.texto-legal .destaque {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--raio);
  background: var(--amarelo-claro);
  color: #2e2a1b;
}

/* ---------- Página não encontrada ---------- */

.vazio {
  min-height: 60vh;
  display: grid;
  align-content: center;
  gap: 20px;
  padding-block: 80px;
}

/* ---------- Telas menores ---------- */

@media (max-width: 900px) {
  .topo__links {
    display: none;
  }

  .abertura__grade,
  .duas-colunas,
  .duas-colunas--foto,
  .duas-colunas--foto-direita,
  .chamada,
  .rodape__grade {
    grid-template-columns: minmax(0, 1fr);
  }

  .abertura__grade {
    gap: 44px;
  }

  .abertura__visual {
    max-width: 520px;
  }

  .abertura__visual {
    margin-bottom: 84px;
  }

  .conversa__legenda {
    top: -32px;
    right: 0;
    padding: 0;
    background: none;
    color: var(--sobre-escuro-2);
  }

  .conversa--topo {
    top: 6%;
    left: -8px;
    right: 30%;
  }

  .conversa--base {
    left: -8px;
    right: 12%;
    bottom: -24%;
  }

  .fixo {
    position: static;
  }

  .duas-colunas--foto .foto,
  .duas-colunas--foto-direita .foto {
    max-width: 520px;
  }

  .duas-colunas--foto-direita .foto {
    order: -1;
  }

  .chamada {
    align-items: start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1rem;
  }

  .topo__linha {
    gap: 12px;
  }

  .topo__marca img {
    width: 124px;
  }

  .aviso-em-breve--pequeno {
    gap: 8px;
    padding-inline: 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .botao--pequeno {
    padding-inline: 14px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .balao {
    font-size: 0.875rem;
    padding: 10px 13px 11px;
  }

  .passo {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
  }

  .passo__no {
    width: 52px;
    height: 52px;
  }

  .passo::before {
    left: 25px;
    top: 52px;
  }

  .botao,
  .aviso-em-breve {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .aviso-em-breve {
    padding-inline: 14px;
    font-size: 0.9rem;
  }

  .topo .aviso-em-breve,
  .topo .botao {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .botao,
  .duvida summary::after {
    transition: none;
  }
}
