/* Home institucional da BellaVita Suplementos. Tema único, escuro (verde
   noite), sem alternância. Sem framework e sem CDN: as fontes são servidas
   por nós, os ícones são SVG inline e a única biblioteca é o GSAP, também do
   nosso domínio. Estrutura igual à home de referência (LT Beauty): loader,
   capa, "clique e acesse", banners e rodapé. */

/* Cazela (a fonte do logotipo) para títulos curtos em caixa alta e Manrope para o texto. Sem
   serifa clássica nem itálico serifado: foi reprovado nas telas da BellaVita. A Cazela desenha o
   til como acento grave, então título com til fica na Manrope. */
@font-face {
  font-family: 'Cazela';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/cazela.woff') format('woff');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/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 {
  --bg: #0a1714;            /* verde noite, o mesmo fundo do painel no escuro */
  --bg-rgb: 10, 23, 20;     /* a mesma cor em canais, para os degradês com alfa */
  --fg: #faeed7;            /* creme da marca */
  --verde: #135e45;         /* verde marca */
  --verde-profundo: #15302b;
  --cobre: #52170f;         /* cobre do B na versão clara */
  --card-border: rgba(250, 238, 215, .14);
  --accent: #c9a97a;        /* dourado claro: fios, rótulos, destaques */
  --glow: rgba(201, 169, 122, .38);
  --track: rgba(250, 238, 215, .16);
  --tinta: #06100d;         /* o rodapé desce um degrau */
  --marca: "Cazela", "Manrope", "Segoe UI", sans-serif;
  --sans: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ==== LOADER ==== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.loader-box { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.loader-marca { width: 3.6rem; height: auto; object-fit: contain; }

.loader-fio {
  display: block;
  width: 5.5rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  transform: scaleX(.15);
  transform-origin: center;
}

#loader:not(.saindo) .loader-fio { animation: fioPulsar 1.1s ease-in-out infinite; }
#loader.saindo { opacity: 0; transition: opacity .34s ease-out; pointer-events: none; }

@keyframes fioPulsar { 0%, 100% { transform: scaleX(.15) } 50% { transform: scaleX(1) } }

/* ==== CAPA ==== */
header {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: var(--bg);
}

/* Capa com foto. No celular a foto ancora no topo (o rosto fica na metade de cima e o conteúdo
   se apoia no ombro); no desktop ela centraliza e o retrato fica à esquerda. */
.cover { position: absolute; inset: 0; z-index: 0; background: var(--verde-profundo); }
.cover picture, .cover img { display: block; width: 100%; height: 100%; }
.cover img { object-fit: cover; object-position: 50% 0; }

/* Véu sobre a foto: escurece só onde o conteúdo se apoia e deixa o rosto respirar. Fica entre a
   imagem (z 0) e o conteúdo (z 10). */
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(var(--bg-rgb), 0) 0%,
    rgba(var(--bg-rgb), 0) 46%,
    rgba(var(--bg-rgb), .62) 72%,
    rgba(var(--bg-rgb), .9) 100%
  );
}

.cover-inner {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 1rem 4rem;
}

.cover-content { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }

.brand { display: inline-block; margin-bottom: 1.4rem; transition: transform .3s; }
.brand:hover { transform: scale(1.04); }
.brand img { width: 15rem; height: auto; object-fit: contain; }

.cover-frase {
  margin: 0 0 1.6rem;
  max-width: 24rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.5;
  color: rgba(250, 238, 215, .82);
  letter-spacing: .01em;
}

.socials { display: flex; align-items: center; justify-content: center; gap: .9rem; }

/* Círculos de vidro com o glifo a traço fino, a mesma espessura dos fios. */
.social {
  position: relative;
  overflow: hidden;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  text-decoration: none;
  background: rgba(250, 238, 215, .08);
  border: 1px solid rgba(250, 238, 215, .30);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .32s cubic-bezier(.34, 1.2, .64, 1),
              background-color .32s ease, border-color .32s ease,
              color .32s ease, box-shadow .32s ease;
}

.social svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social::after {
  content: "";
  position: absolute;
  top: 0;
  left: -110%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(250, 238, 215, .7), transparent);
  transform: skewX(-22deg);
  pointer-events: none;
  transition: left 0s;
}
.social:hover::after { left: 110%; transition: left .55s ease-in-out; }

.social:hover,
.social:focus-visible {
  transform: translateY(-4px);
  background: var(--fg);
  border-color: var(--fg);
  color: var(--verde-profundo);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .7);
}

.social:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Degradê que funde a capa com o fundo da página (abaixo do conteúdo). */
.cover-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 6rem;
  z-index: 5;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

/* ==== MIOLO ==== */
main {
  flex: 1 1 auto;
  z-index: 10;
  width: 100%;
  max-width: 32rem;
  margin: -1.5rem auto 0;
  padding: 0 1rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hint {
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.75rem;
}

.hint-label { display: flex; align-items: center; gap: .9rem; }

.hint-rule {
  display: block;
  width: 2.75rem;
  height: 1px;
  opacity: .7;
  background: linear-gradient(to right, transparent, var(--accent));
}
.hint-rule:last-child { background: linear-gradient(to left, transparent, var(--accent)); }

.hint-texto {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .26em;
  text-indent: .26em;
  white-space: nowrap;
  color: var(--fg);
}

.hint-trilho {
  position: relative;
  width: 1px;
  height: 2.5rem;
  margin-top: 1rem;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--track), transparent);
}

.hint-trilho::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -55%;
  height: 55%;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: hintDescer 2.4s cubic-bezier(.45, 0, .2, 1) infinite;
}

@keyframes hintDescer {
  0%   { transform: translateY(0);    opacity: 0 }
  15%  { opacity: 1 }
  75%  { opacity: 1 }
  100% { transform: translateY(280%); opacity: 0 }
}

.banners { width: 100%; display: flex; flex-direction: column; gap: 1.25rem; }

/* Banners: um por produto, na cor do rótulo de cada um. Camadas de baixo para cima: cor chapada,
   detalhe do rótulo (folhas e dourado) dissolvendo para a esquerda, frasco recortado e o texto. O
   recorte (overflow) segura o brilho que atravessa o cartão; por isso o levantar e a sombra ficam
   no cartão, nunca no conteúdo. Proporção dos banners de referência (1017x443). */
.banner-item {
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 1017 / 443;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.banner-item:hover {
  z-index: 2;
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 28px -6px var(--glow);
}

.banner-item--vitaslim   { background: linear-gradient(100deg, #0d3b2c 0%, #052a1f 52%, #07201a 100%); color: var(--fg); }
.banner-item--thermovita { background: linear-gradient(100deg, #232126 0%, #1a191d 52%, #0c0b10 100%); color: var(--fg); }
.banner-item--vitaprime  { background: linear-gradient(100deg, #fffdf9 0%, #fbf7f5 52%, #f6f0e8 100%); color: #15130f; }
.banner-item--rastreio {
  background:
    radial-gradient(70% 90% at 100% 50%, rgba(201, 169, 122, .2) 0%, rgba(201, 169, 122, 0) 60%),
    linear-gradient(120deg, var(--verde) 0%, var(--verde-profundo) 100%);
  color: var(--fg);
}

/* Detalhe do rótulo: maior que o cartão, encostado à direita, dissolvendo onde fica o texto. */
.banner-fundo {
  position: absolute;
  z-index: -1;
  right: -3%;
  top: -12%;
  height: 124%;
  width: auto;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  transition: transform .6s ease;
}
.banner-item:hover .banner-fundo { transform: scale(1.04); }

.banner-frasco {
  position: absolute;
  right: 9%;
  bottom: 5%;
  height: 90%;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .38));
  transform-origin: 50% 100%;
  transition: transform .45s cubic-bezier(.34, 1.2, .64, 1);
}
.banner-item--vitaprime .banner-frasco { filter: drop-shadow(0 14px 18px rgba(60, 45, 20, .22)); }
body.pronto .banner-frasco { animation: frasco-respira 5s ease-in-out infinite; }
body.pronto .banner-item:nth-child(2) .banner-frasco { animation-delay: -1.6s; }
body.pronto .banner-item:nth-child(3) .banner-frasco { animation-delay: -3.2s; }
.banner-item:hover .banner-frasco { animation: none; transform: translateY(-2%) scale(1.05) rotate(-2deg); }
@keyframes frasco-respira { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.2%); } }

.banner-texto {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .5rem;
  padding: 0 0 0 7%;
  width: 60%;
}

.banner-kicker {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.banner-item--vitaprime .banner-kicker { color: #6f5b44; }

.banner-texto h2 {
  margin: 0;
  font-family: var(--marca);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.02rem, 4.5vw, 1.5rem);
  line-height: 1.12;
  letter-spacing: .05em;
}
.banner-texto h2 em { font-style: normal; color: var(--accent); }
/* sobre o creme o dourado claro não dá leitura: dourado escuro da paleta (contraste 6:1) */
.banner-item--vitaprime .banner-texto h2 em { color: #6f5b44; }

.botao {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .3rem;
  padding: .55rem 1rem;
  border-radius: .5rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease;
}
.botao svg { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.botao--creme   { background: var(--fg); color: var(--verde-profundo); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); }
.botao--dourado { background: linear-gradient(100deg, #c9a97a, #e3cc9d); color: #14120f; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .7); }
.botao--preto   { background: #15130f; color: #fbf7ee; box-shadow: 0 8px 18px -10px rgba(21, 19, 15, .6); }
.banner-item:hover .botao { transform: translateX(3px); }
.banner-item:hover .botao svg { transform: translateX(3px); }

/* Rota do quarto banner: linha tracejada que corre devagar, paradas e um ponto de luz no caminho. */
.banner-rota { position: absolute; right: 4%; top: 50%; width: 38%; height: auto; transform: translateY(-50%); pointer-events: none; overflow: visible; }
.rota-linha { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 2 9; opacity: .95; }
body.pronto .rota-linha { animation: rota-corre 1.6s linear infinite; }
@keyframes rota-corre { to { stroke-dashoffset: -22; } }
.rota-parada { fill: var(--verde-profundo); stroke: var(--accent); stroke-width: 2; }
.rota-luz { fill: #faeed7; filter: drop-shadow(0 0 6px rgba(250, 238, 215, .9)); }
.rota-icone { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rota-icone--destino { stroke: var(--accent); }

/* Brilho que atravessa o cartão em laço, com atraso escalonado. */
.banner-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, .22) 50%, transparent 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  animation: none;
}

@keyframes shine-loop { 0% { left: -150% } 15% { left: 150% } 100% { left: 150% } }

body.pronto .banner-item::after { animation: shine-loop 9s infinite linear; }
body.pronto .banner-item:nth-child(1)::after { animation-delay: 0s; }
body.pronto .banner-item:nth-child(2)::after { animation-delay: 2s; }
body.pronto .banner-item:nth-child(3)::after { animation-delay: 4s; }
body.pronto .banner-item:nth-child(4)::after { animation-delay: 6s; }

.banner-item:hover::after { animation: none; left: 100%; transition: left .4s ease-in-out; }

.banner-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ==== RODAPÉ ==== */
.footer {
  position: relative;
  z-index: 10;
  margin-top: auto;
  overflow: hidden;
  padding: clamp(54px, 7vw, 92px) clamp(24px, 6vw, 88px) clamp(32px, 4vw, 48px);
  background:
    radial-gradient(circle at 14% 10%, rgba(19, 94, 69, .35), transparent 30%),
    var(--tinta);
  color: var(--fg);
  text-align: left;
  border-top: 1px solid rgba(250, 238, 215, .08);
}

.footer__main,
.footer__bottom { position: relative; z-index: 2; }

.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: start;
}

.brand--footer { display: inline-block; margin-bottom: 0; }
.brand--footer img { width: auto; height: clamp(70px, 8vw, 92px); }

.footer__brand p {
  max-width: 430px;
  margin: 26px 0;
  color: rgba(250, 238, 215, .62);
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  line-height: 1.65;
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 169, 122, .65);
  color: var(--fg);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: gap 180ms ease, color 180ms ease;
}
.footer__cta svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__cta:hover { gap: 22px; color: var(--accent); }

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  padding-top: 6px;
}

.footer__nav div { display: grid; gap: 14px; align-content: start; }

.footer__nav div > span {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.footer__nav a {
  color: rgba(250, 238, 215, .7);
  font-size: .85rem;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}
.footer__nav a:hover { color: var(--fg); transform: translateX(3px); }

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: clamp(54px, 7vw, 92px);
  padding-top: 24px;
  border-top: 1px solid rgba(250, 238, 215, .12);
}

.footer__bottom p { margin: 0; color: rgba(250, 238, 215, .45); font-size: .7rem; }

.footer__developer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(250, 238, 215, .62);
  white-space: nowrap;
  font-size: .78rem;
}

.footer__developer-link { display: inline-flex; border-radius: 4px; }

/* O logo da Futura é escuro; sobre o rodapé escuro ele só aparece invertido. */
.footer__developer-link img {
  width: 78px;
  height: auto;
  opacity: .72;
  filter: invert(1);
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}
.footer__developer-link:hover img {
  opacity: 1;
  filter: invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, .9))
          drop-shadow(0 0 18px rgba(201, 169, 122, .65));
  transform: scale(1.04);
}

/* Marca d'água: a própria logo (versão escura, dourado e creme), grande, com
   pouca opacidade e desvanecendo da esquerda para a direita e de cima para
   baixo, para o texto do rodapé continuar legível em cima dela. */
.footer__watermark {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: min(72vw, 1100px);
  height: auto;
  opacity: .085;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%, #000 100%),
                      linear-gradient(to bottom, transparent 0%, #000 60%);
  mask-image: linear-gradient(to right, transparent 0%, #000 45%, #000 100%),
              linear-gradient(to bottom, transparent 0%, #000 60%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  filter: saturate(.85);
}

.footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ==== DESKTOP ==== */
@media (min-width: 768px) {
  header { height: clamp(560px, 40vw, 800px); }
  .cover-inner { flex-direction: row; align-items: center; justify-content: flex-end; padding: 0 5rem 0 1rem; }
  .cover-content { width: 50%; }
  .brand img { width: 19rem; }
  .cover-frase { font-size: 1.16rem; max-width: 26rem; }
  .cover img { object-position: 50% 8%; }
  /* No desktop o conteúdo fica à direita: o véu pesa para esse lado e a foto segue limpa à esquerda. */
  .cover::after {
    background:
      linear-gradient(to right, rgba(var(--bg-rgb), 0) 34%, rgba(var(--bg-rgb), .58) 70%, rgba(var(--bg-rgb), .72) 100%),
      linear-gradient(to bottom, transparent 62%, rgba(var(--bg-rgb), .6) 100%);
  }
  .banner-texto h2 { font-size: 1.5rem; }
}

@media (max-width: 767px) {
  header { height: 660px; }
  .cover { background: var(--bg); }
  .cover picture { height: 510px; }
  .cover::after {
    background: linear-gradient(
      to bottom,
      rgba(var(--bg-rgb), 0) 0%,
      rgba(var(--bg-rgb), 0) 44%,
      rgba(var(--bg-rgb), .5) 58%,
      rgba(var(--bg-rgb), .88) 70%,
      var(--bg) 77.3%
    );
  }
  .cover-inner { padding-bottom: 2.4rem; }
  .cover-fade {
    height: 15rem;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(var(--bg-rgb), .38) 38%,
      rgba(var(--bg-rgb), .82) 72%,
      var(--bg) 100%
    );
  }
  .banner-texto { width: 62%; padding: 0 0 0 6%; gap: .38rem; }
  .banner-frasco { right: 6%; }
  .botao { padding: .46rem .8rem; font-size: .68rem; }

  .footer { text-align: center; }
  .footer__main { grid-template-columns: 1fr; gap: 46px; justify-items: center; }
  .footer__brand p { margin: 22px auto; }
  .footer__nav { width: 100%; grid-template-columns: 1fr; gap: 32px; }
  .footer__nav div { justify-items: center; }
  .footer__bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .footer__developer { justify-content: center; white-space: normal; }
  .footer__watermark { font-size: 5.5rem; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .footer__main { grid-template-columns: 1fr 1fr; gap: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-fio { animation: none !important; transform: scaleX(1) }
  .hint-trilho::after, body.pronto .banner-item::after, body.pronto .banner-frasco, body.pronto .rota-linha { animation: none }
  .banner-item, .banner-frasco, .banner-fundo, .botao, .brand, .social, .footer__cta, .footer__nav a { transition: none }
  .banner-item:hover, .brand:hover, .social:hover { transform: none }
  .banner-item:hover .banner-frasco, .banner-item:hover .banner-fundo, .banner-item:hover .botao { transform: none }
  .footer__nav a:hover { transform: none }
}
