/* ===========================
   RC Consultoria — Design System (CSS)
   Identidade: Azul, Preto, Dourado. Estilo moderno.
   Tipografia: Montserrat.
   =========================== */

/* Fonte */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

/* Tokens */
:root {
  /* Cores principais */
  --rc-blue-900: #0f2742;   /* azul profundo */
  --rc-blue-700: #18385f;   /* azul médio para hovers */
  --rc-gold-500: #c99a33;   /* dourado principal */
  --rc-gold-600: #b5892b;   /* dourado hover */
  --rc-black:    #0f1115;   /* preto carvão */
  --rc-white:    #ffffff;

  /* Neutros */
  --rc-gray-50:  #f6f7f9;
  --rc-gray-100: #eef0f3;
  --rc-gray-300: #c9cfd6;
  --rc-gray-600: #6b7683;
  --rc-gray-800: #2a2f36;

  /* Feedback (opcional) */
  --rc-green: #1fa37c;
  --rc-red:   #d23b3b;

  /* Espaçamento e raio */
  --rc-space-1: .25rem;
  --rc-space-2: .5rem;
  --rc-space-3: .75rem;
  --rc-space-4: 1rem;
  --rc-space-6: 1.5rem;
  --rc-space-8: 2rem;
  --rc-space-12: 3rem;

  --rc-radius-sm: .5rem;
  --rc-radius-md: 1rem;
  --rc-radius-lg: 1.5rem;

  /* Sombra suave */
  --rc-shadow-1: 0 6px 20px rgba(15,17,21,.08);

  /* Larguras */
  --rc-max: 1200px;

  /* Tipografia */
  --rc-font: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --rc-leading: 1.45;
  --rc-h1: clamp(2rem, 3.2vw, 3rem);
  --rc-h2: clamp(1.5rem, 2.4vw, 2.25rem);
  --rc-h3: clamp(1.25rem, 1.6vw, 1.5rem);
}

/* Reset mínimo + base */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--rc-font);
  line-height: var(--rc-leading);
  color: var(--rc-gray-800);
  background: var(--rc-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Container */
.container {
  width: min(100% - 2rem, var(--rc-max));
  margin-inline: auto;
}

/* Tipografia utilitária */
.h1, h1 { font-weight: 700; font-size: var(--rc-h1); letter-spacing: .2px; }
.h2, h2 { font-weight: 700; font-size: var(--rc-h2); letter-spacing: .2px; }
.h3, h3 { font-weight: 600; font-size: var(--rc-h3); letter-spacing: .2px; }

.lead { font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--rc-gray-600); }

/* Cores de fundo rápidas */
.bg-blue   { background: var(--rc-blue-900); color: var(--rc-white); }
.bg-black  { background: var(--rc-black); color: var(--rc-white); }
.bg-light  { background: var(--rc-gray-50); }
.bg-white  { background: var(--rc-white); }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--rc-black);
  color: var(--rc-white);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--rc-space-6);
  padding: .9rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 700;
  color: var(--rc-white);
}
.brand .mark {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--rc-gold-500), var(--rc-gold-600));
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.06);
}
.nav {
  display: flex; gap: var(--rc-space-6);
}
.nav a {
  color: #cfd6df; font-weight: 500;
  padding: .4rem .2rem; border-radius: .4rem;
}
.nav a:hover { color: var(--rc-white); background: rgba(255,255,255,.06); }

/* Hero */
.hero {
  background:
    radial-gradient(60rem 40rem at 10% -10%, rgba(201,154,51,.12), transparent 60%),
    radial-gradient(50rem 30rem at 110% 10%, rgba(24,56,95,.18), transparent 60%),
    var(--rc-blue-900);
  color: var(--rc-white);
  padding: var(--rc-space-12) 0 var(--rc-space-12);
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--rc-space-12);
  align-items: center;
}
.hero .badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .6rem; border: 1px solid rgba(255,255,255,.22);
  color: #e7edf6; border-radius: 999px; font-size: .875rem;
  background: rgba(255,255,255,.06);
}
.hero .cta {
  display: flex; gap: var(--rc-space-4); flex-wrap: wrap; margin-top: var(--rc-space-6);
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; border: 0; cursor: pointer;
  padding: .85rem 1.1rem; border-radius: var(--rc-radius-md);
  font-weight: 600; letter-spacing: .2px; transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  box-shadow: var(--rc-shadow-1);
}
.btn:active { transform: translateY(1px); }

.btn--gold { background: var(--rc-gold-500); color: var(--rc-black); }
.btn--gold:hover { background: var(--rc-gold-600); }

.btn--ghost {
  background: transparent; color: var(--rc-white);
  border: 1px solid rgba(255,255,255,.22);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); }

/* Seções padrão */
.section { padding: var(--rc-space-12) 0; }
.section .head { margin-bottom: var(--rc-space-8); }
.section .kicker {
  display: inline-block; font-weight: 600; color: var(--rc-gold-500);
  letter-spacing: .3px; margin-bottom: .5rem;
}

/* Grades */
.grid-3 {
  display: grid; gap: var(--rc-space-6);
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  display: grid; gap: var(--rc-space-6);
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 960px) {
  .hero .grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: var(--rc-white);
  border: 1px solid var(--rc-gray-100);
  border-radius: var(--rc-radius-lg);
  padding: var(--rc-space-6);
  box-shadow: var(--rc-shadow-1);
}
.card--dark {
  background: var(--rc-black);
  color: var(--rc-white);
  border: 1px solid rgba(255,255,255,.06);
}

/* Ícones redondos */
.icon-ring {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rc-gray-50);
  border: 1px solid var(--rc-gray-100);
}
.card--dark .icon-ring {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}

/* Tabelas simples (ex: serviços) */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--rc-white);
  border: 1px solid var(--rc-gray-100);
  border-radius: var(--rc-radius-md);
  overflow: hidden;
}
.table th, .table td { padding: .9rem 1rem; text-align: left; }
.table thead th {
  background: var(--rc-gray-50);
  font-weight: 600;
  border-bottom: 1px solid var(--rc-gray-100);
}
.table tbody tr + tr td { border-top: 1px solid var(--rc-gray-100); }

/* Formulários */
.input, .select, .textarea {
  width: 100%; padding: .9rem 1rem;
  border-radius: var(--rc-radius-md);
  border: 1px solid var(--rc-gray-300);
  background: var(--rc-white); color: var(--rc-gray-800);
  transition: border .2s ease, box-shadow .2s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--rc-blue-700);
  box-shadow: 0 0 0 4px rgba(24,56,95,.12);
}
.label { display: block; font-weight: 600; margin-bottom: .4rem; }

/* Listas de benefícios com ícone */
.bullet {
  display: grid; grid-template-columns: 28px 1fr; gap: .75rem; align-items: start;
}
.bullet .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--rc-gold-500);
  box-shadow: 0 0 0 3px rgba(201,154,51,.18);
}

/* Callout de destaque */
.callout {
  border-left: 4px solid var(--rc-gold-500);
  background: linear-gradient(180deg, #fff, #fff) padding-box,
              linear-gradient(120deg, rgba(24,56,95,.25), rgba(201,154,51,.25)) border-box;
  border-radius: var(--rc-radius-md);
  padding: var(--rc-space-6);
}

/* Footer */
.footer {
  background: var(--rc-black);
  color: #cfd6df;
  padding: var(--rc-space-8) 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer a { color: #e7edf6; }
.footer .legal { color: #9aa4b0; font-size: .9rem; }

/* Badges, chips */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600;
  padding: .3rem .6rem; border-radius: 999px;
  background: var(--rc-gray-50);
  border: 1px solid var(--rc-gray-100);
}
.badge--gold { background: rgba(201,154,51,.12); border-color: rgba(201,154,51,.35); color: var(--rc-gold-500); }

/* Links com sublinhado moderno */
.link {
  color: var(--rc-blue-900); font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .25s ease;
}
.link:hover { background-size: 100% 2px; }

/* Seletor de tema escuro opcional */
@media (prefers-color-scheme: dark) {
  body { background: #0c0e12; color: #e7edf6; }
  .bg-light { background: #11141a; }
  .card { background: #12151c; border-color: #1e2430; color: #e7edf6; }
  .table { background: #12151c; border-color: #1e2430; }
  .table thead th { background: #0f131a; border-color: #1e2430; }
  .input, .select, .textarea { background: #12151c; border-color: #2b3340; color: #e7edf6; }
  .footer { background: #0b0d11; }
}

/* Helpers */
.mt-0{margin-top:0}.mt-2{margin-top:var(--rc-space-2)}.mt-4{margin-top:var(--rc-space-4)}.mt-6{margin-top:var(--rc-space-6)}.mt-8{margin-top:var(--rc-space-8)}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:var(--rc-space-2)}.mb-4{margin-bottom:var(--rc-space-4)}.mb-6{margin-bottom:var(--rc-space-6)}.mb-8{margin-bottom:var(--rc-space-8)}
.p-0{padding:0}.p-4{padding:var(--rc-space-4)}.p-6{padding:var(--rc-space-6)}.p-8{padding:var(--rc-space-8)}
.center { text-align:center }
.right { text-align:right }
.max { max-width: var(--rc-max); }

/* Exemplos rápidos de logotipo */
.logo {
  display:inline-flex; align-items:center; gap:.6rem; font-weight:700; color:var(--rc-white);
}
.logo .glyph {
  width: 36px; height: 36px; border-radius: 50%;
  background:
    conic-gradient(from 0deg, var(--rc-gold-500), var(--rc-gold-600)),
    var(--rc-gold-500);
  -webkit-mask:
    radial-gradient(circle at 55% 50%, transparent 8px, #000 9px),
    radial-gradient(circle at 70% 50%, transparent 12px, #000 13px),
    radial-gradient(circle at 85% 50%, transparent 16px, #000 17px);
  mask-composite: add;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.06);
}
.logo .text { font-size: 1.1rem; letter-spacing: .3px; }

/* Animação suave em elementos que entram na tela */
.reveal {
  opacity: 0; transform: translateY(8px);
  animation: fadeUp .5s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
/* Floating WhatsApp Button */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 1000;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 0 0 2px rgba(255,255,255,.08);
  transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease;
}
.fab:active { transform: translateY(1px) scale(.995); }

.fab--wa {
  background: #25D366; /* WhatsApp verde padrão */
  color: #fff;
}
.fab--wa:hover { box-shadow: 0 10px 28px rgba(0,0,0,.3), inset 0 0 0 2px rgba(255,255,255,.12); }

.fab svg { width: 28px; height: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .fab { animation: fab-in .25s ease both; }
  @keyframes fab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
}

/* Dark-mode borda sutil */
@media (prefers-color-scheme: dark) {
  .fab { box-shadow: 0 8px 24px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.06); }
}
