/* ==========================================================================
   VELVORA 2026 — tema de propostas
   Tokens extraidos do PDF oficial da marca (export do Canva, 23 paginas,
   1440x810). Cada cor foi lida dos content streams do PDF e conferida contra
   o SVG oficial do logo, que usa #5b0c1a.

   NAO usar aqui: sombra, sage (#CBD0B5), DM Serif Display, Reenie Beanie.
   Aquilo era o tema antigo "design6 / Modern Organic Editorial", que nunca
   foi a identidade da Velvora.
   ========================================================================== */

/* --- Fontes da marca (self-host) ----------------------------------------- */

@font-face {
  font-family: 'PP Editorial New';
  src: url('fonts/PPEditorialNew-Ultralight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Editorial New';
  src: url('fonts/PPEditorialNew-UltralightItalic.woff2') format('woff2');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'PP Editorial New';
  src: url('fonts/PPEditorialNew-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Editorial New';
  src: url('fonts/PPEditorialNew-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Velvora Sans';
  src: url('fonts/Helvetica.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Velvora Sans';
  src: url('fonts/Helvetica-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Cor. A contagem entre parenteses e quantas vezes a cor aparece no PDF. */
  --vv-bordo:       #5B0C1A;  /* (334) primaria: headings, corpo, fundos invertidos */
  --vv-bordo-deep:  #470B16;  /* (10)  cards dentro de secao bordo, hover           */
  --vv-cream:       #F6F0E7;  /* (38)  fundo de pagina, o "off white" da marca      */
  --vv-sand:        #E6DED3;  /* (178) paineis, cards, zebra, texto sobre bordo     */
  --vv-sand-line:   #DBD1C4;  /* (4)   divisoria hairline sobre creme               */
  --vv-rose:        #B28080;  /* (4)   enfase italica sobre bordo, botao            */
  --vv-taupe:       #8B7871;  /* (52)  selo, texto secundario sobre creme           */

  /* Derivadas: so transparencia das cores acima, nenhuma cor nova. */
  --vv-line-on-dark:  rgba(230, 222, 211, 0.18);
  --vv-line-on-light: rgba(91, 12, 26, 0.16);
  --vv-text-on-dark:  rgba(230, 222, 211, 0.88);

  /* Tipo */
  --vv-display: 'PP Editorial New', 'Didot', 'Bodoni 72', Georgia, serif;
  --vv-sans: 'Velvora Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --vv-fs-h1: clamp(44px, 8vw, 104px);
  --vv-fs-h2: clamp(34px, 6vw, 76px);
  --vv-fs-h3: clamp(24px, 3.4vw, 40px);
  --vv-fs-sub: clamp(20px, 2.4vw, 30px);   /* subtitulo italico de bloco */
  --vv-fs-lead: clamp(17px, 1.6vw, 21px);
  --vv-fs-body: 17px;
  --vv-fs-small: 14px;
  --vv-fs-eyebrow: 11px;

  --vv-track-eyebrow: 0.2em;
  --vv-track-display: -0.005em;
  --vv-lh-display: 0.98;
  --vv-lh-body: 1.5;

  /* Espaco */
  --vv-space-section: clamp(72px, 10vw, 140px);
  --vv-space-panel: clamp(28px, 5vw, 72px);
  --vv-wrap: 1180px;

  /* Forma. O design e plano: nenhuma sombra em lugar nenhum. */
  --vv-radius-panel: 32px;
  --vv-radius-card: 8px;
  --vv-radius-pill: 999px;
}

/* --- Base ----------------------------------------------------------------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--vv-cream);
  color: var(--vv-bordo);
  font-family: var(--vv-sans);
  font-size: var(--vv-fs-body);
  line-height: var(--vv-lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.vv-wrap {
  width: min(100% - 48px, var(--vv-wrap));
  margin-inline: auto;
}

.vv-section { padding-block: var(--vv-space-section); }

/* Secao invertida: fundo bordo, texto creme. PDF p.5, 14, 20, 23. */
.vv-section--inverted {
  background: var(--vv-bordo);
  color: var(--vv-sand);
}
.vv-section--inverted .vv-eyebrow,
.vv-section--inverted .vv-display,
.vv-section--inverted h1,
.vv-section--inverted h2,
.vv-section--inverted h3 { color: var(--vv-sand); }
.vv-section--inverted p { color: var(--vv-text-on-dark); }
.vv-section--inverted .vv-display em { color: var(--vv-rose); }

/* --- Tipografia ----------------------------------------------------------- */

/* Eyebrow: "SECAO 01", "INVESTIMENTO". PDF p.3, 4, 11, 18. */
.vv-eyebrow {
  font-family: var(--vv-sans);
  font-size: var(--vv-fs-eyebrow);
  font-weight: 400;
  letter-spacing: var(--vv-track-eyebrow);
  text-transform: uppercase;
  color: var(--vv-bordo);
  margin: 0 0 18px;
}

/* Display: h1 e h2 em PP Editorial Ultralight. A enfase vai em <em>, que
   herda a mesma familia em italico. PDF p.1, 2, 4, 11. */
.vv-display {
  font-family: var(--vv-display);
  font-weight: 200;
  font-style: normal;
  line-height: var(--vv-lh-display);
  letter-spacing: var(--vv-track-display);
  color: var(--vv-bordo);
  margin: 0 0 24px;
  font-size: var(--vv-fs-h2);
}
.vv-display--hero { font-size: var(--vv-fs-h1); }
.vv-display--sm { font-size: var(--vv-fs-h3); }
.vv-display em { font-style: italic; font-weight: 200; }

/* Subtitulo italico de bloco: "Cada peca e pensada para", "Imersao & Setup".
   PDF p.10, 16, 21. */
.vv-sub {
  font-family: var(--vv-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--vv-fs-sub);
  line-height: 1.2;
  color: var(--vv-bordo);
  margin: 0 0 20px;
}

.vv-lead {
  font-size: var(--vv-fs-lead);
  line-height: 1.55;
  max-width: 68ch;
  margin: 0 0 20px;
}

.vv-body { margin: 0 0 16px; max-width: 72ch; }
.vv-body:last-child { margin-bottom: 0; }
.vv-muted { color: var(--vv-taupe); }
.vv-small { font-size: var(--vv-fs-small); }

/* --- Painel: card bege de canto grande. PDF p.2, 3, 4, 22. ---------------- */

.vv-panel {
  background: var(--vv-sand);
  border-radius: var(--vv-radius-panel);
  padding: var(--vv-space-panel);
}
.vv-panel + .vv-panel { margin-top: 28px; }
.vv-panel--dark {
  background: var(--vv-bordo);
  color: var(--vv-sand);
}
.vv-panel--dark .vv-display,
.vv-panel--dark .vv-sub { color: var(--vv-sand); }
.vv-panel--dark .vv-display em { color: var(--vv-rose); }
.vv-panel--dark p { color: var(--vv-text-on-dark); }

/* --- Cards de servico. PDF p.11 e 12 (bordo sobre creme), p.14 (aninhado). */

.vv-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.vv-card {
  background: var(--vv-bordo);
  color: var(--vv-sand);
  border-radius: var(--vv-radius-card);
  padding: clamp(24px, 3vw, 40px);
}
/* No PDF o numero e o titulo dividem a mesma linha, numero grande a esquerda
   e titulo pequeno a direita, alinhados pela base. */
.vv-card__head {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 28px;
}
.vv-card__head .vv-card__n { margin-bottom: 0; }
.vv-card__head .vv-card__title { margin: 0; }
.vv-card__n {
  font-family: var(--vv-display);
  font-weight: 200;
  font-size: 44px;
  line-height: 1;
  color: var(--vv-sand);
  display: block;
  margin-bottom: 6px;
}
.vv-card__title {
  font-family: var(--vv-sans);
  font-size: var(--vv-fs-small);
  line-height: 1.35;
  color: var(--vv-sand);
  margin: 0 0 20px;
}
.vv-card p { color: var(--vv-text-on-dark); font-size: 15px; margin: 0 0 14px; }
.vv-card ul { margin: 0; padding-left: 18px; }
.vv-card li { color: var(--vv-text-on-dark); font-size: 15px; margin-bottom: 10px; }

/* Card dentro de uma secao ja bordo: um tom mais escuro + fio. PDF p.14. */
.vv-section--inverted .vv-card,
.vv-card--nested {
  background: var(--vv-bordo-deep);
  border: 1px solid var(--vv-line-on-dark);
}

/* --- Lista numerada com divisoria. PDF p.4 e 10. -------------------------- */

.vv-numlist { list-style: none; margin: 0; padding: 0; }
.vv-numlist li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--vv-line-on-light);
}
.vv-numlist li:first-child { border-top: 1px solid var(--vv-line-on-light); }
.vv-numlist__n {
  font-family: var(--vv-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--vv-bordo);
  padding-top: 4px;
}
.vv-numlist p { margin: 0; }
.vv-section--inverted .vv-numlist li { border-color: var(--vv-line-on-dark); }
.vv-section--inverted .vv-numlist__n { color: var(--vv-sand); }

/* --- Timeline vertical. PDF p.3 e 16. ------------------------------------ */

.vv-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.vv-timeline__col {
  border-left: 1px solid var(--vv-bordo);
  padding-left: 22px;
  position: relative;
}
.vv-timeline__col::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--vv-bordo);
}
.vv-timeline ul { list-style: none; margin: 0; padding: 0; }
.vv-timeline li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
  font-size: 15px;
}
.vv-timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* --- Tabela: header em pill bordo, corpo em zebra sand. PDF p.15 e 17. --- */

.vv-table-wrap { overflow-x: auto; }
.vv-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 620px;
}
.vv-table thead th {
  background: var(--vv-bordo);
  color: var(--vv-sand);
  font-family: var(--vv-sans);
  font-size: var(--vv-fs-eyebrow);
  font-weight: 400;
  letter-spacing: var(--vv-track-eyebrow);
  text-transform: uppercase;
  text-align: left;
  padding: 22px 28px;
}
.vv-table thead th:first-child {
  border-radius: var(--vv-radius-pill) 0 0 var(--vv-radius-pill);
}
.vv-table thead th:last-child {
  border-radius: 0 var(--vv-radius-pill) var(--vv-radius-pill) 0;
}
.vv-table tbody td {
  background: var(--vv-sand);
  padding: 20px 28px;
  font-size: 15px;
  border-bottom: 1px solid var(--vv-line-on-light);
  vertical-align: top;
}
.vv-table tbody tr:last-child td { border-bottom: 0; }
.vv-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--vv-radius-panel); }
.vv-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--vv-radius-panel); }
.vv-table__n {
  font-family: var(--vv-display);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
}
.vv-table strong { font-weight: 700; }

/* Variante sem o fundo areia, para a tabela de tom de voz (PDF p.13), que
   corre direto sobre o creme. As linhas continuam alinhadas entre as colunas
   porque e uma tabela de verdade. */
/* Só duas colunas de texto curto: cabe no celular sem scroll lateral. */
.vv-table--plain { min-width: 0; }
.vv-table--plain tbody td { background: transparent; }
@media (max-width: 620px) {
  .vv-table--plain thead th { padding: 16px 18px; }
  .vv-table--plain tbody td { padding: 14px 18px; font-size: 14px; }
  .vv-table--plain .vv-table__sim { font-size: 17px; }
}
.vv-table--plain tbody tr:last-child td { border-bottom: 1px solid var(--vv-line-on-light); }
.vv-table--plain .vv-table__sim {
  font-family: var(--vv-display);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
}

/* --- Metricas. PDF p.5 e 19. --------------------------------------------- */

.vv-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}
.vv-metric__v {
  font-family: var(--vv-display);
  font-weight: 200;
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.vv-metric__l {
  font-family: var(--vv-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}
/* Variante com fio divisorio entre colunas. PDF p.19. */
.vv-metrics--divided .vv-metric + .vv-metric {
  border-left: 1px solid var(--vv-line-on-light);
  padding-left: 28px;
}

/* --- Pill e botao. PDF p.7 (badge) e p.23 (CTA). -------------------------- */

.vv-pill {
  display: inline-block;
  border-radius: var(--vv-radius-pill);
  padding: 10px 22px;
  font-size: var(--vv-fs-eyebrow);
  letter-spacing: var(--vv-track-eyebrow);
  text-transform: uppercase;
  background: var(--vv-bordo);
  color: var(--vv-sand);
}
.vv-pill--outline {
  background: transparent;
  color: var(--vv-bordo);
  border: 1px solid var(--vv-bordo);
}

/* No PDF o botao e rose com texto creme (contraste ~2.4:1). Num PDF de
   leitura passa; num botao clicavel de pagina web, nao. Invertido aqui:
   texto bordo sobre rose fica ~4.9:1 e mantem a mesma cor de marca. */
.vv-btn {
  display: inline-block;
  border-radius: var(--vv-radius-pill);
  padding: 20px 56px;
  background: var(--vv-rose);
  color: var(--vv-bordo);
  font-family: var(--vv-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--vv-track-eyebrow);
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.vv-btn:hover { background: var(--vv-sand); color: var(--vv-bordo); }

/* --- Moldura de foto: fio duplo. PDF p.5. -------------------------------- */

.vv-frame {
  border: 1px solid var(--vv-rose);
  padding: 10px;
  border-radius: 2px;
}
.vv-frame img { border: 1px solid var(--vv-rose); border-radius: 1px; }

/* --- Play customizado. O controle nativo do browser destoa da peca; o botao
   e um circulo translucido com o triangulo em creme, como no PDF p.9. ------ */

.vv-video { position: relative; width: 100%; height: 100%; }
.vv-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vv-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(246, 240, 231, 0.55);
  background: rgba(91, 12, 26, 0.42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.vv-play::before {
  content: '';
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 15px solid var(--vv-cream);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.vv-play:hover {
  background: rgba(91, 12, 26, 0.72);
  transform: translate(-50%, -50%) scale(1.06);
}
.vv-video.is-playing .vv-play { opacity: 0; pointer-events: none; }

/* --- Faixa de video / carrossel horizontal ------------------------------- */

.vv-strip {
  display: flex;
  align-items: flex-start;   /* sem isto o flex estica os itens e quebra o aspect-ratio */
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.vv-strip::-webkit-scrollbar { height: 6px; }
.vv-strip::-webkit-scrollbar-thumb {
  background: var(--vv-sand-line);
  border-radius: var(--vv-radius-pill);
}
.vv-strip > * {
  flex: 0 0 clamp(200px, 24vw, 260px);
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: var(--vv-sand);
  aspect-ratio: 4 / 5;
}
.vv-strip--reels > * { aspect-ratio: 9 / 16; }
.vv-strip video, .vv-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Selo e logotipo ------------------------------------------------------
   Os SVGs entram por mask-image, nao por <img> nem <use>: assim o logo herda
   currentColor e muda de cor conforme o fundo, sem precisar de um arquivo por
   cor. (<use> com SVG externo e bloqueado pelos browsers.) */

.vv-selo, .vv-logo-h {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.vv-selo {
  width: clamp(72px, 8vw, 104px);
  aspect-ratio: 825 / 821;
  color: var(--vv-taupe);
  -webkit-mask-image: url('logos/velvora-selo.svg');
  mask-image: url('logos/velvora-selo.svg');
}
.vv-logo-h {
  width: clamp(160px, 20vw, 240px);
  aspect-ratio: 2607 / 375;
  color: var(--vv-bordo);
  -webkit-mask-image: url('logos/velvora-horizontal.svg');
  mask-image: url('logos/velvora-horizontal.svg');
}
.vv-section--inverted .vv-selo,
.vv-section--inverted .vv-logo-h { color: var(--vv-sand); }

/* --- Regua horizontal ----------------------------------------------------- */

.vv-rule { border: 0; border-top: 1px solid var(--vv-bordo); margin: 40px 0; }
.vv-section--inverted .vv-rule { border-color: var(--vv-line-on-dark); }

/* --- Reveal on scroll ----------------------------------------------------- */

.vv-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.vv-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .vv-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
