/* ==========================================================================
   FG PRIME — Consultoria Empresarial
   Design tokens + base + componentes
   Referência de cores: logo (dourado escovado + prata escovada sobre preto)
   ========================================================================== */

:root {
  /* --- Dourado (extraído da logo) --- */
  --gold-100: #F3DFB4;
  --gold-200: #E9C67E;
  --gold-300: #E0A24A;
  --gold-500: #C88830;   /* principal */
  --gold-700: #B87828;
  --gold-900: #8A5A1C;

  /* --- Prata / aço (extraído da logo) --- */
  --silver-100: #F2F2F2;
  --silver-300: #D0D0D0;
  --silver-500: #A8A8A8;
  --silver-700: #888888;
  --silver-900: #5A5A5C;

  /* --- Grafite / preto --- */
  --ink-950: #09090A;
  --ink-900: #111113;
  --ink-800: #18181B;
  --ink-700: #232327;
  --ink-600: #2E2E33;

  /* --- Claros (seções de respiro) --- */
  --cream: #F5F1E8;
  --paper: #FBF9F4;

  /* --- Semânticos --- */
  --bg: var(--ink-950);
  --bg-elev: var(--ink-900);
  --bg-card: var(--ink-800);
  --text: var(--silver-100);
  --text-muted: var(--silver-500);
  --text-soft: var(--silver-700);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: var(--gold-500);
  --accent-hover: var(--gold-300);
  --accent-ink: var(--ink-950);
  --focus: var(--gold-300);

  /* --- Gradientes (efeito metálico) --- */
  --grad-gold: linear-gradient(135deg, #E0A24A 0%, #C88830 45%, #B87828 70%, #8A5A1C 100%);
  --grad-gold-action: linear-gradient(135deg, var(--gold-200), var(--gold-500) 65%, var(--gold-700));
  --grad-gold-text: linear-gradient(180deg, #F3DFB4 0%, #E0A24A 35%, #C88830 65%, #8A5A1C 100%);
  --grad-silver-text: linear-gradient(180deg, #F2F2F2 0%, #D0D0D0 40%, #A8A8A8 70%, #888888 100%);
  --grad-hero: radial-gradient(1200px 600px at 80% 10%, rgba(200, 136, 48, 0.18), transparent 60%),
               radial-gradient(800px 500px at 10% 90%, rgba(168, 168, 168, 0.08), transparent 60%);

  /* --- Tipografia --- */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);
  --fs-hero: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);
  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.65;
  --tracking-caps: 0.18em;

  /* --- Espaçamento --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(4rem, 3rem + 4vw, 7.5rem);
  --gutter: 1rem;
  --container: 1200px;

  /* --- Forma --- */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-gold: 0 10px 40px rgba(200, 136, 48, 0.25);

  /* --- Movimento --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}

/* Seções claras herdam tokens invertidos */
.theme-light {
  --bg: var(--cream);
  --bg-elev: var(--paper);
  --bg-card: var(--paper);
  --text: var(--ink-900);
  --text-muted: var(--silver-900);
  --text-soft: var(--silver-900);
  --line: rgba(17, 17, 19, 0.10);
  --line-strong: rgba(17, 17, 19, 0.2);
  --accent: var(--gold-900);
  --accent-hover: var(--gold-900);
  --focus: var(--gold-900);
  --shadow: 0 20px 60px rgba(17, 17, 19, 0.12);
  --shadow-soft: 0 10px 30px rgba(17, 17, 19, 0.08);
  background: var(--bg);
  color: var(--text);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

}
[hidden] { display: none !important; }
[id] { scroll-margin-top: 100px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--gold-500); color: var(--ink-950); }

/* ==========================================================================
   Utilitários
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.text-gold { background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-silver { background: var(--grad-silver-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 28px; height: 1px; background: var(--accent); }

.section-head { max-width: 760px; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--sp-4); }
.section-head h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
.section-head p { font-size: var(--fs-md); color: var(--text-muted); max-width: 62ch; }
.section-head--center p { margin-inline: auto; }

.rule-gold { width: 64px; height: 2px; background: var(--grad-gold); border-radius: 2px; }

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 52px; padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.04em;
  cursor: pointer; white-space: normal; text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--grad-gold-action); color: var(--ink-950); box-shadow: 0 6px 24px rgba(200, 136, 48, 0.28); }
.btn--gold:hover { box-shadow: var(--shadow-gold); filter: brightness(1.06); }

.btn--outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--gold-500); color: var(--gold-300); }
.theme-light .btn--outline:hover { color: var(--gold-900); }

.btn--ghost { background: transparent; color: var(--text-muted); padding-inline: var(--sp-3); min-height: 40px; }
.btn--ghost:hover { color: var(--text); transform: none; }

.btn--whatsapp { background: #25D366; color: #052E16; }
.btn--whatsapp:hover { background: #2EE674; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3); }

.btn--lg { min-height: 58px; padding: 1rem 2rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-6);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(200, 136, 48, 0.45); box-shadow: var(--shadow-soft); }
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.card p { color: var(--text-muted); font-size: var(--fs-sm); }

.card__num {
  font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-weight: 600;
  background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: var(--sp-4);
}
.card__icon {
  width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(200, 136, 48, 0.12); border: 1px solid rgba(200, 136, 48, 0.35); color: var(--gold-300);
  margin-bottom: var(--sp-4);
}
.theme-light .card__icon { color: var(--gold-700); }
.card__icon svg { width: 22px; height: 22px; }

.card--feature { border-top: 2px solid transparent; border-image: var(--grad-gold) 1; border-image-width: 2px 0 0 0; }

/* ==========================================================================
   Formulários
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.input, .select, .textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: var(--fs-base);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.theme-light .input, .theme-light .select, .theme-light .textarea { background: var(--paper); }
.input::placeholder, .textarea::placeholder { color: var(--text-soft); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(200, 136, 48, 0.18); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A8A8A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.75rem; }
.select option { color: var(--ink-900); }
.textarea { min-height: 120px; resize: vertical; }

/* ==========================================================================
   Chips / badges / listas
   ========================================================================== */
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}
.chip--gold { border-color: rgba(200, 136, 48, 0.5); color: var(--gold-300); background: rgba(200, 136, 48, 0.08); }
.theme-light .chip--gold { color: var(--gold-900); }

.check-list { display: grid; gap: var(--sp-3); }
.check-list li { display: flex; gap: var(--sp-3); align-items: flex-start; color: var(--text-muted); font-size: var(--fs-sm); }
.check-list svg { width: 18px; height: 18px; flex: none; color: var(--gold-300); margin-top: 3px; }
.theme-light .check-list svg { color: var(--gold-700); }

/* ==========================================================================
   Animação de entrada
   ========================================================================== */
/* Entry motion is added in JavaScript; content is visible by default. */
.reveal { opacity: 1; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 20px; background: var(--cream); color: var(--ink-950);
  border-radius: var(--radius-sm); transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
