/* Vita Carnis — réplica estática do site original (v0.app / Next.js + Tailwind).
   Os valores abaixo reproduzem exatamente os utilitários Tailwind usados lá. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Métricas ajustadas para o texto não "pular" quando a Inter termina de carregar */
@font-face {
  font-family: "Inter Fallback";
  src: local(Arial);
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

:root {
  --fundo: #000;
  --texto: #fff;
  --cartao: #0a0a0a;
  --primaria: #ffd000;
  --sobre-primaria: #000;
  --texto-suave: #a0a0a0;
  --raio: 1rem;
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --ease-padrao: cubic-bezier(.4, 0, .2, 1);
}

*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--fundo);
  color: var(--texto);
  font-family: Inter, "Inter Fallback", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h3 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Animação de entrada ---------- */

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: .6s ease-out forwards fade-up;
}

/* ---------- Estrutura ---------- */

.pagina {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 3rem 1rem;
  background-color: var(--fundo);
}

.conteudo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 480px;
}

/* ---------- Cabeçalho ---------- */

.cabecalho {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo {
  position: relative;
  width: 8rem;
  height: 8rem;
}

.logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.marca {
  text-align: center;
}

.marca h1 {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.025em;
  color: var(--texto);
}

.slogan {
  margin-top: .25rem;
  font-size: .875rem;
  line-height: calc(1.25 / .875);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primaria);
}

.redes {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.redes a {
  color: var(--texto-suave);
  transition: color .2s var(--ease-padrao);
}

.redes svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ---------- Botões de link ---------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.botao {
  position: relative;
  display: block;
  width: 100%;
}

.botao__caixa {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border: 2px solid var(--primaria);
  border-radius: var(--raio);
  background-color: var(--fundo);
  color: var(--texto);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
  transition: all .3s var(--ease-out);
}

/* Variação "destaque" (existe no componente original; hoje nenhum botão usa) */
.botao--destaque .botao__caixa {
  border-width: 0;
  background-color: var(--primaria);
  color: var(--sobre-primaria);
  box-shadow: 0 0 20px rgba(255, 208, 0, .3);
}

.botao__selo {
  position: absolute;
  top: -.625rem;
  right: -.5rem;
  padding: .125rem .625rem;
  border-radius: 9999px;
  background-color: var(--primaria);
  color: var(--sobre-primaria);
  font-size: .75rem;
  line-height: calc(1 / .75);
  font-weight: 700;
  letter-spacing: .025em;
}

.botao--destaque .botao__selo {
  background-color: var(--texto);
  color: var(--fundo);
}

/* ---------- Produto em destaque ---------- */

.destaque {
  width: 100%;
}

.produto {
  display: block;
  width: 100%;
}

.produto__cartao {
  overflow: hidden;
  border: 2px solid var(--primaria);
  border-radius: var(--raio);
  background-color: var(--cartao);
  transition: all .3s var(--ease-out);
}

.produto__imagem {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.produto__imagem img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.produto__corpo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
}

.produto__corpo h3 {
  font-size: .875rem;
  line-height: 1.375;
  font-weight: 600;
  text-align: center;
  color: var(--texto);
}

.produto__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .625rem 1.5rem;
  border-radius: calc(.75rem + 4px);
  background-color: var(--primaria);
  color: var(--sobre-primaria);
  font-size: .875rem;
  line-height: calc(1.25 / .875);
  font-weight: 700;
  transition: all .3s var(--ease-padrao);
}

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

.rodape {
  font-size: .75rem;
  line-height: calc(1 / .75);
  text-align: center;
  color: var(--texto-suave);
}

/* ---------- Hover (só em dispositivos com ponteiro, como no Tailwind 4) ---------- */

@media (hover: hover) {
  .redes a:hover {
    color: var(--primaria);
  }

  .botao:not(.botao--destaque) .botao__caixa:hover {
    background-color: var(--primaria);
    color: var(--sobre-primaria);
  }

  .botao__caixa:hover,
  .produto__cartao:hover {
    scale: 1.02;
  }

  .botao--destaque .botao__caixa:hover {
    box-shadow: 0 0 30px rgba(255, 208, 0, .5);
  }

  .produto__cartao:hover {
    box-shadow: 0 0 20px rgba(255, 208, 0, .2);
  }

  .produto:hover .produto__cta {
    box-shadow: 0 0 15px rgba(255, 208, 0, .4);
  }
}

/* ---------- Telas médias em diante (breakpoint md do Tailwind) ---------- */

@media (min-width: 48rem) {
  .pagina {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .logo {
    width: 9rem;
    height: 9rem;
  }

  .marca h1 {
    font-size: 2.25rem;
    line-height: calc(2.5 / 2.25);
  }

  .slogan {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* Acessibilidade: sem animação para quem pede movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    animation: none;
  }
}
