/* ============================================================
   VYRE — Design System
   Manual de Identidade Visual v1.0
   Amarelo #F2C94C · Preto #000000 · Branco #FFFFFF
   Proporção de uso: Preto 60% · Amarelo 25% · Branco 15%
   Tipografia: Montserrat
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- 2. Tokens ---------- */
:root {
  /* Marca */
  --gold:        #F2C94C;
  --gold-soft:   #F7DE93;
  --gold-deep:   #C9A233;
  --black:       #000000;
  --white:       #FFFFFF;

  /* Neutros derivados (mantêm a paleta enxuta) */
  --ink-900: #000000;
  --ink-800: #0A0A0A;
  --ink-700: #111111;
  --ink-600: #171717;
  --ink-500: #1F1F1F;
  --line:    rgba(255,255,255,.10);
  --line-2:  rgba(255,255,255,.18);
  --mute:    rgba(255,255,255,.62);
  --mute-2:  rgba(255,255,255,.52); /* .44 reprovava no WCAG AA nos rótulos pequenos */

  /* Tipografia */
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0:  clamp(.95rem, .92rem + .15vw, 1.02rem);
  --step-1:  clamp(1.06rem, 1rem + .3vw, 1.2rem);
  --step-2:  clamp(1.3rem, 1.18rem + .55vw, 1.6rem);
  --step-3:  clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem);
  --step-4:  clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
  --step-5:  clamp(2.7rem, 1.7rem + 4.2vw, 5.2rem);

  /* Espaço */
  --sp-1: .5rem;  --sp-2: .875rem; --sp-3: 1.25rem; --sp-4: 2rem;
  --sp-5: 3rem;   --sp-6: 4.5rem;  --sp-7: 7rem;    --sp-8: 9.5rem;

  --wrap: 1200px;
  --radius: 3px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--black); }

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

/* ---------- 4. Tipografia ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -.02em; line-height: 1.2; }
h4 { font-size: var(--step-1); letter-spacing: -.01em; line-height: 1.3; }

.display { font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.gold { color: var(--gold); }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--mute); font-weight: 400; max-width: 62ch; }
.muted { color: var(--mute); }
p + p { margin-top: 1em; }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--gold); flex: none;
}
.eyebrow--plain::before { display: none; }

/* ---------- 5. Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(100% - 5rem, var(--wrap)); } }

section { position: relative; }
/* Compensa a altura do header fixo ao pular para uma âncora (#performance, #seo…) */
[id] { scroll-margin-top: 96px; }
.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-6); }
.section--alt { background: var(--ink-700); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: var(--sp-5); }
.section-head h2 { margin-block: var(--sp-3) var(--sp-3); }

.grid { display: grid; gap: var(--sp-3); }
@media (min-width: 640px)  { .g-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .g-3 { grid-template-columns: repeat(3, 1fr); }
                             .g-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 6. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); background: rgba(0,0,0,.92); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; flex: none; }
.brand img { width: 34px; height: 34px; }
.brand__name { font-weight: 900; font-size: 1.12rem; letter-spacing: .12em; text-transform: uppercase; }

.nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1000px) { .nav { display: flex; } }
.nav a {
  position: relative; font-size: .85rem; font-weight: 600; letter-spacing: .01em;
  color: var(--mute); transition: color .2s var(--ease); padding-block: .4rem;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .28s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

/* Especificidade dobrada de propósito: a regra .btn aparece depois neste
   arquivo e, com specificity igual, venceria o display:none — fazendo o CTA
   aparecer no mobile e espremer o botão de menu. */
.header .header__cta { display: none; }
@media (min-width: 1000px) { .header .header__cta { display: inline-flex; } }

/* Mobile toggle */
.header .burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; flex: none;
  background: none; border: 0; cursor: pointer;
}
@media (min-width: 1000px) { .header .burger { display: none; } }
/* width explícito é obrigatório: o UA stylesheet do <button> aplica
   align-items:center, então spans vazios ficariam com 0px de largura
   e o ícone de menu sumiria por completo no mobile. */
.burger span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: var(--black);
  padding-block: var(--sp-3) var(--sp-4);
}
.mobile-nav.is-open { display: block; }
@media (min-width: 1000px) { .mobile-nav, .mobile-nav.is-open { display: none; } }
.mobile-nav a {
  display: block; padding: .85rem 0; font-size: 1.05rem; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: var(--sp-3); width: 100%; justify-content: center; }

/* ---------- 7. Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border: 2px solid transparent; border-radius: var(--radius);
  font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: all .25s var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn--sm { padding: .7rem 1.15rem; font-size: .72rem; }
/* Em fundo claro: nunca amarelo sobre branco (manual, p.04) */
.on-light .btn--primary { background: var(--black); color: var(--gold); border-color: var(--black); }
.on-light .btn--primary:hover { background: var(--ink-600); border-color: var(--ink-600); }
.on-light .btn--ghost { color: var(--black); border-color: rgba(0,0,0,.25); }
.on-light .btn--ghost:hover { border-color: var(--black); color: var(--black); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); transition: gap .25s var(--ease);
}
.link-arrow:hover { gap: .8rem; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(560px, 88vh, 880px); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.96) 6%, rgba(0,0,0,.72) 42%, rgba(0,0,0,.42) 78%),
    linear-gradient(to right, rgba(0,0,0,.88) 0%, rgba(0,0,0,.28) 62%, rgba(0,0,0,.5) 100%);
}
/* Sem width:100% aqui — isso anularia a centralização herdada de .wrap
   e jogaria o conteúdo do hero contra a borda esquerda da tela. */
.hero__inner { position: relative; z-index: 1; padding-block: var(--sp-6) var(--sp-6); }
.hero__title { margin-block: var(--sp-3) var(--sp-4); max-width: 16ch; }
.hero .lead { margin-bottom: var(--sp-4); }

.hero--flat { min-height: auto; background: var(--ink-800); }
.hero--flat .hero__inner { padding-block: var(--sp-7) var(--sp-6); }

/* Barra de métricas do hero */
.stats { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.stat__num { font-size: var(--step-3); font-weight: 900; color: var(--gold); line-height: 1; letter-spacing: -.02em; }
.stat__label { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-2); margin-top: .55rem; }

/* ---------- 9. Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: var(--sp-4); background: var(--ink-700);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.card:hover { border-color: rgba(242,201,76,.45); transform: translateY(-4px); background: var(--ink-600); }
.card__tag { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--sp-2); }
.card h3 { margin-bottom: .7rem; }
.card p { color: var(--mute); font-size: .93rem; }
.card__foot { margin-top: auto; padding-top: var(--sp-3); }

/* Card com imagem */
.card--media { padding: 0; overflow: hidden; }
.card--media .card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-500); }
.card--media .card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); filter: saturate(.92); }
.card--media:hover .card__img img { transform: scale(1.05); }
.card--media .card__img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.05) 60%);
}
.card--media .card__body { padding: var(--sp-3) var(--sp-4) var(--sp-4); display: flex; flex-direction: column; flex: 1; }

/* Card numerado (processo) */
.step { position: relative; padding: var(--sp-4) 0 var(--sp-4) 0; border-top: 1px solid var(--line); }
.step__num { font-size: .7rem; font-weight: 800; letter-spacing: .18em; color: var(--gold); margin-bottom: var(--sp-2); }
.step h3 { font-size: var(--step-1); margin-bottom: .55rem; }
.step p { color: var(--mute); font-size: .92rem; }

/* Lista com marcador dourado */
.ticks { display: grid; gap: .6rem; margin-top: var(--sp-3); }
.ticks li { position: relative; padding-left: 1.4rem; font-size: .9rem; color: var(--mute); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg);
}

/* ---------- 10. Blocos de destaque ---------- */
.split { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; gap: var(--sp-6); } }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.quote {
  border-left: 3px solid var(--gold); padding-left: var(--sp-4);
  font-size: var(--step-3); font-weight: 800; line-height: 1.18; letter-spacing: -.02em; max-width: 24ch;
}
.quote__by { display: block; margin-top: var(--sp-3); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute-2); }

/* Faixa dourada (proporção 25% da paleta) */
.band { background: var(--gold); color: var(--black); }
.band .eyebrow { color: var(--black); }
.band .eyebrow::before { background: var(--black); }
.band .lead, .band p { color: rgba(0,0,0,.72); }
/* Trava de segurança: nada dourado pode cair dentro de uma faixa dourada.
   Sem isso, um .gold ou .link-arrow colado aqui ficaria invisível. */
.band .gold, .band .card__tag, .band .link-arrow, .band .stat__num { color: var(--black); }
.band .gold { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.band .ticks li::before, .band .quote { border-color: var(--black); }
.band .ticks li::before { background: var(--black); }

/* ---------- 11. CTA final ---------- */
.cta { text-align: center; }
.cta__inner { max-width: 820px; margin-inline: auto; }
.cta h2 { margin-bottom: var(--sp-3); }
.cta .lead { margin-inline: auto; margin-bottom: var(--sp-4); }
.cta .btn-row { justify-content: center; }

/* ---------- 12. Formulário ---------- */
.form { display: grid; gap: var(--sp-3); }
.form__row { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; padding: .9rem 1rem; background: var(--ink-800);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--white); font-size: .95rem; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.46); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--ink-700);
}
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.form__note { font-size: .78rem; color: var(--mute-2); }
.form-panel { padding: var(--sp-4); background: var(--ink-700); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 700px) { .form-panel { padding: var(--sp-5); } }

/* ---------- 13. Página institucional (texto longo) ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: var(--step-2); margin-block: var(--sp-5) var(--sp-2); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--mute); }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--sp-5); }
.prose ul { display: grid; gap: .5rem; margin-top: var(--sp-2); }
.prose ul li { position: relative; padding-left: 1.3rem; color: var(--mute); }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* ---------- 14. Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink-800); padding-block: var(--sp-6) var(--sp-4); }
.footer__grid { display: grid; gap: var(--sp-5); }
@media (min-width: 780px)  { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer h4 { font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--sp-3); }
.footer ul { display: grid; gap: .7rem; }
.footer a { font-size: .88rem; color: var(--mute); transition: color .2s var(--ease); }
.footer a:hover { color: var(--gold); }
.footer__about p { font-size: .9rem; color: var(--mute); max-width: 42ch; margin-top: var(--sp-3); }
.footer__tag { margin-top: var(--sp-3); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mute-2); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); justify-content: space-between; align-items: center;
  margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid var(--line);
  font-size: .76rem; color: var(--mute-2);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.footer__legal a { font-size: .76rem; }

/* ---------- 15. Utilidades ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--black); padding: .75rem 1.25rem; font-weight: 800;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }

/* Rótulo de página (breadcrumb visual) */
.page-tag {
  display: inline-flex; align-items: center; gap: .7rem; padding: .45rem .9rem;
  border: 1px solid var(--line-2); border-radius: 100px;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mute);
}
.page-tag .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; flex: none; }

/* ---------- 16. Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 17. Impressão ---------- */
@media print {
  .header, .footer, .cta, .burger { display: none !important; }
  body { background: #fff; color: #000; }
}
