/* ══════════════════════════════════════════════════════════════
   RC Corretora — base do site (redesign 13/11/2026)
   Tokens, tipografia, botões, cabeçalho e rodapé.
   Serve para todas as páginas; o Início usa também rc-home.css.

   Identidade preservada do site anterior:
     vermelho #cc0000 · preto #0a0a0a · superfícies quentes #fbfcf6/#f3f4ee
     botões em pílula · moldura vermelha deslocada atrás das fotos
   O que evolui:
     títulos em Plus Jakarta Sans (escolha do Pedro, 17/11)
     e da parede do escritório; o texto continua em Inter, como antes.
     Só duas fontes e seis tamanhos (--t-*). Um raio, um cabeçalho.
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Cor — todas já existiam na paleta do site */
  --rc-vermelho: #cc0000;
  --rc-vermelho-escuro: #930000;
  --rc-preto: #0a0a0a;
  --rc-grafite: #1a1c19;
  --rc-texto: #3b3636;
  --rc-terra: #916f69;        /* detalhes pequenos: legendas, fios */
  --rc-papel: #fbfcf6;
  --rc-papel-2: #f3f4ee;
  --rc-linha: #e2e3dd;
  --rc-branco: #ffffff;

  /* Tipografia */
  --rc-titulo: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --rc-sans: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Escala única de tamanhos: não usar outros valores */
  --t-1: clamp(38px, 5.2vw, 64px);   /* destaque: banner, chamada final, números */
  --t-2: clamp(28px, 3.6vw, 44px);   /* título de seção */
  --t-3: 22px;                       /* título de bloco/cartão */
  --t-texto: 17px;                   /* texto corrido */
  --t-menor: 15px;                   /* menu, botões, etiquetas, rodapé */
  --t-rotulo: 12px;                  /* rótulos em caixa-alta */

  /* Forma e ritmo */
  --rc-raio: 14px;            /* fotos e painéis */
  --rc-raio-p: 6px;           /* detalhes pequenos */
  --rc-largura: 1200px;
  --rc-margem: clamp(20px, 4vw, 48px);
  --rc-secao: clamp(64px, 9vw, 120px);
  --rc-cabecalho: 96px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--rc-cabecalho) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--rc-papel);
  color: var(--rc-texto);
  font-family: var(--rc-sans);
  font-size: var(--t-texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--rc-titulo);
  font-weight: 500;
  font-optical-sizing: auto;
  color: var(--rc-grafite);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--rc-vermelho); }

:focus-visible { outline: 3px solid var(--rc-vermelho); outline-offset: 3px; border-radius: 4px; }

.rc-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.rc-caixa {
  width: 100%;
  max-width: calc(var(--rc-largura) + 2 * var(--rc-margem));
  margin-inline: auto;
  padding-inline: var(--rc-margem);
}

/* ── Cabeçalho de seção: etiqueta + título + apoio ── */
.rc-etiqueta {
  display: flex; align-items: center; gap: 12px;
  font-size: var(--t-rotulo); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rc-terra);
}
.rc-etiqueta::before { content: ""; width: 28px; height: 2px; background: var(--rc-vermelho); }
.rc-titulo { margin-top: 18px; font-size: var(--t-2); line-height: 1.1; }
.rc-apoio { margin-top: 18px; max-width: 54ch; }

/* ── Botões (pílula, como sempre foram) ── */
.rc-botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 28px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 var(--t-menor)/1.2 var(--rc-sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.rc-botao svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.rc-botao:active { transform: translateY(1px); }
.rc-botao--vermelho { background: var(--rc-vermelho); color: #fff; }
.rc-botao--vermelho:hover { background: var(--rc-vermelho-escuro); }
.rc-botao--claro { border-color: rgba(255, 255, 255, .45); color: #fff; }
.rc-botao--claro:hover { background: #fff; border-color: #fff; color: var(--rc-preto); }
.rc-botao--escuro { border-color: var(--rc-grafite); color: var(--rc-grafite); }
.rc-botao--escuro:hover { background: var(--rc-grafite); color: #fff; }

/* Link com seta: o segundo nível de chamada */
.rc-seta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--rc-vermelho); padding-bottom: 3px;
}
.rc-seta::after { content: "→"; transition: transform .2s; }
.rc-seta:hover::after { transform: translateX(4px); }

/* ══ Cabeçalho ══════════════════════════════════════════════
   Igual ao site anterior (pedido do Pedro, 13/11): logo grande à esquerda,
   menu no meio, redes sociais em carrossel à direita; transparente no topo
   e preto ao rolar. Novo: sublinhado vermelho animado ao passar o mouse. */
.rc-topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--rc-cabecalho); padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background-color .4s, backdrop-filter .4s, box-shadow .4s;
}
.rc-topo.rolou { background: rgba(10, 10, 10, .95); backdrop-filter: blur(12px); box-shadow: 0 4px 25px rgba(0, 0, 0, .6); }
.rc-topo__logo { display: inline-flex; align-items: center; flex: none; }
.rc-topo__logo img { height: 96px; width: auto; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .07)) drop-shadow(0 2px 2px rgba(0, 0, 0, .06)); }

.rc-nav { display: none; align-items: center; gap: 40px; }
.rc-nav a {
  position: relative; padding: 8px 0;
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .025em; text-decoration: none;
  transition: color .2s;
}
.rc-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--rc-vermelho); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.rc-nav a:hover { color: #fff; }   /* letra fica branca; só o sublinhado anima */
.rc-nav a[aria-current="page"] { color: #fff; }
.rc-nav a:hover::after, .rc-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* redes sociais: pílula preta com os ícones andando */
.rc-redes-topo { display: none; position: relative; width: 240px; padding: 8px 16px; border-radius: 999px; background: #000; overflow: hidden; }
.rc-redes-topo::before, .rc-redes-topo::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 20; pointer-events: none; }
.rc-redes-topo::before { left: 0; background: linear-gradient(to right, #000 16px, transparent); }
.rc-redes-topo::after { right: 0; background: linear-gradient(to left, #000 16px, transparent); }
.rc-redes-topo__janela { overflow: hidden; }
.rc-redes-topo__fila { display: flex; width: max-content; will-change: transform; }
.rc-redes-topo__grupo { display: flex; align-items: center; gap: 24px; padding-right: 24px; }
.rc-redes-topo__grupo a {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  border-radius: 8px; background: var(--rc-vermelho); color: #fff; box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
  transition: transform .3s, box-shadow .3s;
}
.rc-redes-topo__grupo a:hover { transform: scale(1.15); box-shadow: 0 0 15px rgba(204, 0, 0, .5); }
.rc-redes-topo__grupo svg { width: 20px; height: 20px; fill: currentColor; }
.rc-redes-topo__seta {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 30;
  width: 32px; height: 32px; display: grid; place-items: center; padding: 0;
  border: 0; background: none; color: #fff; cursor: pointer;
}
.rc-redes-topo__seta svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 1px #000); }
.rc-redes-topo__seta:hover { transform: translateY(-50%) scale(1.1); }

.rc-topo__menu {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: none; border: 0; color: #fff; cursor: pointer;
}
.rc-topo__menu svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

@media (min-width: 768px) {
  .rc-topo { padding: 0 32px; }
  .rc-topo__logo img { height: 128px; }
  .rc-nav, .rc-redes-topo { display: flex; }
  .rc-redes-topo { display: block; }
  .rc-topo__menu { display: none; }
}
@media (min-width: 768px) and (max-width: 1100px) {   /* tela média: menu mais junto */
  .rc-nav { gap: 22px; }
  .rc-redes-topo { width: 192px; }
}

/* Gaveta do celular, como antes */
.rc-gaveta {
  position: fixed; inset: 0; z-index: 70; visibility: hidden;
  background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s, visibility 0s .3s;
}
.rc-gaveta.aberta { visibility: visible; opacity: 1; transition: opacity .3s; }
.rc-gaveta__painel {
  position: absolute; inset: 0 0 0 auto; width: 288px; max-width: 86vw;
  display: flex; flex-direction: column; padding: 32px;
  background: var(--rc-preto); color: #fff;
  transform: translateX(100%); transition: transform .3s ease-in-out;
}
.rc-gaveta.aberta .rc-gaveta__painel { transform: none; }
.rc-gaveta__fechar { align-self: flex-end; margin: -8px -8px 24px 0; }
.rc-gaveta nav { display: flex; flex-direction: column; gap: 24px; }
.rc-gaveta nav a { color: var(--rc-linha); font-size: 18px; line-height: 28px; font-weight: 700; letter-spacing: .025em; text-decoration: none; transition: color .2s; }
.rc-gaveta nav a:hover { color: var(--rc-vermelho); }
.rc-gaveta nav a[aria-current="page"] { color: #fff; }
.rc-gaveta__acao { margin-top: auto; align-self: flex-start; }

/* ══ Rodapé ═════════════════════════════════════════════════ */
.rc-rodape { background: var(--rc-preto); color: rgba(255, 255, 255, .72); font-size: var(--t-menor); }
.rc-rodape a { text-decoration: none; transition: color .2s; }
.rc-rodape a:hover { color: #fff; }
.rc-rodape__grade {
  display: grid; gap: 40px 32px; padding-block: 64px 48px;
  grid-template-columns: 1fr 1fr;
}
.rc-rodape__marca { grid-column: 1 / -1; }
.rc-rodape__marca img { height: 104px; width: auto; margin: -14px 0 0 -18px; }
.rc-rodape__marca p { margin-top: 10px; max-width: 34ch; line-height: 1.5; color: #fff; }
.rc-rodape h4 {
  margin-bottom: 16px; font: 700 var(--t-rotulo)/1 var(--rc-sans);
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.rc-rodape li + li { margin-top: 9px; }
.rc-rodape address { font-style: normal; line-height: 1.65; }
.rc-rodape address a { color: #fff; font-weight: 600; }
.rc-redes { display: flex; gap: 10px; margin-top: 22px; }
.rc-redes a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; color: #fff;
  transition: background-color .2s, border-color .2s;
}
.rc-redes a:hover { background: var(--rc-vermelho); border-color: var(--rc-vermelho); }
.rc-redes svg { width: 18px; height: 18px; fill: currentColor; }
.rc-rodape__fim {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
}
@media (min-width: 860px) {
  .rc-rodape__grade { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .rc-rodape__marca { grid-column: auto; }
}

/* ══ Barra de contato do celular (aparece depois do banner) ══ */
.rc-barra {
  position: fixed; inset: auto 0 0 0; z-index: 45;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, .96);
  transform: translateY(105%); transition: transform .3s ease;
}
.rc-barra.visivel { transform: none; }
.rc-barra .rc-botao { min-height: 48px; padding: 10px 14px; }
@media (min-width: 960px) { .rc-barra { display: none; } }
@media (max-width: 959px) { body.tem-barra .rc-rodape__fim { padding-bottom: 92px; } }

/* ══ Entrada suave ao rolar (só com JS; respeita "reduzir movimento") ══ */
.js .rc-surge { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rc-surge.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rc-surge { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ══ Tipografia única (17/11, Pedro) ═════════════════════════
   Títulos (h1–h3): Plus Jakarta Sans 700. Resto: Inter 400/600/700.
   Todo tamanho sai dos 6 tokens --t-*; rótulos sempre --t-rotulo, 700, .14em. */
:root { --t-1: clamp(34px, 5vw, 60px); --t-2: clamp(28px, 3.4vw, 42px); }
h1, h2, h3 { font-family: var(--rc-titulo); font-weight: 700; letter-spacing: -0.01em; word-spacing: .04em; }
h1 em, h2 em { font-style: normal; font-weight: inherit; }
.rc-nav a { font-size: var(--t-menor); font-weight: 600; letter-spacing: 0; }
.rc-gaveta nav a { font-size: var(--t-3); line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.rc-etiqueta, .rc-rodape h4 { letter-spacing: .14em; }
.rc-seta { font-size: var(--t-menor); font-weight: 600; }

/* 17/11: entre 768 e 1100 px o menu completo não cabe ("Nosso Dna" quebrava e encostava na logo e nas
   redes). Nessa faixa fica o botão de menu (gaveta), como no site antigo; logo e redes continuam. */
@media (min-width: 768px) and (max-width: 1100px) {
  .rc-nav { display: none; }
  .rc-topo__menu { display: inline-flex; margin-left: 16px; }
  .rc-redes-topo { margin-left: auto; }
}
/* 17/11: celulares bem estreitos (320 px) — rodapé passava 4 px para o lado */
.rc-rodape__grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-rodape__grade > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 359px) { .rc-rodape__grade { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 860px) { .rc-rodape__grade { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
/* 17/11 (Pedro achou "Seguradoras parceiras" pequeno): títulos de seção voltam ao tamanho do site antigo, 48 px no computador */
:root { --t-2: clamp(28px, 3.6vw, 48px); }
