/* =========================================================
   VERSALHES — base visual (cores, tipografia, componentes)
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@300;400;500;600;700;800&display=swap");

:root {
  --preto: #080706;
  --preto-2: #0f0d0b;
  --carvao: #171410;
  --carvao-2: #201c17;
  --linha: rgba(214, 178, 106, 0.16);
  --linha-forte: rgba(214, 178, 106, 0.38);
  --ouro: #d6b26a;
  --ouro-claro: #f3dc9f;
  --ouro-escuro: #9a7233;
  --cobre: #b8743f;
  --creme: #f4ecdd;
  --texto: #e9e2d4;
  --texto-2: #a79e8f;
  --texto-3: #6f675b;
  --verde: #6fcf8e;
  --vermelho: #e0705f;
  --grad-ouro: linear-gradient(135deg, #9a7233 0%, #d6b26a 30%, #f7e3a8 50%, #d6b26a 70%, #8f6a2e 100%);
  --grad-escuro: linear-gradient(180deg, #14110e 0%, #0a0908 100%);
  --raio: 18px;
  --raio-sm: 12px;
  --sombra: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --fonte-titulo: "Cinzel", "Times New Roman", serif;
  --fonte-serif: "Cormorant Garamond", Georgia, serif;
  --fonte: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--preto); color: var(--texto);
  font-family: var(--fonte); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ouro); color: var(--preto); }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; border-radius: 6px; }

.ic { width: 1.25em; height: 1.25em; flex: none; }
[hidden] { display: none !important; }

/* ---------- tipografia ---------- */
.eyebrow {
  font-family: var(--fonte); font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ouro); font-weight: 600; display: inline-flex; align-items: center; gap: 0.8em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.titulo {
  font-family: var(--fonte-titulo); font-weight: 500; letter-spacing: 0.04em; line-height: 1.08;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem); margin: 0.35em 0 0.3em; color: var(--creme);
}
.titulo em { font-family: var(--fonte-serif); font-style: italic; font-weight: 500; letter-spacing: 0; }
.ouro-texto {
  background: var(--grad-ouro); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brilho 6s linear infinite;
}
@keyframes brilho { to { background-position: -200% 0; } }
.lead { font-size: 1.08rem; color: var(--texto-2); max-width: 58ch; }

/* ---------- botões ---------- */
.btn {
  --h: 52px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  height: var(--h); padding: 0 1.7em; border-radius: 999px; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase; overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn--ouro { background: var(--grad-ouro); background-size: 200% 100%; color: #1a1206; box-shadow: 0 10px 30px -10px rgba(214, 178, 106, 0.55); }
.btn--ouro::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.btn--ouro:hover::after { transform: translateX(120%); }
.btn--ouro:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(214, 178, 106, 0.7); }
.btn--linha { border: 1px solid var(--linha-forte); color: var(--creme); background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(6px); }
.btn--linha:hover { border-color: var(--ouro); color: var(--ouro-claro); transform: translateY(-2px); }
.btn--sm { --h: 40px; padding: 0 1.2em; font-size: 0.72rem; }
.btn--bloco { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn .ic { width: 1.15em; height: 1.15em; }

/* ---------- formulários ---------- */
.campo { display: grid; gap: 6px; margin-bottom: 14px; }
.campo label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texto-2); font-weight: 600; }
.input {
  height: 52px; width: 100%; padding: 0 16px; border-radius: var(--raio-sm); border: 1px solid var(--linha);
  background: rgba(255, 255, 255, 0.03); color: var(--creme); outline: none; transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
textarea.input { height: auto; min-height: 90px; padding: 14px 16px; resize: vertical; }
.input::placeholder { color: var(--texto-3); }
.input:focus { border-color: var(--ouro); background: rgba(214, 178, 106, 0.05); box-shadow: 0 0 0 4px rgba(214, 178, 106, 0.12); }
.input-senha { position: relative; }
.input-senha button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 8px; color: var(--texto-2); }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linha); color: var(--texto-2);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; transition: all 0.25s var(--ease); display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--linha-forte); color: var(--creme); }
.chip.on { background: var(--ouro); border-color: var(--ouro); color: #1a1206; }

.selo {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.66rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(214, 178, 106, 0.12); color: var(--ouro-claro); border: 1px solid var(--linha);
}
.selo--verde { background: rgba(111, 207, 142, 0.12); color: var(--verde); border-color: rgba(111, 207, 142, 0.3); }
.selo--vermelho { background: rgba(224, 112, 95, 0.12); color: var(--vermelho); border-color: rgba(224, 112, 95, 0.3); }
.selo--cinza { background: rgba(255, 255, 255, 0.05); color: var(--texto-2); border-color: rgba(255, 255, 255, 0.1); }
.pulso { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulso 1.8s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(111, 207, 142, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(111, 207, 142, 0); } }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; display: grid; gap: 8px; pointer-events: none; width: min(92vw, 420px); }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px; background: rgba(23, 20, 16, 0.96);
  border: 1px solid var(--linha-forte); color: var(--creme); font-size: 0.92rem; box-shadow: var(--sombra);
  transform: translateY(20px) scale(0.96); opacity: 0; transition: all 0.4s var(--ease); backdrop-filter: blur(10px);
}
.toast.on { transform: none; opacity: 1; }
.toast__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); flex: none; }
.toast--erro .toast__dot { background: var(--vermelho); }
.toast--info .toast__dot { background: var(--ouro); }

.confete {
  position: fixed; width: 8px; height: 12px; z-index: 9999; pointer-events: none; border-radius: 2px;
  background: var(--grad-ouro); animation: confete 1.1s var(--ease) forwards;
}
.confete:nth-child(3n) { background: var(--creme); width: 6px; height: 6px; border-radius: 50%; }
@keyframes confete { to { transform: translate(var(--dx), calc(var(--dy) + 120px)) rotate(var(--r)); opacity: 0; } }

/* ---------- utilitários ---------- */
.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grão::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 1000; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grao 1s steps(4) infinite;
}
@keyframes grao { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

.logo-v { display: inline-flex; align-items: center; gap: 12px; }
.logo-v img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.logo-v b { font-family: var(--fonte-titulo); font-weight: 600; letter-spacing: 0.28em; font-size: 1.05rem; color: var(--creme); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
