/*
 * Base do site (todas as páginas): tema escuro, escrito para 360-390 px; telas maiores só com min-width (640, 960).
 * As seções da página inicial ficam em landing.css. Laranja da marca (#F97316) com texto escuro por cima:
 * branco sobre esse laranja não passa no contraste AA.
 */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #1a0f07;
  --bg-alt: #211309;
  --surface: #2a1810;
  --surface-strong: #3a2215;
  --primary: #f97316;
  --primary-hover: #fb8a3c;
  --on-primary: #1a0f07;
  --peach: #fed7aa;
  --ink: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --success: #4ade80;
  --line: rgba(255, 255, 255, 0.08);
  --line-accent: rgba(249, 115, 22, 0.22);
  --radius: 16px;
  --gutter: 20px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Ícones Lucide (ISC) num sprite no topo da página: <svg class="icon"><use href="#i-..."/></svg> */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Botões (alvos de toque de 48 px) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.45);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--primary);
}

.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.0625rem;
}

/* ---------- Topo ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(26, 15, 7, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 32px;
}

.desktop-nav {
  display: none;
}

.desktop-nav a:not(.btn) {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.desktop-nav a:not(.btn):hover {
  color: var(--ink);
}

.menu-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.menu-button .icon {
  width: 26px;
  height: 26px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow-y: auto;
  background: var(--bg);
  padding: 12px var(--gutter) 32px;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.mobile-menu nav {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  font-size: 1.25rem;
  font-weight: 600;
}

.mobile-menu nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.mobile-menu nav .btn {
  margin-top: 16px;
}

/* ---------- Rodapé ---------- */
.site-footer {
  padding: 48px 0 112px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.9375rem;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--ink);
}

.footer-brand img {
  display: block;
  width: auto;
  height: 32px;
  margin-bottom: 12px;
}

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.link-button {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

/* ---------- Barra fixa do celular e aviso de cookies ---------- */
.mobile-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 15;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(26, 15, 7, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.2s ease;
}

.mobile-bar.is-visible {
  transform: none;
}

.mobile-bar .btn {
  width: 100%;
}

.consent {
  position: fixed;
  inset: auto 12px 12px;
  z-index: 40;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line-accent);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.consent p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.consent a {
  color: var(--peach);
}

.consent-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ---------- Páginas centralizadas (em breve, 404) ---------- */
.page-center {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 48px 0;
  text-align: center;
  background: radial-gradient(60% 50% at 50% 0%, rgba(249, 115, 22, 0.16), transparent 70%), var(--bg);
}

.page-center p {
  margin-inline: auto;
  color: var(--muted);
}

.page-center a:not(.btn) {
  color: var(--peach);
}

.page-center .hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.hero-logo {
  display: block;
  width: auto;
  height: 48px;
  margin: 0 auto 24px;
}

h1 .hero-logo {
  height: 64px;
  margin-bottom: 0;
}

.small {
  font-size: 0.875rem;
}

/* ---------- Páginas legais ---------- */
.legal {
  max-width: 760px;
  padding: 40px var(--gutter) 64px;
  margin: 0 auto;
  color: var(--muted);
}

.legal h1,
.legal h2,
.legal h3 {
  color: var(--ink);
  line-height: 1.25;
}

.legal a {
  color: var(--peach);
}

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .menu-button,
  .mobile-bar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    padding-bottom: 40px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
