/* ==========================================================
   FbN Studio — estilos compartilhados por todas as páginas
   Para adicionar um novo projeto, copie um bloco .project
   em index.html e, se quiser, defina um --project-accent próprio.
   ========================================================== */

:root {
  --bg: #f6f4ef;
  --bg-elev: #ffffff;
  --bg-soft: #ece8df;
  --text: #1a2224;
  --text-muted: #5b6669;
  --border: #ddd6c8;
  --accent: #c97a12;          /* âmbar da marca */
  --accent-strong: #a8640a;
  --accent-contrast: #ffffff;
  --teal: #1c8a78;
  --shadow: 0 10px 30px rgba(26, 34, 36, 0.08);
  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1416;
    --bg-elev: #122023;
    --bg-soft: #0f1b1e;
    --text: #e8eeec;
    --text-muted: #9fb0ae;
    --border: #1f3337;
    --accent: #f2a93b;
    --accent-strong: #ffc266;
    --accent-contrast: #1a1204;
    --teal: #3cc7ad;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b1416;
  --bg-elev: #122023;
  --bg-soft: #0f1b1e;
  --text: #e8eeec;
  --text-muted: #9fb0ae;
  --border: #1f3337;
  --accent: #f2a93b;
  --accent-strong: #ffc266;
  --accent-contrast: #1a1204;
  --teal: #3cc7ad;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

h1, h2, h3 {
  font-family: "Outfit", "Inter", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

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

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.brand:hover { color: var(--text); }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover { color: var(--text); background: var(--bg-soft); }

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 6px;
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); max-width: 14ch; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 56ch; margin: 0 0 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-contrast); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--bg-elev); }
.btn-ghost:hover { color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Seções ---------- */
section { padding: 64px 0; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.section-lead { color: var(--text-muted); max-width: 60ch; margin: 0 0 36px; }

/* ---------- Cartão de projeto ---------- */
.project {
  --project-accent: var(--accent);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  scroll-margin-top: 84px;
}
.project + .project { margin-top: 28px; }

.project-cover {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0b1416;
}
.project-cover img { width: 100%; height: 100%; object-fit: cover; }

.project h3 { font-size: 2rem; margin-bottom: 6px; }
.project .tagline { color: var(--text-muted); font-size: 1.05rem; margin: 0 0 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.tags li.status { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 40%, var(--border)); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}
.stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 1.6rem;
  color: var(--project-accent);
  line-height: 1.1;
}
.stat span { font-size: 0.8rem; color: var(--text-muted); }

.features { margin: 0 0 24px; padding-left: 1.2em; color: var(--text-muted); }
.features li { margin-bottom: 4px; }
.features strong { color: var(--text); }

/* Espaço reservado para próximos projetos */
.project-placeholder {
  margin-top: 28px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Sobre / Contato ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.about-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.about-card .icon { font-size: 1.6rem; margin-bottom: 8px; }
.about-card h3 { font-size: 1.15rem; }
.about-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.contact-box {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--bg-elev)), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}
.contact-box p { color: var(--text-muted); margin: 0 auto 20px; max-width: 50ch; }

/* ---------- Rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Páginas de documento (política de privacidade) ---------- */
.doc { padding: 56px 0 72px; }
.doc .container { max-width: 780px; }
.doc-header { margin-bottom: 32px; }
.doc-header h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc-meta { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.doc h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
  padding-top: 0.4em;
  scroll-margin-top: 84px;
}
.doc h3 { font-size: 1.1rem; margin-top: 1.6em; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }

.summary {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 32px;
}
.summary h2 { margin-top: 0; padding-top: 0; font-size: 1.15rem; }
.summary ul { margin: 0; }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 8px;
}
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.table-wrap { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 600; }

.back-link { display: inline-block; margin-bottom: 20px; text-decoration: none; font-weight: 500; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .project-cover { max-width: 260px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav a.hide-sm { display: none; }
  .hero { padding: 56px 0 48px; }
  section { padding: 48px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-box { padding: 28px 20px; }
}

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