/* Estilos comuns às páginas do site: cores, fontes, cabeçalho e rodapé. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #8E1B1F;
  --red-dark: #5E0F12;
  --gold: #F2B630;
  --ink: #1B1414;
  --paper: #F5F3EF;
  --gray: #5B5350;
  --white: #ffffff;
  --line: #DDD7CE;
  --on-dark-muted: #B0A8A4;
  --dark-line: #3A302F;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'Manrope', system-ui, sans-serif;
  --header-h: 68px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--text);
  font-size: 16px; line-height: 1.6;
  background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.topo :focus-visible, .sec-light :focus-visible, .sec-white :focus-visible { outline-color: var(--red); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 10px; cursor: pointer;
  font-weight: 800; font-size: 16px; text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-ouro { background: var(--gold); color: var(--ink); }
.btn-ouro:hover { background: #FFC94D; }

/* Topo */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); color: var(--ink);
  border-bottom: 1px solid #E6DFD9;
}
.topo-linha {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo img { width: 40px; height: 40px; }
.topo-acoes { display: flex; align-items: center; gap: 8px; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.menu a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
  border-radius: 8px;
}
.menu a:hover { color: var(--red); background: var(--paper); }
.btn-baixar { min-height: 44px; padding: 0 18px; gap: 0.3em; font-size: 15px; white-space: nowrap; }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 0; border-radius: 8px; color: var(--ink); cursor: pointer;
}
.menu-toggle:hover { color: var(--red); background: var(--paper); }
.menu-toggle .ico-fechar,
.menu-toggle[aria-expanded="true"] .ico-abrir { display: none; }
.menu-toggle[aria-expanded="true"] .ico-fechar { display: block; }

/* Rodapé */
.rodape { background: var(--ink); color: var(--on-dark-muted); font-size: 14px; }
.rodape-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; }
.rodape-marca { display: flex; align-items: center; gap: 10px; }
.rodape nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.rodape a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); }

@media (max-width: 900px) {
  .menu a { padding: 0 9px; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .container { padding-left: 20px; padding-right: 20px; }

  .logo { font-size: 22px; gap: 8px; }
  .logo img { width: 36px; height: 36px; }
  .menu-toggle { display: flex; }
  .so-desktop { display: none; }
  .menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 20px 16px;
    border-top: 1px solid #E6DFD9; border-bottom: 1px solid #E6DFD9;
    box-shadow: 0 8px 16px rgba(27, 20, 20, 0.08);
  }
  .menu.aberto { display: flex; }
  .menu a { min-height: 48px; padding: 0 8px; font-size: 17px; }

  .rodape-linha { flex-direction: column; align-items: flex-start; }
}

/* Telas bem estreitas: o logo não pode encostar no botão "Baixar" */
@media (max-width: 360px) {
  .logo { font-size: 20px; }
  .logo img { width: 32px; height: 32px; }
  .btn-baixar { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
