/* ==========================================================================
   BASE: tokens da marca, reset, tipografia, cabeçalho e rodapé.
   Tudo que as duas páginas (início e privacidade) compartilham mora aqui,
   para a identidade nunca divergir entre elas.
   Fonte da identidade: Manual de Identidade Visual 2.0 da Franca.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Verde é acento e preenchimento. Para TEXTO verde em fundo claro usa-se o
     tom "deep", porque o verde puro da marca não tem contraste suficiente. */
  --verde: #7de08d;
  --verde-hover: #71ca7f;
  --verde-deep: #4b8655;
  --verde-suave: #f2fcf4;
  --verde-dobra: #598f74;
  --navy: #081534;
  --navy-suave: #e6e8eb;
  --texto: #1c2740;
  --texto-fraco: #55607a;
  --linha: #dfe3ea;
  --fundo: #ffffff;

  --fonte-titulo: "Poppins", system-ui, sans-serif;
  --fonte-corpo: "Montserrat", system-ui, sans-serif;

  --largura: 1120px;
  --gutter: 20px;
  /* Inclinação do paralelogramo da logo, reaproveitada como grafismo. */
  --inclinacao: -24deg;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-corpo);
  font-size: 1rem;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--fonte-titulo);
  line-height: 1.15;
  /* Evita palavra órfã sozinha na última linha dos títulos. */
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

/* Foco visível para quem navega por teclado. */
:focus-visible {
  outline: 3px solid var(--verde-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* ---------- Estrutura ---------- */
.container {
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Link "pular para o conteúdo": só aparece ao receber foco. */
.pular {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  z-index: 20;
}
.pular:focus {
  left: 8px;
}

/* ---------- Botões ---------- */
/* nowrap: texto de botão nunca quebra em duas linhas (regra da casa). */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--fonte-titulo);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, transform 0.15s;
}
.botao:active {
  transform: scale(0.98);
}
.botao--verde {
  background: var(--verde);
  color: var(--navy);
}
.botao--verde:hover {
  background: var(--verde-hover);
}
.botao--navy {
  background: var(--navy);
  color: #fff;
}
.botao--navy:hover {
  background: #14234d;
}
.botao--contorno {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.botao--contorno:hover {
  background: var(--navy-suave);
}

/* ---------- Cabeçalho ---------- */
.topo {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linha);
}
.topo__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  /* No celular o nome divide a linha com o botão: fonte um pouco menor e
     nowrap para "Franca Assessoria" nunca quebrar em duas linhas. */
  font-size: 0.9375rem;
  white-space: nowrap;
  text-decoration: none;
}
.marca img {
  width: 40px;
  height: 35px;
  object-fit: contain;
}
.topo .botao {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 0.8125rem;
}

/* ---------- Rodapé ---------- */
.rodape {
  background: var(--navy);
  color: #c5cbd9;
  font-size: 0.875rem;
}
.rodape__linha {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 36px;
}
.rodape__empresa strong {
  display: block;
  color: #fff;
  font-family: var(--fonte-titulo);
  font-weight: 600;
}
.rodape__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rodape a {
  color: #fff;
  text-underline-offset: 3px;
}
.rodape a:hover {
  color: var(--verde);
}
.rodape__credito {
  padding-block: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
  .marca {
    font-size: 1.05rem;
  }
  .topo .botao {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
  .rodape__linha {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* Em telas bem estreitas o nome completo não cabe ao lado do botão do topo:
   fica só "Franca". O nome inteiro continua no aria-label do link. */
@media (max-width: 419px) {
  .marca__resto {
    display: none;
  }
}
